:root {
    /* Primary Colors */
    --primary-blue: #0066FF;
    --electric-blue: #00A8FF;
    --deep-blue: #001B44;
    
    /* Neutral & Backgrounds */
    --white: #FFFFFF;
    --off-white: #F5F8FC;
    --dark-bg: #050B14;
    --dark-surface: #0A1424;
    --dark-surface-glass: rgba(10, 20, 36, 0.6);
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #AAB8CC;
    --text-dark: #050B14;
    --text-dark-secondary: #4A5568;

    /* Effects */
    --glow-blue: 0 0 20px rgba(0, 102, 255, 0.4);
    --glow-electric: 0 0 30px rgba(0, 168, 255, 0.6);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
    
    /* Spacing & Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Z-Index */
    --z-back: -1;
    --z-normal: 1;
    --z-nav: 100;
    --z-modal: 1000;
    --z-cursor: 9999;
    --z-preloader: 10000;
}

/* Light Mode Variables Override */
body.light-mode {
    --dark-bg: #F5F8FC;
    --dark-surface: #FFFFFF;
    --dark-surface-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #050B14;
    --text-secondary: #4A5568;
    --glow-blue: 0 4px 20px rgba(0, 102, 255, 0.15);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Custom Cursor (hidden by default on mobile, enabled via JS if desktop) */
body.has-custom-cursor {
    cursor: none;
}
body.has-custom-cursor a, 
body.has-custom-cursor button {
    cursor: none;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: var(--z-cursor);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--electric-blue);
    box-shadow: var(--glow-blue);
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 102, 255, 0.1);
    border-color: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-blue);
}

/* Canvas Backgrounds */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-back);
    pointer-events: none;
}

#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through to content */
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: var(--z-normal);
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    position: relative;
}

.section-number::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 12px;
    height: 2px;
    background-color: var(--electric-blue);
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin: 0;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--dark-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

body.light-mode .glass-panel {
    border: 1px solid rgba(0, 0, 0, 0.05);
}
