:root {
  --bg-page: #060b14;
  --bg-alt: #0a1221;
  --bg-card: #0f192d;
  --bg-card-hover: #132038;
  --bg-chip: #16243d;
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(56, 189, 248, 0.38);
  --navy: #0f1b2e;
  --blue: #0ea5e9;
  --blue-hover: #0284c7;
  --cyan: #38bdf8;
  --badge-bg: rgba(56, 189, 248, 0.14);
  --badge-text: #38bdf8;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.45);
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-display: 'Plus Jakarta Sans', 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html[data-theme='light'] {
  --bg-page: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-chip: #f1f5f9;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --border-bright: rgba(2, 132, 199, 0.45);
  --blue: #0284c7;
  --blue-hover: #0369a1;
  --badge-bg: #e0f2fe;
  --badge-text: #0369a1;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.10);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-page);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.25;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 300;
  transition: width 0.08s linear;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

html[data-theme='light'] .navbar {
  background: rgba(15, 27, 46, 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  color: #f8fafc;
  white-space: nowrap;
}

.brand-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 1.5px solid #060b14;
  background: #f8fafc;
}

.brand-text .accent {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #38bdf8;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
}

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

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cmd-trigger:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.cmd-trigger svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.cmd-trigger kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: #38bdf8;
}

.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme='light'] .icon-sun { display: none; }
html[data-theme='dark'] .icon-moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 19px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 13px; font-size: 0.84rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.btn-outline:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}

.btn-ghost {
  color: #cbd5e1;
  background: transparent;
}

.btn-ghost:hover {
  color: #38bdf8;
}

.btn-secondary {
  background: var(--bg-chip);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Mobile Drawer */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 7px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #f8fafc;
  border-radius: 2px;
}

.mobile-drawer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 22px 20px;
  background: #0b1220;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-drawer[hidden] { display: none; }

.mobile-link {
  color: #e2e8f0;
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.mobile-link:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
}

.mobile-cv-btn { margin-top: 8px; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, #060b14 0%, #0b1526 55%, #0f1f38 100%);
  color: #e2e8f0;
  padding: 64px 0 42px;
  overflow: hidden;
  border-bottom: 2px solid rgba(56, 189, 248, 0.45);
}

.hero-ambient {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  gap: 40px;
  align-items: center;
}

.hero-content,
.hero-visual {
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.hero-title {
  font-size: clamp(2.1rem, 4.1vw, 3.15rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.text-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #38bdf8 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role-rotator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 18px;
  min-height: 28px;
}

.mono-prefix { color: #22c55e; }

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #38bdf8;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 0.99rem;
  color: #cbd5e1;
  max-width: 580px;
  margin-bottom: 26px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.social-chip:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

/* IDE Developer Window */
.ide-window {
  background: #0b1322;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55);
}

.ide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #0f1b2e;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.ide-dots {
  display: flex;
  gap: 7px;
}

.ide-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #22c55e; }

.ide-filename {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.ide-filename:hover {
  color: #38bdf8;
}

.ide-copy-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.ide-copy-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.ide-profile-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 27, 46, 0.45);
}

.avatar-wrap {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 2px solid #0b1322;
  background: #f8fafc;
}

.ide-profile-strip strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
}

.ide-profile-strip p {
  font-size: 0.83rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.ide-code {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-x: auto;
  color: #e2e8f0;
}

.tk-kw { color: #c084fc; }
.tk-var { color: #38bdf8; }
.tk-op { color: #94a3b8; }
.tk-key { color: #7dd3fc; }
.tk-str { color: #86efac; }
.tk-bool { color: #fbbf24; }

/* Stats Bar */
.stats-bar {
  position: relative;
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.stat-item { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
}

.stat-label {
  font-size: 0.81rem;
  color: #cbd5e1;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(148, 163, 184, 0.22);
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 34px;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
}

.section-lead {
  margin-top: 8px;
  max-width: 680px;
  color: var(--text-muted);
}

/* Cards + Mouse Spotlight */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.11), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-bright);
}

.card-accent { border-left: 4px solid var(--blue); }
.card-navy { border-left: 4px solid var(--cyan); }
html[data-theme='light'] .card-navy { border-left-color: var(--navy); }

/* Bento About */
.bento-about {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 18px;
}

.bento-bio {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  margin-bottom: 12px;
}

.bento-bio h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.bento-bio p + p { margin-top: 12px; }

.bento-pillar h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.bento-pillar p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--badge-bg);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pillar-icon svg { width: 20px; height: 20px; }

/* Browser Chrome Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0d1626;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.browser-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #86efac;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.project-preview {
  padding: 18px;
  color: #ffffff;
}

.preview-ecom { background: linear-gradient(135deg, #0f1b2e 0%, #0284c7 100%); }
.preview-ngo { background: linear-gradient(135deg, #0f1b2e 0%, #0d9488 100%); }
.preview-design { background: linear-gradient(135deg, #0f1b2e 0%, #1d4ed8 100%); }

.mock-nav {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.82;
  margin-bottom: 16px;
}

.mock-hero-box {
  background: rgba(6, 11, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 14px;
}

.mock-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #bae6fd;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.mock-hero-box strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
}

.mock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mock-pills span {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-body h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.project-body p {
  font-size: 0.91rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.project-body .tag-row { margin-bottom: 16px; }

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tabs & Filters */
.tab-group,
.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.tab-btn,
.filter-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn.active,
.filter-btn.active {
  background: var(--blue);
  color: #ffffff;
}

/* Timeline Rail */
.timeline-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 28px;
}

.timeline-rail[hidden],
.volunteer-grid[hidden] {
  display: none;
}

.timeline-rail::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-entry {
  position: relative;
}

.timeline-node {
  position: absolute;
  left: -25px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 3px solid var(--text-muted);
}

.timeline-node.active-node {
  border-color: var(--cyan);
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-top h3 { font-size: 1.12rem; }
.org-name { font-weight: 600; color: var(--blue); font-size: 0.94rem; margin-top: 2px; }
.role-progression { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }

.date-badge {
  display: inline-block;
  font-family: var(--font-mono);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-chip);
  color: var(--text-main);
  white-space: nowrap;
}

.date-badge.current {
  background: var(--badge-bg);
  color: var(--badge-text);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.detail-list li { font-size: 0.94rem; }
.detail-list li::marker { color: var(--blue); }

.volunteer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.focus-copy { margin-bottom: 14px; font-size: 0.95rem; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.79rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-chip);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.skill-card.is-hidden { display: none; }

.skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.skill-head h3,
.sub-heading { font-size: 1.06rem; }
.sub-heading { margin-bottom: 14px; }

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.two-col-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lang-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lang-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.lang-head span {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.84rem;
}

.lang-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-chip);
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.interest-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Credentials */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.col-title {
  font-size: 1.12rem;
  margin-bottom: 14px;
  color: var(--blue);
}

.edu-stack,
.cert-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-card,
.cert-row { padding: 18px 20px; }

.edu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.edu-top h4,
.cert-row h4 { font-size: 1rem; }

.edu-meta {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.gpa-pill,
.cert-badge {
  display: inline-block;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--badge-bg);
  color: var(--badge-text);
  white-space: nowrap;
}

.cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cert-row p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--badge-bg);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-detail { flex: 1; min-width: 0; }
.contact-detail span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-detail a,
.contact-detail p {
  font-weight: 600;
  font-size: 0.93rem;
  word-break: break-word;
}

.contact-detail a:hover { color: var(--blue); }

.copy-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-chip);
  color: var(--text-main);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.connect-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-main);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

html[data-theme='light'] .form-status.success { color: #15803d; }
html[data-theme='light'] .form-status.error { color: #b91c1c; }

.form-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.inline-mail-link {
  color: var(--blue);
  font-weight: 600;
}

.inline-mail-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #060b14;
  color: #cbd5e1;
  padding: 36px 0;
  border-top: 2px solid rgba(56, 189, 248, 0.35);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong { color: #ffffff; font-size: 1rem; }
.footer-brand p { font-size: 0.84rem; color: #94a3b8; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-links a:hover { color: #38bdf8; }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

/* Modals (Command Palette & Project Inspector) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] { display: none; }

.cmd-modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

.cmd-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.96rem;
  outline: none;
}

.esc-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--bg-chip);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.cmd-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 340px;
  overflow-y: auto;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-main);
}

.cmd-item:hover,
.cmd-item.selected {
  background: var(--badge-bg);
  color: var(--badge-text);
}

.cmd-item span.cmd-hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.project-modal {
  width: 100%;
  max-width: 560px;
  border-left: 4px solid var(--blue);
}

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

.pm-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
}

.pm-close {
  border: none;
  background: var(--bg-chip);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.project-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pm-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pm-highlights h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--blue);
}

.pm-highlights { margin-bottom: 16px; }

.pm-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 260;
  padding: 12px 18px;
  border-radius: 10px;
  background: #0f1b2e;
  color: #ffffff;
  border: 1px solid #38bdf8;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor-blink { animation: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .nav-links,
  .hide-mobile,
  .cmd-trigger kbd,
  .cmd-trigger .cmd-label {
    display: none;
  }

  .hamburger { display: inline-flex; }

  .hero-inner,
  .bento-about,
  .credentials-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .bento-bio { grid-row: auto; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 44px 0 32px; }

  .volunteer-grid,
  .projects-grid,
  .skills-grid,
  .two-col-meta,
  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline-rail { padding-left: 22px; }
  .timeline-node { left: -19px; }
  .section { padding: 54px 0; }
}
