/* ==========================================================================
   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;
  --accent: #0a72ff;
  --accent-2: #33d6ff;
  --gold: #ffd23f;
  --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);
}

*, *::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: rgba(255, 255, 255, 0.03);
  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: rgba(255, 255, 255, 0.05); color: var(--text-2);
  border: 1px solid var(--line);
}
