/* ═══════════════════════════════════════════════════════════
   NETWORK OPERATIONS CONSOLE — portfolio theme
   Aboobacker Sidheeque T P
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #070b12;
  --bg-alt: #090f19;
  --panel: #0c1420;
  --panel-2: #0f1a29;
  --border: #1b2a3d;
  --border-glow: #234763;
  --text: #c8d6e5;
  --muted: #7e94ab;
  --cyan: #22d3ee;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --glow-cyan: rgba(34, 211, 238, .12);
  --glow-green: rgba(74, 222, 128, .10);
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --nav-h: 58px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* subtle grid + vignette backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--glow-cyan), transparent 60%),
    linear-gradient(rgba(34, 211, 238, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .03) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  pointer-events: none;
  z-index: -1;
}

::selection { background: rgba(34, 211, 238, .3); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.accent-cyan { color: var(--cyan); }
.accent-green { color: var(--green); }

strong { color: #e8f1fa; font-weight: 600; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* ── LEDs ─────────────────────────────────────────────── */
.led {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
.led-green { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2.4s ease-in-out infinite; }
.led-cyan  { background: var(--cyan);  box-shadow: 0 0 8px var(--cyan); }
.led-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 1.4s ease-in-out infinite; }
.led-red   { background: var(--red);   box-shadow: 0 0 8px var(--red); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* ── blinking cursor ──────────────────────────────────── */
.cursor {
  display: inline-block;
  width: 9px; height: 1.15em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ═══════════ BOOT OVERLAY ═══════════ */
.boot {
  position: fixed;
  inset: 0;
  background: #05080d;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
.boot.done { opacity: 0; pointer-events: none; }
.boot-inner { width: min(640px, 90vw); }
.boot-log {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
  min-height: 240px;
}
.boot-log .ok { color: var(--green); }
.boot-log .info { color: var(--cyan); }
.boot-skip {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #3d5268;
  animation: pulse 2s ease-in-out infinite;
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(7, 11, 18, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; color: var(--cyan); }
.nav-logo-prompt { color: var(--cyan); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--cyan); background: var(--glow-cyan); text-decoration: none; }
.nav-links a.active { color: var(--cyan); background: var(--glow-cyan); }

.snd-toggle {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 6px 12px;
  background: rgba(74, 222, 128, .06);
  color: var(--green);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.snd-toggle:hover { border-color: var(--green); }
.snd-toggle.off {
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
  flex: 1;
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--green);
  margin-bottom: 20px;
}
.hero-kicker .led { margin-right: 8px; }
.hero-name {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  color: #eaf3fc;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  text-shadow: 0 0 40px rgba(34, 211, 238, .25);
}
.hero-role {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--cyan);
  margin-bottom: 20px;
  min-height: 1.6em;
}
.hero-prompt { color: var(--green); margin-right: 6px; }
.hero-sub {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--cyan);
  color: #04121a;
  box-shadow: 0 0 24px rgba(34, 211, 238, .35);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(34, 211, 238, .55); }
.btn-ghost {
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  background: rgba(34, 211, 238, .05);
}
.btn-ghost:hover { background: var(--glow-cyan); }

/* hero status panel */
.hero-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(34, 211, 238, .08), 0 24px 48px rgba(0, 0, 0, .4);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #f6635a; }
.dot-y { background: #f5bd4f; }
.dot-g { background: #43c645; }
.term-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
}
.hero-panel-body { padding: 20px 22px; }
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(27, 42, 61, .8);
  font-size: 13.5px;
}
.status-row:last-of-type { border-bottom: none; }
.status-key { color: var(--muted); }
.status-key::before { content: "▸ "; color: var(--cyan); }
.status-val { color: var(--text); text-align: right; }

.pingline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.pingline-label { color: var(--muted); letter-spacing: .1em; }
.pingbar { display: flex; gap: 4px; align-items: flex-end; flex: 1; height: 18px; }
.pingbar i {
  flex: 1;
  background: var(--green);
  border-radius: 1px;
  opacity: .85;
  animation: pingbar 1.6s ease-in-out infinite;
}
.pingbar i:nth-child(3n)   { animation-delay: .2s; }
.pingbar i:nth-child(3n+1) { animation-delay: .45s; }
.pingbar i:nth-child(4n)   { animation-delay: .7s; }
.pingbar i:nth-child(5n)   { animation-delay: .9s; }
@keyframes pingbar {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

/* ticker */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(12, 20, 32, .6);
  overflow: hidden;
  margin-top: 56px;
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 36s linear infinite;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-track span::before { content: "◆ "; color: var(--cyan); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  color: #eaf3fc;
  margin-bottom: 44px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.section-num {
  color: var(--cyan);
  font-size: .65em;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 3px 9px;
  background: var(--glow-cyan);
}
.section-path {
  font-size: .5em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .1em;
}
.section-path::before { content: "— "; }

/* ═══════════ ABOUT ═══════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.term {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.term-body { padding: 22px 24px; font-size: 14.5px; }
.term-body p { margin-bottom: 14px; }
.term-body p:last-child { margin-bottom: 0; }
.term-cmd { color: var(--muted); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .25s, box-shadow .25s;
}
.stat:hover { border-color: var(--border-glow); box-shadow: 0 0 24px var(--glow-cyan); }
.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(34, 211, 238, .4);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 8px;
}
.stat-meter {
  display: block;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;
}
.stat-meter i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) .2s;
}
.revealed .stat-meter i { transform: scaleX(1); }

/* ═══════════ SKILLS ═══════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.skill-panel:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4), 0 0 20px var(--glow-cyan);
}
.skill-head {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .04em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(34, 211, 238, .04);
  transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chips-sm .chip { font-size: 11px; padding: 3px 9px; }

/* ═══════════ EXPERIENCE / TIMELINE ═══════════ */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 860px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--border) 70%);
  opacity: .5;
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -32px;
  top: 22px;
  width: 16px;
  display: flex;
  justify-content: center;
}
.tl-marker .led { width: 12px; height: 12px; border: 2px solid var(--bg); }
.tl-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  transition: border-color .25s, box-shadow .25s;
}
.tl-card:hover { border-color: var(--border-glow); box-shadow: 0 0 28px var(--glow-cyan); }
.tl-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tl-date { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.tl-tag {
  font-size: 10.5px;
  letter-spacing: .14em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green);
  background: var(--glow-green);
}
.tl-tag-dim { border-color: var(--border-glow); color: var(--muted); background: transparent; }
.tl-role { font-size: 19px; font-weight: 700; color: #eaf3fc; }
.tl-org { font-size: 13px; color: var(--cyan); margin-bottom: 14px; }
.tl-list { list-style: none; }
.tl-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.tl-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--green);
}
.tl-list strong { color: var(--text); }

/* ═══════════ PROJECTS ═══════════ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 8px 16px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  letter-spacing: .04em;
}
.filter:hover { color: var(--cyan); border-color: var(--border-glow); }
.filter.active {
  color: #04121a;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(34, 211, 238, .4);
}
.filter-count { opacity: .7; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.proj {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .25s, transform .25s, box-shadow .25s, opacity .3s;
}
.proj:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 24px var(--glow-cyan);
}
.proj.hidden { display: none; }
.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.proj-status {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 7px;
}
.proj-status-wip { color: var(--amber); }
.proj-id { font-size: 10.5px; color: #40566e; letter-spacing: .1em; }
.proj-name { font-size: 16px; font-weight: 700; color: #eaf3fc; line-height: 1.35; }
.proj-desc { font-size: 12.5px; color: var(--muted); flex: 1; }
.proj-link {
  font-size: 12px;
  color: var(--green);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.proj-link:hover { color: var(--cyan); }

/* ═══════════ EDUCATION ═══════════ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.edu-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
}
.edu-head {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.edu-item { margin-bottom: 26px; }
.edu-title { font-size: 16px; font-weight: 700; color: #eaf3fc; }
.edu-sub { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.edu-note { font-size: 12.5px; color: var(--muted); border-left: 2px solid var(--border-glow); padding-left: 12px; }
.cert-list { list-style: none; }
.cert-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.cert-list li:last-child { border-bottom: none; }
.cert-check { color: var(--green); margin-right: 8px; }
.cert-note { color: var(--muted); font-size: 12px; }

/* ═══════════ CONTACT ═══════════ */
.contact-term { max-width: 680px; margin: 0 auto; }
.contact-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.contact-key { color: var(--muted); min-width: 150px; }
.contact-val { color: var(--text); }
a.contact-val { color: var(--cyan); }
.contact-cta { margin: 22px 0; }

/* ═══════════ ARCADE ═══════════ */
.arcade-term { max-width: 480px; margin: 0 auto; }

.arcade-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--green);
  white-space: nowrap;
}
.arcade-status .led { width: 7px; height: 7px; }
.arcade-status.paused { color: var(--amber); }
.arcade-status.over { color: var(--red); }

.arcade-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.arcade-hud { display: flex; gap: 28px; }
.arcade-hud .status-val { margin-left: 8px; font-variant-numeric: tabular-nums; }

.arcade-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
}
#arcade-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #050910;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.arcade-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(5, 9, 16, .88);
  border-radius: 8px;
  transition: opacity .2s;
}
.arcade-overlay.hidden { display: none; }
.arcade-overlay-title { color: var(--cyan); font-size: 16px; font-weight: 700; }
.arcade-overlay-sub { color: var(--muted); font-size: 12px; max-width: 260px; line-height: 1.6; }

.arcade-touch {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-template-rows: repeat(2, 50px);
  gap: 8px;
  justify-content: center;
}
.arcade-btn {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--cyan);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.arcade-btn:hover { border-color: var(--border-glow); }
.arcade-btn:active { background: var(--glow-cyan); }
.arcade-up { grid-column: 2; grid-row: 1; }
.arcade-left { grid-column: 1; grid-row: 2; }
.arcade-down { grid-column: 2; grid-row: 2; }
.arcade-right { grid-column: 3; grid-row: 2; }

@media (min-width: 681px) {
  .arcade-touch { display: none; }
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

/* ═══════════ REVEAL ANIMATION ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.reveal.revealed { opacity: 1; transform: none; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-key { min-width: 120px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #090f19;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
    padding: 12px 24px 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px; font-size: 15px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .boot { display: none; }
  .reveal { opacity: 1; transform: none; }
  .stat-meter i { transform: scaleX(1); }
}
