/**
 * Ali Hossam Portfolio - Design Tokens (CSS Variables)
 * Step 47: Design System Implementation
 * Theme: Industrial Blue-Ocean & High-End Tech
 */

:root {
  /* ==========================================
     1. COLOR PALETTE (Primary, Neutral, Accent)
     ========================================== */
  /* Brand / Primary */
  --color-primary-50: #f0f7ff;
  --color-primary-100: #e0effe;
  --color-primary-500: #0066ff;
  --color-primary-600: #0052cc;
  --color-primary-900: #001f66;

  /* Neutrals (Industrial Dark / Light Mode Ready) */
  --color-bg-base: #0a0f1d;
  --color-bg-surface: #121a2d;
  --color-bg-elevated: #1e293b;
  
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;

  /* Accents */
  --color-accent-cyan: #06b6d4;
  --color-accent-emerald: #10b981;
  --color-accent-amber: #f59e0b;

  /* Borders & Dividers */
  --color-border-subtle: rgba(148, 163, 184, 0.15);
  --color-border-hover: rgba(0, 102, 255, 0.4);

  /* ==========================================
     2. TYPOGRAPHY & FONTS
     ========================================== */
  --font-heading: 'Big Shoulders Display', sans-serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Font Sizes (Fluid Scale) */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 2rem;     /* 32px */
  --text-4xl: 2.75rem;  /* 44px */
  --text-5xl: 3.5rem;   /* 56px */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* ==========================================
     3. SPACING & LAYOUT
     ========================================== */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-24: 6rem;    /* 96px */

  --container-max-width: 1280px;
  --container-padding: clamp(1rem, 5vw, 3rem);

  /* ==========================================
     4. BORDERS & SHADOWS
     ========================================== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.25);

  /* ==========================================
     5. TRANSITIONS & ANIMATIONS
     ========================================== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets utilizing design tokens */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}
