:root {
    /* Color Palette - Dark Theme with Vibrant Accents */
    --primary: #00d4aa;
    /* Bright Teal */
    --primary-dark: #00b894;
    --secondary: #4a90e2;
    /* Bright Blue */
    --secondary-dark: #357abd;
    --accent: #ffd93d;
    /* Bright Yellow */
    --accent-pink: #ff6b9d;
    /* Fun Pink */
    --accent-purple: #a29bfe;
    /* Soft Purple */

    /* Neutral Colors - Dark Theme */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-dark-surface: #1e293b;
    /* Slate 800 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Text Colors */
    --text-dark: #2d3748;
    /* Dark gray for light backgrounds */
    --text-light: #e2e8f0;
    /* Light gray for dark backgrounds */
    --text-white: #ffffff;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.flex {
    display: flex;
    gap: var(--spacing-md);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Header & Nav */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.2s;
}

.nav-btn:hover,
.nav-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 212, 170, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.4), 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #333;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Foundation Specific */
.foundation-header {
    background: linear-gradient(90deg, #1f7bd6, #d5dde6, #8a51c4);
    color: var(--text-white);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

/* FLL Team Theme - Dark with Vibrant Accents */
body.fll-theme {
    background: var(--bg-dark);
    color: var(--text-light);
}

body.fll-theme .card {
    background: var(--bg-dark-surface);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--text-light);
    backdrop-filter: blur(10px);
}

body.fll-theme .site-header {
    background: #000000;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.fll-theme .nav-btn {
    color: var(--text-white);
}

body.fll-theme h1,
body.fll-theme h2,
body.fll-theme h3 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-links {
        justify-content: center;
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special Elements */
.highlight-gold {
    background: linear-gradient(135deg, var(--accent), #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
}

.championship-banner {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple), var(--primary));
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--spacing-md);
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}