/* ═══════════════════════════════════════════════════════════════
   SCRIPTZ STUDIO // FUTURISTIC GAME UI DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* ━━━━━  CUSTOM PROPERTIES  ━━━━━ */
:root {
  --bg: #020408;
  --bg-2: #060c14;
  --bg-3: #0a1422;
  --cyan: #00f5ff;
  --cyan-dim: rgba(0, 245, 255, 0.15);
  --cyan-glow: rgba(0, 245, 255, 0.4);
  --amber: #ff9d00;
  --amber-dim: rgba(255, 157, 0, 0.15);
  --amber-glow: rgba(255, 157, 0, 0.4);
  --red: #ff2d55;
  --red-dim: rgba(255, 45, 85, 0.15);
  --text: #e0e8f0;
  --text-dim: #8fa3bb;
  --muted: #1e2d3d;
  --border: rgba(0, 245, 255, 0.2);
  --border-amber: rgba(255, 157, 0, 0.2);
  --font-head: 'Orbitron', monospace;
  --font-body: 'Share Tech Mono', monospace;
  --font-ui: 'Rajdhani', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-cyan: 0 0 20px var(--cyan-glow), 0 0 60px rgba(0,245,255,0.15);
  --glow-amber: 0 0 20px var(--amber-glow), 0 0 60px rgba(255,157,0,0.1);
}

/* ━━━━━  RESET & BASE  ━━━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Scanlines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Selection */
::selection { background: var(--cyan-dim); color: var(--cyan); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

/* ━━━━━  CROSSHAIR CURSOR  ━━━━━
   STATE 1 — default : circle only
   STATE 2 — expanded : crosshair animates out
   STATE 3 — firing  : red burst click ring
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#crosshair {
  position: fixed;
  width: 56px;
  height: 56px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

/* Hide persistent crosshair on touch devices/mobile */
@media (max-width: 768px) {
  #crosshair .ch-dot,
  #crosshair .ch-ring,
  #crosshair .ch-line,
  #crosshair .ch-corner {
    display: none !important;
  }
}

/* ─── Center dot (always visible) ─── */
.ch-dot {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--cyan), 0 0 18px rgba(0,245,255,0.45);
  z-index: 3;
  transition: background 0.1s ease, box-shadow 0.1s ease;
}

/* ─── Slowly spinning outer ring (always visible) ─── */
.ch-ring {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid rgba(0,245,255,0.5);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: chSpin 10s linear infinite;
  transition: width 0.2s ease, height 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease,
              animation-duration 0.2s ease;
}

/* ─── Click burst ring (hidden until .firing) ─── */
.ch-click-ring {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
}

/* ─── Tick lines — collapsed at center by default ─── */
.ch-line {
  position: absolute;
  background: var(--cyan);
  box-shadow: 0 0 5px rgba(0,245,255,0.8);
  /* default: invisible, sitting near center */
  opacity: 0;
  transition: top    0.18s cubic-bezier(0.22,1,0.36,1),
              bottom 0.18s cubic-bezier(0.22,1,0.36,1),
              left   0.18s cubic-bezier(0.22,1,0.36,1),
              right  0.18s cubic-bezier(0.22,1,0.36,1),
              width  0.18s cubic-bezier(0.22,1,0.36,1),
              height 0.18s cubic-bezier(0.22,1,0.36,1),
              opacity 0.15s ease,
              background 0.1s ease,
              box-shadow 0.1s ease;
}

/* Vertical ticks */
.ch-top, .ch-bottom {
  width: 1px;
  left: 50%; transform: translateX(-50%);
}
/* Horizontal ticks */
.ch-left, .ch-right {
  height: 1px;
  top: 50%; transform: translateY(-50%);
}

/* Default (hidden) positions — all collapsed to center */
.ch-top    { height: 0; top:    calc(50% - 0px); }
.ch-bottom { height: 0; bottom: calc(50% - 0px); }
.ch-left   { width:  0; left:   calc(50% - 0px); }
.ch-right  { width:  0; right:  calc(50% - 0px); }

/* ─── Corner brackets — hidden by default ─── */
.ch-corner {
  position: absolute;
  width: 7px; height: 7px;
  border-color: rgba(0,245,255,0.6);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease,
              left 0.18s ease, right 0.18s ease, border-color 0.1s ease;
}
.ch-c-tl { top: 5px;  left: 5px;  border-width: 1px 0 0 1px; }
.ch-c-tr { top: 5px;  right: 5px; border-width: 1px 1px 0 0; }
.ch-c-br { bottom: 5px; right: 5px; border-width: 0 1px 1px 0; }
.ch-c-bl { bottom: 5px; left: 5px;  border-width: 0 0 1px 1px; }

/* ════════════════════════════════════
   STATE 2 — EXPANDED (hover over element)
   Ring spins fast + glows, dot breathes,
   ticks flicker, corners rotate alive
   ════════════════════════════════════ */

/* Ring: grows + spins fast + pulsing glow */
#crosshair.expanded .ch-ring {
  width: 36px; height: 36px;
  border-color: var(--cyan);
  animation: chSpin 1.5s linear infinite, chRingPulse 1.2s ease-in-out infinite;
}

/* Dot: breathing scale + intensity pulse */
#crosshair.expanded .ch-dot {
  animation: chDotBreathe 0.9s ease-in-out infinite;
}

/* Ticks shoot out from center with flicker */
#crosshair.expanded .ch-top    { height: 9px; top:    4px; opacity: 1; animation: chTickFlicker 1.4s ease-in-out infinite; }
#crosshair.expanded .ch-bottom { height: 9px; bottom: 4px; opacity: 1; animation: chTickFlicker 1.4s ease-in-out infinite 0.35s; }
#crosshair.expanded .ch-left   { width:  9px; left:   4px; opacity: 1; animation: chTickFlicker 1.4s ease-in-out infinite 0.7s; }
#crosshair.expanded .ch-right  { width:  9px; right:  4px; opacity: 1; animation: chTickFlicker 1.4s ease-in-out infinite 1.05s; }

/* Corner brackets slide in + subtle rotate pulse */
#crosshair.expanded .ch-corner  { opacity: 1; animation: chCornerPulse 1.8s ease-in-out infinite; }
#crosshair.expanded .ch-c-tl    { top: 2px;    left: 2px;   }
#crosshair.expanded .ch-c-tr    { top: 2px;    right: 2px;  }
#crosshair.expanded .ch-c-br    { bottom: 2px; right: 2px;  }
#crosshair.expanded .ch-c-bl    { bottom: 2px; left: 2px;   }

/* ════════════════════════════════════
   STATE 3 — FIRING (mousedown click)
   Everything flashes red + burst ring
   ════════════════════════════════════ */
#crosshair.firing .ch-dot {
  background: var(--red);
  box-shadow: 0 0 14px var(--red), 0 0 28px rgba(255,45,85,0.5);
}

#crosshair.firing .ch-ring {
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(255,45,85,0.4);
}

#crosshair.firing .ch-line {
  background: var(--red);
  box-shadow: 0 0 6px rgba(255,45,85,0.9);
}

#crosshair.firing .ch-corner {
  border-color: rgba(255,45,85,0.7);
}

/* Expanding burst ring on click */
#crosshair.firing .ch-click-ring {
  animation: chBurst 0.35s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

/* ─── Keyframes ─── */
@keyframes chSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ring breathes with glow */
@keyframes chRingPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0,245,255,0.2); }
  50%       { box-shadow: 0 0 18px rgba(0,245,255,0.55), 0 0 36px rgba(0,245,255,0.15); }
}

/* Center dot scale-breathe */
@keyframes chDotBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   box-shadow: 0 0 8px var(--cyan); }
  50%       { transform: translate(-50%, -50%) scale(2.2); box-shadow: 0 0 16px var(--cyan), 0 0 28px rgba(0,245,255,0.5); }
}

/* Tick lines flicker like a targeting scan */
@keyframes chTickFlicker {
  0%, 100% { opacity: 1; }
  40%       { opacity: 0.35; }
  60%       { opacity: 0.9; }
}

/* Corner bracket brightness pulse */
@keyframes chCornerPulse {
  0%, 100% { border-color: rgba(0,245,255,0.45); }
  50%       { border-color: rgba(0,245,255,1);    box-shadow: 0 0 6px rgba(0,245,255,0.4); }
}

@keyframes chBurst {
  0%   { transform: translate(-50%, -50%) scale(0.9);  opacity: 1;   border-color: var(--red); }
  60%  { transform: translate(-50%, -50%) scale(2.2);  opacity: 0.6; border-color: var(--red); }
  100% { transform: translate(-50%, -50%) scale(3);    opacity: 0;   border-color: var(--red); }
}

/* ━━━━━  PRELOADER  ━━━━━ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content { text-align: center; }

.boot-logo {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 2rem;
  animation: flicker 3s infinite;
}

.boot-bracket { color: var(--amber); }

.boot-sequence {
  text-align: left;
  margin-bottom: 2rem;
  min-width: 360px;
}

.boot-line {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 3px 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.boot-line.active {
  opacity: 1;
  transform: translateX(0);
  color: var(--cyan);
}

.boot-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.boot-bar {
  flex: 1;
  height: 2px;
  background: var(--muted);
  position: relative;
}

.boot-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--cyan);
}

.boot-pct {
  font-size: 0.75rem;
  color: var(--cyan);
  min-width: 35px;
}

.boot-ready {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--cyan);
  opacity: 0;
  letter-spacing: 0.3em;
  animation: pulseText 1s infinite;
}

.boot-ready.show { opacity: 1; }

/* ━━━━━  NAVIGATION  ━━━━━ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(2,4,8,0.95) 0%, rgba(2,4,8,0.7) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

#navbar.scrolled {
  background: rgba(2,4,8,0.98);
  border-bottom-color: var(--cyan);
  box-shadow: 0 2px 30px rgba(0,245,255,0.05);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
  transition: transform var(--transition);
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px var(--cyan));
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 2rem;
}

.status-dot {
  width: 6px; height: 6px;
  background: #00ff88;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 8px #00ff88;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin-left: auto;
}

.nav-item {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  position: relative;
  transition: color var(--transition);
}

.nav-item::before {
  content: attr(data-index);
  position: absolute;
  top: -0.3rem;
  left: 0.3rem;
  font-size: 0.5rem;
  color: var(--cyan);
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  box-shadow: 0 0 8px var(--cyan);
}

.nav-item:hover, .nav-item.active {
  color: var(--cyan);
}

.nav-item:hover::before, .nav-item.active::before { opacity: 1; }
.nav-item:hover::after, .nav-item.active::after { transform: scaleX(1); }

.nav-item.cta-link {
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
}
.nav-item.cta-link:hover { background: var(--cyan-dim); border-color: var(--cyan); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--cyan);
  transition: var(--transition);
}

/* ━━━━━  HERO SECTION  ━━━━━ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.25) saturate(1.5);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(0,245,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(2,4,8,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 4rem 2rem 4rem 8vw;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tag-text {
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.tag-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 80px rgba(0,245,255,0.2);
}

.title-accent {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 550px;
  margin-bottom: 2.5rem;
  min-height: 2.5em;
}

.hero-subtitle::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--cyan);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hstat { text-align: center; }
.hstat-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
}
.hstat-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}
.hstat-divider {
  color: var(--border);
  font-size: 1.5rem;
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.scroll-arrow span {
  display: block;
  width: 8px; height: 8px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  transform: rotate(45deg);
  opacity: 0;
  animation: scrollFade 1.5s infinite;
}

.scroll-arrow span:nth-child(2) { animation-delay: 0.15s; }
.scroll-arrow span:nth-child(3) { animation-delay: 0.3s; }

/* HUD Corners */
.hud-corner {
  position: absolute;
  width: 30px; height: 30px;
  z-index: 10;
}

.hud-tl { top: 80px; left: 1.5rem; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.hud-tr { top: 80px; right: 1.5rem; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.hud-bl { bottom: 1.5rem; left: 1.5rem; border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.hud-br { bottom: 1.5rem; right: 1.5rem; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }

.hud-coords {
  position: absolute;
  bottom: 1.5rem;
  right: 3rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  z-index: 10;
  letter-spacing: 0.1em;
}

.hud-coords .sep { color: var(--cyan); }

/* ━━━━━  BUTTONS  ━━━━━ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-dim), rgba(0,245,255,0.05));
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,245,255,0.3), rgba(0,245,255,0.1));
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(2, 4, 8, 0.4);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.25);
  background: rgba(0, 245, 255, 0.08);
}

.btn-bracket { color: var(--amber); font-size: 1em; }

.btn-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,245,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover .btn-scan { transform: translateX(100%); }

.btn-full { width: 100%; justify-content: center; }

.back-nav-btn {
  position: absolute;
  top: 100px;
  left: 2rem;
  z-index: 100;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  padding: 8px 15px;
  border-left: 2px solid var(--cyan);
  background: rgba(0, 245, 255, 0.03);
}

.back-nav-btn:hover {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.08);
  padding-left: 20px;
}

@media (max-width: 768px) {
  .back-nav-btn {
    top: 90px;
    left: 1rem;
    font-size: 0.6rem;
  }
}

/* ━━━━━  SECTIONS  ━━━━━ */
.section { padding: 7rem 0; position: relative; }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.title-underline {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  margin: 1rem auto 0;
  position: relative;
  box-shadow: var(--glow-cyan);
}

.title-underline::after {
  content: '';
  position: absolute;
  right: -15px; top: -3px;
  width: 8px; height: 8px;
  background: var(--cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ━━━━━  ABOUT SECTION  ━━━━━ */
#about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hud-frame {
  position: relative;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0,245,255,0.3), transparent 40%, rgba(255,157,0,0.3));
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.hud-frame-inner {
  background: var(--bg-3);
  padding: 2.5rem;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
  background: var(--cyan-dim);
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.about-desc {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--cyan);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  transition: all var(--transition);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.stat-card:hover {
  border-color: var(--cyan);
  box-shadow: inset 0 0 20px rgba(0,245,255,0.05), var(--glow-cyan);
}

.stat-icon {
  color: var(--cyan);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.stat-bar {
  width: 100%;
  height: 2px;
  background: var(--muted);
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
  width: 0%;
  transition: width 1.5s ease 0.3s;
}

/* Ticker */
.ticker-wrap {
  margin-top: 4rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  position: relative;
}

.ticker {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-family: var(--font-head);
  color: var(--text-dim);
  letter-spacing: 0.15em;
  padding: 0 2rem;
}

.ticker-sep { color: var(--cyan) !important; padding: 0 0.5rem !important; }

/* ━━━━━  SERVICES SECTION  ━━━━━ */
.services-section { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s ease;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  cursor: none;
}

.service-card:hover {
  border-color: var(--cyan);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,245,255,0.1), inset 0 0 30px rgba(0,245,255,0.03);
}

.svc-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.svc-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.7) brightness(0.8);
}

/* Color-correct legacy purple images to Amber */
img[src*="service-game"],
img[src*="service-interactive"],
img[src*="service-webdev"],
img[src*="service-uiux"],
.work-img {
  filter: saturate(1.8) hue-rotate(145deg) brightness(0.8) !important;
}

.service-card:hover .svc-img {
  transform: scale(1.1);
  filter: saturate(1.2) brightness(0.9);
}

.svc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,4,8,0.2) 0%, rgba(2,4,8,0.8) 100%);
}

.svc-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,245,255,0.08) 50%, transparent 100%);
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

.service-card:hover .svc-scan { transform: translateY(100%); }

.svc-content { padding: 1.5rem; }

.svc-number {
  font-family: var(--font-head);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.svc-icon {
  width: 36px; height: 36px;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  transition: transform var(--transition);
}

.service-card:hover .svc-icon { transform: scale(1.2); color: var(--cyan); }

.svc-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.service-card:hover .svc-title { color: var(--cyan); }

.svc-desc {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.svc-tags span {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-amber);
  color: var(--amber);
  background: var(--amber-dim);
}

/* Corner decorations */
.svc-corner-tl, .svc-corner-br {
  position: absolute;
  width: 15px; height: 15px;
}

.svc-corner-tl { top: 0; right: 0; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); opacity: 0; transition: opacity var(--transition); }
.svc-corner-br { bottom: 0; left: 0; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); opacity: 0; transition: opacity var(--transition); }
.service-card:hover .svc-corner-tl, .service-card:hover .svc-corner-br { opacity: 1; }

/* ━━━━━  WORKS SECTION  ━━━━━ */
.works-section { background: var(--bg-2); }

.redacted {
  color: var(--red);
  text-shadow: 0 0 10px var(--red);
  animation: glitchFlash 4s infinite;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,245,255,0.1);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  cursor: none;
}

.work-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 15px 50px rgba(0,245,255,0.1);
}

.work-card.hidden {
  display: none;
}

.work-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.work-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(0.6) brightness(0.7);
}

.work-card:hover .work-img {
  transform: scale(1.08);
  filter: saturate(1) brightness(0.8);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,4,8,0.1) 0%, rgba(2,4,8,0.92) 100%);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-overlay { opacity: 1; }

.work-overlay-content {
  padding: 1.5rem;
  width: 100%;
}

.work-status {
  font-size: 0.6rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.4rem;
}

.work-overlay-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.work-overlay-type {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.work-view-btn {
  font-family: var(--font-head);
  font-size: 0.65rem;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
}

.work-info {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.work-id {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.work-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text);
  flex: 1;
}

.work-tag {
  font-size: 0.55rem;
  color: var(--amber);
  border: 1px solid var(--border-amber);
  background: var(--amber-dim);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ━━━━━  COUNTER SECTION  ━━━━━ */
.counter-section {
  position: relative;
  padding: 5rem 0;
  background: var(--bg-3);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.counter-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.counter-item {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  background: rgba(0,245,255,0.02);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: all var(--transition);
}

.counter-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0,245,255,0.08);
}

.counter-val {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.counter-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}

/* ━━━━━  CONTACT SECTION  ━━━━━ */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-inner {
  padding: 2rem 0;
}

.contact-sub {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-desc {
  font-family: var(--font-ui);
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details { margin-bottom: 2rem; }

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--muted);
}

.detail-icon { color: var(--cyan); font-size: 0.8rem; margin-top: 0.2rem; }
.detail-label { font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.15em; margin-bottom: 0.25rem; }
.detail-val { font-family: var(--font-ui); font-size: 0.95rem; color: var(--text); }

.online-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.online-dot {
  width: 8px; height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 8px #00ff88;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: all var(--transition);
}

.social-btn svg { width: 18px; height: 18px; }

.social-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 20px rgba(0,245,255,0.15);
}

/* Terminal Form */
.terminal-frame {
  background: var(--bg-3);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,245,255,0.03);
}

.terminal-dots { display: flex; gap: 5px; }
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.terminal-dots span:first-child { background: var(--red); }
.terminal-dots span:nth-child(2) { background: #f0c040; }
.terminal-dots span:nth-child(3) { background: #00ff88; }

.terminal-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-dim);
  flex: 1;
}

.terminal-version { font-size: 0.65rem; color: var(--text-dim); }

.contact-form { padding: 2rem; }

.form-group { margin-bottom: 1.5rem; position: relative; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0;
  outline: none;
  transition: all var(--transition);
  appearance: none;
}

.form-input:focus { border-bottom-color: var(--cyan); }
.form-input::placeholder { color: var(--muted); }

.form-select {
  cursor: pointer;
}

.form-select option {
  background: var(--bg-3);
  color: var(--text);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--cyan);
}

.form-group:focus-within .form-line { width: 100%; }

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: #00ff88;
  font-size: 0.8rem;
  padding-top: 1rem;
  letter-spacing: 0.1em;
}

.form-success.show { display: flex; }

.success-icon {
  width: 24px; height: 24px;
  border: 1px solid #00ff88;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ━━━━━  FOOTER  ━━━━━ */
#footer {
  background: var(--bg-2);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-top-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
  margin-bottom: 3rem;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.1em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
}

.footer-copy {
  font-size: 0.65rem;
  color: var(--muted);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  letter-spacing: 0.1em;
  margin-top: 1rem;
}

.footer-loc { color: var(--cyan); }

.footer-scan-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
  animation: scanMove 4s ease-in-out infinite;
}

/* ━━━━━  SCROLL REVEAL ANIMATIONS  ━━━━━ */
.reveal-text, .reveal-block, .counter-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-text.revealed, .reveal-block.revealed, .counter-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ━━━━━  GLITCH TEXT  ━━━━━ */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text.glitching::before,
.glitch-text.glitching::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.glitch-text.glitching::before {
  color: var(--cyan);
  clip-path: polygon(0 25%, 100% 25%, 100% 40%, 0 40%);
  transform: translateX(-3px);
  animation: glitch1 0.2s steps(1) infinite;
}

.glitch-text.glitching::after {
  color: var(--red);
  clip-path: polygon(0 65%, 100% 65%, 100% 75%, 0 75%);
  transform: translateX(3px);
  animation: glitch2 0.2s steps(1) infinite;
}

/* ━━━━━  KEYFRAME ANIMATIONS  ━━━━━ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulseText {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.6; }
  97% { opacity: 1; }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollFade {
  0% { opacity: 0; transform: rotate(45deg) translate(-6px, -6px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(6px, 6px); }
}

@keyframes scanMove {
  0%, 100% { opacity: 0.3; transform: scaleX(0.3) translateX(-100%); }
  50% { opacity: 1; transform: scaleX(1) translateX(0); }
}

@keyframes glitch1 {
  0% { transform: translateX(-3px) skewX(2deg); }
  50% { transform: translateX(3px) skewX(-2deg); }
  100% { transform: translateX(-3px) skewX(2deg); }
}

@keyframes glitch2 {
  0% { transform: translateX(3px); }
  50% { transform: translateX(-3px); }
  100% { transform: translateX(3px); }
}

@keyframes glitchFlash {
  0%, 90%, 100% { opacity: 1; }
  92% { opacity: 0.3; }
  94% { opacity: 1; }
  96% { opacity: 0.5; }
}

/* ━━━━━  RESPONSIVE  ━━━━━ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(2,4,8,0.98); border-bottom: 1px solid var(--border); padding: 2rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { padding: 4rem 2rem; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .hud-corner { display: none; }
}
