/* ============================================
   STATAU Dark Tech Theme
   Version: 2.0
   ============================================ */

/* -------------------- Design Tokens -------------------- */
/* Default theme (dark) */
:root {
    /* Colors - Background */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b2d;
    --bg-tertiary: #1e2740;
    --bg-elevated: #252d44;

    /* Colors - Accent */
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    /* Colors - Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #a7b5c6;
    --text-inverse: #0f172a;

    /* Colors - Border */
    --border-color: #2d3748;
    --border-accent: rgba(0, 212, 255, 0.2);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Font Sizes - Extreme Contrast */
    --text-xs: 0.625rem;    /* 10px */
    --text-sm: 0.75rem;     /* 12px */
    --text-base: 0.875rem;  /* 14px */
    --text-lg: 1rem;        /* 16px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 2rem;       /* 32px */
    --text-4xl: 2.5rem;     /* 40px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 4rem;       /* 64px */
    --text-7xl: 5rem;       /* 80px */
    --text-8xl: 6rem;       /* 96px */
    --text-9xl: 8rem;       /* 128px */

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-surface: linear-gradient(180deg, #141b2d 0%, #0a0e27 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Dark theme explicit */
[data-theme="dark"] {
    /* Colors - Background */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b2d;
    --bg-tertiary: #1e2740;
    --bg-elevated: #252d44;

    /* Colors - Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #cbd5e1;
    --text-inverse: #0f172a;

    /* Colors - Border */
    --border-color: #2d3748;
    --border-accent: rgba(0, 212, 255, 0.2);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);

    /* Gradients */
    --gradient-surface: linear-gradient(180deg, #141b2d 0%, #0a0e27 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
}

/* -------------------- Global Resets -------------------- */
* {
    box-sizing: border-box;
}

html {
    font-size: 90%; /* Global 90% scaling */
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------- Typography -------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------------------- Layout Utilities -------------------- */
.container-tech {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* -------------------- Background Patterns -------------------- */
.bg-grid {
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-dots {
    background-image: radial-gradient(circle, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* -------------------- Glow Effects -------------------- */
.glow-primary {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transition: box-shadow var(--transition-base);
}

/* -------------------- Animations -------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-in {
    animation: slide-in 0.5s ease-out;
}

/* -------------------- Responsive Adjustments -------------------- */
@media (max-width: 768px) {
    html {
        font-size: 87%; /* Slightly smaller on tablets */
    }
}

@media (max-width: 576px) {
    html {
        font-size: 85%; /* Even smaller on mobile */
    }
}

/* -------------------- Bootstrap Overrides -------------------- */
/* Override Bootstrap's .text-muted class to use CSS variables */
.text-muted {
    color: var(--text-muted) !important;
}

/* Override Bootstrap's .small class to ensure proper color inheritance */
small.text-muted,
.small.text-muted {
    color: var(--text-muted) !important;
}
