/* === ROOT VARIABLES & GLOBAL RESETS === */
:root {
    --bg-dark: #1a1a2e;
    --bg-light: #16213e;
    --primary-pink: #e94560;
    --text-light: #f0f0f0;
    --text-dark: #a0a0a0;
    --border-radius: 12px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, var(--bg-dark), var(--bg-light), #536976, #292E49);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-light);
    padding-top: 60px; /* Prevent content from being hidden behind the fixed header */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-light);
}

/* === HEADER & NAVIGATION (MOBILE-FIRST) === */
.modern-header-dark {
    background: rgba(22, 33, 62, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-nav-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    position: relative; /* Add for absolute positioning context */
}

.nav-logo a {
    font-size: 24px;
    font-weight: 700;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: block; /* Show hamburger on mobile */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

.nav-toggle .fa-times {
    display: none;
}

.modern-header-dark.nav-open .nav-toggle .fa-bars {
    display: none;
}

.modern-header-dark.nav-open .nav-toggle .fa-times {
    display: block;
}

/* --- Mobile Nav Menu --- */
.nav-right {
    display: none; /* Hide menu by default */
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px; /* Position below header */
    left: 0;
    width: 100%;
    background: rgba(22, 33, 62, 0.98);
    padding: 30px 0;
}

.modern-header-dark.nav-open .nav-right {
    display: flex; /* Show menu when header has .nav-open */
}

.nav-menu-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.nav-menu-modern a {
    font-size: 18px;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: rgba(22, 33, 62, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === DESKTOP STYLES (BASE) === */
@media (min-width: 992px) {
    body {
        padding-top: 70px; /* Adjust for taller desktop header */
    }

    .modern-header-dark {
        height: 70px;
    }

    .modern-nav-dark {
        padding: 0 40px;
    }

    .nav-toggle {
        display: none; /* Hide hamburger on desktop */
    }

    .nav-right {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        padding: 0;
        width: auto;
        align-items: center;
        gap: 30px;
    }

    .nav-menu-modern {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        flex-direction: row;
        margin-bottom: 0;
        gap: 30px;
        width: max-content;
    }
    
    .nav-menu-modern a:hover {
        color: var(--primary-pink);
    }
    
    .nav-actions {
        flex-direction: row;
        gap: 20px;
    }
}
