/* ==========================================================================
   Shatayu Thakur : Portfolio
   Design system: glassmorphism, dark/light themes, CSS custom properties
   Theme: Azure & Midnight
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container-w: 1120px;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* ---------- Dark theme (default): Midnight ---------- */
:root,
[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-2: #101827;
  --surface: rgba(226, 236, 250, 0.055);
  --surface-strong: rgba(226, 236, 250, 0.09);
  --border: rgba(226, 236, 250, 0.11);
  --border-strong: rgba(226, 236, 250, 0.2);
  --text: #eef3fb;
  --text-dim: #aab8cc;
  --text-faint: #71809a;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --scrollbar: rgba(226, 236, 250, 0.15);
  --accent-1: #3b82c4;
  --accent-2: #6db3e8;
  --accent-warm: #e0a45c;
  --on-accent: #ffffff;
  --modal-surface: rgba(8, 12, 20, 0.88);
  --overlay-tint: 6, 10, 18;
  --accent-rgb: 59, 130, 196;
  --modal-surface-narrow: rgba(8, 12, 20, 0.72);
  --grid-line: 109, 179, 232;
  color-scheme: dark;
}

/* ---------- Light theme: Azure ---------- */
[data-theme="light"] {
  --bg: #f4f8fc;
  --bg-2: #e9f0f8;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(15, 30, 50, 0.09);
  --border-strong: rgba(15, 30, 50, 0.16);
  --text: #10202f;
  --text-dim: #4c5f74;
  --text-faint: #7c8ca0;
  --shadow: 0 20px 50px -24px rgba(15, 30, 50, 0.22);
  --scrollbar: rgba(15, 30, 50, 0.18);
  --accent-1: #2563a0;
  --accent-2: #4f8fc9;
  --accent-warm: #b97e3a;
  --on-accent: #ffffff;
  --modal-surface: rgba(255, 255, 255, 0.97);
  --overlay-tint: 6, 10, 18;
  --accent-rgb: 37, 99, 160;
  --modal-surface-narrow: rgba(255, 255, 255, 0.9);
  --grid-line: 37, 99, 160;
  color-scheme: light;
}

:root, [data-theme="dark"], [data-theme="light"] {
  --accent-gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent-1); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 10px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent-1); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

/* Background body gradient blend between bg / bg-2 for subtle depth */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(59,130,196,0.10), transparent 60%),
              radial-gradient(1000px 700px at 100% 10%, rgba(224,164,92,0.06), transparent 55%),
              var(--bg);
}
/* Light mode: cards/bg blend together with a plain wash, so give the page a
   faint blueprint-style grid (thin lines + corner ticks) to add depth and
   help glass surfaces read as distinct from the background. */
[data-theme="light"] body::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M0 .5H44M.5 0V44' stroke='%232563a0' stroke-opacity='0.0225' stroke-width='1'/%3E%3Cpath d='M.5 .5h5M.5 .5v5' stroke='%232563a0' stroke-opacity='0.072' stroke-width='1.2'/%3E%3C/svg%3E") repeat,
    radial-gradient(1200px 600px at 15% -10%, rgba(59,130,196,0.05), transparent 60%),
    radial-gradient(1000px 700px at 100% 10%, rgba(224,164,92,0.035), transparent 55%),
    var(--bg);
  background-size: 44px 44px, auto, auto, auto;
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
  /* Many .glass cards are visible at once; contain repaint to each card's own
     box so the browser doesn't have to repaint/resample backdrop-filter
     across the whole page on every scroll frame (this was the main source
     of the full-page flicker while scrolling). */
  contain: paint;
}
/* Light mode: the base surface/border tokens are too close to the page bg to
   read as "glass" — boost opacity, blur and add an inner highlight so cards
   visibly lift off the background. */
[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(15, 30, 50, 0.16);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 12px 34px -16px rgba(15, 30, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Scroll progress rail (whole-page progress + section markers, combined)
   ========================================================================== */
.scroll-rail {
  position: fixed; top: 50%; right: 22px; transform: translateY(-50%); z-index: 90;
  height: min(46vh, 420px); width: 20px;
  display: flex; align-items: center; justify-content: center;
}
.scroll-rail-track {
  position: relative; width: 3px; height: 100%; border-radius: 4px;
  background: var(--border-strong);
  overflow: visible;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
}
.scroll-rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: var(--accent-gradient); border-radius: 4px;
  transition: height 80ms linear;
  z-index: 0;
}
.scroll-rail-dot {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border-strong);
  transition: border-color var(--transition), background var(--transition), width var(--transition), height var(--transition), transform var(--transition);
  cursor: pointer;
}
.scroll-rail-dot::after {
  content: attr(data-label);
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  background: var(--surface-strong); border: 1px solid var(--border); color: var(--text);
  padding: 4px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition);
}
.scroll-rail-dot:hover::after { opacity: 1; }
.scroll-rail-dot.active {
  background: var(--accent-1); border-color: var(--accent-1);
  width: 11px; height: 11px; transform: scale(1.1);
}
.scroll-rail-dot.active::after {
  opacity: 1; color: var(--accent-1); font-weight: 700;
}
@media (max-width: 1180px) { .scroll-rail { display: none; } }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}
/* The blurred background lives on its own always-present layer instead of
   being toggled on/off via the .scrolled class directly. Adding/removing a
   backdrop-filter forces the browser to allocate/destroy a whole GPU
   compositing layer for a fixed, always-on-top element every time you cross
   the scroll threshold — during fast scrolling that can flash content
   through the header for a frame or two, and briefly flash black while the
   layer is (re)built. Keeping the layer allocated at all times and only
   animating its opacity (a compositor-only property, no relayout/repaint)
   avoids that churn entirely. */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--surface-strong);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  opacity: 0;
  transition: opacity var(--transition);
  will-change: opacity;
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.4);
}
.nav { display: flex; align-items: center; gap: 20px; padding: 16px 24px; }
.nav-links { display: flex; gap: 44px; margin: 0 auto; }
.nav-links a {
  font-size: 0.88rem; color: var(--text-dim); font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent-gradient); transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover { border-color: var(--border-strong); transform: rotate(12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 32px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ==========================================================================
   Buttons / Chips / Tags / Badges
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.94rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent-gradient); color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(59,130,196,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(59,130,196,0.6); }
.btn-ghost { background: transparent; border: 1.5px solid var(--accent-1); color: var(--accent-1); }
.btn-ghost:hover { background: rgba(59,130,196,0.08); transform: translateY(-2px); }

/* View Projects icon: 2x2 grid nudges apart on hover, subtle one-shot settle. */
.btn-view-projects svg rect { transition: transform var(--transition); }
.btn-view-projects:hover svg .gi-tl { transform: translate(-1px, -1px); }
.btn-view-projects:hover svg .gi-tr { transform: translate(1px, -1px); }
.btn-view-projects:hover svg .gi-bl { transform: translate(-1px, 1px); }
.btn-view-projects:hover svg .gi-br { transform: translate(1px, 1px); }

/* Download Résumé icon: arrow dips toward the tray and fades, like it's landing. */
.btn-download-resume svg .dl-arrow {
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.btn-download-resume:hover svg .dl-arrow { transform: translateY(3px) scaleY(0.85); opacity: 0.5; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-sm svg { width: 15px; height: 15px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-actions.center { justify-content: center; margin-top: 22px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  padding: 5px 11px; border-radius: 8px; font-size: 0.78rem; font-weight: 500;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
}

.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  border: 1px solid var(--border-strong); color: var(--text-dim);
}
.badge-flagship { background: var(--accent-gradient); color: var(--on-accent); border-color: transparent; }

.date-text {
  font-size: 0.78rem; color: var(--text-faint); font-weight: 500;
}

.project-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-weight: 600; font-size: 0.9rem; color: var(--accent-1);
}
.project-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.project-link:hover svg { transform: translate(2px,-2px); }

/* Modal CTA (e.g. "View on GitHub"): pinned to the bottom-right of the modal
   body instead of flowing left, with a GitHub mark that scales instead of
   flying diagonally like the generic arrow icon. */
.modal-cta { display: flex; width: fit-content; margin-left: auto; margin-top: 18px; }
.modal-cta svg { width: 16px; height: 16px; transition: transform var(--transition); }
.modal-cta:hover svg { transform: scale(1.12); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 140px 0 60px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.orb-1 { width: 480px; height: 480px; background: var(--accent-1); top: -140px; right: -100px; opacity: 0.16; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-warm); bottom: -160px; left: -120px; opacity: 0.14; }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.eyebrow { color: var(--accent-1); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow-location {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-dim);
  text-transform: none; letter-spacing: normal;
}
.eyebrow-location svg { width: 13px; height: 13px; flex-shrink: 0; }
.pin-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.pin-wrap svg { position: relative; z-index: 1; }
.pin-wrap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px;
  transform: translate(-50%, -50%) scale(0.4); border-radius: 50%;
  border: 1.5px solid var(--accent-1); opacity: 0; pointer-events: none;
}
.eyebrow-location:hover .pin-wrap::after { animation: pinPing 1.1s ease-out infinite; }
@keyframes pinPing {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.85; }
  70% { opacity: 0.15; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.hero-summary {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 500; color: var(--text-dim);
}
.hero-summary strong { color: var(--accent-1); font-weight: 700; }
.hero-summary-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-summary-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-faint); }
.hero-summary-dot { color: var(--text-faint); }
.hero-summary-link {
  color: var(--text-dim); text-decoration: none;
  transition: color var(--transition);
}
.hero-summary-link:hover { color: var(--text); text-decoration-color: var(--accent-1); }
.hero-summary-link:hover svg { color: var(--accent-1); }
.hero-lede { margin-top: 14px; font-size: 1.12rem; color: var(--text-dim); max-width: 560px; }

.social-row { display: flex; gap: 16px; margin-top: 6px; }
.social-row a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border); color: var(--text-dim);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { color: var(--accent-1); border-color: var(--accent-1); transform: translateY(-2px); }

.hero-photo { position: relative; justify-self: center; perspective: 900px; }
.hero-photo img {
  width: min(340px, 78vw); aspect-ratio: 1/1; object-fit: cover; object-position: center 22%;
  border-radius: 32px; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 150ms ease-out, box-shadow var(--transition);
  will-change: transform;
}
.hero-photo:hover img {
  box-shadow: var(--shadow), 0 0 50px -8px rgba(var(--accent-rgb), 0.55);
}
.photo-glow {
  position: absolute; inset: -18px; z-index: -1; border-radius: 40px;
  background: var(--accent-gradient); opacity: 0.3; filter: blur(38px);
  transition: opacity 220ms ease, filter 220ms ease;
}
.hero-photo:hover .photo-glow { opacity: 0.6; filter: blur(48px); }

.scroll-cue {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 2px solid var(--border-strong);
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent-1); animation: scrollcue 1.6s infinite; }
@keyframes scrollcue { 0% { opacity: 1; transform: translateY(0);} 100% { opacity: 0; transform: translateY(14px);} }


/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); }
/* Faint per-section grid texture: a subtle personalised touch (distinct cell
   size per section) so each section reads as its own space without
   competing with content. Beyond Code keeps its own icon accents instead. */
.section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(var(--grid-line), 0.045), rgba(var(--grid-line), 0.045) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(var(--grid-line), 0.045), rgba(var(--grid-line), 0.045) 1px, transparent 1px, transparent 48px);
}
.section > .container { position: relative; z-index: 1; }
#experience::before { background-size: 42px 42px; }
#education::before { background-size: 58px 58px; }
#projects::before { background-size: 66px 66px; }
#uiux::before { background-size: 34px 34px; }
#toolset::before { background-size: 50px 50px; }
#contact::before { background-size: 62px 62px; }
#beyond::before { content: none; }
/* Grid texture is light-mode only. */
[data-theme="dark"] .section::before { content: none; }
.section-eyebrow { color: var(--accent-1); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; max-width: 760px; }
.section-lede { margin-top: 14px; color: var(--text-dim); max-width: 680px; font-size: 1.05rem; }
.subsection-title { font-size: 1.3rem; font-weight: 700; margin: 60px 0 24px; }

/* ==========================================================================
   Work experience
   ========================================================================== */
/* Faint suitcase in the top-right whitespace, tilted slightly right. */
.accent-suitcase { width: 140px; height: 116px; top: 4%; right: 4%; transform: rotate(7deg); }
@media (max-width: 980px) { .accent-suitcase { width: 100px; height: 84px; right: -10px; } }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.exp-card {
  position: relative;
  display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%;
  padding: 24px; padding-bottom: 52px; padding-right: 88px; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.exp-duration-mini {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.exp-card:hover, .exp-card:focus-visible {
  transform: translateY(-4px); border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent-rgb), 0.3), 0 0 44px 2px rgba(var(--accent-rgb), 0.65);
}
.exp-logo {
  width: 60px; height: 60px; border-radius: 14px; object-fit: contain; flex-shrink: 0;
}
.exp-body { flex: 1; min-width: 0; }
.exp-body h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.exp-body h3 span { font-weight: 500; color: var(--text-dim); font-size: 0.85rem; }
.exp-company { font-size: 0.85rem; margin-top: 3px; }
.exp-company-name { font-weight: 800; color: var(--accent-1); }
.exp-domain { font-style: normal; font-weight: 500; color: var(--text); opacity: 0.62; font-size: 0.92em; }
.exp-desc { color: var(--text-dim); font-size: 0.88rem; margin-top: 8px; }

.exp-tools { margin: 12px 0 0; gap: 6px; }
.exp-tools .tag { font-size: 0.72rem; padding: 4px 9px; }

/* Diagonal layout: logo top-left, Read More pinned bottom-right of the card. */
.exp-readmore {
  position: absolute; right: 24px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: 0.85rem; color: var(--accent-1);
}
.exp-readmore svg { width: 15px; height: 15px; transition: transform var(--transition); }
.exp-card:hover .exp-readmore svg { transform: translateX(4px); }

.exp-duration { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.duration-highlight {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.duration-range { font-size: 0.72rem; color: var(--text-faint); font-weight: 500; white-space: nowrap; }

#yoeCounter {
  font-weight: 800;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Education
   ========================================================================== */
/* Faint graduation cap in the top-right whitespace, tilted slightly left. */
.accent-cap { width: 150px; height: 112px; top: 4%; right: 4%; transform: rotate(-7deg); }
@media (max-width: 980px) { .accent-cap { width: 108px; height: 81px; right: -10px; } }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.edu-card {
  display: flex; flex-direction: column; width: 100%; text-align: left; padding: 26px; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.edu-card:hover, .edu-card:focus-visible {
  transform: translateY(-4px); border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent-rgb), 0.3), 0 0 44px 2px rgba(var(--accent-rgb), 0.65);
}
/* Logo centers vertically only against the degree->duration content block, not the footer link below it. */
.edu-main { display: flex; gap: 18px; align-items: center; }
.edu-logo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: contain; flex-shrink: 0;
}
.edu-content { flex: 1; min-width: 0; }
.edu-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.edu-title-block { display: flex; flex-direction: column; }
.degree-type { font-size: 0.74rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; line-height: 1.3; }
.edu-content h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); line-height: 1.25; }
.edu-school { color: var(--accent-1); font-weight: 800; font-size: 0.98rem; margin-top: 3px; line-height: 1.3; }
.edu-card .date-text { font-size: 0.72rem; opacity: 0.75; margin-top: 2px; }

.edu-gpa { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.gpa-label { font-size: 0.68rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.gpa-number {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gpa-suffix {
  background: none; -webkit-text-fill-color: initial;
  color: var(--text-faint); font-weight: 500; font-size: 0.7em; margin-left: 1px;
}

.edu-footer { margin-top: 16px; padding-top: 16px; display: flex; justify-content: flex-end; }
.course-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.88rem; color: var(--accent-1);
}
.course-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.edu-card:hover .course-link svg { transform: translateX(3px); }

/* GPA badge reused inside education modal head */
.gpa-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 800; border: 1px solid var(--border-strong);
  background: linear-gradient(120deg, rgba(59,130,196,0.14), rgba(109,179,232,0.1));
  color: var(--accent-1); flex-shrink: 0;
}

/* ==========================================================================
   Project grid + modal
   ========================================================================== */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
/* Odd number of project cards: center the trailing lone card in its row. */
.project-grid > .project-tile:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 12px);
  margin: 0 auto;
}

.project-tile {
  position: relative;
  overflow: visible; cursor: pointer; text-align: left; width: 100%;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
  /* .glass sets contain:paint for scroll-perf, but that clips the star badge
     which intentionally overflows the card's top-left corner. Opt back out. */
  contain: none;
}
.project-tile:hover, .project-tile:focus-visible {
  transform: translateY(-5px); border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent-rgb), 0.3), 0 0 44px 2px rgba(var(--accent-rgb), 0.65);
}
.tile-media {
  position: relative; height: 210px; background: var(--bg-2); overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-star-badge {
  position: absolute; top: 0; left: 0; transform: translate(-50%, -50%); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-gradient); color: var(--on-accent);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5);
  border: 2px solid var(--bg);
}
.tile-star-badge svg { width: 16px; height: 16px; }
.tile-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-body h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.tile-desc {
  color: var(--text-dim); font-size: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tile-tags .tag { font-size: 0.72rem; padding: 4px 9px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(var(--overlay-tint),0.72);
  display: none; align-items: center; justify-content: center;
  padding: 60px 20px; overflow-y: auto;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; will-change: transform; transform: translateZ(0); }
.project-modal {
  width: 100%; max-width: 880px; overflow: hidden; position: relative;
  animation: modalIn 260ms ease; margin: auto;
  background: var(--modal-surface);
}
.project-modal.narrow { max-width: 640px; background: var(--modal-surface-narrow); }
/* Light mode: the modal sits over a dark overlay, and blurring/compositing a
   translucent white card over that dark backdrop reads as flat grey instead
   of a bright glass card. Boost brightness in the blur to counter it while
   keeping the blur+transparency for a real glass effect.
   Note: [data-theme="light"] .glass sets its own translucent background at
   the same specificity as this rule, so without an explicit background here
   it wins by source order and silently overrides --modal-surface below,
   which is what made the (non-narrow) project modals still read grey. */
[data-theme="light"] .project-modal {
  background: var(--modal-surface);
  backdrop-filter: blur(26px) saturate(180%) brightness(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(180%) brightness(1.4);
  border-color: rgba(15, 30, 50, 0.14);
}
[data-theme="light"] .project-modal.narrow {
  background: var(--modal-surface-narrow);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--overlay-tint),0.5); color: #fff;
}
.modal-close svg { width: 16px; height: 16px; display: block; }
.modal-media {
  position: relative; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  max-height: 56vh; min-height: 260px; overflow: hidden;
}
.modal-body { padding: 30px 34px 36px; }
.modal-body.no-media { padding-top: 54px; }
.modal-head { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.modal-body h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.modal-title-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin-bottom: 12px;
}
.modal-title-row h3 { margin-bottom: 0; }
.modal-date {
  /* Was --text-faint stacked with opacity:0.7, which fell below readable
     contrast on the light-mode modal surface. --text-dim at full opacity
     keeps it visually secondary to the title without going illegible. */
  font-size: 0.68rem; color: var(--text-dim); white-space: nowrap; flex-shrink: 0; margin-top: 4px;
}
.modal-title-row + .modal-head { margin-top: 12px; }

.modal-exp-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.modal-exp-logo { width: 68px; height: 68px; border-radius: 14px; object-fit: contain; flex-shrink: 0; }
.modal-exp-title { flex: 1; min-width: 0; }
.modal-exp-title h3 { font-size: 1.2rem; margin-bottom: 0; line-height: 1.3; }
.modal-exp-title h3 span { display: block; font-weight: 500; color: var(--text-dim); font-size: 0.78rem; margin-top: 2px; }
.modal-exp-title .exp-company { margin-top: 6px; }
.modal-exp-location {
  display: flex; align-items: center; gap: 5px; margin-top: 5px;
  font-size: 0.74rem; color: var(--text-faint); font-weight: 500;
}
.modal-exp-location svg { width: 12px; height: 12px; flex-shrink: 0; }
.modal-exp-head .exp-duration { padding-top: 2px; }
.modal-exp-head .duration-highlight { font-size: 1.3rem; }
.modal-exp-head .duration-range { font-size: 0.68rem; }
.modal-exp-head .gpa-badge { flex-shrink: 0; }
.modal-desc { color: var(--text-dim); font-size: 0.98rem; }
.edu-modal-school { margin-top: 6px; color: var(--accent-1); font-weight: 700; font-size: 0.98rem; }
.edu-modal-date { margin-top: 3px; font-size: 0.67rem; font-weight: 500; color: var(--text-dim); }
.modal-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.modal-details ul { display: flex; flex-direction: column; gap: 10px; }
.modal-details li { position: relative; padding-left: 18px; color: var(--text-dim); font-size: 0.92rem; }
.modal-details li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); }
.modal-extra-img { margin-top: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: zoom-in; }
.modal-tools { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Modal media reuses carousel component */
.modal-media .carousel { width: 100%; height: 56vh; max-height: 56vh; min-height: 260px; }
.modal-media .carousel-track { height: 100%; }
.modal-media .carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg-2); }
.modal-media > img { width: 100%; height: 56vh; max-height: 56vh; object-fit: contain; }

/* Carousel (shared component) */
.carousel { position: relative; height: 100%; }
.carousel-track { position: relative; height: 100%; }
.carousel-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 500ms ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--overlay-tint),0.45); color: #fff; backdrop-filter: blur(6px); contain: paint;
  opacity: 0; transition: opacity var(--transition), background var(--transition);
  font-size: 0.85rem;
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-btn:hover { background: rgba(var(--overlay-tint),0.7); }
.carousel-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.carousel-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: var(--transition); }
.carousel-dots button.active { background: #fff; width: 20px; border-radius: 4px; }

/* ==========================================================================
   UI/UX video section: horizontal carousel (featured reel + 3 clips)
   ========================================================================== */
/* Inset the track itself (rather than pushing the arrows further out past
   the container) so there's room for the arrows to clear both the cards
   and the fixed scroll-rail label without either one touching. */
.proto-carousel { position: relative; margin: 44px 60px 0; }
.proto-carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 2px 2px 6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.proto-carousel-track::-webkit-scrollbar { display: none; }
.proto-slide { scroll-snap-align: start; flex-shrink: 0; }
.proto-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong); border: 1px solid var(--border-strong); color: var(--text);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); contain: paint;
  box-shadow: var(--shadow); transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.proto-carousel-btn:hover { background: var(--accent-1); color: #fff; }
.proto-carousel-btn.prev { left: -60px; }
.proto-carousel-btn.next { right: -60px; }
.proto-carousel-btn svg { width: 18px; height: 18px; }
.proto-carousel-btn.is-disabled { opacity: 0.3; pointer-events: none; }

/* Edge fade: masks the track's cut-off card edges into the section
   background so cards read as scrolling "under" the edge rather than
   being hard-clipped. Only shown on the side(s) that still have more to
   scroll to, toggled alongside the arrow buttons' disabled state. */
.proto-carousel-fade {
  position: absolute; top: 0; bottom: 0; width: 64px; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity var(--transition);
}
.proto-carousel-fade.is-visible { opacity: 1; }
.proto-carousel-fade.fade-left { left: 0; background: linear-gradient(to right, var(--bg-2), transparent); }
.proto-carousel-fade.fade-right { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }
@media (max-width: 720px) {
  .proto-carousel-fade { width: 32px; }
}

.video-wrap { position: relative; background: #000; min-height: 280px; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.video-wrap-sq { aspect-ratio: 1/1; min-height: 0; }
/* Matches the highlight reel's actual 960x540 source exactly, so object-fit:
   cover has nothing to crop. */
.video-wrap-featured { aspect-ratio: 16 / 9; min-height: 0; }

.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-gradient); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
  transition: transform var(--transition);
}
.play-btn:hover { transform: translate(-50%,-50%) scale(1.08); }
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.play-btn.hidden { display: none; }
.play-btn-sm { width: 46px; height: 46px; }
.play-btn-sm svg { width: 18px; height: 18px; }

.proto-card { padding: 16px; width: 260px; }
.proto-card .video-wrap { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.proto-card h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.proto-card p { font-size: 0.86rem; color: var(--text-dim); }
/* Featured reel: same card shape as the others, just wider to match its
   16:9 media instead of their square 1:1 — width is driven by the media's
   own aspect ratio, not a separate text column, so nothing needs to fight
   the grid for space. */
.proto-slide-featured { width: 420px; }

/* ==========================================================================
   Beyond the code
   ========================================================================== */
#beyond { position: relative; overflow: hidden; }
#beyond .container { position: relative; z-index: 1; }
/* Faint personalised touch behind the section: cricket, music and cars,
   the three things "Beyond Code" is actually about. Large, outline-only,
   very low opacity so they read as texture rather than icons. */
.beyond-bg-accents { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.accent-icon { position: absolute; z-index: 0; color: var(--text); opacity: 0.05; pointer-events: none; }
/* Light bulb: top-right, next to the Design & branding card. A soft glow
   (layered drop-shadows) is what reads as "glowing" rather than a sunburst
   of rays, keeping it as faint texture rather than an obvious icon. */
.accent-bulb {
  width: 130px; height: 210px; top: 4%; right: 6%; transform: rotate(8deg);
  filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 26px currentColor);
}
/* Music note: top-left, next to the Electronic music production card. */
.accent-music { width: 220px; height: 220px; top: 4%; left: 2%; transform: rotate(10deg); }
/* Bat & ball: bottom-left, alongside the "Professional-grade cricket" text. */
.accent-bat { width: 150px; height: 300px; bottom: 2%; left: -10px; transform: rotate(-10deg); }
.accent-car { width: 340px; height: 170px; bottom: -30px; right: 12%; transform: rotate(-4deg); }
@media (max-width: 980px) {
  .accent-bulb { width: 92px; height: 148px; right: -6px; }
  .accent-music { width: 160px; height: 160px; }
  .accent-bat { width: 110px; height: 220px; left: -30px; }
  .accent-car { width: 240px; height: 120px; right: -30px; }
}

.beyond-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 44px; }
.beyond-card { padding: 32px; }
.beyond-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.beyond-card p { color: var(--text-dim); font-size: 0.94rem; }
.beyond-music { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.beyond-text { display: flex; flex-direction: column; align-items: flex-start; }

.phone-frame {
  width: 168px; padding: 10px 8px; border-radius: 26px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.5);
  position: relative;
}
.phone-notch { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 46px; height: 5px; border-radius: 4px; background: var(--border-strong); z-index: 2; }
.phone-video { position: relative; width: 100%; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; background: #000; }
.phone-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.phone-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-video .play-btn { width: 46px; height: 46px; }
.phone-video .play-btn svg { width: 18px; height: 18px; }

.mini-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.mini-gallery img { border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: zoom-in; height: 150px; object-fit: cover; width: 100%; }

.beyond-wide { grid-column: 1 / -1; padding: 30px 32px; }
.beyond-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.beyond-strip-item { display: flex; gap: 14px; align-items: center; }
.beyond-strip-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent-1); }
.beyond-strip-item h4 { font-size: 0.96rem; font-weight: 700; margin-bottom: 4px; }
.beyond-strip-item p { font-size: 0.85rem; color: var(--text-dim); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { padding: 60px 0 110px; text-align: center; }
.contact-content h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.contact-content p { color: var(--text-dim); margin-top: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 34px 0; }
.tool-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 26px; margin-top: 44px; }
.tool-group h5 {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 10px;
}
.tool-group h5 svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-1); }
.tool-group .tag-row { margin: 0; gap: 6px; }
.tool-group .tag { font-size: 0.74rem; padding: 4px 9px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { color: var(--text-faint); font-size: 0.85rem; }
.footer-bottom .social-row a { width: 34px; height: 34px; }
.footer-bottom .social-row a svg { width: 15px; height: 15px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(var(--overlay-tint),0.9);
  display: none; align-items: center; justify-content: center; padding: 40px;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 22px; right: 28px; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
}
.lightbox-close svg { width: 18px; height: 18px; display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .exp-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid > .project-tile:last-child { width: 100%; margin: 0; }
  .proto-slide-featured { width: min(340px, 78vw); }
  .proto-carousel { margin: 44px 26px 0; }
  .proto-carousel-btn { width: 36px; height: 36px; }
  .proto-carousel-btn.prev { left: -26px; }
  .proto-carousel-btn.next { right: -26px; }
  .beyond-grid { grid-template-columns: 1fr; }
  .beyond-music { grid-template-columns: 1fr; text-align: left; }
  .beyond-music .phone-frame { justify-self: start; }
  .beyond-strip { grid-template-columns: 1fr; gap: 20px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-summary, .hero-actions, .social-row { justify-content: center; }
  .hero-photo { order: -1; }
  .tool-groups { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-bottom: 100px; }
  .scroll-cue { bottom: 16px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface-strong); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 16px 24px; border-top: 1px solid var(--border);
    border-left: 3px solid transparent;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
  }
  .nav-links a::after { content: none; }
  .nav-links a.active {
    background: rgba(var(--accent-rgb), 0.1);
    border-left-color: var(--accent-1);
    padding-left: 21px;
  }
  .nav-toggle { display: flex; }
  .hero-photo img { width: min(220px, 55vw); }
  .proto-carousel { margin-left: 0; margin-right: 0; }
  .proto-carousel-btn { display: none; }
  .section { padding: 76px 0; }
  .modal-body { padding: 24px 22px 28px; }
  .modal-exp-head { flex-wrap: wrap; }
  .tool-groups { grid-template-columns: repeat(2, 1fr); }
  .edu-top-row { flex-direction: column; gap: 8px; }
  .edu-gpa { align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
