/* ==========================================================================
   CSS CUSTOM PROPERTIES / DESIGN SYSTEM
   Modern SaaS & Award-Winning Developer Portfolio Theme
   Sridharan D - Software Engineer & AI / Web Developer
   ========================================================================== */

:root {
  /* Color Palette - Dark Navy & Midnight Black (Default) */
  --bg-primary: #070913;
  --bg-secondary: #0d1124;
  --bg-tertiary: #131a36;
  --bg-elevated: #182042;
  --bg-canvas: #04050a;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(13, 17, 36, 0.72);
  --glass-bg-hover: rgba(20, 27, 56, 0.9);
  --glass-border: rgba(99, 102, 241, 0.18);
  --glass-border-hover: rgba(168, 85, 247, 0.45);
  --glass-border-strong: rgba(56, 189, 248, 0.6);
  --glass-blur: 16px;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --glass-shadow-glow: 0 0 30px -5px rgba(56, 189, 248, 0.3);

  /* Electric Blue & Purple Accents */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-blue-deep: #2563eb;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-purple-glow: #c084fc;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #cbd5e1 50%, #38bdf8 100%);
  --gradient-text-alt: linear-gradient(135deg, #38bdf8 0%, #a855f7 70%, #ec4899 100%);
  --gradient-border: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(168, 85, 247, 0.4));
  --gradient-mesh-1: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.14) 0%, transparent 45%);
  --gradient-mesh-2: radial-gradient(circle at 85% 70%, rgba(168, 85, 247, 0.14) 0%, transparent 50%);

  /* Text & Surface Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070913;
  --text-accent: #38bdf8;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-focus: #38bdf8;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Layout Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -4px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.55), 0 8px 10px -6px rgba(0, 0, 0, 0.55);
  --shadow-glow-blue: 0 0 25px rgba(56, 189, 248, 0.35);
  --shadow-glow-purple: 0 0 25px rgba(168, 85, 247, 0.35);

  /* Z-Index Hierarchy */
  --z-negative: -1;
  --z-base: 0;
  --z-elevated: 10;
  --z-sticky: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-preloader: 500;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES (Clean Modern SaaS Aesthetic)
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #e2e8f0;
  --bg-canvas: #f8fafc;

  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-bg-hover: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(99, 102, 241, 0.16);
  --glass-border-hover: rgba(139, 92, 246, 0.38);
  --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  --glass-shadow-glow: 0 0 25px rgba(59, 130, 246, 0.18);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  --text-accent: #2563eb;

  --gradient-text: linear-gradient(135deg, #0f172a 20%, #334155 70%, #2563eb 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.8) 100%);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.16);

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --gradient-mesh-1: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
  --gradient-mesh-2: radial-gradient(circle at 85% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 45%);
}

