/* Navigation Styles */
.main-nav {
    background-color: #4a77a0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #f4cd38;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f4cd38;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-left: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    cursor: pointer;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .hamburger {
        display: flex !important; /* Force show on mobile */
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 40px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        margin: 0;
        z-index: 1001;
    }

    .hamburger:focus {
        outline: none;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
        margin: 2px 0;
    }


    .nav-links-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #4a77a0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        padding-top: 80px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }


    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2rem;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease;
    }


    .nav-links-container.active .nav-links li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links-container.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links-container.active .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links-container.active .nav-links li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links-container.active .nav-links li:nth-child(4) { transition-delay: 0.25s; }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        display: block;
        width: 100%;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        color: #f4cd38;
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Show mobile menu */
    .nav-links-container.active {
        right: 0;
    }

    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .nav-links-container {
        width: 70%;
        right: -70%;
    }
}
