/* ===================================
   NAVIGATION BAR STYLES
   Reusable across all pages
   =================================== */

/* Main Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 30, 0.98) 100%);
    backdrop-filter: blur(25px);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.dropdown-menu {
    list-style: none;
    padding-left: 0;
}
/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 2rem;
    color: #fff;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    /* filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(102, 126, 234, 0.5)); */
    transition: all 0.4s ease;
}

.logo:hover .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(102, 126, 234, 0.8));
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 6px 17px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-link:hover::before {
    left: 0;
    background: transparent;
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    margin: 4px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.mobile-menu-toggle span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.4s ease;
}

.mobile-menu-toggle:hover span::before {
    left: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #1a1a2e;
        flex-direction: column;
        gap: 0;
        padding: 40px 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

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


    .nav-link {
        padding: 2px 17px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.1rem;
        text-align: left;
        margin: 0 20px;
        border-radius: 12px;
        transition: all 0.3s ease;
        color: #b8b8d1;
    }

    .nav-link:hover {
        background: rgba(102, 126, 234, 0.2);
        color: #fff;
        transform: translateX(15px);
        border-left: 4px solid #667eea;
    }

    .nav-link.active {
        background: rgba(102, 126, 234, 0.15);
        color: #fff;
        border-left: 4px solid #667eea;
    }

    .nav-link.active::after {
        width: 70%;
    }
}

/* Add margin-top to main content to account for fixed navigation */
main {
    margin-top: 80px;
}

/* Alternative for pages without main tag */
.content-wrapper {
    margin-top: 80px;
}
