/* ==========================================================================
   CSS Custom Properties — Cosmi Studio
   Dual theme system: dark (default) / light
   ========================================================================== */

:root {
  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Font sizes — fluid with clamp */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);
  --text-hero: clamp(3rem, 2rem + 5vw, 7rem);

  /* Font weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(5rem, 4rem + 5vw, 10rem);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --container-padding: clamp(1.25rem, 1rem + 2vw, 3rem);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;
  --duration-slower: 900ms;

  /* Z-index scale */
  --z-behind: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* ==========================================================================
   Dark Theme (Default)
   ========================================================================== */
[data-theme="dark"] {
  --color-bg: #050505;
  --color-bg-alt: #0d0d0d;
  --color-bg-elevated: #141414;
  --color-bg-card: rgba(255, 255, 255, 0.03);

  --color-text: #f0eeeb;
  --color-text-secondary: rgba(240, 238, 235, 0.6);
  --color-text-tertiary: rgba(240, 238, 235, 0.35);
  --color-text-inverse: #0a0a0a;

  --color-accent: #3B82F6;
  --color-accent-hover: #60A5FA;
  --color-accent-glow: rgba(59, 130, 246, 0.25);
  --color-accent-subtle: rgba(59, 130, 246, 0.08);

  --color-secondary: #00E5FF;
  --color-secondary-glow: rgba(0, 229, 255, 0.2);

  --color-tertiary: #FFB800;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-success: #34D399;
  --color-success-bg: rgba(52, 211, 153, 0.1);

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --shadow-glow-secondary: 0 0 40px var(--color-secondary-glow);

  /* Gradients */
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 130, 246, 0.08) 0%, rgba(0, 229, 255, 0.04) 40%, transparent 70%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent), #6366F1);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));

  /* Noise overlay */
  --noise-opacity: 0.025;
}


