@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* Design Tokens */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-soft: #94a3b8;

  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);

  --border: rgba(15, 23, 42, 0.08);
  --shadow: rgba(15, 23, 42, 0.1);

  --accent: #0284c7;
  --accent-dim: rgba(2, 132, 199, 0.1);
  --accent-glow: rgba(2, 132, 199, 0.22);
  --accent-text: #ffffff;

  --grid-color: rgba(2, 132, 199, 0.04);
  --blob-1: rgba(2, 132, 199, 0.09);
  --blob-2: rgba(2, 132, 199, 0.06);
}

html[data-theme="dark"] {
  --bg-primary: #05080f;
  --bg-secondary: #090d18;
  --bg-tertiary: #0d1220;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-soft: #64748b;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);

  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.65);

  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.1);
  --accent-glow: rgba(56, 189, 248, 0.22);
  --accent-text: #05080f;

  --grid-color: rgba(56, 189, 248, 0.025);
  --blob-1: rgba(56, 189, 248, 0.08);
  --blob-2: rgba(56, 189, 248, 0.05);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body & Background */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 64px 64px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.background-blur {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.blur-one {
  top: -180px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at center, var(--blob-1) 0%, transparent 70%);
  filter: blur(60px);
}

.blur-two {
  bottom: -180px;
  left: -180px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at center, var(--blob-2) 0%, transparent 70%);
  filter: blur(60px);
}

/* Header */
header {
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.logo {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  gap: 34px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 40px var(--shadow);
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease;
}

nav a:hover { color: var(--text-primary); }
nav a.active { color: var(--accent); }

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

.github,
.theme-toggle {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px var(--shadow);
  transition: 0.25s ease;
  cursor: pointer;
}

.github:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* Page Layout */
.about-page {
  flex: 1;
  width: min(1120px, 90%);
  margin: 0 auto;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* Section Headings */
.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.section-heading span {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  margin-right: 6px;
  opacity: 0.75;
  vertical-align: middle;
}

/* About Hero */
.about-hero {
  margin-top: 50px;
}

/* Bento Hero Grid */
.bento-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 400px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 80px var(--shadow);
}

.bento-photo {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.bento-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}



.bento-bio {
  padding: 44px 48px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-shadow: 0 0 24px var(--accent-glow);
  animation: glowPulse 3s ease-in-out infinite;
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent) 45%,
    var(--text-primary) 75%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease infinite;
}

.bento-subtitle {
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-soft);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.bento-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  max-width: 100%;
}

/* Bento Stats Row */
.bento-stats {
  display: flex;
  align-items: stretch;
}

.bento-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.25s ease;
}

.bento-stat:last-child {
  border-right: none;
}

.bento-stat:hover {
  background: var(--accent-dim);
}

.stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 24px var(--accent-glow);
}

.stat-label {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-soft);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Info Sections */
.skills-section,
.info-section {
  margin-top: 90px;
}

/* Vertical Timeline */
.timeline {
  position: relative;
  padding-left: 52px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--border) 70%,
    transparent 100%
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 3px var(--bg-primary),
    0 0 0 5px var(--accent-dim),
    0 0 16px var(--accent-glow);
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

.timeline-item:hover::before {
  box-shadow:
    0 0 0 3px var(--bg-primary),
    0 0 0 6px var(--accent),
    0 0 28px var(--accent-glow);
}

.timeline-role {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 660px;
}

/* Card Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

/* Info Cards */
.info-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.08);
  transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 50px rgba(0, 0, 0, 0.14),
    0 0 24px var(--accent-dim);
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: skewX(-15deg);
  pointer-events: none;
  transition: none;
}

.info-card:hover::before {
  left: 160%;
  transition: left 0.55s ease;
}

.info-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.info-card .meta {
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* Skills Two-Column Layout */
.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.skills-col { }

.skill-tag--inprogress {
  opacity: 0.65;
  border-style: dashed;
  font-size: 12px;
}

/* Skills Tag Groups */
.skills-group {
  margin-bottom: 36px;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group-label {
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-soft);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 9px 18px;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  background: var(--accent-dim);
  transition: 0.25s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* Beyond the Code Bento */
.beyond-bento {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px var(--shadow);
}

.beyond-leadership {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.leadership-entry {
  padding: 32px 36px;
  border-bottom: 1px solid var(--border);
  flex: 1;
  transition: background 0.25s ease;
}

.leadership-entry:last-child {
  border-bottom: none;
}

.leadership-entry:hover {
  background: var(--accent-dim);
}

.leadership-role {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.leadership-org {
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.leadership-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.beyond-tags {
  display: flex;
  flex-direction: column;
}

.tag-group {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
  flex: 1;
}

.tag-group:last-child {
  border-bottom: none;
}

/* Reveal Animation */
.reveal,
.timeline-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.show,
.timeline-item.show {
  opacity: 1;
  transform: none;
}

/* Staggered Reveals */
.cards-grid .reveal:nth-child(1) { transition-delay: 0s; }
.cards-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.cards-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.cards-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

.timeline .timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline .timeline-item:nth-child(2) { transition-delay: 0.1s; }
.timeline .timeline-item:nth-child(3) { transition-delay: 0.2s; }
.timeline .timeline-item:nth-child(4) { transition-delay: 0.3s; }
.timeline .timeline-item:nth-child(5) { transition-delay: 0.4s; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: var(--text-soft);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 10000;
  transition: width 0.08s linear;
}

/* Custom Cursor */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.2s ease;
  box-shadow: 0 0 12px var(--accent-glow);
  will-change: translate;
}

#cursor-ring {
  position: fixed;
  width: 30px; height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
  will-change: translate;
}

#cursor.cursor-hover   { transform: translate(-50%, -50%) scale(2.5); opacity: 0.4; }
#cursor-ring.ring-hover { transform: translate(-50%, -50%) scale(1.6); opacity: 0.25; }

/* Blob Movement */
.blur-one { animation: blobDrift1 14s ease-in-out infinite; }
.blur-two { animation: blobDrift2 18s ease-in-out infinite; }

@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(40px, 30px); }
}

@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-35px, -40px); }
}

/* Gradient Shimmer on H1 */
@keyframes shimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Eyebrow Glow Pulse */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 16px var(--accent-glow); }
  50%       { text-shadow: 0 0 40px var(--accent-glow), 0 0 70px var(--accent-dim); }
}

/* Nav Underline Hover */
nav a { position: relative; }
nav a::after {
  content: ""; position: absolute;
  bottom: -3px; left: 50%;
  width: 0; height: 1.5px;
  background: var(--accent); border-radius: 1px;
  transition: width 0.25s ease, left 0.25s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; left: 0; }

/* Mobile Nav */
.mobile-nav { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .beyond-bento {
    grid-template-columns: 1fr;
  }

  .beyond-leadership {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* Tablet: keep 2-column layout, just shrink the photo column */
  .bento-hero {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 1fr auto;
    min-height: 400px;
    position: static;
    height: auto;
    overflow: hidden;
  }

  /* Reset full-bleed overrides for tablet */
  .bento-hero::after { display: none; }

  .bento-photo {
    position: static;
    inset: auto;
    height: auto;
    grid-row: 1 / 3;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }

  .carousel-track img { object-position: center top; }

  .bento-bio {
    position: static;
    bottom: auto;
    padding: 32px 28px 24px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .bento-bio .eyebrow { color: var(--accent); display: block; }

  .bento-bio h1 {
    display: block !important;
    color: var(--text-primary);
    -webkit-text-fill-color: unset;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 45%, var(--text-primary) 75%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease infinite;
    font-size: clamp(24px, 4vw, 40px);
    margin-bottom: 8px;
  }

  .bento-bio .bento-subtitle {
    display: block !important;
    color: var(--text-soft);
    font-size: 12px;
    white-space: normal;
    letter-spacing: 0.02em;
  }

  .bento-bio .bento-desc { display: block; }

  .bento-stats {
    position: static;
    bottom: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: nowrap;
  }

  .bento-stat {
    flex: 1;
    flex-basis: 0;
    padding: 18px 8px;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .bento-stat:last-child { border-right: none; }
  .bento-stat .stat-num { font-size: 24px; margin-bottom: 4px; color: var(--accent); }
  .bento-stat .stat-label { font-size: 9px; color: var(--text-soft); }

  .photo-name-overlay { display: none !important; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (600–850px): pill nav stays, just gets compact */
@media (max-width: 850px) {
  header {
    width: 100%;
    padding: 14px 5%;
    border-bottom: 1px solid var(--border);
  }

  nav { gap: 18px; padding: 8px 16px; }
  nav a { font-size: 13px; }
  .github { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .about-hero { margin-top: 28px; }

  .info-section,
  .skills-section {
    margin-top: 48px;
  }


}

/* Phone (≤600px): hide pill, show mobile nav bar */
@media (max-width: 600px) {
  nav { display: none; }

  .mobile-nav {
    display: flex;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav a {
    flex: 1;
    text-align: center;
    padding: 13px 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid var(--border);
    transition: color 0.2s ease, background 0.2s ease;
  }

  .mobile-nav a:last-child { border-right: none; }
  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav a:hover { color: var(--text-primary); background: var(--accent-dim); }

  .cards-grid,
  .cards-grid.two { grid-template-columns: 1fr; }

  .timeline { padding-left: 36px; }
  .timeline-item::before { left: -30px; }

  /* Phone: full-bleed cinematic hero (overrides tablet 2-col) */
  .bento-hero {
    display: block;
    position: relative;
    height: min(75vh, 580px);
    min-height: 460px;
    overflow: hidden;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }

  .bento-hero::after {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 20%,
      rgba(5, 8, 15, 0.55) 50%,
      rgba(5, 8, 15, 0.92) 80%,
      rgba(5, 8, 15, 1) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .bento-photo {
    position: absolute;
    inset: 0;
    height: 100%;
    border-right: none;
    border-bottom: none;
  }

  .carousel-track img { object-position: center 70%; }

  /* Phone: bio overlaid above stats */
  .bento-bio {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 20px 6px;
    border-bottom: none;
    background: transparent;
    display: block;
    justify-content: unset;
  }

  .bento-bio .eyebrow { color: var(--accent); display: block; }

  .bento-bio h1 {
    display: block !important;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    animation: none;
    font-size: clamp(22px, 7vw, 34px);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 6px;
  }

  .bento-bio .bento-subtitle {
    display: block !important;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    white-space: nowrap;
  }

  .bento-bio .bento-desc { display: none; }

  /* Phone: 4x1 stats row */
  .bento-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(5, 8, 15, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: nowrap;
  }

  .bento-stat {
    flex: 1;
    flex-basis: 0;
    padding: 10px 4px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bento-stat:last-child { border-right: none; }
  .bento-stat .stat-num { font-size: 16px; margin-bottom: 2px; color: var(--accent); }
  .bento-stat .stat-label { font-size: 8px; color: rgba(255, 255, 255, 0.45); }

  .section-heading h2 { font-size: clamp(20px, 5vw, 32px); }

  .beyond-bento { border-radius: 20px; }
  .leadership-entry { padding: 24px 20px; }
  .tag-group { padding: 18px 20px; }

  .info-section,
  .skills-section { margin-top: 36px; }
}

@media (max-width: 480px) {
  .about-page {
    padding: 0 0 48px;
    width: 100%;
  }

  .about-hero {
    padding: 20px 16px 0;
  }

  .bento-hero {
    border-radius: 16px;
    height: min(70vh, 520px);
    min-height: 420px;
    margin: 0 16px;
    width: calc(100% - 32px);
  }

  .info-section,
  .skills-section {
    margin-top: 36px;
    padding: 0 16px;
  }

  .skills-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .skills-group {
    padding: 20px 18px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .timeline-company {
    font-size: 12px;
  }

  .stat-num {
    font-size: 24px;
  }

  .beyond-bento {
    margin: 0 16px;
    width: calc(100% - 32px);
  }
}

/* Skill Tag Color Variants */
.skill-tag--data {
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.2);
  background: rgba(22, 163, 74, 0.08);
}
html[data-theme="dark"] .skill-tag--data {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.08);
}
.skill-tag--data:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.35);
  transform: translateY(-2px);
}
html[data-theme="dark"] .skill-tag--data:hover {
  background: #4ade80;
  color: #052e16;
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.35);
}

.skill-tag--tool {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.18);
  background: rgba(124, 58, 237, 0.07);
}
html[data-theme="dark"] .skill-tag--tool {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.18);
  background: rgba(167, 139, 250, 0.08);
}
.skill-tag--tool:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}
html[data-theme="dark"] .skill-tag--tool:hover {
  background: #a78bfa;
  color: #1e1b4b;
  border-color: #a78bfa;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.35);
}

.skill-tag--ai {
  color: #a16207;
  border-color: rgba(161, 98, 7, 0.18);
  background: rgba(161, 98, 7, 0.07);
}
html[data-theme="dark"] .skill-tag--ai {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.08);
}
.skill-tag--ai:hover {
  background: #a16207;
  color: #ffffff;
  border-color: #a16207;
  box-shadow: 0 0 20px rgba(161, 98, 7, 0.35);
  transform: translateY(-2px);
}
html[data-theme="dark"] .skill-tag--ai:hover {
  background: #fbbf24;
  color: #451a03;
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}

/* data in-progress: green base + dashed override */
.skill-tag--data.skill-tag--inprogress {
  opacity: 0.7;
  border-style: dashed;
  font-size: 12px;
}

/* Certifications */
.certs-other-label {
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-top: 28px;
  margin-bottom: 12px;
}

.certs-list--other {
  opacity: 0.75;
}


.certs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cert-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-1px);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
}

.cert-icon--google { background: var(--accent-dim); color: var(--accent); }

.cert-icon--ucsd { background: rgba(99, 102, 241, 0.1); color: #818cf8; }
html[data-theme="light"] .cert-icon--ucsd { background: rgba(79, 70, 229, 0.08); color: #4f46e5; }

.cert-icon--food { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
html[data-theme="light"] .cert-icon--food { background: rgba(22, 163, 74, 0.1); color: #16a34a; }

.cert-body { flex: 1; min-width: 0; }
.cert-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.cert-issuer { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

.cert-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-badge--done { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
html[data-theme="light"] .cert-badge--done { background: rgba(22, 163, 74, 0.1); color: #16a34a; }

.cert-badge--inprogress {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

@media (max-width: 480px) {
  .cert-card { flex-wrap: wrap; }
  .cert-badge { margin-left: calc(44px + 1rem); }
}


/* Photo Carousel */
.photo-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
  will-change: transform;
  transform: translateZ(0);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 12px var(--shadow);
}

.bento-photo:hover .carousel-btn {
  opacity: 1;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 0 16px var(--accent-glow);
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 8px var(--accent-glow);
}


/* Photo name overlay (mobile Option C) */
.photo-name-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  z-index: 5;
  pointer-events: none;
}

.overlay-name {
  font-size: clamp(22px, 7vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  animation: none;
  margin-bottom: 5px;
  line-height: 1.1;
}

.overlay-subtitle {
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* Scroll To Top */
#scroll-top {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px var(--shadow);
}

#scroll-top.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#scroll-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-50%) translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px var(--shadow),
    0 0 0 1px var(--accent-dim),
    0 0 20px var(--accent-glow);
}

/* Deploy Easter Egg */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.deploy-section {
  margin-top: 48px;
  padding: 36px 0 56px;
  text-align: center;
  position: relative;
}

.deploy-teaser {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
  opacity: 0;
}

.deploy-section.visible .deploy-teaser {
  animation: fadeSlideUp 1s ease forwards, glowPulse 3s ease-in-out 1s infinite;
}

.deploy-sub {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  opacity: 0;
}

.deploy-section.visible .deploy-sub {
  animation: fadeSlideUp 1s ease 0.18s forwards;
}

.cool-word {
  color: var(--accent);
}

/* curved arrow */
.deploy-arrow-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
  color: var(--text-soft);
  opacity: 0;
}

.deploy-section.visible .deploy-arrow-wrap {
  animation: fadeSlideUp 0.9s ease 0.36s forwards;
}

.deploy-arrow-svg {
  width: 44px;
  height: 30px;
  opacity: 0.35;
}

/* borderless glow button */
.deploy-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 8px 4px;
  cursor: pointer;
  text-shadow: 0 0 18px var(--accent-glow);
  position: relative;
  opacity: 0;
  transition: text-shadow 0.35s ease, opacity 0.35s ease;
}

.deploy-section.visible .deploy-btn {
  animation: fadeSlideUp 0.9s ease 0.52s forwards;
}

.deploy-btn::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.25;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.deploy-btn:hover {
  text-shadow: 0 0 28px var(--accent-glow), 0 0 8px var(--accent);
}

.deploy-btn:hover::after {
  transform: scaleX(1);
  opacity: 0.65;
}

.deploy-aftermath {
  display: none;
  margin-top: 20px;
}

.deploy-aftermath p {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  line-height: 2;
}

.deploy-aftermath span { color: var(--accent); }

/* Floating Images */
.float-img {
  position: fixed;
  z-index: 8500;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--border);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: translate, transform;
  transform: scale(1);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.float-img.hovered {
  transform: scale(2.22);
  cursor: none;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.72),
    0 0 0 1.5px var(--accent),
    0 0 36px var(--accent-glow);
}

.float-img.clicked {
  transform: scale(2.28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.8),
    0 0 0 2px var(--accent),
    0 0 44px var(--accent-glow);
}

.float-img.dragging {
  cursor: grabbing;
  transform: scale(2.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1.5px var(--accent),
    0 0 30px var(--accent-glow);
}

.float-img img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* cursor-following caption label */
.cursor-caption {
  position: fixed;
  z-index: 9000;
  pointer-events: none;
  background: rgba(5, 8, 15, 0.88);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px var(--accent-glow);
  opacity: 0;
  transition: opacity 0.15s ease;
  display: block;
}

.cursor-caption.visible {
  opacity: 1;
}

/* click/tap popup near image */
.click-popup {
  position: fixed;
  z-index: 8600;
  background: rgba(5, 8, 15, 0.92);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px var(--accent-glow);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.click-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

/* contain float-imgs on all devices — scopes layout/style recalc */
.float-img { contain: layout style; }

@media (max-width: 480px) {
  .float-img { border-radius: 12px; }
}

/* Simplified shadows on mobile — large blur radii & glow are GPU-expensive */
@media (max-width: 600px) {
  .float-img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  }
  .float-img.hovered {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 0 1.5px var(--accent);
  }
  .float-img.clicked {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 0 2px var(--accent);
  }
  .float-img.dragging {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 0 1.5px var(--accent);
  }
}

/* Tablet: strip glow, keep depth shadow */
@media (min-width: 601px) and (max-width: 900px) {
  .float-img {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
  }
  .float-img.hovered {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 0 1.5px var(--accent);
  }
  .float-img.clicked {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 0 2px var(--accent);
  }
  .float-img.dragging {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 0 1.5px var(--accent);
  }
}

.deploy-again-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 4px;
  cursor: pointer;
  text-shadow: 0 0 14px var(--accent-glow);
  position: relative;
  transition: text-shadow 0.3s ease;
}
.deploy-again-btn::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.deploy-again-btn:hover { text-shadow: 0 0 24px var(--accent-glow), 0 0 6px var(--accent); }
.deploy-again-btn:hover::after { transform: scaleX(1); opacity: 0.65; }

/* woahhh letter animation */
@keyframes woahLetter {
  0%   { opacity: 0; transform: translateY(22px) scale(0.5); filter: blur(6px); }
  65%  { opacity: 1; transform: translateY(-5px) scale(1.2);  filter: blur(0); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

@keyframes woahGlow {
  0%, 100% { text-shadow: 0 0 14px var(--accent-glow), 0 0 30px var(--accent-glow); }
  50%       { text-shadow: 0 0 28px var(--accent-glow), 0 0 60px var(--accent-glow), 0 0 4px var(--accent); }
}

.woah-letter {
  display: inline-block;
  opacity: 0;
  color: var(--accent);
  animation: woahLetter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             woahGlow 2.4s ease-in-out var(--glow-delay, 0.6s) infinite;
}

/* ─── Mobile hero: light mode overrides ────────────────────────────────────
   The ≤600px cinematic hero uses hardcoded dark rgba values so they look
   right over a photo. These rules restore theme-aware colours in light mode.
──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* gradient scrim — swap dark bg for light bg */
  html[data-theme="light"] .bento-hero::after {
    background: linear-gradient(
      to bottom,
      transparent 58%,
      rgba(248, 250, 252, 0.55) 74%,
      rgba(248, 250, 252, 0.90) 88%,
      rgba(248, 250, 252, 0.97) 100%
    );
  }

  /* name — restore shimmer gradient instead of solid white */
  html[data-theme="light"] .bento-bio h1 {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 45%, var(--text-primary) 75%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease infinite;
  }

  /* subtitle */
  html[data-theme="light"] .bento-bio .bento-subtitle {
    color: var(--text-secondary);
  }

  /* stats bar — swap near-black frosted panel for light frosted panel */
  html[data-theme="light"] .bento-stats {
    background: rgba(248, 250, 252, 0.88);
    border-top: 1px solid rgba(15, 23, 42, 0.1);
  }

  html[data-theme="light"] .bento-stat {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }

  html[data-theme="light"] .bento-stat:last-child {
    border-right: none;
  }

  html[data-theme="light"] .bento-stat .stat-label {
    color: var(--text-secondary);
  }
}

