/* ==========================================================================
   Base tokens — shared by the portfolio site and the 3D world
   ========================================================================== */
:root {
  --bg: #07080d;
  --bg-2: #0b0d15;
  --surface: #10131d;
  --surface-2: #151927;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f7;
  --text-2: #a4a9bd;
  --text-3: #6d7288;
  /* Single navy/blue brand hue (from the ASTRO logo) plus white and black —
     --accent-2 and --gold are tints of the same hue, not separate colors. */
  --accent: #0a72ff;
  --accent-2: #4da8ff;
  --gold: #7fc1ff;
  --chip-bg: rgba(255, 255, 255, 0.03);
  --tech-bg: rgba(255, 255, 255, 0.05);
  --overlay-1: rgba(255, 255, 255, 0.04);
  --hover-overlay: rgba(255, 255, 255, 0.06);
  --hover-line: rgba(255, 255, 255, 0.3);
  --nav-bg: rgba(7, 8, 13, 0.72);
  --menu-bg: rgba(5, 8, 15, 0.985);
  --drive-bg: linear-gradient(120deg, #131a33, #0d0f1c 60%);
  --drive-art-bg: linear-gradient(#182347, #0c1020);
  --hero-mid: #9cc8ff;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light theme — same navy/blue brand hue (from the ASTRO logo), on white
   instead of near-black; no separate accent color. */
:root[data-theme='light'] {
  --bg: #f6f9fd;
  --bg-2: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --line: rgba(10, 20, 40, 0.1);
  --line-2: rgba(10, 20, 40, 0.16);
  --text: #0b1830;
  --text-2: #4a5570;
  --text-3: #7c869c;
  --accent: #0a72ff;
  --accent-2: #1f6fe0;
  --gold: #1d5fc2;
  --chip-bg: rgba(10, 20, 40, 0.04);
  --tech-bg: rgba(10, 20, 40, 0.05);
  --overlay-1: rgba(10, 20, 40, 0.04);
  --hover-overlay: rgba(10, 20, 40, 0.06);
  --hover-line: rgba(10, 20, 40, 0.3);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --drive-bg: linear-gradient(120deg, #dde9fb, #eef3fa 60%);
  --drive-art-bg: linear-gradient(#dde9fb, #c9ddf7);
  --hero-mid: #1f6fe0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

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

/* Shared chips / tags -------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text-2);
  background: var(--chip-bg);
  white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 10px var(--c, var(--accent)); }
.tech {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.22rem 0.55rem; border-radius: 6px;
  background: var(--tech-bg); color: var(--text-2);
  border: 1px solid var(--line);
}
