/* ════════════════════════════════════════════════════════════
   ROBOTICIST PORTFOLIO — HUD / NEON / MECHANICAL THEME
   ════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #04070d;
  --bg-1: #080d17;
  --bg-2: #0c1420;
  --panel: rgba(12, 20, 32, 0.72);
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.35);
  --green: #3dff8b;
  --orange: #ff7a1a;
  --amber: #ffc94d;
  --magenta: #ff3d8b;
  --text: #d8e4ee;
  --text-dim: #6b8299;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --grid-size: 44px;
}

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

html { scroll-behavior: smooth; }

/* Skip-link: first thing keyboard users see */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10001;
  background: var(--cyan); color: #041;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em;
  padding: 10px 16px; border: 1px solid #041; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; outline: 2px solid var(--magenta); outline-offset: 2px; }

/* Focus-visible: clear target for keyboard nav without polluting mouse UX */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,240,255,0.25);
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(255,61,139,0.25);
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) { body { cursor: auto; } }

::selection { background: var(--cyan); color: #041; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.08em; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--magenta));
  border-radius: 0;
  border: 2px solid var(--bg-0);
}

/* ══════════ OVERLAYS: SCANLINES + VIGNETTE ══════════ */
.overlay-scanlines {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.16) 2px,
    rgba(0, 0, 0, 0.16) 4px
  );
  mix-blend-mode: multiply;
}
.overlay-vignette {
  position: fixed; inset: 0; z-index: 8999; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ══════════ PRELOADER ══════════ */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.boot-panel {
  width: min(560px, 90vw);
  border: 1px solid var(--cyan-dim);
  padding: 26px 28px;
  background: var(--bg-1);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.12), inset 0 0 60px rgba(0, 240, 255, 0.04);
  position: relative;
}
.boot-panel::before, .boot-panel::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--cyan);
}
.boot-panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.boot-panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.boot-title {
  font-family: var(--font-display); font-size: 0.85rem;
  color: var(--cyan); text-align: center; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.boot-block {
  width: 10px; height: 10px; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blockPulse 1s ease-in-out infinite;
}
@keyframes blockPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.boot-lines { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.boot-lines p { margin-bottom: 5px; white-space: nowrap; overflow: hidden; }
.boot-lines .ok { color: var(--green); }
.boot-bar {
  height: 10px; border: 1px solid var(--cyan-dim); margin: 18px 0 12px;
  position: relative; overflow: hidden;
}
.boot-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px var(--cyan);
  animation: bootFill 2.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@keyframes bootFill { to { width: 100%; } }
.boot-status { font-family: var(--font-mono); color: var(--green); text-align: center; font-size: 0.85rem; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ══════════ CUSTOM CURSOR ══════════ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none;
  border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--cyan-dim);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--magenta);
  background: rgba(255, 61, 139, 0.08);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  border-bottom: 1px solid rgba(0, 240, 255, 0.14);
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0, 240, 255, 0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--text); letter-spacing: 0.18em;
}
.logo-bracket { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.logo-blink { color: var(--magenta); animation: blink 1.2s steps(1) infinite; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim);
  letter-spacing: 0.12em; position: relative; padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 0.3s ease;
}
.nav-links a::before {
  content: attr(data-text); position: absolute; inset: 0;
  color: var(--cyan); overflow: hidden; width: 0%;
  white-space: nowrap; text-shadow: 0 0 10px var(--cyan);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a:hover::before { width: 100%; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--cyan-dim);
  width: 42px; height: 36px; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--cyan); transition: 0.3s; }

/* ══════════ HERO ══════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 120px 24px 60px;
}
#particleCanvas { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-scanline {
  position: absolute; left: 0; right: 0; height: 120px; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.06), transparent);
  animation: scanMove 6s linear infinite;
  pointer-events: none;
}
@keyframes scanMove { from { top: -15%; } to { top: 115%; } }

.hud {
  position: absolute; width: 44px; height: 44px; z-index: 2;
  border: 2px solid var(--cyan-dim); opacity: 0.7;
}
.hud-tl { top: 84px; left: 20px; border-right: none; border-bottom: none; }
.hud-tr { top: 84px; right: 20px; border-left: none; border-bottom: none; }
.hud-bl { bottom: 24px; left: 20px; border-right: none; border-top: none; }
.hud-br { bottom: 24px; right: 20px; border-left: none; border-top: none; }

/* Radar */
.radar {
  position: absolute; top: 120px; right: 8vw; z-index: 2;
  width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid var(--cyan-dim);
  background: radial-gradient(circle, transparent 55%, rgba(0,240,255,0.06));
  animation: radarPulse 3s ease-in-out infinite;
}
.radar::before, .radar::after {
  content: ""; position: absolute; border: 1px solid var(--cyan-dim);
  border-radius: 50%;
}
.radar::before { inset: 25%; }
.radar::after { inset: 50%; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,240,255,0.45), transparent 70deg);
  animation: sweep 2.6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes radarPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,240,255,0.25); } 50% { box-shadow: 0 0 0 14px rgba(0,240,255,0); } }
.radar-blip {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: blip 2.6s linear infinite;
}
.radar-blip.b1 { top: 30%; left: 60%; }
.radar-blip.b2 { top: 62%; left: 34%; animation-delay: 0.9s; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.radar-blip.b3 { top: 44%; left: 44%; animation-delay: 1.7s; }
.radar-label {
  position: absolute; inset: auto; bottom: -28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em;
  color: var(--cyan-dim); white-space: nowrap;
}
@media (max-width: 900px) { .radar { display: none; } }

/* Hero content */
.hero-content { position: relative; z-index: 3; max-width: 900px; width: 100%; }
.hero-statusbar {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim);
  letter-spacing: 0.14em; display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap; margin-bottom: 26px;
}
.status-sep { color: var(--cyan-dim); }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.led-green { background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 2s steps(1) infinite; }
.led-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 1.6s steps(1) infinite; }
.led-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: blink 2.4s steps(1) infinite; }

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan);
  letter-spacing: 0.22em; display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.eyebrow-line { display: inline-block; width: 60px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.hero-title { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 900; line-height: 1.05; margin-bottom: 20px; }
.title-line { display: block; }
.glitch { position: relative; color: var(--text); display: inline-block; }
.glitch.accent { color: var(--cyan); text-shadow: 0 0 20px rgba(0,240,255,0.5); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; overflow: hidden;
}
.glitch::before {
  color: var(--magenta); animation: glitchTop 3.5s infinite steps(2,end);
  clip-path: inset(0 0 55% 0);
}
.glitch::after {
  color: var(--cyan); animation: glitchBot 3.5s infinite steps(2,end);
  clip-path: inset(55% 0 0 0);
}
@keyframes glitchTop {
  0%, 88%, 100% { transform: translate(0, 0); opacity: 0; }
  90% { transform: translate(-4px, -2px); opacity: 0.8; }
  92% { transform: translate(3px, 1px); opacity: 0.6; }
  94% { transform: translate(-2px, 2px); opacity: 0.8; }
}
@keyframes glitchBot {
  0%, 88%, 100% { transform: translate(0, 0); opacity: 0; }
  90% { transform: translate(4px, 2px); opacity: 0.7; }
  93% { transform: translate(-3px, -1px); opacity: 0.5; }
  95% { transform: translate(2px, -2px); opacity: 0.7; }
}

.hero-typing { font-family: var(--font-mono); font-size: 1rem; color: var(--text-dim); min-height: 28px; margin-bottom: 34px; }
.hero-typing .prompt { color: var(--green); }
.hero-typing .caret { color: var(--green); animation: blink 0.9s steps(1) infinite; }

.hero-meta { display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--cyan); text-shadow: 0 0 14px rgba(0,240,255,0.5); }
.stat-label { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.2em; }

.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  position: relative; display: inline-block; padding: 14px 26px;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.16em;
  border: 1px solid var(--cyan); color: var(--cyan); overflow: hidden;
  transition: color 0.3s, background 0.3s, box-shadow 0.3s;
}
.btn:hover { color: #041; background: var(--cyan); box-shadow: 0 0 26px rgba(0,240,255,0.6); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,0.25) 6px 8px);
  animation: btnShade 1s linear infinite;
}
@keyframes btnShade { to { transform: translateX(8px); } }
.btn-ghost { border-color: var(--text-dim); color: var(--text-dim); }
.btn-ghost:hover { color: #041; background: var(--text); box-shadow: 0 0 26px rgba(216,228,238,0.5); }
.btn-corner {
  position: absolute; width: 8px; height: 8px; border: 1px solid currentColor;
  top: -1px; left: -1px; border-right: none; border-bottom: none;
}
.btn.full { width: 100%; border: none; background: transparent; color: var(--cyan); }
.btn.full:hover { background: var(--cyan); color: #041; }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em; color: var(--text-dim);
}
.scroll-wheel {
  width: 22px; height: 36px; border: 1px solid var(--cyan-dim); border-radius: 12px; position: relative;
}
.scroll-wheel::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; background: var(--cyan); border-radius: 2px;
  animation: wheelDrop 1.6s ease-in-out infinite;
}
@keyframes wheelDrop {
  0% { top: 6px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 20px; opacity: 0; }
}

/* ══════════ SECTIONS (GENERIC) ══════════ */
.section { position: relative; padding: 110px 0; }
.section-alt {
  background: var(--bg-1);
  border-top: 1px solid rgba(0,240,255,0.1);
  border-bottom: 1px solid rgba(0,240,255,0.1);
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section-header { margin-bottom: 60px; }
.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 16px;
}
.title-num { color: var(--cyan); text-shadow: 0 0 14px rgba(0,240,255,0.6); font-size: 0.5em; }
.svg-draw { width: 180px; height: 36px; }
.svg-draw path { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 200; stroke-dashoffset: 200; }
.section-sub { font-family: var(--font-mono); color: var(--text-dim); letter-spacing: 0.3em; font-size: 0.8rem; margin-top: 10px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.drawn .svg-draw path { animation: drawPath 1.2s ease forwards; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }

/* ══════════ ABOUT / TERMINAL ══════════ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.terminal {
  border: 1px solid var(--cyan-dim); background: var(--panel);
  box-shadow: 0 0 40px rgba(0,240,255,0.06), inset 0 0 40px rgba(0,240,255,0.03);
  position: relative;
}
.terminal::before, .terminal::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--cyan);
}
.terminal::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.terminal::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid rgba(0,240,255,0.15); background: rgba(0,240,255,0.04);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: var(--magenta); }
.dot-y { background: var(--amber); }
.dot-g { background: var(--green); }
.term-title { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); }
.term-body { padding: 20px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.8; color: var(--text-dim); }
.t-prompt { color: var(--green); }
.t-cmd { color: var(--text); }
.t-out { white-space: pre-wrap; }
.t-var { color: var(--cyan); }
.t-val { color: var(--text); }
.ok { color: var(--green); }
.term-body p { margin-bottom: 4px; }

.about-copy h3 { color: var(--cyan); font-size: 1.2rem; margin-bottom: 14px; text-shadow: 0 0 14px rgba(0,240,255,0.4); letter-spacing: 0.2em; }
.about-copy > p { color: var(--text-dim); margin-bottom: 28px; font-size: 1.05rem; }
.principles { display: flex; flex-direction: column; gap: 22px; }
.principle { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid rgba(0,240,255,0.12); background: rgba(0,240,255,0.02); position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.principle::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.06), transparent);
  transition: left 0.6s;
}
.principle:hover { border-color: var(--cyan); transform: translateX(6px); }
.principle:hover::after { left: 100%; }
.principle-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid var(--cyan-dim);
  display: grid; place-items: center; color: var(--cyan);
  animation: iconSpin 10s linear infinite;
}
.principle-icon svg { width: 24px; height: 24px; }
@keyframes iconSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.principle:hover .principle-icon { animation-play-state: paused; }
.principle h4 { font-size: 0.85rem; color: var(--text); margin-bottom: 6px; letter-spacing: 0.16em; }
.principle p { color: var(--text-dim); font-size: 0.95rem; }

/* ══════════ SKILLS ══════════ */
.circuit-bg {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,240,255,0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,61,139,0.05), transparent 40%);
}
.circuit-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,240,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(0,240,255,0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 46px; }
@media (max-width: 950px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-card {
  border: 1px solid rgba(0,240,255,0.14); background: var(--panel); padding: 24px;
  position: relative; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.skill-card:hover { border-color: var(--cyan); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,240,255,0.12); }
.skill-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.skill-code { font-family: var(--font-mono); color: var(--cyan-dim); font-size: 0.8rem; }
.skill-card h3 { font-size: 0.95rem; color: var(--text); letter-spacing: 0.18em; }

.bar-row { margin-bottom: 16px; }
.bar-name { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.1em; }
.bar-val { float: right; font-family: var(--font-mono); font-size: 0.74rem; color: var(--cyan); }
.bar { height: 7px; background: rgba(0,240,255,0.08); margin-top: 6px; position: relative; overflow: hidden; }
.bar i {
  position: absolute; inset: 0; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px var(--cyan);
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar i::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,0.25) 8px 10px);
  animation: btnShade 0.8s linear infinite;
}

.skill-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 26px; }
@media (max-width: 800px) { .skill-strip { grid-template-columns: repeat(2, 1fr); } }
.strip-item { display: flex; align-items: center; gap: 12px; }
.strip-tag { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); min-width: 64px; letter-spacing: 0.1em; }
.strip-bar { height: 4px; flex: 1; background: rgba(0,240,255,0.1); position: relative; overflow: hidden; }
.strip-bar::after {
  content: ""; position: absolute; inset: 0; width: 0%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
  width: var(--w, 0%);
}

/* ══════════ PROJECTS ══════════ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 950px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  border: 1px solid rgba(0,240,255,0.14); background: var(--panel);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.project-card:hover { border-color: var(--cyan); box-shadow: 0 18px 50px rgba(0,240,255,0.14); }
.project-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(0,240,255,0.12);
  font-family: var(--font-mono); font-size: 0.7rem;
}
.project-status { color: var(--text-dim); letter-spacing: 0.16em; }
.project-id { color: var(--cyan-dim); }
.project-visual { position: relative; height: 210px; overflow: hidden; background: var(--bg-0); }
.visual-hud {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--green);
  letter-spacing: 0.22em; border: 1px solid rgba(61,255,139,0.4); padding: 3px 8px;
  background: rgba(4,7,13,0.7); animation: blink 2s steps(1) infinite;
}

/* SLAM visual */
.slam-points { position: absolute; inset: 0; }
.slam-points::before, .slam-points::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--cyan) 1px, transparent 1.4px);
  background-size: 22px 22px; animation: slamShift 6s linear infinite;
}
.slam-points::after { background-size: 34px 34px; animation-direction: reverse; }
@keyframes slamShift { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px; } }
.slam-cam {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 18px;
  border: 2px solid var(--magenta); transform: translate(-50%, -50%);
}
.slam-fov {
  position: absolute; left: 50%; top: 50%; width: 200px; height: 200px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(0,240,255,0.25), transparent 55deg);
  border-radius: 50%;
}
.slam-fov::after {
  content: ""; position: absolute; inset: 0; border: 1px dashed rgba(0,240,255,0.4);
  border-radius: 50%;
}

/* NAV visual */
.nav-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.nav-robot {
  position: absolute; left: 34px; top: 62px; width: 30px; height: 30px;
  border: 2px solid var(--cyan); transform: rotate(0deg);
  animation: robotDrive 5.5s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes robotDrive {
  0% { left: 34px; top: 140px; transform: rotate(0deg); }
  25% { left: 90px; top: 96px; transform: rotate(40deg); }
  50% { left: 150px; top: 60px; transform: rotate(0deg); }
  75% { left: 210px; top: 40px; transform: rotate(12deg); }
  100% { left: 270px; top: 24px; transform: rotate(0deg); }
}
.nav-fov {
  position: absolute; right: -34px; top: 2px; width: 60px; height: 24px;
  background: linear-gradient(90deg, rgba(255,122,26,0.4), transparent);
}
.nav-path svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav-path path {
  fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 5 5;
  animation: dashFlow 1s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -10; } }

/* VIO visual */
.vio-axis { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; animation: vioSpin 8s linear infinite; }
.vio-axis .axis { position: absolute; left: 50%; top: 50%; width: 50%; height: 1.5px; background: var(--cyan); transform-origin: left center; }
.vio-axis .axis::after { content: ""; position: absolute; right: -5px; top: -3px; width: 7px; height: 7px; background: var(--cyan); }
.vio-axis .axis.y { transform: rotate(120deg); background: var(--magenta); }
.vio-axis .axis.y::after { background: var(--magenta); }
.vio-axis .axis.z { transform: rotate(240deg); background: var(--green); }
.vio-axis .axis.z::after { background: var(--green); }
@keyframes vioSpin { from { transform: translate(-50%,-50%) rotateX(12deg) rotate(0); } to { transform: translate(-50%,-50%) rotateX(12deg) rotate(360deg); } }
.vio-cube {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid var(--cyan); box-shadow: 0 0 18px rgba(0,240,255,0.4);
}
.vio-cube::before { content: ""; position: absolute; inset: -8px; border: 1px dashed rgba(0,240,255,0.4); }

.project-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1rem; color: var(--text); margin-bottom: 10px; letter-spacing: 0.1em; line-height: 1.4; }
.project-body p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.project-tags span {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--cyan);
  border: 1px solid var(--cyan-dim); padding: 3px 9px; letter-spacing: 0.1em;
  transition: background 0.25s, color 0.25s;
}
.project-tags span:hover { background: var(--cyan); color: #041; }
.project-links { margin-top: auto; display: flex; gap: 18px; }
.link-mono { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); letter-spacing: 0.12em; position: relative; transition: color 0.25s; }
.link-mono:hover { color: var(--magenta); }

/* ══════════ TIMELINE ══════════ */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 30px; }
.timeline-line {
  position: absolute; left: 7px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, var(--cyan-dim) 0 6px, transparent 6px 12px);
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-node {
  position: absolute; left: -30px; top: 8px; width: 16px; height: 16px;
  border: 2px solid var(--cyan); background: var(--bg-0);
  display: grid; place-items: center;
}
.tl-node::before {
  content: ""; width: 5px; height: 5px; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.tl-ring { position: absolute; inset: -3px; border: 1px solid var(--cyan); animation: ringPulse 2s ease-out infinite; }
@keyframes ringPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.tl-card {
  border: 1px solid rgba(0,240,255,0.14); background: var(--panel); padding: 20px 22px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.tl-card:hover { border-color: var(--cyan); transform: translateX(8px); box-shadow: 0 10px 34px rgba(0,240,255,0.1); }
.tl-year { font-family: var(--font-mono); font-size: 0.7rem; color: var(--cyan); letter-spacing: 0.2em; }
.tl-card h3 { font-size: 1rem; color: var(--text); margin: 8px 0; letter-spacing: 0.12em; }
.tl-card p { color: var(--text-dim); font-size: 0.95rem; }
.tl-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tl-tags span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--magenta); border: 1px solid rgba(255,61,139,0.3); padding: 2px 8px; }

/* ══════════ CONTACT ══════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid rgba(0,240,255,0.14); background: rgba(0,240,255,0.02);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; position: relative;
}
.channel:hover { border-color: var(--cyan); transform: translateX(6px); box-shadow: 0 8px 30px rgba(0,240,255,0.1); }
.channel-icon {
  width: 44px; height: 44px; border: 1px solid var(--cyan-dim); display: grid; place-items: center;
  color: var(--cyan); font-size: 1.1rem; flex: 0 0 auto;
}
.channel-label { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.22em; }
.channel-value { font-size: 1.02rem; color: var(--text); }
.channel-arrow { margin-left: auto; color: var(--cyan-dim); transition: transform 0.3s, color 0.3s; }
.channel:hover .channel-arrow { transform: translateX(4px); color: var(--cyan); }
.channel-location { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px dashed var(--cyan-dim); }

.contact-form { border: 1px solid var(--cyan-dim); padding: 28px; background: var(--panel); position: relative; }
.contact-form::before, .contact-form::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--cyan);
}
.contact-form::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.contact-form::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--cyan);
  letter-spacing: 0.2em; margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; background: var(--bg-0); border: 1px solid rgba(0,240,255,0.2);
  color: var(--text); font-family: var(--font-mono); font-size: 0.88rem;
  padding: 12px 14px; letter-spacing: 0.06em; transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 16px rgba(0,240,255,0.2);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--magenta);
  box-shadow: 0 0 16px rgba(255,61,139,0.25);
}
.form-status { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); margin-top: 14px; min-height: 20px; }
.form-status-error { color: var(--magenta); }

/* ══════════ 3D ROBOTICS (HERO DRONE + ARM LAB) ══════════ */
.hero-robot3d {
  position: absolute; right: 4vw; top: 50%; transform: translateY(-42%);
  width: 380px; height: 420px; z-index: 2;
}
.hero-robot3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hud-label {
  position: absolute; top: 4px; left: 4px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.28em;
  color: var(--green); border: 1px solid rgba(61, 255, 139, 0.4);
  padding: 3px 8px; background: rgba(4, 7, 13, 0.6);
  animation: blink 2s steps(1) infinite;
}
@media (max-width: 1080px) { .hero-robot3d { width: 280px; height: 320px; right: 2vw; } }
@media (max-width: 760px) { .hero-robot3d { display: none; } }

/* Robot Arm Lab */
.armlab-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: stretch; }
@media (max-width: 950px) { .armlab-grid { grid-template-columns: 1fr; } }
.armlab-canvas {
  position: relative; min-height: 440px;
  border: 1px solid var(--cyan-dim); background:
    radial-gradient(circle at 50% 40%, rgba(0, 240, 255, 0.05), transparent 60%),
    var(--bg-0);
  overflow: hidden;
}
.armlab-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.armlab-hud {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em;
  color: var(--cyan); border: 1px solid var(--cyan-dim); padding: 4px 10px;
  background: rgba(4, 7, 13, 0.75);
}
.armlab-coords {
  position: absolute; bottom: 12px; left: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--green);
  border: 1px solid rgba(61, 255, 139, 0.35); padding: 5px 10px;
  background: rgba(4, 7, 13, 0.75); letter-spacing: 0.08em;
}

.armlab-console {
  border: 1px solid var(--cyan-dim); background: var(--panel);
  padding: 22px; display: flex; flex-direction: column;
}
.console-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15); padding-bottom: 12px; margin-bottom: 18px;
}
.console-title { color: var(--text); }
.console-mode {
  margin-left: auto; color: var(--cyan); border: 1px solid var(--cyan-dim); padding: 2px 8px;
  font-size: 0.6rem;
}
.joints { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.joint-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; margin-bottom: 6px; }
.joint-name { color: var(--text-dim); }
.joint-val { color: var(--cyan); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: rgba(0, 240, 255, 0.12); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
  background: var(--bg-0); border: 2px solid var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  border-radius: 0;
  transition: background 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { background: var(--cyan); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--bg-0); border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5); border-radius: 0;
}
input[type="range"]::-moz-range-track { height: 6px; background: rgba(0, 240, 255, 0.12); }

.console-actions { display: flex; gap: 12px; margin-top: auto; }
.console-actions .btn { padding: 10px 16px; font-size: 0.74rem; }
.arm-status {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--green);
  margin-top: 14px; min-height: 18px;
}

/* ══════════ TRANSMISSION SUCCESS OVERLAY ══════════ */
.transmit-modal {
  position: fixed; inset: 0; z-index: 8500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.transmit-modal.open { opacity: 1; visibility: visible; }
.transmit-backdrop {
  position: absolute; inset: 0; background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(6px);
}
.transmit-panel {
  position: relative; width: min(460px, 94vw); padding: 44px 36px 34px;
  background: var(--bg-1); border: 1px solid var(--cyan);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.2), inset 0 0 60px rgba(0, 240, 255, 0.05);
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  overflow: hidden;
}
.transmit-modal.open .transmit-panel { transform: scale(1) translateY(0); }
.transmit-panel::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  animation: scanLine 3.2s linear infinite;
}
@keyframes scanLine { from { left: -100%; } to { left: 100%; } }
.txn-corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--cyan); }
.txn-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.txn-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.txn-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.txn-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.txn-signal { position: relative; width: 104px; height: 104px; margin: 0 auto 22px; }
.txn-ring { position: absolute; inset: 0; border: 1px solid var(--cyan); border-radius: 50%; opacity: 0; }
.transmit-modal.open .txn-ring { animation: txnPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
.transmit-modal.open .txn-ring.r2 { animation-delay: 0.8s; }
.transmit-modal.open .txn-ring.r3 { animation-delay: 1.6s; }
@keyframes txnPing { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.txn-check-svg { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; }
.txn-check-circle, .txn-check-mark { stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.txn-check-circle {
  stroke-dasharray: 152; stroke-dashoffset: 152;
  animation: txnDraw 0.9s ease-out 0.25s forwards;
}
.txn-check-mark {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: txnDraw 0.5s ease-out 1.15s forwards;
  filter: drop-shadow(0 0 8px var(--green));
}
@keyframes txnDraw { to { stroke-dashoffset: 0; } }

.txn-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.34em;
  color: var(--cyan); margin-bottom: 8px; opacity: 0;
  animation: txnFadeUp 0.5s ease 1.5s forwards;
}
.txn-title {
  font-size: 1.35rem; color: var(--text); letter-spacing: 0.14em; margin-bottom: 12px;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.4); opacity: 0;
  animation: txnFadeUp 0.5s ease 1.65s forwards;
}
.txn-desc { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; opacity: 0; animation: txnFadeUp 0.5s ease 1.8s forwards; }
@keyframes txnFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.txn-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 22px; opacity: 0; animation: txnFadeUp 0.5s ease 1.95s forwards;
}
.txn-field { border: 1px solid rgba(0, 240, 255, 0.18); padding: 10px 6px; background: rgba(0, 240, 255, 0.04); }
.txn-field span { display: block; font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-dim); letter-spacing: 0.2em; margin-bottom: 5px; }
.txn-field b { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); font-weight: 400; word-break: break-word; }
.txn-ok { color: var(--green) !important; text-shadow: 0 0 8px rgba(61, 255, 139, 0.5); }

.txn-strength { margin-bottom: 26px; opacity: 0; animation: txnFadeUp 0.5s ease 2.1s forwards; }
.txn-strength-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.3em; display: block; margin-bottom: 8px; }
.txn-bars { display: flex; justify-content: center; gap: 5px; align-items: flex-end; height: 22px; }
.txn-bars i { width: 6px; background: var(--green); box-shadow: 0 0 8px rgba(61, 255, 139, 0.5); animation: txnBar 1s ease-in-out infinite; }
.txn-bars i:nth-child(1) { height: 8px; }
.txn-bars i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.txn-bars i:nth-child(3) { height: 16px; animation-delay: 0.3s; }
.txn-bars i:nth-child(4) { height: 20px; animation-delay: 0.45s; }
.txn-bars i:nth-child(5) { height: 22px; animation-delay: 0.6s; }
@keyframes txnBar { 0%, 100% { opacity: 0.4; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }
.txn-close { opacity: 0; animation: txnFadeUp 0.5s ease 2.25s forwards; }

@media (max-width: 520px) { .txn-meta { grid-template-columns: 1fr; } }

/* ══════════ FOOTER ══════════ */
.footer { border-top: 1px solid rgba(0,240,255,0.14); padding: 26px 24px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.14em;
}
.footer-mid { display: flex; align-items: center; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(4,7,13,0.97); border-bottom: 1px solid var(--cyan-dim);
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-bottom: 1px solid rgba(0,240,255,0.08); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-meta { gap: 24px; }
  .hud { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════ EASTER EGG STATES ══════════ */
.hack-banner {
  position: fixed; top: 74px; left: 50%; transform: translate(-50%, -20px);
  z-index: 9200; padding: 10px 22px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--green); background: rgba(4, 7, 13, 0.92);
  border: 1px solid var(--green); box-shadow: 0 0 24px rgba(61, 255, 139, 0.35);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  animation: glitchTop 3.5s infinite steps(2,end);
}
.hack-banner.show { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
@media (max-width: 640px) { .hack-banner { font-size: 0.62rem; padding: 8px 14px; } }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 16px);
  z-index: 9200; padding: 12px 22px; max-width: 90vw; text-align: center;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  color: var(--cyan); background: rgba(4, 7, 13, 0.94);
  border: 1px solid var(--cyan-dim); border-left: 3px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.18);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); visibility: visible; }

.gear-field { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.egg-gear {
  position: absolute; width: 42px; height: 42px; opacity: 0;
  border: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  transition: opacity 1.2s ease;
}
.egg-gear::before, .egg-gear::after {
  content: ""; position: absolute; inset: -6px;
  border: 2px solid rgba(0, 240, 255, 0.4); border-radius: 50%;
}
.egg-gear::before { border-width: 8px 2px 2px 2px; transform: rotate(45deg); }
.egg-gear::after { border-width: 2px 2px 8px 2px; transform: rotate(45deg); }
body.hacked .egg-gear { opacity: 1; animation: gearSpin var(--dur, 6s) linear infinite; }
@keyframes gearSpin { to { transform: rotate(360deg); } }

body.hacked .overlay-scanlines {
  background: repeating-linear-gradient(0deg, transparent 0 1px, rgba(0, 0, 0, 0.28) 1px 3px);
}
body.hacked .hero-title { animation: hackShake 0.5s ease; }
@keyframes hackShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 2px) skewX(-2deg); }
  40% { transform: translate(5px, -2px) skewX(2deg); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -1px); }
}
body.hacked .glitch.accent {
  color: var(--magenta);
  text-shadow: 0 0 22px rgba(255, 61, 139, 0.7);
}
body.hacked .nav-links a::before { color: var(--magenta); }
body.hacked .btn-primary { border-color: var(--magenta); color: var(--magenta); }
body.hacked .btn-primary:hover { background: var(--magenta); color: #041; box-shadow: 0 0 26px rgba(255, 61, 139, 0.6); }

body.harshmode {
  --cyan: #ff3d8b;
  --cyan-dim: rgba(255, 61, 139, 0.35);
  --green: var(--amber);
}
body.harshmode .hero-title .glitch.accent { color: var(--magenta); text-shadow: 0 0 20px rgba(255, 61, 139, 0.5); }

.radar.overload { border-color: var(--magenta); }
.radar.overload .radar-sweep { animation-duration: 0.6s; }
.radar.overload .radar-blip { animation-duration: 0.6s; }
