/* ========================================
   NAVIGATION STYLES
   ======================================== */

/* Desktop Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.98), rgba(52, 152, 219, 0.95));
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(44, 90, 160, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(44, 90, 160, 1), rgba(52, 152, 219, 0.98));
    box-shadow: 0 8px 40px rgba(44, 90, 160, 0.4);
}

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

.logo {
    position: relative;
    transition: transform 0.3s ease;
}

.logo a {
    text-decoration: none;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: #f39c12;
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(243, 156, 18, 0.4));
    animation: logoMarkFloat 3s ease-in-out infinite;
}

@keyframes logoMarkFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 24px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: block;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.9), rgba(230, 126, 34, 0.9));
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu a.active::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 75px;
    }

    .logo h2 {
        font-size: 1.4rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
        isolation: isolate;
        z-index: 99999;
        transform: none;
        transition: left 0.3s ease;
        will-change: left;
    }

    .mobile-menu-overlay::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
        z-index: 0;
        height: 100vh;
    }

    .mobile-menu-overlay.active {
        left: 0;
    }

    .mobile-menu-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        position: relative;
        z-index: 1;
        background: transparent;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 3rem;
    }

    .mobile-logo {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #2c5aa0, #3498db);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-logo i {
        color: #ffffff;
        font-size: 1.5rem;
    }

    .mobile-close {
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #333;
        cursor: pointer;
        padding: 0.5rem;
        transition: transform 0.3s ease;
    }

    .mobile-close:hover {
        transform: rotate(90deg);
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        flex: 1;
    }

    .mobile-nav-list li {
        margin-bottom: 0.5rem;
    }

    .mobile-nav-list a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.2rem 1rem;
        color: #333;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .mobile-nav-list a:hover {
        background: #f8f9fa;
        padding-left: 1.5rem;
    }

    .mobile-nav-list a.active {
        background: #f8f9fa;
    }

    .mobile-nav-list a i {
        color: #999;
        font-size: 0.9rem;
    }

    .mobile-cta {
        margin: 2rem 0;
    }

    .mobile-get-started {
        display: block;
        width: 100%;
        padding: 1.2rem;
        background: linear-gradient(135deg, #2c5aa0, #3498db);
        color: #ffffff;
        text-align: center;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .mobile-get-started:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
    }

    .mobile-social {
        display: flex;
        justify-content: space-around;
        padding: 1.5rem 0;
        border-top: 1px solid #f0f0f0;
    }

    .social-link-mobile {
        color: #999;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

    .social-link-mobile:hover {
        color: #2c5aa0;
    }

    .nav-menu {
        display: none;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none;
    }
}
