/* ============================================================
   Shahanur Alom — Personal Site
   Vanilla CSS · Dark/Light themes · No dependencies
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --accent-3: #6366f1;
  --gold: #d4a960;
  --gradient: linear-gradient(135deg, #3b82f6, #6366f1 50%, #06b6d4);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0e17;
  --bg-soft: #0e1320;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef7;
  --text-muted: #93a1b8;
  --nav-bg: rgba(10, 14, 23, 0.72);
  --glow: rgba(59, 130, 246, 0.4);
}

[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-soft: #ffffff;
  --surface: rgba(15, 23, 42, 0.03);
  --surface-2: rgba(15, 23, 42, 0.05);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f1b2d;
  --text-muted: #51607a;
  --nav-bg: rgba(246, 248, 252, 0.78);
  --glow: rgba(59, 130, 246, 0.25);
  --shadow: 0 24px 60px -24px rgba(20, 40, 80, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- Background canvas + cursor ---------- */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.9;
}
main, .navbar, .footer, .scroll-progress, .to-top { position: relative; z-index: 2; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient); z-index: 100; border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--glow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease;
  white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 10px 30px -8px var(--glow);
  background-size: 180% 180%;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px var(--glow); background-position: 100% 50%; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 90;
  padding: 0.9rem 0; transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: var(--nav-bg); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--border); padding: 0.55rem 0;
}
.nav-inner {
  width: min(100% - 2.5rem, 1240px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--gradient); color: #fff; font-size: 0.9rem; letter-spacing: 0.5px;
  box-shadow: 0 6px 18px -6px var(--glow);
}
.logo-text { font-size: 1.02rem; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 0.35rem; }
.nav-link {
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  padding: 0.5rem 0.85rem; border-radius: 999px; position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: background 0.25s, transform 0.25s, color 0.25s;
}
.theme-toggle:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px; cursor: pointer; padding: 11px 9px; }
.hamburger span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 0 3rem; position: relative;
}
.hero-grid {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
.hero-name {
  font-family: var(--font-display); font-weight: 700; line-height: 1.02;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.hero-role {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem); margin-bottom: 1.3rem; min-height: 1.5em;
}
.typed { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 2px; background: var(--accent); margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-bio { color: var(--text-muted); font-size: 1.08rem; max-width: 38ch; margin-bottom: 1.6rem; }
.hero-bio strong { color: var(--text); font-weight: 600; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); background: var(--surface); border: 1px solid var(--border);
  padding: 0.45rem 0.85rem; border-radius: 999px;
}
.chip svg { color: var(--accent); }
.chip-award { color: var(--gold); border-color: rgba(212,169,96,0.35); background: rgba(212,169,96,0.08); }
.chip-award svg { color: var(--gold); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Hero photo */
.hero-photo { position: relative; justify-self: center; }
.photo-ring {
  position: relative; width: clamp(240px, 28vw, 340px); aspect-ratio: 1; border-radius: 50%;
  padding: 6px; background: var(--gradient); background-size: 200% 200%;
  animation: spinGradient 8s linear infinite; box-shadow: 0 30px 70px -25px var(--glow);
}
@keyframes spinGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.photo-img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center;
  background: var(--bg-soft); position: relative; z-index: 2;
}
.photo-blob {
  position: absolute; inset: -18%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--accent-2), transparent 55%);
  filter: blur(46px); opacity: 0.55; animation: floatBlob 9s ease-in-out infinite;
}
@keyframes floatBlob { 0%,100% { transform: scale(1) translate(0,0); } 50% { transform: scale(1.12) translate(10px,-12px); } }

.floating-badge {
  position: absolute; display: flex; align-items: center; gap: 0.6rem; z-index: 3;
  background: var(--nav-bg); backdrop-filter: blur(14px); border: 1px solid var(--border-strong);
  padding: 0.6rem 0.85rem; border-radius: 14px; box-shadow: var(--shadow);
  animation: floatBadge 5s ease-in-out infinite;
}
.floating-badge strong { display: block; font-family: var(--font-display); font-size: 0.95rem; line-height: 1; }
.floating-badge small { color: var(--text-muted); font-size: 0.72rem; }
.badge-emoji { font-size: 1.3rem; }
.badge-1 { top: 6%; left: -8%; animation-delay: 0s; }
.badge-2 { bottom: 14%; left: -14%; animation-delay: 1.2s; }
.badge-3 { bottom: 4%; right: -6%; animation-delay: 2.4s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); }
.mouse { display: block; width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; position: relative; }
.wheel { position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 100% { opacity: 0; top: 18px; } }

/* ---------- Stats ---------- */
.stats { padding: 1rem 0 3rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem 1.5rem; backdrop-filter: blur(8px);
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -0.5rem; top: 15%; height: 70%; width: 1px; background: var(--border); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem);
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.5rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-kicker {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: 0.7rem;
}
.section-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; }
.section-sub { color: var(--text-muted); margin-top: 0.7rem; font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-lead p { color: var(--text-muted); font-size: 1.06rem; margin-bottom: 1.1rem; }
.about-lead strong { color: var(--text); font-weight: 600; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.4rem; transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.about-card:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--surface-2); }
.about-icon { font-size: 1.7rem; display: block; margin-bottom: 0.7rem; }
.about-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.35rem; }
.about-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-3), transparent); }
.tl-item { position: relative; margin-bottom: 1.6rem; }
.tl-dot { position: absolute; left: -2.2rem; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--glow); }
.tl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.7rem; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.tl-card:hover { transform: translateX(6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tl-top { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.tl-badge { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.tl-now { color: #22c55e; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); }
.tl-role { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.1rem; }
.tl-company { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.8rem; }
.tl-points li { color: var(--text-muted); font-size: 0.93rem; padding-left: 1.3rem; position: relative; margin-bottom: 0.35rem; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.tl-tag { font-size: 0.8rem; font-weight: 600; color: var(--gold); background: rgba(212,169,96,0.1);
  border: 1px solid rgba(212,169,96,0.3); padding: 0.3rem 0.7rem; border-radius: 999px; }

/* ---------- Skills ---------- */
.skill-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.filter-btn {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; cursor: pointer;
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px var(--glow); }

.skill-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 3rem; }
.skill-tag {
  font-size: 0.92rem; font-weight: 500; padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, background 0.3s, opacity 0.3s;
}
.skill-tag:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--accent); background: var(--surface-2); }
.skill-tag.hide { display: none; }

.proficiency { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 2.5rem; max-width: 860px; }
.prof-label { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; }
.prof-pct { color: var(--accent); font-family: var(--font-display); }
.prof-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.prof-fill { height: 100%; width: 0; border-radius: 999px; background: var(--gradient); transition: width 1.3s var(--ease); }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.edu-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; transition: transform 0.35s var(--ease), border-color 0.35s;
}
.edu-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.edu-card-wide { grid-column: 1 / -1; }
.edu-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.edu-icon { font-size: 1.9rem; display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.edu-card-head h3 { font-family: var(--font-display); font-size: 1.15rem; }
.edu-meta { color: var(--text-muted); font-size: 0.86rem; }
.edu-body { color: var(--text-muted); }
.cert-list li { display: flex; align-items: center; gap: 0.65rem; color: var(--text-muted); font-size: 0.93rem; padding: 0.35rem 0; }
.cert-list-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.cert-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(34,197,94,0.15); color: #22c55e; font-size: 0.75rem; font-weight: 700; }
.cert-check.pending { background: rgba(212,169,96,0.15); color: var(--gold); }
.cert-status { margin-left: auto; font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; }
.cert-status.done { color: #22c55e; background: rgba(34,197,94,0.12); }
.cert-status.soon { color: var(--gold); background: rgba(212,169,96,0.12); }

/* ---------- Interests ---------- */
.interest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.interest-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; text-align: left; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.interest-card::before { content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at top right, var(--glow), transparent 70%); transition: opacity 0.4s; }
.interest-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.interest-card:hover::before { opacity: 1; }
.interest-emoji { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.interest-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.3rem; position: relative; }
.interest-card p { color: var(--text-muted); font-size: 0.88rem; position: relative; }
.interest-cta { background: var(--surface-2); border-style: dashed; }
.interest-cta a { color: var(--accent); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-blurb { color: var(--text-muted); font-size: 1.05rem; margin: 1rem 0 1.6rem; max-width: 42ch; }
.contact-email {
  display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; padding: 0.9rem 1.3rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); transition: all 0.3s var(--ease);
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.contact-email svg { color: var(--accent); }
.contact-extra { margin-top: 1.3rem; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-note { font-size: 0.85rem; margin-top: 0.8rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #22c55e; }
.form-note.err { color: #ef4444; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; background: var(--bg-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 80;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--gradient); color: #fff; box-shadow: 0 12px 30px -10px var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-bio { max-width: 52ch; }
  .hero-meta, .hero-cta { justify-content: center; }
  .hero-photo { order: -1; }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 0.3rem;
    background: var(--nav-bg); backdrop-filter: blur(18px); padding: 5.5rem 1.5rem 2rem;
    transform: translateY(-110%); transition: transform 0.4s var(--ease); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { font-size: 1.1rem; padding: 0.8rem 1rem; }
  .hamburger { display: flex; }
  .logo-text { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 0.5rem; }
  .stat:nth-child(2)::after { display: none; }
  .about-cards, .edu-grid, .proficiency, .cert-list-cols { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
}
@media (max-width: 460px) {
  .interest-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}
