/* Global Nav Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: #121212;
}

nav.scrolled {
    background: rgba(18, 18, 18, 0.9);
    padding: 0.5rem 0;
    backdrop-filter: blur(5px);
    display: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    text-decoration: none;
    z-index: 1002;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #880000;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1024px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #1a1a1a;
        transition: right 0.4s ease-in-out;
        gap: 2rem;
        z-index: 1001;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
