/* Modern Navigation Menu Styles */
.custom-nav-wrapper {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #2272bc;
    /* Blue background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Montserrat', sans-serif;
}

.custom-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* Stack logo and menu */
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

/* Logo */
.nav-logo {
    margin-bottom: 15px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    height: 60px;
    /* Slightly larger logo */
    width: auto;
    transition: height 0.3s ease;
}

/* Menu Items */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    /* White text */
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 8px 0;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    letter-spacing: 0.5px;
}

/* Hover Effect */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    transition: width 0.3s ease;
    opacity: 0.8;
}

.nav-menu a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #fff;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Mobile Menu Active State */
.mobile-menu-open .hamburger-icon {
    background-color: transparent;
}

.mobile-menu-open .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-open .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .custom-nav-container {
        flex-direction: row;
        justify-content: space-between;
        height: 70px;
        padding: 10px 20px;
    }

    .nav-logo {
        margin-bottom: 0;
    }

    .nav-logo img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: block;
        position: static;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        /* Height of header */
        left: 0;
        width: 100%;
        height: auto;
        background: #2272bc;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        gap: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }

    .nav-menu a::after {
        display: none;
        /* Remove underline on mobile */
    }

    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}