/* ==========================================================================
   曹子豪 (Cao Zihao) — Apple Pro Portfolio Stylesheet (style.css)
   Pure UTF-8 CSS · Supports Dark Titanium & Light Silver Themes
   ========================================================================== */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0c0c0e;
  --bg-card: rgba(24, 24, 27, 0.78);
  --bg-glass: rgba(18, 18, 20, 0.75);
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-muted: #6E6E73;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --accent-blue: #2997FF;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html:not(.dark) {
  --bg-primary: #F5F5F7;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --text-primary: #1D1D1F;
  --text-secondary: #515154;
  --text-muted: #86868B;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --accent-blue: #0071E3;
  --card-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-x: hidden;
  margin: 0;
}

/* Apple Frosted Glass Navigation */
.apple-glass {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Bento Card Component */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 151, 255, 0.4);
}

/* Apple Pro Titanium Gradient Headline */
.titanium-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #D2D2D7 45%, #86868B 80%, #2997FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html:not(.dark) .titanium-text {
  background: linear-gradient(135deg, #1D1D1F 0%, #424245 50%, #0071E3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pro Pill Badge */
.pro-badge {
  background: linear-gradient(90deg, rgba(41, 151, 255, 0.16), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(41, 151, 255, 0.35);
}

/* Dynamic Island Animation */
.dynamic-island {
  transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Pure CSS/SVG Visual Banner Backgrounds */
.hero-titanium-visual {
  background: radial-gradient(circle at 20% 20%, rgba(41, 151, 255, 0.25), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.22), transparent 55%),
              linear-gradient(135deg, #09090b 0%, #18181b 50%, #09090b 100%);
}

.visual-campus-store {
  background: radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.28), transparent 55%),
              linear-gradient(145deg, #0c1222 0%, #111827 60%, #090d16 100%);
}

.visual-online-exam {
  background: radial-gradient(circle at 25% 30%, rgba(16, 185, 129, 0.26), transparent 55%),
              linear-gradient(145deg, #091914 0%, #111827 60%, #090d16 100%);
}

.visual-cloud-devops {
  background: radial-gradient(circle at 50% 25%, rgba(6, 182, 212, 0.28), transparent 55%),
              linear-gradient(145deg, #081821 0%, #0f172a 60%, #090d16 100%);
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Print / PDF Styles */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .bento-card {
    box-shadow: none !important;
    border: 1px solid #d4d4d8 !important;
    break-inside: avoid;
  }
}
