/* ===============================
   NAVBAR.CSS
   Responsive SaaS Navbar for Edunet365
================================= */

.navbar {
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* ---------- Logo ---------- */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-dark-blue);
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-logo .logo-img {
    height: 60px;
    width: auto;
}

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

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-menu ul li a {
    color: var(--color-black);
    font-weight: 500;
    position: relative;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-menu ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: var(--color-blue);
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

.nav-menu ul li a:hover {
    color: var(--color-blue);
}

/* ---------- CTA Button ---------- */
.nav-btn {
    margin-left: 20px;
    font-size: 0.95rem;
}

/* ---------- Mobile Toggle ---------- */
.nav-toggle {
    width: 30px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-black);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 270px;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    .nav-btn {
        margin-top: 20px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hamburger animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

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

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

/* ---------- Scroll Animation ---------- */
.navbar.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: var(--color-white);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
