/* Navigation Menu Styles */

/* Header and Main Navigation */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #333333;
}

.navbar {
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 4rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Brand/Logo */
.nav-brand {
    padding: 0.5rem 0;
}

.nav-brand img {
    height: 45px;
    width: auto;
}

/* Menu Container */
.nav-menu {
    display: flex;
    align-items: center;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.hub-button):hover,
.nav-links a:not(.hub-button).active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:not(.hub-button).active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.nav-links .hub-button {
    background-color: var(--secondary-color);
    color: #333;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    margin-left: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links .hub-button:hover {
    background-color: #fcc235;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(251, 182, 5, 0.3);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    z-index: 1001;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Mobile and Tablet styles */
@media screen and (max-width: 1420px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: -1;
    }

    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        width: 300px;
        height: calc(100vh - 4rem);
        background: #333333;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        padding: 1rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 0.5rem 0;
    }

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

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

    .nav-menu.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-links li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-links li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-links li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active .nav-links li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active .nav-links li:nth-child(7) { transition-delay: 0.4s; }
    .nav-menu.active .nav-links li:nth-child(8) { transition-delay: 0.45s; }

    .nav-links a {
        padding: 1.2rem 1.5rem;
        width: 100%;
        font-size: 1.1rem;
        text-align: left;
        border-radius: 0;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .nav-links a:not(.hub-button):hover,
    .nav-links a:not(.hub-button).active {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links a:not(.hub-button).active::after {
        left: 0;
        transform: none;
        width: 4px;
        height: 100%;
        top: 0;
        bottom: auto;
        background-color: var(--secondary-color);
    }

    .nav-links .hub-button {
        margin: 1rem 0 0;
        padding: 1.2rem 1.5rem;
        text-align: left;
        width: 100%;
        border-radius: 0;
        background-color: var(--secondary-color);
        color: #333;
        border: none;
    }

    .nav-links .hub-button:hover {
        background-color: #fcc235;
        transform: none;
        box-shadow: none;
    }
}

/* Overlay styles */
.menu-overlay {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}
