/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Arshia Portfolio
   Premium AI Portfolio Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Color: Light Mode (Default) ────────────────────────── */
  --color-bg: #FAFAF8;
  --color-bg-rgb: 250, 250, 248;
  --color-surface: #FFFFFF;
  --color-surface-elevated: #FFFFFF;
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #64648a;
  --color-text-tertiary: #9191ab;
  --color-accent: #7C3AED;
  --color-accent-rgb: 124, 58, 237;
  --color-accent-soft: #A78BFA;
  --color-accent-bg: rgba(124, 58, 237, 0.06);
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-strong: rgba(0, 0, 0, 0.1);
  --color-glass-bg: rgba(255, 255, 255, 0.72);
  --color-glass-border: rgba(0, 0, 0, 0.06);
  --color-shadow: rgba(0, 0, 0, 0.04);
  --color-shadow-medium: rgba(0, 0, 0, 0.08);
  --color-overlay: rgba(0, 0, 0, 0.02);
  --color-noise-opacity: 0.03;

  /* ── Color: Section Backgrounds (scroll-driven) ─────────── */
  --section-hero-bg: #FAFAF8;
  --section-projects-bg: #f0eff5;
  --section-skills-bg: #e8e7ef;
  --section-about-bg: #1a1a2e;
  --section-experience-bg: #141424;
  --section-contact-bg: #0D0D14;

  /* ── Typography ─────────────────────────────────────────── */
  --font-heading: 'Vazirmatn', sans-serif;
  --font-body: 'Vazirmatn', sans-serif;

  --text-hero: clamp(3.2rem, 8vw, 7.5rem);
  --text-display: clamp(2.5rem, 5vw, 5rem);
  --text-h1: clamp(2rem, 4vw, 3.5rem);
  --text-h2: clamp(1.5rem, 3vw, 2.5rem);
  --text-h3: clamp(1.2rem, 2vw, 1.75rem);
  --text-body-lg: clamp(1.05rem, 1.2vw, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;
  --text-tag: 0.7rem;

  --leading-tight: 1.08;
  --leading-snug: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.035em;
  --tracking-snug: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-widest: 0.12em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ── Spacing (Spacious — Density 3/10) ──────────────────── */
  --space-2xs: 0.25rem;   /* 4px */
  --space-xs: 0.5rem;     /* 8px */
  --space-sm: 0.75rem;    /* 12px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  --space-5xl: 8rem;      /* 128px */
  --space-section: clamp(6rem, 12vh, 10rem);

  /* ── Layout ─────────────────────────────────────────────── */
  --max-width: 1280px;
  --max-width-narrow: 860px;
  --max-width-text: 640px;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  /* ── Borders & Radius ───────────────────────────────────── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 100px;
  --radius-round: 50%;

  /* ── Shadows ────────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px var(--color-shadow);
  --shadow-sm: 0 2px 8px var(--color-shadow), 0 1px 2px var(--color-shadow);
  --shadow-md: 0 4px 16px var(--color-shadow-medium), 0 1px 4px var(--color-shadow);
  --shadow-lg: 0 8px 32px var(--color-shadow-medium), 0 2px 8px var(--color-shadow);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 16px var(--color-shadow);
  --shadow-glow: 0 0 40px rgba(var(--color-accent-rgb), 0.1);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);

  /* ── Glass ──────────────────────────────────────────────── */
  --glass-blur: blur(20px);
  --glass-blur-strong: blur(32px);
  --glass-saturate: saturate(180%);

  /* ── Transitions ────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-instant: 100ms;
  --duration-fast: 180ms;
  --duration-normal: 280ms;
  --duration-slow: 450ms;
  --duration-slower: 650ms;

  /* ── Z-Index Scale ──────────────────────────────────────── */
  --z-behind: -1;
  --z-base: 0;
  --z-floating: 10;
  --z-nav: 100;
  --z-cursor: 9999;
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}
