/**
 * CSS Variables - Modern CSS Custom Properties
 * Austin's Portfolio Site - Refactored Version
 * Dark Theme Color Palette
 */

:root {
    /* Color Palette - Primary Cyan/Teal Theme */
    --color-primary: #149ddd;
    --color-primary-dark: #0d6eac;
    --color-primary-light: #37b3ed;
    --color-primary-rgb: 20, 157, 221;

    --color-secondary: #173b6c;
    --color-secondary-dark: #0e2442;
    --color-secondary-light: #1f5297;

    /* Dark Theme Base Colors */
    --color-dark: #040b14;
    --color-dark-rgb: 4, 11, 20;
    --color-light: #f5f8fd;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Accent Colors */
    --color-accent-cyan: #22d3ee;
    --color-accent-blue: #3b82f6;
    --color-accent-indigo: #6366f1;

    /* Text Colors - Dark Theme */
    --text-primary: #e2e8f0;        /* Light gray for primary text */
    --text-secondary: #94a3b8;      /* Medium gray for secondary */
    --text-muted: #64748b;          /* Muted gray */
    --text-light: #475569;          /* Subtle text */
    --text-white: #ffffff;
    --text-heading: #f1f5f9;        /* Bright headings */
    --text-highlight: #22d3ee;      /* Cyan highlight */

    /* Background Colors - Dark Theme */
    --bg-dark: #040b14;
    --bg-darker: #020709;
    --bg-header: #040b14;
    --bg-section: #0a1628;          /* Slightly lighter than base */
    --bg-section-alt: #0f1f35;      /* Alternating section */
    --bg-card: rgba(15, 31, 53, 0.9);  /* Card background */
    --bg-card-solid: #0f1f35;
    --bg-overlay: rgba(4, 11, 20, 0.85);
    --bg-hover: rgba(20, 157, 221, 0.1);

    /* Border Colors - Dark Theme */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(20, 157, 221, 0.3);

    /* Typography */
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Raleway', sans-serif;
    --font-accent: 'Poppins', sans-serif;

    /* Font Sizes */
    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1rem;     /* 16px */
    --fs-md: 1.125rem;   /* 18px */
    --fs-lg: 1.375rem;   /* 22px */
    --fs-xl: 1.625rem;   /* 26px */
    --fs-2xl: 2rem;      /* 32px */
    --fs-3xl: 4rem;      /* 64px */

    /* Font Weights */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Spacing */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 4rem;    /* 64px */

    /* Layout */
    --header-width: 300px;
    --container-padding: 30px;
    --section-padding: 40px;

    /* Backward Compatibility */
    --bg-light: rgba(20, 157, 221, 0.05);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --radius-pill: 50px;

    /* Shadows - Dark Theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glass-hover: 0 12px 48px rgba(20, 157, 221, 0.2);
    --shadow-glow: 0 0 40px rgba(20, 157, 221, 0.3);
    --shadow-glow-sm: 0 0 20px rgba(20, 157, 221, 0.2);

    /* Glassmorphism - Dark Theme */
    --glass-bg: rgba(15, 31, 53, 0.7);
    --glass-bg-light: rgba(20, 40, 70, 0.8);
    --glass-bg-dark: rgba(4, 11, 20, 0.9);
    --glass-bg-card: rgba(15, 31, 53, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-glass: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 2000;
    --z-tooltip: 3000;
}

/* Dark Mode Variables (can be activated via class or media query) */
@media (prefers-color-scheme: dark) {
    :root.auto-dark {
        --bg-section: #1a1a2e;
        --bg-card: #16213e;
        --text-primary: #eaeaea;
        --text-secondary: #b0b0b0;
    }
}
