/*
 * base.css  —  Glassmorphism Design System
 * Palette: Deep Cosmic Navy → Indigo → Teal
 * Style: Glassmorphism + motion-first
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,200;0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,300&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  /* ─── Cosmic Palette ─────────────────── */
  --col-void:       #04050f;     /* deep space black */
  --col-navy:       #080d1e;     /* midnight navy */
  --col-indigo:     #0f1535;     /* dark indigo */
  --col-deep:       #131a3d;     /* deep blue-indigo */

  /* Glass surfaces */
  --glass-1:        rgba(255,255,255,0.04);
  --glass-2:        rgba(255,255,255,0.07);
  --glass-3:        rgba(255,255,255,0.10);
  --glass-4:        rgba(255,255,255,0.14);

  /* Glass borders */
  --glass-border:   rgba(255,255,255,0.09);
  --glass-border-2: rgba(255,255,255,0.15);
  --glass-border-3: rgba(255,255,255,0.22);

  /* ─── Accent Palette ─────────────────── */
  --accent-cyan:    #38bdf8;       /* sky blue */
  --accent-violet:  #818cf8;       /* indigo-violet */
  --accent-teal:    #2dd4bf;       /* teal */
  --accent-emerald: #34d399;       /* emerald */
  --accent-rose:    #fb7185;       /* rose pink */
  --accent-amber:   #fbbf24;       /* amber */
  --accent-purple:  #a78bfa;       /* purple */

  /* Glow versions */
  --glow-cyan:      rgba(56,189,248,0.25);
  --glow-violet:    rgba(129,140,248,0.25);
  --glow-teal:      rgba(45,212,191,0.25);
  --glow-rose:      rgba(251,113,133,0.25);
  --glow-purple:    rgba(167,139,250,0.25);
  --glow-emerald:   rgba(52,211,153,0.25);

  /* ─── Text ───────────────────────────── */
  --text-primary:   #f0f4ff;
  --text-secondary: rgba(240,244,255,0.70);
  --text-muted:     rgba(240,244,255,0.40);
  --text-dim:       rgba(240,244,255,0.18);

  /* ─── Structure ──────────────────────── */
  --nav-h:          58px;

  /* ─── Typography ─────────────────────── */
  --font-display:   'Space Grotesk', 'Inter', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* ─── Radius ─────────────────────────── */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* ─── Motion ─────────────────────────── */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  0.15s;
  --t-base:  0.25s;
  --t-slow:  0.45s;
  --t-xslow: 0.7s;
}

html, body {
  height: 100%;
  background: var(--col-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Animated Cosmic Background ────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,   rgba(56,189,248,0.07)  0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(167,139,250,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%,  rgba(45,212,191,0.04)  0%, transparent 70%),
    linear-gradient(145deg, #04050f 0%, #080d1e 40%, #080a18 70%, #050810 100%);
  animation: bg-drift 20s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(15deg); }
}

/* Starfield texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 70%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 85%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 35%, rgba(255,255,255,0.17) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 78%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(2px 2px at 8%  45%, rgba(56,189,248,0.35)  0%, transparent 100%),
    radial-gradient(2px 2px at 65% 90%, rgba(167,139,250,0.3)  0%, transparent 100%),
    radial-gradient(2px 2px at 38% 10%, rgba(45,212,191,0.28)  0%, transparent 100%);
  pointer-events: none;
}

/* ─── Scrollbar ──────────────────────────── */
::-webkit-scrollbar            { width: 4px; height: 4px; }
::-webkit-scrollbar-track      { background: transparent; }
::-webkit-scrollbar-thumb      { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: rgba(56,189,248,0.4); }

/* ─── Glassmorphism Mixin Class ──────────── */
.glass {
  background: var(--glass-2);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}

.glass-sm {
  background: var(--glass-1);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
}

/* ─── Utility ────────────────────────────── */
.hidden { display: none !important; }

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ─── Floating Orbs (background decoration) ─ */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
  top: -100px; left: -150px;
  animation: orb-drift-1 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167,139,250,0.10) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation: orb-drift-2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(45,212,191,0.09) 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-drift-3 15s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes orb-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -80px) scale(1.1); }
}

@keyframes orb-drift-3 {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 1;  }
}
