/* =========================================================================
   Shorya Sharma — Senior AI Engineer Portfolio
   Production-grade · Modern · Responsive (320px → 4K)
   Dark + Light themes
   ========================================================================= */

:root {
  /* Dark theme (default) */
  --bg: #07070c;
  --bg-1: #0b0b14;
  --surface: #11111c;
  --surface-2: #161624;
  --surface-3: #1d1d2e;
  --border: #232336;
  --border-strong: #34344f;
  --text: #ecedf5;
  --text-muted: #9999b3;
  --text-dim: #6a6a85;

  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --accent-4: #ec4899;
  --accent-5: #10b981;

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --grad-text: linear-gradient(135deg, #a5b4fc 0%, #d8b4fe 45%, #f9a8d4 100%);
  --grad-border: linear-gradient(135deg, rgba(99,102,241,.6), rgba(139,92,246,.4) 40%, rgba(236,72,153,.5));

  --shadow-md: 0 8px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 80px rgba(99, 102, 241, .18);

  /* Background layer tints (per-theme) */
  --bg-mesh-1: rgba(99, 102, 241, .22);
  --bg-mesh-2: rgba(139, 92, 246, .18);
  --bg-mesh-3: rgba(6, 182, 212, .14);
  --bg-mesh-4: rgba(236, 72, 153, .14);
  --bg-grid-line: rgba(255, 255, 255, .018);
  --bg-noise-opacity: .035;
  --bg-noise-blend: overlay;

  --ghost-bg: rgba(255, 255, 255, .03);
  --selection: rgba(139, 92, 246, .45);
  --drawer-bg: rgba(7, 7, 12, .85);
  --nav-bg: rgba(7, 7, 12, .72);
  --nav-border: var(--border);
  --terminal-bg-1: rgba(20, 20, 32, .95);
  --terminal-bg-2: rgba(10, 10, 18, .95);
  --code-text: #cbd5e1;
  --code-key: #c4b5fd;
  --code-fn:  #67e8f9;
  --code-str: #fcd34d;
  --code-num: #f9a8d4;
  --code-com: #6a6a85;
  --code-kw:  #f0abfc;
  --code-var: #93c5fd;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --container: 1280px;
  --pad-section: clamp(60px, 9vw, 110px);

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ========== LIGHT THEME ========== */
:root[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-1: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f6f7fc;
  --surface-3: #edeff7;
  --border: #e3e6f0;
  --border-strong: #c8cdde;
  --text: #0f1020;
  --text-muted: #525574;
  --text-dim: #8a8da6;

  --accent: #5b5fe6;
  --accent-2: #8e54e9;
  --accent-3: #0e8ea4;
  --accent-4: #db2777;
  --accent-5: #059669;

  --grad-primary: linear-gradient(135deg, #5b5fe6 0%, #8e54e9 50%, #db2777 100%);
  --grad-cyan: linear-gradient(135deg, #0ea5b7 0%, #5b5fe6 100%);
  --grad-text: linear-gradient(135deg, #4f52e0 0%, #8e54e9 45%, #db2777 100%);
  --grad-border: linear-gradient(135deg, rgba(91,95,230,.45), rgba(142,84,233,.3) 40%, rgba(219,39,119,.4));

  --shadow-md: 0 6px 22px rgba(15, 16, 32, .07);
  --shadow-lg: 0 18px 50px rgba(15, 16, 32, .12);
  --shadow-glow: 0 0 70px rgba(91, 95, 230, .14);

  --bg-mesh-1: rgba(91, 95, 230, .14);
  --bg-mesh-2: rgba(142, 84, 233, .11);
  --bg-mesh-3: rgba(14, 142, 164, .10);
  --bg-mesh-4: rgba(219, 39, 119, .10);
  --bg-grid-line: rgba(15, 16, 32, .045);
  --bg-noise-opacity: .025;
  --bg-noise-blend: multiply;

  --ghost-bg: rgba(15, 16, 32, .03);
  --selection: rgba(91, 95, 230, .25);
  --drawer-bg: rgba(245, 246, 251, .92);
  --nav-bg: rgba(245, 246, 251, .78);
  --nav-border: rgba(15, 16, 32, .08);

  /* Terminal stays dark in light mode (signature aesthetic) but slightly warmer */
  --terminal-bg-1: rgba(22, 22, 36, .98);
  --terminal-bg-2: rgba(12, 12, 22, .98);
  --code-text: #cbd5e1;
  --code-key: #c4b5fd;
  --code-fn:  #67e8f9;
  --code-str: #fcd34d;
  --code-num: #f9a8d4;
  --code-com: #6b7280;
  --code-kw:  #f0abfc;
  --code-var: #93c5fd;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color .35s ease, color .35s ease;
}

/* Smooth theme switch on key elements */
.nav, .skill-card, .project, .exp-card, .other-exp, .edu-block,
.spotlight-card, .info-list li, .tag, .filter-btn, .social-btn,
.contact-card, .contact-wrap, .footer, .stats, .marquee-wrap,
.terminal, .terminal-header, .hero-role, .eyebrow, .other-exp li,
.cert-list li, .edu-item {
  transition: background-color .35s ease, color .35s ease,
              border-color .35s ease, box-shadow .35s ease;
}

/* ========== ANIMATED BACKGROUND LAYERS ========== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-mesh::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40vw 40vw at 12% 8%,  var(--bg-mesh-1), transparent 60%),
    radial-gradient(38vw 38vw at 88% 18%, var(--bg-mesh-2), transparent 60%),
    radial-gradient(45vw 45vw at 50% 92%, var(--bg-mesh-3), transparent 60%),
    radial-gradient(36vw 36vw at 22% 78%, var(--bg-mesh-4), transparent 60%);
  filter: blur(40px);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  0%   { transform: translate3d(0,0,0) rotate(0); }
  50%  { transform: translate3d(2%, -2%, 0) rotate(2deg); }
  100% { transform: translate3d(-2%, 2%, 0) rotate(-2deg); }
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bg-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 80%);
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--bg-noise-opacity);
  mix-blend-mode: var(--bg-noise-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ========== TYPOGRAPHY ========== */
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--selection); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 2;
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: clamp(12px, 2vw, 18px) 0;
  transition: all .3s ease;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--nav-border);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 17px);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad-primary);
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 22px rgba(99, 102, 241, .45);
  position: relative;
  overflow: hidden;
}
.brand-mark::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
  transform: translateX(-100%);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 50%, 100% { transform: translateX(100%); } }
.brand-name { color: var(--text); white-space: nowrap; }
.brand-name .subtle { color: var(--text-muted); font-weight: 400; margin-left: 6px; font-size: 13px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 9px;
  transition: all .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: white !important;
  background: var(--grad-primary);
  border-radius: 11px;
  transition: all .25s ease;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(99, 102, 241, .55); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
}
.theme-toggle:hover {
  background: var(--surface-3);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .25);
}
.theme-toggle svg {
  width: 18px; height: 18px;
  position: absolute;
  transition: transform .45s cubic-bezier(.5,1.6,.4,.95), opacity .35s ease;
}
.theme-toggle .icon-sun  { transform: rotate(180deg) scale(0); opacity: 0; }
.theme-toggle .icon-moon { transform: rotate(0) scale(1); opacity: 1; }
:root[data-theme="light"] .theme-toggle .icon-sun  { transform: rotate(0) scale(1); opacity: 1; }
:root[data-theme="light"] .theme-toggle .icon-moon { transform: rotate(-180deg) scale(0); opacity: 0; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--drawer-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 24px;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.mobile-drawer ul a {
  display: block;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all .2s ease;
}
.mobile-drawer ul a:hover, .mobile-drawer ul a:active { background: var(--surface-3); }
.mobile-drawer .drawer-cta {
  margin-top: 18px;
  width: 100%;
  max-width: 360px;
  padding: 16px 20px;
  font-size: 16px;
  text-align: center;
  background: var(--grad-primary);
  border-radius: 12px;
  color: white;
  font-weight: 600;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 16vh, 160px) 0 clamp(60px, 8vh, 90px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .25);
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-5);
  box-shadow: 0 0 12px var(--accent-5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--text-muted);
  margin-bottom: 26px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 100%;
}
.hero-role .role-prefix { color: var(--accent-3); }
.hero-role .role-text { color: var(--text); font-weight: 500; }
.hero-role .cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
  border-radius: 1px;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-desc {
  font-size: clamp(15px, 1.8vw, 17.5px);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  transition: all .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary {
  color: white;
  background: var(--grad-primary);
  background-size: 200% 200%;
  box-shadow: 0 10px 30px rgba(99, 102, 241, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, .55);
  background-position: 100% 100%;
  color: white;
}
.btn-ghost {
  color: var(--text);
  background: var(--ghost-bg);
  border-color: var(--border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-strong); transform: translateY(-2px); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-item svg { width: 16px; height: 16px; color: var(--accent-3); flex-shrink: 0; }

.hero-socials { display: flex; align-items: center; gap: 8px; }
.social-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-muted);
  transition: all .25s ease;
  flex-shrink: 0;
}
.social-btn:hover {
  color: var(--text);
  background: var(--surface-3);
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(99, 102, 241, .25);
}
.social-btn svg { width: 17px; height: 17px; }

/* terminal card */
.terminal {
  background: linear-gradient(180deg, var(--terminal-bg-1) 0%, var(--terminal-bg-2) 100%);
  border: 1px solid #232336;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  backdrop-filter: blur(8px);
}
.terminal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.terminal::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--grad-primary);
  opacity: 0;
  filter: blur(24px);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .12; }
  50%      { opacity: .28; }
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
}
.terminal-header .dots { display: flex; gap: 6px; }
.terminal-header .dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-header .dots span:nth-child(1) { background: #ff5f57; }
.terminal-header .dots span:nth-child(2) { background: #febc2e; }
.terminal-header .dots span:nth-child(3) { background: #28c840; }
.terminal-header .title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 6px;
}
.terminal-body {
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.5vw, 26px);
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 1.1vw, 13.5px);
  line-height: 1.85;
  color: var(--code-text);
  overflow-x: auto;
}
.terminal-body .ln { display: block; white-space: pre; }
.terminal-body .c-key { color: var(--code-key); }
.terminal-body .c-fn  { color: var(--code-fn); }
.terminal-body .c-str { color: var(--code-str); }
.terminal-body .c-num { color: var(--code-num); }
.terminal-body .c-com { color: var(--code-com); font-style: italic; }
.terminal-body .c-kw  { color: var(--code-kw); }
.terminal-body .c-var { color: var(--code-var); }
.terminal-header { background: rgba(255,255,255,.02); border-bottom: 1px solid #232336; }
.terminal-header .title { color: #6a6a85; }

/* Floating glow nodes near hero */
.float-node {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(.5px);
  z-index: 1;
  animation: float-y 8s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
section { padding: var(--pad-section) 0; position: relative; z-index: 2; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-3);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.section-tag::before { content: '> '; opacity: .7; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-subtitle { color: var(--text-muted); font-size: clamp(14.5px, 1.6vw, 17px); line-height: 1.7; }

/* =========================================================================
   MARQUEE — TECH STRIP
   ========================================================================= */
.marquee-wrap {
  padding: clamp(26px, 4vw, 38px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(99,102,241,.04), rgba(236,72,153,.04));
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 12vw;
  pointer-events: none;
  z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-item .ico {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-primary);
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* =========================================================================
   STATS
   ========================================================================= */
.stats {
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: clamp(14.5px, 1.7vw, 16.5px);
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-text p strong { color: var(--text); font-weight: 600; }

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.tag {
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(99, 102, 241, .12);
  border: 1px solid rgba(99, 102, 241, .35);
  color: #c7d2fe;
  border-radius: 100px;
  transition: all .2s ease;
}
.tag.accent { /* legacy alias — same as .tag */ }
.tag:hover { transform: translateY(-1px); border-color: var(--accent); }

/* spotlight card (mouse-following inner glow) */
.spotlight-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, -200px) var(--my, -200px), rgba(99, 102, 241, .14), transparent 40%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card:hover { border-color: var(--border-strong); }

.info-list { list-style: none; }
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.info-list li:last-child { border-bottom: none; }
.info-list li span:first-child { color: var(--text-muted); flex-shrink: 0; }
.info-list li span:last-child  { color: var(--text); font-weight: 500; text-align: right; word-break: break-word; }

.card-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.card-head::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
}

/* =========================================================================
   SKILLS
   ========================================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.skill-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px);
  transition: transform .3s ease, border-color .3s ease;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, -200px) var(--my, -200px), rgba(139, 92, 246, .12), transparent 40%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.skill-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.skill-card:hover::before, .skill-card:hover::after { opacity: 1; }

.skill-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .15), rgba(139, 92, 246, .1));
  border: 1px solid rgba(99, 102, 241, .3);
  position: relative;
  overflow: hidden;
}
.skill-icon::before {
  content: '';
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, .25), transparent 30%);
  animation: spin 6s linear infinite;
  opacity: 0;
  transition: opacity .3s ease;
}
.skill-card:hover .skill-icon::before { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.skill-icon svg { width: 22px; height: 22px; color: #a5b4fc; position: relative; z-index: 1; }
.skill-card h3 {
  font-family: var(--font-display);
  font-size: clamp(15.5px, 1.8vw, 17.5px);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.skill-list li {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

/* =========================================================================
   EXPERIENCE / TIMELINE
   ========================================================================= */
.timeline { position: relative; max-width: 940px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: clamp(14px, 2vw, 24px);
  top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity: .55;
}
.exp { position: relative; padding-left: clamp(48px, 8vw, 76px); padding-bottom: clamp(28px, 4vw, 40px); }
.exp:last-child { padding-bottom: 0; }
.exp-dot {
  position: absolute;
  left: clamp(4px, 1.2vw, 14px);
  top: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18), 0 0 24px rgba(99, 102, 241, .45);
}
.exp-dot.current {
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, .25), 0 0 24px rgba(99, 102, 241, .55); }
  50%      { box-shadow: 0 0 0 9px rgba(99, 102, 241, .12), 0 0 36px rgba(99, 102, 241, .65); }
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(99, 102, 241, .1), transparent 40%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.exp-card:hover { border-color: var(--border-strong); }
.exp-card:hover::before { opacity: 1; }

.exp-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.exp-role {
  font-family: var(--font-display);
  font-size: clamp(16.5px, 2.1vw, 19.5px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.exp-date {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .3);
  color: #c7d2fe;
  border-radius: 100px;
  white-space: nowrap;
}
.exp-current {
  background: rgba(16, 185, 129, .1);
  border-color: rgba(16, 185, 129, .35);
  color: #6ee7b7;
}
.exp-company { color: var(--accent-3); font-weight: 500; margin-bottom: 12px; font-size: 14px; }
.exp-points { list-style: none; }
.exp-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  line-height: 1.7;
}
.exp-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: rotate(45deg);
}

.other-exp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
}
.other-exp h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-weight: 500;
}
.other-exp ul { list-style: none; }
.other-exp li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.other-exp li:last-child { border-bottom: none; }
.other-exp li strong { color: var(--text); font-weight: 500; }
.other-exp li span { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

/* =========================================================================
   PROJECTS
   ========================================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.filter-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all .2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.project {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 30px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(139, 92, 246, .14), transparent 40%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.project::after {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 100px; height: 100px;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, .25), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.project:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.project:hover::before, .project:hover::after { opacity: 1; }

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.project-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .3);
}
.project-icon.cyan  { background: var(--grad-cyan); box-shadow: 0 6px 18px rgba(6, 182, 212, .3); }
.project-icon.pink  { background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 6px 18px rgba(236, 72, 153, .3); }
.project-icon.green { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 6px 18px rgba(16, 185, 129, .3); }
.project-icon.amber { background: linear-gradient(135deg, #f59e0b, #ec4899); box-shadow: 0 6px 18px rgba(245, 158, 11, .3); }

.project-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.project h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 18px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.project h3 a { color: var(--text); }
.project h3 a:hover { color: #c4b5fd; }

.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.project-meta svg { width: 12px; height: 12px; color: var(--accent-3); flex-shrink: 0; }
.project-meta .sep { color: var(--border-strong); }
:root[data-theme="light"] .project-meta { color: var(--text-muted); }

.project-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  position: relative; z-index: 1;
}
.project-stack {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.project-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(6, 182, 212, .25);
  color: #67e8f9;
  border-radius: 6px;
}
.project-foot {
  display: flex; align-items: center; gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s ease, gap .2s ease;
}
.project-link:hover { color: #c4b5fd; gap: 9px; }
.project-link svg { width: 14px; height: 14px; }

/* =========================================================================
   EDUCATION + CERTS
   ========================================================================= */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 28px);
}
.edu-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
}
.edu-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:last-child { border-bottom: none; padding-bottom: 0; }
.edu-item:first-child { padding-top: 0; }
.edu-item .deg { font-size: clamp(15px, 1.7vw, 16.5px); font-weight: 600; margin-bottom: 4px; }
.edu-item .inst { color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }
.edu-item .yr { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.cert-list { list-style: none; }
.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cert-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cert-list li:first-child { padding-top: 0; }
.cert-list .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .12);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.cert-list .check svg { width: 12px; height: 12px; color: #10b981; }
.cert-list .cert-body { flex: 1; min-width: 0; }
.cert-list .cert-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 2px;
}
.cert-list .cert-name { font-weight: 500; font-size: 14px; line-height: 1.35; }
.cert-list .cert-iss { font-size: 12.5px; color: var(--text-muted); }
.cert-list .cert-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  padding: 2px 8px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-wrap {
  background: linear-gradient(135deg, rgba(99, 102, 241, .09), rgba(139, 92, 246, .06) 50%, rgba(236, 72, 153, .07));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.contact-wrap::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, .12), transparent 60%);
  top: -300px; right: -300px;
  pointer-events: none;
}
.contact-wrap > * { position: relative; z-index: 1; }
.contact-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.contact-wrap > p {
  color: var(--text-muted);
  font-size: clamp(14.5px, 1.8vw, 17px);
  max-width: 580px;
  margin: 0 auto 32px;
}
.contact-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 18px);
  margin-top: clamp(36px, 5vw, 52px);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 26px) clamp(14px, 2vw, 18px);
  text-align: center;
  transition: all .25s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.contact-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.contact-card-link:hover {
  color: inherit;
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(99, 102, 241, .25);
}
.contact-card-link:hover .ic { background: rgba(99, 102, 241, .22); }
.contact-card-link:hover .ic svg { color: #c4b5fd; }
:root[data-theme="light"] .contact-card-link:hover .ic svg { color: var(--accent); }
.contact-card .ic {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(99, 102, 241, .12);
  display: grid; place-items: center;
}
.contact-card .ic svg { width: 20px; height: 20px; color: #a5b4fc; }
.contact-card h4 {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-card p { color: var(--text); margin: 0; font-size: 13.5px; word-break: break-word; line-height: 1.4; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer p { color: var(--text-dim); font-size: 13px; }
.footer-socials { display: flex; gap: 8px; }

/* Scroll-to-top */
.to-top {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(99, 102, 241, .45);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   LIGHT THEME COMPONENT OVERRIDES
   Tuned hues for impressive, accessible light mode
   ========================================================================= */
:root[data-theme="light"] .eyebrow {
  background: rgba(5, 150, 105, .08);
  border-color: rgba(5, 150, 105, .25);
  color: var(--text-muted);
}

:root[data-theme="light"] .tag {
  background: rgba(91, 95, 230, .10);
  border-color: rgba(91, 95, 230, .30);
  color: #4338ca;
  box-shadow: 0 1px 2px rgba(15, 16, 32, .04);
}

:root[data-theme="light"] .exp-date {
  background: rgba(91, 95, 230, .10);
  border-color: rgba(91, 95, 230, .30);
  color: #4338ca;
}
:root[data-theme="light"] .exp-current {
  background: rgba(5, 150, 105, .10);
  border-color: rgba(5, 150, 105, .35);
  color: #047857;
}
:root[data-theme="light"] .exp-dot {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 95, 230, .15), 0 0 18px rgba(91, 95, 230, .35);
}
:root[data-theme="light"] .exp-dot.current { background: var(--accent); }

:root[data-theme="light"] .project-stack span {
  background: rgba(14, 142, 164, .10);
  border-color: rgba(14, 142, 164, .28);
  color: #0e7490;
}

:root[data-theme="light"] .skill-icon {
  background: linear-gradient(135deg, rgba(91, 95, 230, .12), rgba(142, 84, 233, .08));
  border-color: rgba(91, 95, 230, .25);
}
:root[data-theme="light"] .skill-icon svg { color: #4f46e5; }

:root[data-theme="light"] .skill-list li {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
}

:root[data-theme="light"] .filter-btn {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 16, 32, .04);
}
:root[data-theme="light"] .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
:root[data-theme="light"] .filter-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(91, 95, 230, .35);
}
:root[data-theme="light"] .filter-btn.active:hover {
  color: #ffffff;
  border-color: transparent;
}

:root[data-theme="light"] .skill-card,
:root[data-theme="light"] .project,
:root[data-theme="light"] .info-card,
:root[data-theme="light"] .spotlight-card,
:root[data-theme="light"] .exp-card,
:root[data-theme="light"] .other-exp,
:root[data-theme="light"] .edu-block,
:root[data-theme="light"] .contact-card {
  box-shadow: 0 1px 3px rgba(15, 16, 32, .04), 0 1px 2px rgba(15, 16, 32, .04);
}
:root[data-theme="light"] .skill-card:hover,
:root[data-theme="light"] .project:hover,
:root[data-theme="light"] .contact-card:hover {
  box-shadow: 0 16px 40px rgba(15, 16, 32, .12);
}

:root[data-theme="light"] .skill-card,
:root[data-theme="light"] .project {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

:root[data-theme="light"] .skill-card::before,
:root[data-theme="light"] .project::before,
:root[data-theme="light"] .exp-card::before,
:root[data-theme="light"] .spotlight-card::before {
  background: radial-gradient(380px circle at var(--mx, -200px) var(--my, -200px), rgba(91, 95, 230, .12), transparent 40%);
}
:root[data-theme="light"] .project::after {
  background: radial-gradient(circle at top right, rgba(142, 84, 233, .18), transparent 70%);
}
:root[data-theme="light"] .skill-card::after {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

:root[data-theme="light"] .hero-role {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 2px 6px rgba(15, 16, 32, .05);
}

:root[data-theme="light"] .stats { background: var(--surface); }
:root[data-theme="light"] .marquee-wrap {
  background: linear-gradient(90deg, rgba(91, 95, 230, .04), rgba(219, 39, 119, .04));
}
:root[data-theme="light"] .marquee-wrap::before {
  background: linear-gradient(90deg, var(--bg), transparent);
}
:root[data-theme="light"] .marquee-wrap::after {
  background: linear-gradient(-90deg, var(--bg), transparent);
}

:root[data-theme="light"] .contact-wrap {
  background: linear-gradient(135deg, rgba(91, 95, 230, .07), rgba(142, 84, 233, .05) 50%, rgba(219, 39, 119, .06)),
              var(--surface);
}

:root[data-theme="light"] .contact-card .ic { background: rgba(91, 95, 230, .10); }
:root[data-theme="light"] .contact-card .ic svg { color: #4f46e5; }

:root[data-theme="light"] .cert-list .check { background: rgba(5, 150, 105, .12); }
:root[data-theme="light"] .cert-list .check svg { color: #059669; }

:root[data-theme="light"] .card-head { color: #4f46e5; }
:root[data-theme="light"] .card-head::before { background: #4f46e5; box-shadow: 0 0 8px #4f46e5; }
:root[data-theme="light"] .section-tag { color: #0e7490; }

:root[data-theme="light"] .nav-cta { box-shadow: 0 4px 14px rgba(91, 95, 230, .35); }

:root[data-theme="light"] .to-top { box-shadow: 0 8px 22px rgba(91, 95, 230, .4); }

:root[data-theme="light"] .info-list li { border-color: rgba(15, 16, 32, .08); }
:root[data-theme="light"] .other-exp li { border-color: rgba(15, 16, 32, .08); }
:root[data-theme="light"] .exp-points li { color: var(--text-muted); }
:root[data-theme="light"] a:hover { color: var(--accent); }

/* slightly different mesh blur on light for softer look */
:root[data-theme="light"] .bg-mesh::before { filter: blur(60px); }

/* =========================================================================
   RESPONSIVE — 320px → 4K
   ========================================================================= */

/* Large desktops (1440 - 1920+) */
@media (min-width: 1600px) {
  :root { --container: 1360px; }
}

/* Laptops / desktops (1024-1280) — default ok */

/* Tablets / small laptops (≤1024) */
@media (max-width: 1024px) {
  .hero { padding-top: clamp(120px, 14vh, 150px); }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .hero-right { max-width: 620px; margin: 0 auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
}

/* Tablets (≤860) */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-name .subtle { display: none; }
}

/* Phones (≤640) */
@media (max-width: 640px) {
  :root { --pad-section: clamp(56px, 12vw, 80px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .skills-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav-cta { display: none; }
  .hero-cta { gap: 10px; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { gap: 14px; }
  .exp-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .marquee { animation-duration: 45s; }
  .filter-btn { padding: 8px 14px; font-size: 12.5px; min-height: 36px; }
  .footer-inner { flex-direction: column-reverse; gap: 18px; }
  .footer p { font-size: 12.5px; max-width: 320px; line-height: 1.55; }
  .hero h1 { line-height: 1.06; }
  .stat-value { font-size: clamp(30px, 9vw, 40px); }
  .stat-label { font-size: 11px; letter-spacing: 0.06em; }
  .project, .skill-card, .exp-card, .other-exp, .edu-block, .info-card { padding: 22px 20px; }
  .spotlight-card { padding: 24px 22px; }
  .contact-wrap { padding: 36px 20px; }
  .contact-wrap h2 { font-size: clamp(24px, 7vw, 32px); }
  .contact-card { padding: 18px 12px; }
  .contact-card h4 { font-size: 11px; }
  .contact-card p { font-size: 13px; }
  .hero-role { padding: 8px 14px; font-size: 13.5px; }
  .terminal-body { font-size: 11.5px; padding: 14px 16px; }
  .project h3, .exp-role { font-size: 16.5px; }
  .project-desc, .exp-points li { font-size: 13.5px; }
  .section-head { margin-bottom: 36px; }
  .cert-list li { padding: 10px 0; }
  .cert-list .cert-name { font-size: 13.5px; }
  .cert-list .cert-iss { font-size: 12px; }
}

/* Small phones (≤480) */
@media (max-width: 480px) {
  .hero { padding-top: clamp(100px, 14vh, 130px); padding-bottom: 50px; }
  .hero h1 { font-size: clamp(32px, 8.4vw, 42px); letter-spacing: -0.035em; }
  .section-title { font-size: clamp(24px, 7vw, 32px); }
  .hero-desc { font-size: 14.5px; line-height: 1.65; }
  .eyebrow { font-size: 12px; padding: 5px 12px; line-height: 1.4; }
  .container { padding: 0 16px; }
  .filters { gap: 6px; }
  .nav-toggle, .theme-toggle { width: 40px; height: 40px; }
}

/* Very small phones (≤400) */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .contact-cards { grid-template-columns: 1fr; }
  .filter-btn { padding: 7px 12px; font-size: 12px; }
  .terminal-body { font-size: 10.5px; padding: 12px 14px; }
  .brand { font-size: 13.5px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; font-size: 12px; }
  .to-top { width: 42px; height: 42px; bottom: 16px; right: 16px; }
  .hero h1 { font-size: 30px; }
  .hero-role { font-size: 12.5px; padding: 7px 12px; gap: 8px; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 10.5px; }
  .exp-role { font-size: 15.5px; }
  .exp-date { font-size: 11px; padding: 3px 10px; }
  .project-icon { width: 42px; height: 42px; font-size: 12px; }
  .skill-icon { width: 40px; height: 40px; }
  .skill-icon svg { width: 18px; height: 18px; }
  .section-tag { font-size: 12px; }
  .project, .skill-card, .exp-card, .other-exp, .edu-block, .info-card { padding: 20px 16px; }
  .contact-wrap { padding: 30px 16px; }
  .contact-wrap h2 { font-size: 24px; }
  .marquee { animation-duration: 55s; gap: 32px; }
  .nav-inner { gap: 10px; }
  .nav-toggle, .theme-toggle { width: 38px; height: 38px; }
}

/* Tiny phones (≤340) */
@media (max-width: 340px) {
  .brand-name { display: none; }
  .hero h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Touch + tap polish */
@media (hover: none) and (pointer: coarse) {
  * { -webkit-tap-highlight-color: rgba(99, 102, 241, .18); }
  .project:hover, .skill-card:hover, .exp-card:hover, .contact-card:hover,
  .spotlight-card:hover, .edu-block:hover, .other-exp:hover { transform: none; }
}

/* Cert row wraps when name is long on narrow screens */
.cert-list .cert-row { flex-wrap: wrap; }

/* Project meta + experience bullet — prevent awkward overflow */
.project-meta { flex-wrap: wrap; gap: 6px 8px; }
.exp-points li { word-wrap: break-word; overflow-wrap: anywhere; }
