:root {
    /* Color Palette - Navy Tech Aesthetic */
    --clr-bg: #0a1120;
    --clr-surface: #131c31;
    --clr-primary: #1e3a5f;
    --clr-accent: #c68e4f;
    /* Copper from Logo */
    --clr-text: #ffffff;
    --clr-text-muted: #8a99b1;
    --clr-glass: rgba(16, 26, 45, 0.7);
    --clr-glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --ff-primary: 'Outfit', sans-serif;

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

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--ff-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Components */
.nav-links {
    display: flex;
    gap: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.glass {
    background: var(--clr-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-glass-border);
    border-radius: 16px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--clr-accent);
    color: var(--clr-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 245, 212, 0.3);
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-accent);
}

/* Responsive Styles */
@media (max-width: 768px) {

    /* Mobile Menu */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--clr-surface);
        padding: 2rem;
        border-bottom: 1px solid var(--clr-glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        gap: 1.5rem !important;
        /* Override standard gap */
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex !important;
    }

    /* Adjust Logo Size on Mobile */
    .logo img {
        height: 80px !important;
        /* Smaller logo on mobile */
    }

    /* SID Mascot Section */
    #base .glass[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 3rem 2rem !important;
    }

    #base img[alt="Sid Mascot"] {
        width: 200px !important;
        margin: 0 auto;
        display: block;
    }

    #base div[style*="width: 250px"] {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* O Legado Section Stacking */
    #legado .container[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    #legado .reveal[style*="text-align: right;"] {
        text-align: left !important;
    }

    /* Adjust Text Sizes */
    h1 {
        font-size: 3rem !important;
    }

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