:root {
  /* design tokens — colour system */
  --bg: #f0f6f8;
  --ink: #090c10;
  --pill-light: #d9e0e3;
  --muted: #797f82;
  --border: rgba(12, 16, 22, 0.09);
  --accent: #2B6DE8;
  --card-bg: #ffffff;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --bg-dark: #111214;
}

[data-theme="dark"] {
  --bg: #0e1117;
  --ink: #f0f6f8;
  --pill-light: #1e2330;
  --muted: #7a8694;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: #161b27;
  --bg-dark: #090c10;
}

/* Smooth transition for all theme-sensitive properties */
body,
.nav,
.about-card,
.proj-card,
.edu-list,
.menu-dropdown,
.ticker-wrap {
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

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

/* ── SCREEN READER ONLY (SEO-visible, visually hidden) ───────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 16, 22, 0.15) var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body:not(.loaded) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── SCROLLBAR ───────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(12, 16, 22, 0.15);
  border-radius: 999px;
  border: 3px solid var(--bg);
  /* Cuts into the thumb visually floating it */
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(12, 16, 22, 0.3);
}

/* ── LOADER ──────────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}

#loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -0.03em;
  animation: loaderPop 0.8s var(--ease-out) forwards;
}

/* Loading bar track */
.loader-bar-wrap {
  width: clamp(120px, 30vw, 220px);
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  animation: barFadeIn 0.3s var(--ease) 0.3s forwards;
}

/* Loading bar fill */
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  animation: barLoad 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s forwards;
}

@keyframes barFadeIn {
  to { opacity: 1; }
}

@keyframes barLoad {
  0%   { width: 0%; }
  60%  { width: 75%; }
  85%  { width: 92%; }
  100% { width: 100%; }
}

@keyframes loaderPop {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══ SCROLL PROGRESS BAR ════════════════════════════════════════════ */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ══ CUSTOM CURSOR ══════════════════════════════════════════════════ */
/* Hide default cursor on desktop only */
@media (pointer: fine) {
  html, body, a, button { cursor: none !important; }
}

#cursorDot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.3s ease, width 0.25s var(--ease), height 0.25s var(--ease);
  will-change: left, top;
}

#cursorRing {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.3s ease, border-color 0.3s;
  will-change: left, top;
}

/* Cursor expand on hoverable elements */
body.cursor-hover #cursorRing {
  width: 56px;
  height: 56px;
  opacity: 0.25;
}

body.cursor-hover #cursorDot {
  width: 10px;
  height: 10px;
}

/* Cursor shrink on click */
body.cursor-click #cursorDot {
  transform: translate(-50%, -50%) scale(0.5);
}

/* ══ VANILLA-TILT 3D card glow ══════════════════════════════════════ */
.proj-card[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

.proj-card .tilt-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
    rgba(43, 109, 232, 0.12) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.proj-card:hover .tilt-glow {
  opacity: 1;
}

/* ══ SKILL TAG RIPPLE ═══════════════════════════════════════════════ */
.stag {
  position: relative;
  overflow: hidden;
}

.stag-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleOut 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ══ MAGNETIC button inner ══════════════════════════════════════════ */
.mag-inner {
  display: contents;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  transition: transform 0.45s var(--ease), background 0.3s;
}

.nav.scrolled {
  background: rgba(240, 246, 248, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(14, 17, 23, 0.88);
}

.nav.nav-up {
  transform: translateY(-100%);
}

/* Logo — lowercase wordmark, small, tight spacing */
.nav-logo {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: lowercase;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.5;
}

/* Right cluster */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── PILL SHARED — ~44px tall, pill shape, smooth transitions ─── */
.nav-pill-light,
.nav-pill-dark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.nav-pill-light:hover,
.nav-pill-dark:hover {
  transform: scale(1.04);
}

.nav-pill-light:active,
.nav-pill-dark:active {
  transform: scale(0.96);
  /* Relies on parent transition for a super smooth, rubber-band feel */
}

/* ─── THEME TOGGLE BUTTON ─── */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--pill-light);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s var(--ease), transform 0.3s var(--ease), color 0.4s var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.92);
}

/* Icon crossfade */
.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  position: absolute;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.theme-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Light mode: show moon, hide sun */
.icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }


.nav-pill-light {
  background: var(--pill-light);
  color: var(--ink);
}

/* Dark pill — "Menu" — always uses absolute dark color */
.nav-pill-dark {
  background: #0c1016;
  color: #fff;
}

[data-theme="dark"] .nav-pill-dark {
  background: #1e2330;
  color: #fff;
}

.nav-menu-wrap {
  position: relative;
}

/* Icon circles — scaled up to match bigger buttons */
.pill-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  color: var(--ink);
  position: relative;
  /* Anchor for absolute icons */
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}

[data-theme="dark"] .pill-icon-circle {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-pill-light:hover .pill-icon-circle,
.nav-pill-dark:hover .pill-icon-circle {
  transform: scale(1.1);
}

.nav-pill-dark.menu-open .pill-icon-circle {
  transform: rotate(180deg);
  /* Full physical rotation of the symbol bubble */
}

.dark-circle {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

/* Dots icon — 3 tiny horizontal dots (···) */
.menu-dots-icon {
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  opacity: 1;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.menu-dots-icon span {
  display: block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: currentColor;
}

/* X (close) icon — hidden by default via opacity/transform */
.menu-x-icon {
  display: flex;
  font-size: 1.1rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

/* ── Menu Open State — Smooth Icon Crossfade Rotation ── */
.nav-pill-dark.menu-open .menu-dots-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}

.nav-pill-dark.menu-open .menu-x-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
}

/* ─── MENU DROPDOWN CARD ─── */
.menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--pill-light);
  border-radius: 40px;
  padding: 12px;
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 600;
}

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

/* Menu items — large bold links with arrow on hover */
.menu-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 20px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  border-radius: 28px;
  transition: background 0.22s var(--ease), padding-left 0.22s var(--ease);
  overflow: hidden;
}

.menu-item:hover {
  background: var(--bg);
  padding-left: 26px;
}

/* Arrow that slides in from left on hover */
.m-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-14px);
  margin-right: 0;
  max-width: 0;
  overflow: hidden;
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    max-width 0.22s var(--ease),
    margin-right 0.22s var(--ease);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9em;
}

.menu-item:hover .m-arrow {
  opacity: 1;
  transform: translateX(0);
  max-width: 1.5em;
  margin-right: 6px;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Interactive Data Science Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 3s var(--ease);
}

.hero-particles canvas {
  z-index: -1 !important;
}

.hero-particles.on {
  opacity: 0.5;
}

/* Massive background name — right-aligned watermark text */
.hero-bg-name {
  position: absolute;
  bottom: -2%;
  right: 0;
  /* flush to right edge */
  left: auto;
  z-index: 1;
  font-size: clamp(8rem, 13.5vw, 18rem);
  font-weight: 900;
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-align: right;
  /* text flows right to left */
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  will-change: translate;
}

.hero-bg-name.on {
  opacity: 0.4;
}

/* Tagline — bottom-left, overlapping the huge name */
.hero-tagline {
  position: absolute;
  left: 32px;
  /* Centered perfectly in the upper middle area to fill empty space */
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.65s var(--ease) 0.25s, transform 0.65s var(--ease) 0.25s;
  translate: 0 12px;
}

.hero-tagline.on {
  opacity: 1;
  translate: 0 0;
}

.hero-tagline p {
  /* Significantly increased font size to occupy more of the empty hero space */
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 800px;
  /* Optional: bounds the text width */
}

.hero-subtext {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--muted);
  max-width: 460px;
  line-height: 1.6;
  margin-top: 24px;
  font-weight: 500;
}

.rotating-word {
  display: inline-block;
  color: var(--accent);
  /* subtle blue color pop */
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  opacity: 1;
  transform: translateY(0);
}

.rotating-word.out {
  opacity: 0;
  transform: translateY(-15px);
}

.rotating-word.in {
  opacity: 0;
  transform: translateY(15px);
  transition: none;
  /* snap to bottom instantly before sliding up naturally */
}

/* "Scroll" — bottom-left corner */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.5s;
}

.hero-scroll.on {
  opacity: 1;
}

/* ── TICKER ──────────────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  background: var(--bg);
}

.ticker-track {
  display: inline-block;
  animation: tickerRoll 28s linear infinite;
}

.t-i {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-right: 4px;
}

.t-sep {
  margin: 0 16px;
  color: rgba(165, 171, 173, 0.5);
}

@keyframes tickerRoll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── SECTION COMMON ──────────────────────────────────────────────── */
.section {
  padding: 82px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.statement-text {
  font-size: clamp(1.75rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 860px;
}

.statement-text em {
  font-style: normal;
  color: var(--muted);
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: transform, opacity;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* ── ABOUT ───────────────────────────────────────────────────────── */
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.about-card-inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
}

.about-card-left {
  padding: 36px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-eyebrow {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.about-eyebrow .muted {
  color: var(--muted);
}

.about-photo-wrap {
  flex: 1;
  min-height: 220px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.about-card-right {
  padding: 86px 36px 36px 36px;
  /* 86px top padding aligns text perfectly parallel to the image */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-para {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--muted);
}

.about-meta {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

.am-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.865rem;
}

.am-k {
  color: var(--muted);
  font-weight: 500;
}

.am-v {
  font-weight: 600;
}

.am-available {
  color: #16a34a;
}

/* ── WORK / PROJECTS ─────────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  /* equal-height rows */
  grid-auto-rows: 1fr;
}

.proj-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), background 0.4s var(--ease);
}

.proj-card:hover {
  box-shadow: 0 12px 40px rgba(12, 16, 22, 0.11);
  transform: translateY(-3px);
}

/* All cards share same image ratio — uniform */
.proj-card-img {
  aspect-ratio: 16/9;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}

/* Screenshot fills the container perfectly */
.proj-card-img img.proj-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.proj-card:hover .proj-card-img img.proj-screenshot {
  transform: scale(1.04);
}

/* Dark gradient scrim over the screenshot */
.proj-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.proj-img-label {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
  z-index: 2;
  position: relative;
}

/* project screenshot — fallback bg color only */
.genora-img      { background: #0f3460; }
.brightfuture-img { background: #203a43; }
.querybridge-img  { background: #1a3a1a; }
.bert-img         { background: #2d1b69; }
.nlp-img          { background: #23074d; }

.proj-info {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  position: relative;
}

.proj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 28px;
  /* prevents overlapping with the absolute arrow */
}

.proj-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.proj-stack {
  font-size: 0.68rem;
  color: var(--muted);
}

/* Uniform name size — no special feat size */
.proj-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.proj-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}

.open-name {
  color: var(--ink);
}

.proj-arrow {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.proj-card:hover .proj-arrow {
  color: var(--ink);
  transform: translate(3px, -3px);
}

.open-card {
  border-style: dashed;
  border-color: rgba(12, 16, 22, 0.15);
}

/* ── SKILLS ──────────────────────────────────────────────────────── */
.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scard {
  background: #111418;
  border-radius: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.scard:nth-child(2) {
  background: #111418;
}

.scard:nth-child(3) {
  background: #111418;
}

.scard-body {
  padding: 44px;
}

.scard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.scard-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.scard-muted {
  color: rgba(255, 255, 255, 0.3);
}

.scard-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
  margin-top: 8px;
}

.scard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.stag {
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  transition: background 0.2s;
}

.stag:hover {
  background: rgba(255, 255, 255, 0.14);
}

.stag small {
  opacity: 0.45;
  font-size: 0.72em;
}

.scard-desc {
  font-size: 0.92rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.45);
  max-width: 600px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 18px;
}

/* ── EDUCATION ───────────────────────────────────────────────────── */
.edu-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}

.edu-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 36px;
}

.edu-divider {
  height: 1px;
  background: var(--border);
}

.edu-yr {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 5px;
}

.edu-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.edu-desc {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--muted);
}

.edu-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(12, 16, 22, 0.06);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
  white-space: nowrap;
}

.edu-badge.active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

/* ── CONTACT ─────────────────────────────────────────────────────── */
.contact-section {
  padding: 130px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  color: #fff;
}

.contact-inner {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-heading {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.contact-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.clink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.865rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.22s var(--ease);
}

.clink:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.clink.primary {
  background: #fff;
  color: #0c1016;
  border-color: #fff;
}

[data-theme="dark"] .clink.primary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .clink.primary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  box-shadow: none;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 0 32px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-name {
  font-size: clamp(3.5rem, 13vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  opacity: 0.07;
  pointer-events: none;
  padding-top: 24px;
  margin-bottom: 28px;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */

/* 1. Medium / Tablet Landscape (max 1024px) */
@media (max-width: 1024px) {
  .hero-tagline p {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .hero-tagline {
    top: 50%;
    left: 24px;
  }

  .hero-bg-name {
    font-size: 20vw;
    bottom: -2%;
  }

  .hero-glow {
    width: 90vw;
    height: 90vw;
    filter: blur(70px);
  }

  .section {
    padding: 90px 24px;
    gap: 40px;
  }

  .contact-section {
    padding: 110px 24px;
  }

  .site-footer {
    padding: 0 24px 28px;
  }
}

/* 2. Tablet Portrait (max 900px) */
@media (max-width: 900px) {
  .about-card-inner {
    grid-template-columns: 1fr;
  }

  .about-card-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .about-card-right {
    padding-top: 36px;
    /* reset text alignment when stacked */
  }

  .proj-grid {
    grid-template-columns: 1fr;
  }
}

/* 3. Mobile (max 680px) */
@media (max-width: 680px) {
  .nav {
    padding: 14px 18px;
  }

  .nav-pill-light .pill-label {
    display: none;
  }

  .nav-pill-light {
    padding: 4px;
  }

  .hero-tagline {
    left: 18px;
    top: 50%;
    max-width: 90%;
  }

  .hero-tagline p {
    font-size: 3.2rem;
    line-height: 1.1;
  }

  .hero-scroll {
    display: none;
  }

  .hero-bg-name {
    font-size: 11vw;
    bottom: 5%;
    line-height: 0.8;
    letter-spacing: -0.07em;
    padding-right: 18px;
    text-align: right;
  }


  .section {
    padding: 64px 18px;
    gap: 32px;
  }

  .proj-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .proj-card-img {
    aspect-ratio: auto;
    min-height: 200px;
  }

  .edu-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .edu-badge {
    grid-row: 3;
  }

  .contact-section {
    padding: 90px 18px;
  }

  .site-footer {
    padding: 0 18px 28px;
  }

  .scard-body {
    padding: 28px 20px;
  }

  .menu-dropdown {
    width: min(260px, 90vw);
    border-radius: 24px;
    padding: 10px;
  }

  .menu-item {
    font-size: 1.5rem;
    padding: 10px 14px;
  }
}

/* 4. Small Mobile (max 420px) */
@media (max-width: 420px) {
  .statement-text {
    font-size: 1.4rem;
  }

  .contact-heading {
    font-size: 14vw;
  }

  .footer-name {
    font-size: 12vw;
  }

  .hero-tagline p {
    font-size: 1.8rem;
  }

  .proj-name {
    font-size: 1.2rem;
  }
}