/* MENU.CSS
    Stylesheet for the navigation menu (menu.html)
    This is loaded IN ADDITION to styles.css and mobile-styles.css
*/

/* --- Menu Container --- */
/* The #menu-container holds the nav.
    We make it sticky so it stays at the top.
*/
#menu-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

/* --- Main Navigation Bar --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Wider than main content for a full feel */
    margin: 0 auto;
    padding: 1rem 2rem;
    height: 70px; /* Fixed height for nav */
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo a:hover {
    color: var(--primary-color);
}

/* --- Navigation Links (Desktop) --- */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem; /* Spacing between links */
}

.nav-links li {
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Navigation Button --- */
.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 6px;
    width: auto; /* Override .btn width */
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-nav:hover {
    background-color: #0069d9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* --- Mobile Burger Menu --- */
.nav-burger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.nav-burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Mobile-Specific Styles (via media query in mobile-styles.css) --- */
/* This part of the file defines the mobile menu behavior,
    which will be activated by the @media query in mobile-styles.css.
*/

@media screen and (max-width: 768px) {
    .main-nav {
        padding: 1rem; /* Tighter padding on mobile */
    }

    .nav-links {
        /* Mobile menu is hidden off-screen to the right */
        position: fixed;
        right: 0;
        top: 70px; /* Positioned just below the nav bar */
        background-color: var(--surface-color);
        border-left: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        height: calc(100vh - 70px); /* Full height minus nav */
        width: 70%;
        max-width: 300px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-links.nav-active {
        /* This class is toggled by JavaScript */
        transform: translateX(0%);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem;
        font-size: 1.2rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a:hover {
        background-color: rgba(0, 123, 255, 0.1);
        color: var(--primary-color);
    }

    .btn-nav {
        /* Make the button look like a regular link in the mobile menu */
        background: none;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        padding: 1.5rem;
        margin: 0;
        color: var(--primary-color); /* Make it stand out */
        font-size: 1.2rem;
    }

    .btn-nav:hover {
        background-color: rgba(0, 123, 255, 0.1);
        transform: none;
        box-shadow: none;
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-burger {
        display: block; /* Show burger on mobile */
    }

    /* Burger animation when 'nav-active' (toggled) */
    .nav-active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .nav-active .line2 {
        opacity: 0;
    }
    .nav-active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}
