@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   MODERN DESIGN SYSTEM - LIGHT THEME WITH BRAND COLOR #212842
   ========================================================================== */

:root {
    /* Modern Color Palette - Light Theme */
    --bg-primary: #f0f2f8;
    --bg-secondary: #e8eaf2;
    --bg-glass: rgba(33, 40, 66, 0.05);

    /* Brand Color - #212842 (Navy Blue) */
    --brand-primary: #212842;
    --brand-secondary: #2d3654;
    --brand-light: #3a4565;

    /* Gradient Colors using Brand */
    --gradient-primary: linear-gradient(135deg, #212842 0%, #2d3654 100%);
    --gradient-accent: linear-gradient(135deg, #3a4565 0%, #212842 100%);

    /* Accent Colors */
    --accent-blue: #4f5d7a;
    --accent-light-blue: #6b7da3;
    --accent-muted: #8896b3;

    /* Text Colors */
    --text-primary: #212842;
    --text-secondary: rgba(33, 40, 66, 0.7);
    --text-muted: rgba(33, 40, 66, 0.5);

    /* Glass Effects - Light */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(33, 40, 66, 0.12);
    --glass-hover: rgba(255, 255, 255, 0.95);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(33, 40, 66, 0.08);
    --shadow-md: 0 4px 16px rgba(33, 40, 66, 0.12);
    --shadow-lg: 0 8px 32px rgba(33, 40, 66, 0.15);
    --shadow-glow: 0 0 40px rgba(33, 40, 66, 0.2);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   GLOBAL RESETS & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f2f8;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-light);
}

/* Selection */
::selection {
    background: var(--brand-primary);
    color: white;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   REVEAL ANIMATION  (Intersection Observer)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}