/* =========================================================
   Mayank Khurmai — Portfolio
   Dark + neon data-tech theme · responsive · accessible
   ========================================================= */

:root {
  --bg: #05060a;
  --bg-2: #0a0d16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: #e7ecf5;
  --text-dim: #9aa6bd;
  --text-mute: #6b7689;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --accent-grad: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 55%, #f472b6 100%);
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: rgba(10, 13, 22, 0.03);
  --surface-2: rgba(10, 13, 22, 0.05);
  --border: rgba(10, 13, 22, 0.10);
  --text: #0c1322;
  --text-dim: #46536b;
  --text-mute: #6b7689;
  --shadow: 0 24px 60px -24px rgba(20, 30, 60, 0.28);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: 'Sora', sans-serif; line-height: 1.12; letter-spacing: -0.02em; }

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

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

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ---------- Animated background ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.orb-1 { width: 540px; height: 540px; background: #22d3ee; top: -160px; left: -120px; animation: drift1 18s var(--ease) infinite alternate; }
.orb-2 { width: 480px; height: 480px; background: #8b5cf6; top: 30%; right: -140px; animation: drift2 22s var(--ease) infinite alternate; }
.orb-3 { width: 420px; height: 420px; background: #f472b6; bottom: -160px; left: 30%; animation: drift3 20s var(--ease) infinite alternate; opacity: 0.4; }
[data-theme="light"] .orb { opacity: 0.28; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-100px, 60px) scale(1.15); } }
@keyframes drift3 { to { transform: translate(80px, -70px) scale(1.05); } }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.35s var(--ease);
}
.nav-inner {
  max-width: var(--maxw); margin: 14px auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: 16px;
  width: calc(100% - 32px);
  transition: all 0.35s var(--ease);
}
.nav.scrolled .nav-inner { background: color-mix(in srgb, var(--bg) 80%, transparent); box-shadow: var(--shadow); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: 'Sora'; font-weight: 800; font-size: 15px; color: #05060a;
  background: var(--accent-grad); border-radius: 11px; box-shadow: var(--glow-cyan);
}
.brand-text { font-size: 17px; }
.brand .dot { color: var(--cyan); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  color: var(--text-dim); transition: all 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }

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

.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  color: var(--text); transition: all 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.ic-sun { display: none; }
[data-theme="light"] .ic-moon { display: none; }
[data-theme="light"] .ic-sun { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 22px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--accent-grad); color: #05060a; box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(139, 92, 246, 0.75); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Mobile menu ---------- */
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; font-family: 'JetBrains Mono', monospace; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6);} 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0);} 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0);} }

.hero-title { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; margin-bottom: 14px; }
.hero-role { font-size: clamp(1.05rem, 3vw, 1.5rem); font-weight: 600; color: var(--text); margin-bottom: 22px;
  font-family: 'JetBrains Mono', monospace; min-height: 1.5em; }
.hero-role .prompt { color: var(--cyan); }
.caret { color: var(--cyan); animation: blink 1.05s steps(1) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }

.hero-sub { font-size: 1.05rem; color: var(--text-dim); max-width: 560px; margin-bottom: 32px; }
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-socials { display: flex; gap: 12px; }
.soc { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); transition: all 0.25s var(--ease); }
.soc:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); box-shadow: var(--glow-cyan); }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.avatar-ring { position: relative; width: clamp(240px, 30vw, 330px); aspect-ratio: 1; border-radius: 50%; padding: 6px;
  background: var(--accent-grad); box-shadow: 0 0 70px -10px rgba(139, 92, 246, 0.55); animation: floaty 6s var(--ease) infinite alternate; }
.avatar-ring::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--border); animation: spin 26s linear infinite; }
.avatar-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 55px 14px rgba(5, 6, 10, 0.6); }
[data-theme="light"] .avatar-ring::after { box-shadow: inset 0 0 45px 12px rgba(20, 30, 60, 0.28); }
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 50%; background: var(--bg-2); }
@keyframes floaty { to { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip { position: absolute; padding: 8px 15px; border-radius: 12px; font-size: 13px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow); }
.chip-aws { top: 8%; left: -6%; color: var(--cyan); animation: floaty 4s ease-in-out infinite alternate; }
.chip-spark { top: 26%; right: -8%; color: var(--pink); animation: floaty 5s ease-in-out infinite alternate-reverse; }
.chip-dbt { bottom: 22%; left: -8%; color: var(--violet); animation: floaty 4.5s ease-in-out infinite alternate-reverse; }
.chip-air { bottom: 4%; right: 2%; color: #34d399; animation: floaty 5.5s ease-in-out infinite alternate; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px;
  border: 2px solid var(--border); border-radius: 16px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-cue span { width: 4px; height: 8px; background: var(--cyan); border-radius: 4px; animation: scrolly 1.6s var(--ease) infinite; }
@keyframes scrolly { 0%{opacity:0;transform:translateY(0);} 40%{opacity:1;} 80%{opacity:0;transform:translateY(12px);} 100%{opacity:0;} }

/* ---------- Stats ---------- */
.stats { padding: 30px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 28px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all 0.3s var(--ease); }
.stat:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--cyan) 50%, transparent); }
.stat-num { font-family: 'Sora'; font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; display: block; line-height: 1; }
.stat-num { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 13.5px; color: var(--text-dim); margin-top: 10px; display: block; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section-kicker { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--cyan); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800; margin-bottom: 18px; max-width: 720px; }
.section-lead { color: var(--text-dim); max-width: 640px; margin-bottom: 40px; }
.section-lead em { color: var(--text-mute); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.about-meta div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; font-weight: 600; }
.about-meta span { display: block; color: var(--text-mute); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.about-meta a { color: var(--cyan); }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.about-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.do-list { list-style: none; display: grid; gap: 14px; }
.do-list li { display: flex; flex-direction: column; padding-left: 18px; position: relative; }
.do-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 3px; background: var(--accent-grad); }
.do-list b { font-size: 15px; }
.do-list span { font-size: 13px; color: var(--text-dim); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all 0.3s var(--ease); }
.skill-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--violet) 45%, transparent); box-shadow: var(--shadow); }
.skill-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sk-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--cyan); transition: all 0.3s var(--ease); }
.sk-ic svg { width: 19px; height: 19px; }
.skill-card:hover .sk-ic { background: color-mix(in srgb, var(--cyan) 14%, transparent); border-color: color-mix(in srgb, var(--cyan) 35%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); transition: all 0.2s var(--ease); }
.skill-card:hover .chips span { border-color: color-mix(in srgb, var(--cyan) 30%, var(--border)); }
.chips.small span { font-size: 12px; padding: 4px 10px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--violet), transparent); }
.tl-item { position: relative; margin-bottom: 28px; }
.tl-dot { position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); box-shadow: var(--glow-cyan); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; transition: all 0.3s var(--ease); }
.tl-card:hover { border-color: color-mix(in srgb, var(--cyan) 40%, transparent); transform: translateX(4px); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 8px; }
.tl-head h3 { font-size: 1.2rem; }
.tl-company { color: var(--cyan); font-weight: 600; font-size: 14.5px; }
.tl-date { margin-left: auto; font-size: 13px; color: var(--text-mute); font-family: 'JetBrains Mono', monospace; }
.tl-note { color: var(--text-dim); font-size: 14px; font-style: italic; margin-bottom: 14px; }
.tl-list { list-style: none; display: grid; gap: 10px; }
.tl-list li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 14.5px; }
.tl-list li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); }
.tl-list b { color: var(--text); }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edu-card { display: flex; gap: 18px; align-items: flex-start; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s var(--ease); }
.edu-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); box-shadow: var(--shadow); }
.edu-icon { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--cyan); }
.edu-icon svg { width: 26px; height: 26px; }
.edu-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.edu-org { display: block; color: var(--text-dim); font-size: 14px; }
.edu-date { display: inline-block; margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 28%, transparent); padding: 3px 10px; border-radius: 999px; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: all 0.3s var(--ease); position: relative; overflow: hidden; }
.project-card::after { content: ""; position: absolute; inset: 0; background: var(--accent-grad); opacity: 0; transition: opacity 0.3s var(--ease); mask: linear-gradient(#000, transparent 40%); -webkit-mask: linear-gradient(#000, transparent 40%); }
.project-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--violet) 50%, transparent); box-shadow: var(--shadow); }
.project-card:hover::after { opacity: 0.06; }
.pc-top { margin-bottom: 14px; }
.pc-tag { font-size: 11.5px; font-weight: 600; font-family: 'JetBrains Mono', monospace; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent); padding: 4px 10px; border-radius: 999px; }
.project-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.project-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 16px; }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all 0.3s var(--ease); }
.cert:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
.cert-badge { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; font-family: 'Sora'; font-weight: 800; font-size: 14px; color: #05060a; background: linear-gradient(135deg, #ff9900, #ffb84d); }
.cert-badge.gcp { background: linear-gradient(135deg, #4285f4, #34a853); color: #fff; }
.cert-badge.sec { background: linear-gradient(135deg, #ef4444, #f87171); color: #fff; }
.cert p { font-size: 14px; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-wrap { text-align: center; }
.contact-wrap .section-title, .contact-wrap .section-lead { margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.cc { display: flex; flex-direction: column; gap: 4px; padding: 20px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all 0.3s var(--ease); }
.cc:hover { transform: translateY(-4px); border-color: var(--cyan); }
.cc-label { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.cc-val { font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; word-break: normal; line-height: 1.4; }
.cc-val.email { font-size: 13px; letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 14px; }
.footer-socials { display: flex; gap: 18px; }
.footer-socials a:hover, .to-top:hover { color: var(--cyan); }
.to-top { font-weight: 600; }

/* ---------- 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: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-visual { order: -1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-socials { justify-content: center; }
  .eyebrow { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 84px; left: 16px; right: 16px;
    flex-direction: column; gap: 4px; padding: 14px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .menu-toggle { display: flex; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .nav-actions .btn-ghost { display: none; }
  .projects-grid, .contact-cards, .edu-grid { grid-template-columns: 1fr; }
  .about-meta { grid-template-columns: 1fr; }
  .tl-date { margin-left: 0; }
  .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
