/* =========================================================
   Muhammad Haseeb Aslam — Portfolio
   Dark modern tech theme
   ========================================================= */

:root {
  --bg: #06070d;
  --bg-alt: #0a0c16;
  --surface: #10131f;
  --surface-2: #161a2c;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  --text: #eef0fb;
  --text-dim: #a7acc4;
  --text-faint: #6a6f8c;

  --accent-1: #7c5cff;   /* violet */
  --accent-2: #24d3ee;   /* cyan */
  --accent-3: #ff5fb0;   /* pink */
  --accent-4: #4ade80;   /* green (accuracy stats) */

  --gradient-1: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --gradient-2: linear-gradient(120deg, var(--accent-3), var(--accent-1));

  --shadow-glow: 0 0 40px rgba(124,92,255,0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

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

::selection { background: var(--accent-1); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Cursor glow / progress bar ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124,92,255,0.12), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity .3s ease;
  will-change: transform;
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-1);
  z-index: 1000;
  transition: width .1s ease-out;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient-1);
  color: #060712;
  box-shadow: 0 8px 24px rgba(124,92,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,92,255,0.5); }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.btn-outline:hover { border-color: var(--accent-2); background: rgba(36,211,238,0.08); transform: translateY(-2px); }

.btn-ghost {
  color: var(--text-dim);
  padding: 10px 16px;
  font-size: 0.88rem;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(6,7,13,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-1);
  color: #060712;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.logo-text .dot { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color .2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gradient-1);
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}

.hero-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 40%, transparent 100%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.hero-glow-1 {
  width: 480px; height: 480px;
  background: rgba(124,92,255,0.35);
  top: -120px; left: -100px;
}
.hero-glow-2 {
  width: 420px; height: 420px;
  background: rgba(36,211,238,0.25);
  bottom: -140px; right: -80px;
}

.hero-inner { position: relative; z-index: 2; max-width: 880px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-4);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 24px;
  min-height: 2.4em;
}
.typed-role { color: var(--accent-2); font-weight: 600; }
.typed-cursor { color: var(--accent-2); animation: blink 1s step-end infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-social { display: flex; gap: 12px; margin-bottom: 56px; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  transition: all .25s ease;
}
.social-icon:hover {
  color: #060712;
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-3px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num, .stat-suffix {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  display: inline;
}
.stat-suffix { color: var(--accent-2); }
.stat-label { font-size: 0.82rem; color: var(--text-faint); margin-top: 2px; }

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: scrollcue 1.6s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Sections (shared) ---------- */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-kicker {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-lede {
  color: var(--text-dim);
  max-width: 620px;
  font-size: 1.02rem;
  margin-bottom: 56px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.about-copy p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.02rem; }
.about-copy strong { color: var(--text); }
.about-copy a { color: var(--accent-2); }
.about-copy a:hover { text-decoration: underline; }

.quick-facts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: 0.76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.fact-value { font-size: 0.92rem; color: var(--text); font-weight: 500; }
.fact-value a:hover { color: var(--accent-2); }

.about-card { display: flex; align-items: center; justify-content: center; }
.orbit-visual {
  position: relative;
  width: 360px; height: 360px;
  max-width: 100%;
}
.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #060712;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
  z-index: 3;
}
.orbit {
  position: absolute;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin linear infinite;
}
.orbit-a { width: 360px; height: 360px; animation-duration: 26s; }
.orbit-b { width: 300px; height: 300px; animation-duration: 20s; animation-direction: reverse; }
.orbit-c { width: 230px; height: 230px; animation-duration: 16s; }
.orbit-d { width: 160px; height: 160px; animation-duration: 12s; animation-direction: reverse; }
.orbit-e { width: 300px; height: 300px; animation-duration: 32s; }
@keyframes spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

.orbit-chip {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  animation: counterspin linear infinite;
  animation-duration: inherit;
}
.orbit-a .orbit-chip, .orbit-c .orbit-chip, .orbit-e .orbit-chip { animation-direction: reverse; }
@keyframes counterspin { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(-360deg); } }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,92,255,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skill-icon { font-size: 1.5rem; }
.skill-head h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  transition: all .2s ease;
}
.tag:hover { color: var(--text); border-color: var(--accent-2); }
.tag-highlight {
  color: #060712;
  background: var(--gradient-1);
  border-color: transparent;
  font-weight: 700;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 48px; padding-left: 36px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent-1), var(--accent-2));
  opacity: 0.4;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -36px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gradient-1);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(124,92,255,0.6);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: border-color .3s ease, transform .3s ease;
}
.timeline-card:hover { border-color: rgba(36,211,238,0.35); transform: translateX(4px); }
.timeline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.timeline-top h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  white-space: nowrap;
}
.timeline-org { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 16px; font-style: italic; }
.timeline-list { display: flex; flex-direction: column; gap: 10px; }
.timeline-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent-2);
}
.timeline-list strong { color: var(--text); }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease;
}
.project-card:hover { transform: translateY(-8px); border-color: rgba(255,95,176,0.35); }
.project-glow {
  position: absolute;
  top: -60%; right: -30%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(124,92,255,0.25), transparent 70%);
  border-radius: 50%;
  transition: opacity .35s ease;
  opacity: 0;
}
.project-card:hover .project-glow { opacity: 1; }
.project-icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.project-card h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 10px; position: relative; z-index: 1; }
.project-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; position: relative; z-index: 1; }
.project-card .tag-list { position: relative; z-index: 1; }

.project-links {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: gap .2s ease, color .2s ease;
}
.project-link:hover { gap: 10px; color: var(--text); }
.project-link[data-demo-placeholder] {
  color: var(--text-faint);
  cursor: not-allowed;
}
.project-link[data-demo-placeholder]:hover { color: var(--text-faint); gap: 6px; }
.project-link[data-demo-placeholder]::after {
  content: '(add link)';
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-3);
  margin-left: 4px;
}

/* ---------- Publications ---------- */
.pub-list { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.pub-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  transition: border-color .25s ease, transform .25s ease;
}
.pub-item:hover { border-color: var(--accent-2); transform: translateX(4px); }
.pub-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.pub-body h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.pub-body p { font-size: 0.84rem; color: var(--text-faint); }
.pub-arrow { margin-left: auto; color: var(--text-faint); font-size: 1.2rem; flex-shrink: 0; }

.edu-leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.edu-card h3 { font-family: var(--font-head); margin-bottom: 20px; font-size: 1.05rem; }
.edu-entry { display: flex; flex-direction: column; gap: 3px; margin-bottom: 18px; }
.edu-entry:last-child { margin-bottom: 0; }
.edu-entry strong { font-size: 0.96rem; color: var(--text); }
.edu-entry span { font-size: 0.84rem; color: var(--text-faint); }
.edu-thesis { font-style: italic; }

/* ---------- Contact ---------- */
.contact-section { text-align: center; overflow: hidden; }
.contact-section .section-lede { margin-left: auto; margin-right: auto; }
.contact-section .hero-glow-1 { top: -80px; left: 50%; transform: translateX(-50%); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .3s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background: var(--surface-2);
  box-shadow: 0 16px 40px rgba(124,92,255,0.2);
}
.contact-icon { font-size: 1.8rem; }
.contact-label { font-size: 0.76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { font-size: 0.92rem; font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.btn-top {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all .25s ease;
}
.btn-top:hover { background: var(--gradient-1); color: #060712; border-color: transparent; transform: translateY(-3px); }

/* ---------- Reveal animations ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }
.delay-1.in-view { transition-delay: .08s; }
.delay-2.in-view { transition-delay: .16s; }
.delay-3.in-view { transition-delay: .24s; }
.delay-4.in-view { transition-delay: .32s; }
.delay-5.in-view { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { order: -1; }
  .orbit-visual { width: 280px; height: 280px; margin: 0 auto; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,7,13,0.97);
    backdrop-filter: blur(16px);
    padding: 28px 24px;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { padding: 10px 16px; font-size: 0.84rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .edu-leadership-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
  .timeline { padding-left: 26px; }
  .timeline-dot { left: -26px; }
  .timeline-card { padding: 22px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
