/**
 * Hareram Kushwaha Portfolio - CSS Custom Properties
 * Design tokens for light and dark themes, fluid typography, spacing & elevation.
 */

:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0b1220;
  --bg-surface: #111a2e;
  --bg-surface-elevated: #18233c;
  --bg-surface-hover: #1f2d4d;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0b1220;

  /* Accent Gradients & Colors */
  --accent-teal: #14b8a6;
  --accent-indigo: #6366f1;
  --accent-pink: #ec4899;
  --accent-gold: #d9a343;
  --accent-gradient: linear-gradient(135deg, #14b8a6 0%, #6366f1 50%, #ec4899 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(99, 102, 241, 0.15) 50%, rgba(236, 72, 153, 0.15) 100%);
  --accent-glow: rgba(99, 102, 241, 0.35);

  /* Background Grid Pattern */
  --grid-line-color: rgba(99, 102, 241, 0.05);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Fluid Typography with clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 1vw, 2rem);
  --text-3xl: clamp(2rem, 1.7rem + 1.6vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);

  /* Spacing Scale (8px system) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem;  /* 24px */
  --space-8: 2rem;    /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem;   /* 48px */
  --space-16: 4rem;   /* 64px */
  --space-20: 5rem;   /* 80px */
  --space-24: 6rem;   /* 96px */

  /* Layout */
  --container-max: 1120px;
  --header-height: 4.25rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 25px -5px rgba(99, 102, 241, 0.35);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.18);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  --accent-teal: #0d9488;
  --accent-indigo: #4f46e5;
  --accent-pink: #db2777;
  --accent-gold: #b45309;
  --accent-gradient: linear-gradient(135deg, #0d9488 0%, #4f46e5 50%, #db2777 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(79, 70, 229, 0.1) 50%, rgba(219, 39, 119, 0.1) 100%);
  --accent-glow: rgba(79, 70, 229, 0.2);

  --grid-line-color: rgba(79, 70, 229, 0.04);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px -5px rgba(79, 70, 229, 0.2);
}

