/* ================================================
   DESIGN TOKENS (DARK / DEFAULT)
   ================================================ */
:root {
  --bg:          #0a0a0f;
  --bg-alt:      #0f0f17;
  --surface:     #13131e;
  --surface-2:   #1a1a28;
  --border:      rgba(255,255,255,.07);
  --border-hover:rgba(255,255,255,.15);

  --accent:      #7c6af7;   /* purple */
  --accent-2:    #4ecdc4;   /* teal */
  --accent-3:    #ff6b6b;   /* coral */
  --accent-glow: rgba(124,106,247,.35);

  --text:        #e8e8f0;
  --text-muted:  #8888a8;
  --text-faint:  #9ea0c0;

  --nav-bg:      rgba(10, 10, 15, 0.75);
  --nav-bg-scrolled: rgba(10, 10, 15, 0.92);

  --font-sans:   'Inter', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  --shadow-glow: 0 0 40px rgba(124,106,247,.18);
  --shadow-card: 0 4px 32px rgba(0,0,0,.45);

  --transition:  all .28s cubic-bezier(.4,0,.2,1);

  --nav-h:       68px;
  --noise-opacity: 0.025;
  --cursor-glow-opacity: 1;
}

/* ================================================
   DESIGN TOKENS (LIGHT THEME)
   ================================================ */
[data-theme="light"] {
  --bg:          #f8fafc;
  --bg-alt:      #f1f5f9;
  --surface:     #ffffff;
  --surface-2:   #f1f5f9;
  --border:      rgba(15, 23, 42, 0.09);
  --border-hover:rgba(15, 23, 42, 0.20);

  --accent:      #6366f1;   /* indigo */
  --accent-2:    #0d9488;   /* teal */
  --accent-3:    #e11d48;   /* rose */
  --accent-glow: rgba(99, 102, 241, 0.20);

  --text:        #0f172a;   /* slate-900 */
  --text-muted:  #475569;   /* slate-600 */
  --text-faint:  #94a3b8;   /* slate-400 */

  --nav-bg:      rgba(248, 250, 252, 0.85);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.95);

  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.12);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);

  --noise-opacity: 0.008;
  --cursor-glow-opacity: 0.35;
}

/* ================================================
   DESIGN TOKENS (AURORA - CYBER VIOLET)
   ================================================ */
[data-theme="aurora-violet"] {
  --bg:          #080914;
  --bg-alt:      #0e0f22;
  --surface:     rgba(18, 19, 38, 0.72);
  --surface-2:   rgba(27, 28, 54, 0.65);
  --border:      rgba(167, 139, 250, 0.14);
  --border-hover:rgba(167, 139, 250, 0.32);

  --accent:      #a78bfa;   /* vibrant violet */
  --accent-2:    #38bdf8;   /* sky cyan */
  --accent-3:    #f43f5e;   /* rose */
  --accent-glow: rgba(167, 139, 250, 0.38);

  --text:        #f3f4fd;
  --text-muted:  #9da4cb;
  --text-faint:  #6b729e;

  --nav-bg:      rgba(8, 9, 20, 0.75);
  --nav-bg-scrolled: rgba(8, 9, 20, 0.92);

  --shadow-glow: 0 0 45px rgba(139, 92, 246, 0.28);
  --shadow-card: 0 8px 32px rgba(4, 5, 12, 0.6);

  --noise-opacity: 0.022;
  --cursor-glow-opacity: 1;
}

/* ================================================
   DESIGN TOKENS (AURORA - TWILIGHT AMBER & TEAL / Z-LIB 1)
   ================================================ */
[data-theme="aurora-twilight"] {
  --bg:          #10121a;
  --bg-alt:      #171a26;
  --surface:     rgba(26, 29, 44, 0.72);
  --surface-2:   rgba(36, 40, 60, 0.65);
  --border:      rgba(224, 122, 95, 0.15);
  --border-hover:rgba(224, 122, 95, 0.35);

  --accent:      #e07a5f;   /* warm terracotta amber */
  --accent-2:    #38bdf8;   /* sky cyan */
  --accent-3:    #2dd4bf;   /* teal */
  --accent-glow: rgba(224, 122, 95, 0.35);

  --text:        #f5f6fc;
  --text-muted:  #a0a6c2;
  --text-faint:  #6c7292;

  --nav-bg:      rgba(16, 18, 26, 0.75);
  --nav-bg-scrolled: rgba(16, 18, 26, 0.92);

  --shadow-glow: 0 0 45px rgba(224, 122, 95, 0.25);
  --shadow-card: 0 8px 32px rgba(8, 9, 14, 0.6);

  --noise-opacity: 0.022;
  --cursor-glow-opacity: 1;
}

/* ================================================
   DESIGN TOKENS (AURORA - COBALT & CRIMSON / Z-LIB 2)
   ================================================ */
[data-theme="aurora-crimson"] {
  --bg:          #0a0d18;
  --bg-alt:      #101424;
  --surface:     rgba(20, 24, 42, 0.72);
  --surface-2:   rgba(28, 33, 58, 0.65);
  --border:      rgba(96, 165, 250, 0.15);
  --border-hover:rgba(244, 63, 94, 0.35);

  --accent:      #3b82f6;   /* cobalt blue */
  --accent-2:    #f43f5e;   /* ruby crimson */
  --accent-3:    #8b5cf6;   /* purple */
  --accent-glow: rgba(59, 130, 246, 0.35);

  --text:        #f1f4fd;
  --text-muted:  #9aa4c4;
  --text-faint:  #656f90;

  --nav-bg:      rgba(10, 13, 24, 0.75);
  --nav-bg-scrolled: rgba(10, 13, 24, 0.92);

  --shadow-glow: 0 0 45px rgba(59, 130, 246, 0.25);
  --shadow-card: 0 8px 32px rgba(4, 6, 12, 0.6);

  --noise-opacity: 0.022;
  --cursor-glow-opacity: 1;
}

/* ================================================
   DESIGN TOKENS (AURORA - MIDNIGHT INDIGO & VIOLET / Z-LIB 3)
   ================================================ */
[data-theme="aurora-indigo"] {
  --bg:          #070913;
  --bg-alt:      #0d1020;
  --surface:     rgba(16, 19, 38, 0.72);
  --surface-2:   rgba(24, 28, 54, 0.65);
  --border:      rgba(129, 140, 248, 0.15);
  --border-hover:rgba(192, 132, 252, 0.35);

  --accent:      #818cf8;   /* indigo */
  --accent-2:    #c084fc;   /* violet */
  --accent-3:    #38bdf8;   /* cyan */
  --accent-glow: rgba(129, 140, 248, 0.35);

  --text:        #f3f4fc;
  --text-muted:  #9aa1c7;
  --text-faint:  #656d95;

  --nav-bg:      rgba(7, 9, 19, 0.75);
  --nav-bg-scrolled: rgba(7, 9, 19, 0.92);

  --shadow-glow: 0 0 45px rgba(129, 140, 248, 0.28);
  --shadow-card: 0 8px 32px rgba(3, 4, 10, 0.6);

  --noise-opacity: 0.022;
  --cursor-glow-opacity: 1;
}

/* ================================================
   DESIGN TOKENS (AURORA - CYBER OCEAN CYAN)
   ================================================ */
[data-theme="aurora-ocean"] {
  --bg:          #060b14;
  --bg-alt:      #0b1322;
  --surface:     rgba(14, 24, 44, 0.72);
  --surface-2:   rgba(20, 36, 64, 0.65);
  --border:      rgba(56, 189, 248, 0.15);
  --border-hover:rgba(56, 189, 248, 0.35);

  --accent:      #38bdf8;   /* electric ice cyan */
  --accent-2:    #0284c7;   /* deep ocean blue */
  --accent-3:    #2dd4bf;   /* teal */
  --accent-glow: rgba(56, 189, 248, 0.35);

  --text:        #f0f8ff;   /* ice white */
  --text-muted:  #8ba3c7;
  --text-faint:  #566e92;

  --nav-bg:      rgba(6, 11, 20, 0.75);
  --nav-bg-scrolled: rgba(6, 11, 20, 0.92);

  --shadow-glow: 0 0 45px rgba(56, 189, 248, 0.28);
  --shadow-card: 0 8px 32px rgba(2, 6, 14, 0.6);

  --noise-opacity: 0.022;
  --cursor-glow-opacity: 1;
}

/* ================================================
   DESIGN TOKENS (AURORA - DEEP EMERALD / FOREST)
   ================================================ */
[data-theme="aurora-emerald"] {
  --bg:          #060d0b;
  --bg-alt:      #0b1411;
  --surface:     rgba(14, 28, 24, 0.72);
  --surface-2:   rgba(20, 38, 33, 0.65);
  --border:      rgba(45, 212, 191, 0.12);
  --border-hover:rgba(45, 212, 191, 0.28);

  --accent:      #2dd4bf;   /* soft muted teal-pine (non-glaring) */
  --accent-2:    #38bdf8;   /* soft sky */
  --accent-3:    #fbbf24;   /* soft amber */
  --accent-glow: rgba(45, 212, 191, 0.24);

  --text:        #e2ece9;   /* soft sage white (low glare) */
  --text-muted:  #829f98;
  --text-faint:  #53726b;

  --nav-bg:      rgba(6, 13, 11, 0.75);
  --nav-bg-scrolled: rgba(6, 13, 11, 0.92);

  --shadow-glow: 0 0 35px rgba(45, 212, 191, 0.18);
  --shadow-card: 0 8px 32px rgba(2, 6, 5, 0.6);

  --noise-opacity: 0.020;
  --cursor-glow-opacity: 0.9;
}

/* ================================================
   DESIGN TOKENS (AURORA - SUNSET NEBULA)
   ================================================ */
[data-theme="aurora-sunset"] {
  --bg:          #120c0a;
  --bg-alt:      #1c1310;
  --surface:     rgba(36, 23, 20, 0.72);
  --surface-2:   rgba(48, 31, 27, 0.65);
  --border:      rgba(245, 158, 11, 0.14);
  --border-hover:rgba(245, 158, 11, 0.32);

  --accent:      #f59e0b;   /* warm amber */
  --accent-2:    #f43f5e;   /* rose red */
  --accent-3:    #8b5cf6;   /* purple */
  --accent-glow: rgba(245, 158, 11, 0.38);

  --text:        #fff5f0;
  --text-muted:  #c2a297;
  --text-faint:  #876960;

  --nav-bg:      rgba(18, 12, 10, 0.75);
  --nav-bg-scrolled: rgba(18, 12, 10, 0.92);

  --shadow-glow: 0 0 45px rgba(245, 158, 11, 0.28);
  --shadow-card: 0 8px 32px rgba(10, 5, 4, 0.6);

  --noise-opacity: 0.022;
  --cursor-glow-opacity: 1;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#main-content, main {
  display: block;
  width: 100%;
  position: relative;
  min-height: calc(100vh - var(--nav-h));
}

a { color: inherit; text-decoration: none; }
.markdown-body a,
.article-body a,
.wi-manual a,
.ti-manual a,
.mi-manual a,
.post-content a,
.content a {
  color: #38bdf8;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.45);
  text-underline-offset: 3px;
  transition: all .2s ease;
}
.markdown-body a:hover,
.article-body a:hover,
.wi-manual a:hover,
.ti-manual a:hover,
.mi-manual a:hover,
.post-content a:hover,
.content a:hover {
  color: #00e5ff;
  text-decoration-color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ================================================
   SELECTION
   ================================================ */
::selection { background: var(--accent); color: #fff; }

/* ================================================
   CURSOR GLOW
   ================================================ */
/* ================================================
   CURSOR GLOW
   ================================================ */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,247,.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  transition: opacity .3s;
  opacity: var(--cursor-glow-opacity);
  will-change: transform;
}

/* ================================================
   NOISE OVERLAY
   ================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ================================================
   LAYOUT
   ================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 24px);
}

.section {
  padding: 110px 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid rgba(124,106,247,.3);
  border-radius: 99px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-inline: auto;
}
.section-cta { text-align: center; margin-top: 52px; }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .92rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.06);
  opacity: 0;
  transition: opacity .2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5b4ef0 100%);
  color: #fff;
  box-shadow: 0 4px 22px rgba(124,106,247,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,106,247,.5);
}

.btn-ghost {
  border: 1px solid var(--border-hover);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .35s, box-shadow .35s, border-color .35s;
}
.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
  border-bottom-color: var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 24px);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}
.nav-logo:hover { color: var(--accent-2); }
.logo-bracket { opacity: .6; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transform: translateX(-50%);
  transition: width .25s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ================================================
   THEME SWITCHER & AURORA MODE SYSTEM
   ================================================ */
.theme-switcher-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 3px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.theme-pill:hover {
  border-color: var(--border-hover);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.theme-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

[data-theme="light"] .theme-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Active State for Theme Buttons */
.theme-btn.active {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

[data-theme="light"] .theme-btn.active {
  color: #ffffff;
  background: var(--accent);
}

/* Aurora Mode Active Glow Effect */
.theme-btn#btnThemeAurora.active {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
  color: #ffffff;
}

html[data-theme="aurora-twilight"] .theme-btn#btnThemeAurora.active {
  background: linear-gradient(135deg, #e07a5f, #38bdf8);
  box-shadow: 0 0 16px rgba(224, 122, 95, 0.5);
}

html[data-theme="aurora-crimson"] .theme-btn#btnThemeAurora.active {
  background: linear-gradient(135deg, #3b82f6, #f43f5e);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

html[data-theme="aurora-indigo"] .theme-btn#btnThemeAurora.active {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.5);
}

html[data-theme="aurora-ocean"] .theme-btn#btnThemeAurora.active {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

html[data-theme="aurora-emerald"] .theme-btn#btnThemeAurora.active {
  background: linear-gradient(135deg, #2dd4bf, #06b6d4);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.5);
}

/* Aurora Dropdown Menu */
.aurora-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 228px;
  background: rgba(16, 18, 30, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.22s;
  z-index: 1000;
  pointer-events: none;
}

[data-theme="light"] .aurora-dropdown {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.aurora-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.aurora-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.aurora-title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.aurora-swatches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.aurora-swatch {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.2s ease,
              box-shadow 0.22s ease;
  outline: none;
}

.aurora-swatch:hover {
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.aurora-swatch.active {
  transform: scale(1.1);
  border-color: #ffffff;
  box-shadow: 0 0 18px var(--accent-glow);
}

/* Specific Swatch Background Gradients (Faithfully matching Z-Library & Cyber Violet) */
.swatch-violet {
  background: radial-gradient(circle at 30% 30%, #c084fc 0%, #6366f1 45%, #090a16 100%);
  box-shadow: inset 0 0 8px rgba(167, 139, 250, 0.4);
}

.swatch-twilight {
  background: radial-gradient(circle at 75% 75%, #e07a5f 0%, rgba(224, 122, 95, 0.5) 40%, transparent 70%),
              radial-gradient(circle at 25% 25%, #38bdf8 0%, rgba(45, 212, 191, 0.5) 45%, transparent 75%),
              #10121a;
  box-shadow: inset 0 0 8px rgba(224, 122, 95, 0.35);
}

.swatch-crimson {
  background: radial-gradient(circle at 25% 50%, #2563eb 0%, rgba(37, 99, 235, 0.5) 50%, transparent 80%),
              radial-gradient(circle at 75% 50%, #e11d48 0%, rgba(225, 29, 72, 0.5) 50%, transparent 80%),
              #0a0d18;
  box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.35);
}

.swatch-indigo {
  background: radial-gradient(circle at 30% 30%, #6366f1 0%, rgba(99, 102, 241, 0.5) 45%, transparent 75%),
              radial-gradient(circle at 75% 75%, #a855f7 0%, rgba(168, 85, 247, 0.5) 50%, transparent 80%),
              #070913;
  box-shadow: inset 0 0 8px rgba(129, 140, 248, 0.35);
}

.swatch-ocean {
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0284c7 45%, #060b14 100%),
              radial-gradient(circle at 75% 75%, #06b6d4 0%, rgba(6, 182, 212, 0.5) 45%, transparent 75%),
              #060b14;
  box-shadow: inset 0 0 8px rgba(56, 189, 248, 0.4);
}

.swatch-emerald {
  background: radial-gradient(circle at 30% 30%, #5eead4 0%, #0f766e 45%, #060d0b 100%);
  box-shadow: inset 0 0 8px rgba(45, 212, 191, 0.4);
}

.swatch-sunset {
  background: radial-gradient(circle at 30% 30%, #fbbf24 0%, #f43f5e 45%, #120c0a 100%);
  box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.4);
}

.swatch-indicator {
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.aurora-swatch.active .swatch-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Ambient Aurora Glow Gradients for Body */
html[data-theme="aurora-violet"] body {
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(139, 92, 246, 0.24), transparent 70%),
    radial-gradient(ellipse 70% 45% at 90% 45%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 85%, rgba(168, 85, 247, 0.14), transparent 65%);
  background-attachment: fixed;
}

html[data-theme="aurora-twilight"] body {
  background-image: 
    radial-gradient(ellipse 75% 55% at 85% 80%, rgba(224, 122, 95, 0.18), transparent 65%),
    radial-gradient(ellipse 75% 55% at 15% 20%, rgba(56, 189, 248, 0.14), transparent 65%),
    radial-gradient(ellipse 60% 45% at 50% -10%, rgba(45, 212, 191, 0.10), transparent 65%);
  background-attachment: fixed;
}

html[data-theme="aurora-crimson"] body {
  background-image: 
    radial-gradient(ellipse 80% 55% at 15% 30%, rgba(37, 99, 235, 0.18), transparent 65%),
    radial-gradient(ellipse 80% 55% at 85% 70%, rgba(225, 29, 72, 0.16), transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(99, 102, 241, 0.10), transparent 65%);
  background-attachment: fixed;
}

html[data-theme="aurora-indigo"] body {
  background-image: 
    radial-gradient(ellipse 85% 60% at 50% -15%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 60%, rgba(168, 85, 247, 0.16), transparent 60%),
    radial-gradient(ellipse 65% 45% at 10% 75%, rgba(56, 189, 248, 0.12), transparent 65%);
  background-attachment: fixed;
}

html[data-theme="aurora-ocean"] body {
  background-image: 
    radial-gradient(ellipse 85% 60% at 50% -15%, rgba(56, 189, 248, 0.20), transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 50%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(ellipse 65% 45% at 10% 80%, rgba(2, 132, 199, 0.14), transparent 65%);
  background-attachment: fixed;
}

html[data-theme="aurora-emerald"] body {
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(45, 212, 191, 0.12), transparent 70%),
    radial-gradient(ellipse 70% 45% at 90% 45%, rgba(20, 184, 166, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 85%, rgba(13, 148, 136, 0.07), transparent 65%);
  background-attachment: fixed;
}

html[data-theme="aurora-sunset"] body {
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(245, 158, 11, 0.22), transparent 70%),
    radial-gradient(ellipse 70% 45% at 90% 45%, rgba(225, 29, 72, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 85%, rgba(217, 119, 6, 0.14), transparent 65%);
  background-attachment: fixed;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  background: var(--surface-2);
}
}
.lang-toggle:not(.disabled):not([aria-disabled="true"]):hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lang-toggle.disabled,
.lang-toggle[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed !important;
  border-color: var(--border);
  color: var(--text-muted);
}
.lang-toggle.disabled:hover,
.lang-toggle[aria-disabled="true"]:hover {
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  transform: none !important;
}
.lang-toggle.disabled *,
.lang-toggle[aria-disabled="true"] * {
  cursor: not-allowed !important;
}
.lang-divider { opacity: .4; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  font-size: 1.85rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: -.02em;
  transition: var(--transition);
  padding: 8px 24px;
  border-radius: 12px;
}
.mobile-link:hover,
.mobile-link:active {
  color: var(--accent);
  background: rgba(124, 106, 247, 0.12);
}

/* ================================================
   HERO
   ================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(20px, 4vh, 48px));
  padding-bottom: clamp(40px, 6vh, 80px);
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,106,247,.25) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(78,205,196,.18) 0%, transparent 70%);
  bottom: -150px; left: -150px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Hero Main Container */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Top Full-Width Recommendation Banner Carousel */
.hero-top-banner {
  width: 100%;
  margin-bottom: 24px;
}
.hero-pill-container {
  position: relative;
  min-height: 38px;
  height: 38px;
}
.hero-pill-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: max-content;
  max-width: 100%;
}
.hero-pill-slide.active,
.hero-pill-slide:first-child {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.hero-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 18px 6px 10px;
  border-radius: 30px;
  font-size: 0.88rem;
  color: #60a5fa;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
  max-width: 100%;
}
.hero-pill-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.hero-pill-badge {
  background: var(--accent);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.hero-pill-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--accent-2);
  letter-spacing: .08em;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero-name {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 60%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
[data-theme="light"] .hero-greeting {
  color: #0d9488;
}
[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 70%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-typed { color: var(--accent); font-weight: 600; }
.hero-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-socials {
  display: flex;
  gap: 14px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124,106,247,.3);
}

/* ── Hero Profile Bento Card (Integrated High-Tech Style) ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.hero-profile-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: rgba(18, 22, 34, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 106, 247, 0.24);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 106, 247, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-profile-card:hover {
  border-color: rgba(124, 106, 247, 0.48);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 106, 247, 0.18);
  transform: translateY(-3px);
}
.profile-card-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 106, 247, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Card Header */
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.profile-avatar-wrap .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(124, 106, 247, 0.35);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-wrap .avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-badge-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid #121622;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}
.profile-identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.profile-title-bar {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.profile-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
}
.profile-brand-sep {
  color: var(--accent);
  font-weight: 700;
  opacity: 0.8;
}
.profile-brand-sub {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  line-height: 1.2;
}
.profile-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}
.suite-all-link {
  font-size: 0.74rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(124, 106, 247, 0.12);
  border: 1px solid rgba(124, 106, 247, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.suite-all-link:hover {
  background: rgba(124, 106, 247, 0.3);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateX(2px);
}
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
}
.status-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px transparent; }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 transparent; }
}

/* Section Sub-labels */
.suite-section-label {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}

/* 2x2 Simulators Grid */
.profile-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.sim-grid-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}
.sim-grid-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.sim-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sim-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}
.sim-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.sim-arrow {
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  transition: transform 0.2s ease, color 0.2s ease;
}
.sim-grid-item:hover .sim-arrow {
  transform: translateX(2px);
  color: var(--accent);
}
.sim-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-blue:hover { border-color: rgba(97, 218, 251, 0.45); background: rgba(97, 218, 251, 0.08); }
.item-green:hover { border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.08); }
.item-purple:hover { border-color: rgba(168, 85, 247, 0.45); background: rgba(168, 85, 247, 0.08); }
.item-amber:hover { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); }

/* 2x2 Columns Grid */
.profile-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.col-grid-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 0;
}
.col-grid-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(124, 106, 247, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.col-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.col-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.col-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-sub {
  font-size: 0.71rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-arrow {
  font-size: 0.78rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}
.col-grid-item:hover .col-arrow {
  transform: translateX(2px);
  color: var(--accent);
}

/* Stats Row */
.profile-stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}
.profile-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.p-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  line-height: 1;
}
.p-stat-num small {
  font-size: 0.8rem;
  color: var(--accent);
  margin-left: 2px;
}
.p-stat-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}
.profile-stat-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: .72rem;
  letter-spacing: .1em;
  animation: fadeInUp 1s 1.5s both;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--text-faint);
  border-radius: 99px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--text-faint);
  border-radius: 99px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ================================================
   ABOUT
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 20px;
}
.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 36px 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 2.4rem;
  white-space: nowrap;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-number-text {
  font-size: 1.7rem;
  white-space: nowrap;
  letter-spacing: -.05em;
  align-self: flex-start;
  margin-top: .15rem;
}
html[lang^="en"] .stat-number-text {
  font-size: 1.25rem;
  letter-spacing: -.03em;
}
.stat-plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
}
.stat-label { font-size: .75rem; color: var(--text-muted); text-align: center; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px rgba(124,106,247,.6);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .04em;
}
.timeline-role {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 4px 0;
}
.timeline-company { font-size: .88rem; color: var(--text-muted); }

/* ================================================
   SKILLS
   ================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
}
.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.skill-cat-title {
  font-family: var(--font-mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 22px;
}
.skill-bar-wrap { margin-bottom: 16px; }
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.skill-pct { color: var(--text-faint); }
.skill-track {
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #d1d5db;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: rgba(124,106,247,.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124,106,247,.25);
}
.skill-tag:active {
  transform: scale(0.96);
}
.skill-tag.accent {
  background: rgba(124,106,247,.15);
  border-color: rgba(124,106,247,.4);
  color: #c7d2fe;
}
.skill-tag.accent:hover {
  background: rgba(124,106,247,.28);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124,106,247,.35);
}

/* ================================================
   PORTFOLIO
   ================================================ */
.portfolio-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 99px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.portfolio-card.hidden { display: none; }

.portfolio-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.portfolio-thumb-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform .4s;
}
.portfolio-card:hover .portfolio-thumb-inner { transform: scale(1.06); }

.portfolio-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-web    { background: rgba(97,218,251,.15); color: #61dafb; border: 1px solid rgba(97,218,251,.3); }
.badge-mobile { background: rgba(104,160,99,.15); color: #68a063;  border: 1px solid rgba(104,160,99,.3); }
.badge-ai     { background: rgba(124,106,247,.15); color: var(--accent); border: 1px solid rgba(124,106,247,.3); }

.portfolio-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.portfolio-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.portfolio-desc {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.portfolio-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tech-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .74rem;
  font-family: var(--font-mono);
  font-weight: 500;
  background: rgba(255,255,255,.08);
  color: #d1d5db;
  border: 1px solid rgba(255,255,255,.14);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ================================================
   BLOG
   ================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(124,106,247,.12);
  color: var(--accent);
  border: 1px solid rgba(124,106,247,.25);
}
.blog-date { font-size: .76rem; color: var(--text-faint); font-family: var(--font-mono); }
.blog-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  transition: color .2s;
}
.blog-card:hover .blog-title { color: var(--accent); }
.blog-excerpt {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.blog-readtime { font-size: .74rem; color: var(--text-faint); font-family: var(--font-mono); }
.blog-link { font-size: .82rem; color: var(--accent); font-weight: 600; transition: gap .2s; }
.blog-link:hover { text-decoration: underline; }

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: stretch;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text);
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,106,247,.15);
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--accent-3);
}
.form-error {
  font-size: .76rem;
  color: var(--accent-3);
  min-height: 16px;
}
.form-success {
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.3);
  color: #4ade80;
  font-size: .9rem;
  display: none;
}
.form-success.visible { display: block; }

/* ── Interactive Contact Card ────────────────────────────── */
.contact-interactive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.contact-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.contact-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.contact-channel-box {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}
.contact-channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.channel-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.channel-value {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  word-break: break-word;
}
.channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 5px 14px;
}
.contact-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .contact-interactive-card {
    padding: 20px 16px;
    gap: 16px;
  }
  .contact-channel-box {
    padding: 14px;
  }
  .contact-action-grid {
    grid-template-columns: 1fr;
  }
  .channel-value {
    font-size: 1.1rem;
  }
}
.btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.copy-success-toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #10b981;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
  z-index: 10;
}
.copy-success-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-card h4 { font-size: .78rem; color: var(--text-faint); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.contact-card a, .contact-card span { color: var(--text-muted); font-size: .9rem; }
.contact-card a:hover { color: var(--accent); }

.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(74,222,128,.06);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: var(--radius-md);
  font-size: .86rem;
  color: #4ade80;
  font-weight: 500;
}
.avail-dot {
  width: 9px; height: 9px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ================================================
   GLOBAL SPONSOR SECTION
   ================================================ */
.global-sponsor-section {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  background: rgba(124, 106, 247, 0.015);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 240px;
  contain-intrinsic-size: auto 240px;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.sponsor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.sponsor-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124, 106, 247, 0.15);
}
.sponsor-card:active {
  transform: translateY(-1px);
}
.sponsor-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sponsor-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.sponsor-modal-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transform: scale(0.92);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sponsor-modal-overlay.open .sponsor-modal-dialog {
  transform: scale(1);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent); }
.footer-tagline { color: var(--text-faint); font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { color: var(--text-faint); font-size: .82rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-faint); font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ================================================
   MODAL
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(.95) translateY(20px);
  transition: transform .3s;
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
  z-index: 1;
  transition: color .2s;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-content { padding: 40px; }
.modal-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.modal-content .modal-subtitle { color: var(--text-muted); margin-bottom: 20px; font-size: .9rem; }
.modal-content .modal-desc { color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; }
.modal-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124,106,247,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,106,247,.5);
}

/* ================================================
   ANIMATIONS
   ================================================ */
.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s, transform .7s;
}
.animate-fade-up.visible { opacity: 1; transform: translateY(0); }
.animate-fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s, transform .8s;
}
.animate-fade-left.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: .12s !important; }
.delay-2 { transition-delay: .24s !important; }
.delay-3 { transition-delay: .36s !important; }
.delay-4 { transition-delay: .48s !important; }
.delay-5 { transition-delay: .60s !important; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease-out, transform .65s ease-out;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .hero-content { gap: 48px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-visual {
    justify-content: center;
  }
  .hero-profile-card {
    max-width: 100%;
  }
  .hero-cta, .hero-socials { justify-content: center; }
  .hero-desc { margin-inline: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .skills-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-stats { gap: 16px; padding: 20px; }
  .stat-number { font-size: 1.8rem; }

  .section { padding: 72px 0; }

  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.4rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .about-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 80%; height: 1px; }
}

/* ── WPO: Above-the-fold Hero Animations (No JS block) ─── */
.hero-section .animate-fade-up {
  opacity: 0.01;
  animation: fadeInUpHero 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-section .animate-fade-left {
  opacity: 0.01;
  animation: fadeInLeftHero 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpHero {
  from { opacity: 0.01; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeftHero {
  from { opacity: 0.01; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-section .delay-1 { animation-delay: 0.03s !important; }
.hero-section .delay-2 { animation-delay: 0.05s !important; }
.hero-section .delay-3 { animation-delay: 0.07s !important; }
.hero-section .delay-4 { animation-delay: 0.09s !important; }
.hero-section .delay-5 { animation-delay: 0.11s !important; }

/* ── WPO: Article Layout Structural Constraints (Prevents CLS FOUC) ─── */
.container.article-layout,
.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 250px;
  gap: clamp(24px, 2.5vw, 40px);
  align-items: start;
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: min(94vw, 1680px) !important;
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(16px, 2vw, 36px);
  padding-right: clamp(16px, 2vw, 36px);
}
.article-sidebar {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}
.article-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
}
.article-toc {
  grid-column: 3;
  grid-row: 1;
  align-self: stretch;
}

@media (max-width: 1280px) {
  .container.article-layout,
  .article-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }
  .article-toc {
    display: none;
  }
  .article-body {
    grid-column: 2;
  }
}
@media (max-width: 960px) {
  .container.article-layout,
  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .article-sidebar {
    display: none;
  }
  .article-body {
    grid-column: 1;
  }
}

/* ── Competency Cards & Progress Bars (Aesthetic Balance) ─── */
.competency-card {
  background: rgba(124, 106, 247, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s;
}

.competency-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 106, 247, 0.35) !important;
  background: rgba(124, 106, 247, 0.035) !important;
}

.comp-value {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.progress-bar-bg {
  height: 5px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #a78bfa 100%);
  border-radius: 3px;
}

/* =============================================
   Mobile Floating TOC Button & Drawer
   ============================================= */

/* FAB — only show when desktop TOC is hidden */
.toc-fab {
  display: none;
}
@media (max-width: 1200px) {
  .toc-fab {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 28px;
    right: 20px;
    z-index: 900;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
  }
  .toc-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.6);
  }
  .toc-fab:active {
    transform: translateY(0);
  }
}
@media (max-width: 400px) {
  .toc-fab span { display: none; }
  .toc-fab { padding: 14px !important; border-radius: 50% !important; }
}

/* Overlay backdrop */
.toc-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.toc-drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* Drawer panel - slides up from bottom */
.toc-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  background: var(--card-bg, #1a1a2e);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px 20px 0 0;
  max-height: 72vh;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
}
.toc-drawer.active {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

/* Drawer header */
.toc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  position: relative;
}
.toc-drawer-header::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}
.toc-drawer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #e2e8f0);
  letter-spacing: 0.03em;
}
.toc-drawer-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-secondary, #94a3b8);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.toc-drawer-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Drawer body - scrollable TOC */
.toc-drawer-body {
  overflow-y: auto;
  padding: 16px 20px 36px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.toc-drawer-body nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-drawer-body nav ul li { margin: 0; }
.toc-drawer-body nav ul a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-left: 2px solid transparent;
  line-height: 1.5;
}
.toc-drawer-body nav ul a:hover,
.toc-drawer-body nav ul a:active {
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent, #8b5cf6);
  border-left-color: var(--accent, #8b5cf6);
}
.toc-drawer-body nav ul ul { padding-left: 14px; }
.toc-drawer-body nav ul ul a {
  font-size: 0.84rem;
  padding: 7px 12px;
}

/* Mobile Drawer overrides for sidebar links */
.toc-drawer-body .sidebar-list {
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-drawer-body .sidebar-link {
  font-size: 0.92rem;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: var(--text-secondary, #94a3b8);
  transition: all 0.2s ease;
  margin: 0;
}
.toc-drawer-body .sidebar-link:active,
.toc-drawer-body .sidebar-link:hover {
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent, #8b5cf6);
  border-left-color: var(--accent, #8b5cf6);
  padding-left: 14px;
}
.toc-drawer-body .sidebar-link.active {
  background: rgba(124, 58, 237, 0.18);
  color: var(--accent, #8b5cf6);
  border-left-color: var(--accent, #8b5cf6);
  font-weight: 600;
  padding-left: 14px;
}

/* Touch & Interaction Optimization for Sub-100ms INP */
a, button, [role="button"], input, select, textarea, .tech-chip, .skill-tag, .sim-trigger-btn, .sim-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tech-chip {
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
.tech-chip:hover {
  border-color: rgba(124,106,247,.5);
  background: rgba(124,106,247,.2);
  color: #ffffff;
}
.tech-chip:active {
  transform: scale(0.96);
}

/* ================================================
   LIGHT MODE COMPONENT REFINEMENTS
   ================================================ */

/* Hero Profile Card & Bento Elements */
[data-theme="light"] .hero-profile-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 30px rgba(99, 102, 241, 0.06);
}
[data-theme="light"] .hero-profile-card:hover {
  border-color: var(--accent);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12), 0 0 40px rgba(99, 102, 241, 0.12);
}
[data-theme="light"] .profile-card-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .profile-brand-name {
  color: #0f172a;
}
[data-theme="light"] .suite-section-label {
  color: #475569;
}
[data-theme="light"] .sim-grid-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .sim-grid-item:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .sim-name {
  color: #0f172a;
}
[data-theme="light"] .sim-desc {
  color: #64748b;
}
[data-theme="light"] .col-grid-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .col-grid-item:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .col-title {
  color: #0f172a;
}
[data-theme="light"] .col-sub {
  color: #64748b;
}
[data-theme="light"] .profile-stats-row {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .p-stat-num {
  color: #0f172a;
}
[data-theme="light"] .p-stat-lbl {
  color: #64748b;
}
[data-theme="light"] .profile-stat-divider {
  background: rgba(15, 23, 42, 0.08);
}

/* Competency Cards & Progress Bars */
[data-theme="light"] .competency-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .competency-card:hover {
  background: #f8fafc !important;
  border-color: var(--accent) !important;
}
[data-theme="light"] .progress-bar-bg {
  background: rgba(15, 23, 42, 0.06);
}

/* Skills & Chips */
[data-theme="light"] .skill-category {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .skill-category:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .skill-track {
  background: rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .skill-tag {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}
[data-theme="light"] .skill-tag:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #4338ca;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.16);
}
[data-theme="light"] .skill-tag:active {
  transform: scale(0.96);
}
[data-theme="light"] .skill-tag.accent {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #4f46e5;
}
[data-theme="light"] .skill-tag.accent:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
  color: #3730a3;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}
[data-theme="light"] .tech-chip {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
  font-weight: 500;
}
[data-theme="light"] .tech-chip:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #4338ca;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.14);
}

/* Mobile Drawer TOC */
[data-theme="light"] .toc-drawer {
  background: #ffffff;
  border-top-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .toc-drawer-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .toc-drawer-header::before {
  background: rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .toc-drawer-title {
  color: #0f172a;
}
[data-theme="light"] .toc-drawer-close {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
[data-theme="light"] .toc-drawer-close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}
[data-theme="light"] .toc-drawer-body .sidebar-link {
  background: #f8fafc;
  color: #475569;
}
[data-theme="light"] .toc-drawer-body .sidebar-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
}
[data-theme="light"] .toc-drawer-body .sidebar-link.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
}

/* Portfolio & Simulation Cards in Light Mode */
[data-theme="light"] .portfolio-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .portfolio-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}
[data-theme="light"] .portfolio-thumb {
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
[data-theme="light"] .portfolio-thumb-inner {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%) !important;
}
[data-theme="light"] .portfolio-title a {
  color: #0f172a;
}
[data-theme="light"] .portfolio-title a:hover {
  color: var(--accent);
}
[data-theme="light"] .portfolio-desc {
  color: #475569;
}
[data-theme="light"] .badge-web {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}
[data-theme="light"] .badge-ai {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.25);
}
[data-theme="light"] .badge-sim {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}
[data-theme="light"] .list-card-link {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  justify-content: center;
  color: #4f46e5 !important;
  font-weight: 600;
}
[data-theme="light"] .list-card-link:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Blog Cards in Light Mode */
[data-theme="light"] .blog-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .blog-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}
[data-theme="light"] .blog-title {
  color: #0f172a;
}
[data-theme="light"] .blog-title a {
  color: #0f172a;
}
[data-theme="light"] .blog-card:hover .blog-title,
[data-theme="light"] .blog-card:hover .blog-title a {
  color: var(--accent);
}
[data-theme="light"] .blog-desc {
  color: #475569;
}

/* Mobile Navigation Menu in Light Mode */
[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .mobile-link {
  color: #0f172a;
}
[data-theme="light"] .mobile-link:hover,
[data-theme="light"] .mobile-link:active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}
[data-theme="light"] .hamburger span {
  background: #0f172a;
}

/* Contact Section in Light Mode */
[data-theme="light"] .contact-interactive-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .contact-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .contact-card:hover {
  background: #f8fafc;
  border-color: var(--accent);
}
[data-theme="light"] .box-email {
  background: #f0f9ff !important;
  border: 1.5px solid #bae6fd !important;
}
[data-theme="light"] .box-wechat {
  background: #f0fdf4 !important;
  border: 1.5px solid #bbf7d0 !important;
}
[data-theme="light"] .box-zhihu {
  background: #f0f7ff !important;
  border: 1.5px solid #bfdbfe !important;
}
[data-theme="light"] .modal-content {
  background: #ffffff !important;
  border-color: rgba(7, 193, 96, 0.3) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2) !important;
}
[data-theme="light"] .modal-close-btn {
  color: #64748b !important;
}
