/* ================= HEADER CONTAINER START ================= */
header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    width: 100%; /* Ensure header is full width */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 40px;
}
/* ================= HEADER CONTAINER END ================= */

/* ================= LOGO START ================= */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: #4c3c83;
    letter-spacing: -0.5px;
}

/* UNIQUE ANIMATION: The "Wobble" Effect */
@keyframes wobble {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-6deg); }
    30% { transform: rotate(5deg); }
    45% { transform: rotate(-4deg); }
    60% { transform: rotate(3deg); }
    75% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

.logo:hover .logo-img {
    animation: wobble 0.8s ease-in-out;
}
/* ================= LOGO END ================= */

/* ================= NAV MENU START ================= */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* The Animation Line (Now Purple) */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-color);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--brand-color);
}

.nav-link:hover::after {
    width: 100%;
}
/* ================= NAV MENU END ================= */

/* ================= LOGIN BUTTON START ================= */
.login-btn {
    background-color: var(--brand-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.login-btn:hover {
    background-color: var(--brand-dark);
}

.login-btn:hover .arrow-icon {
    transform: translateX(5px);
}
/* ================= LOGIN BUTTON END ================= */

/* ================= HAMBURGER ICON START ================= */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* ================= HAMBURGER ICON END ================= */

/* ================= RESPONSIVE BEHAVIOUR START ================= */
@media (max-width: 1024px) {
    .navbar { padding: 0 20px; }

    .hamburger { display: flex; }

    .login-wrapper-desktop { display: none; }

    .nav-menu {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        max-height: 550px;
        opacity: 1;
        padding-bottom: 30px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link {
        display: block;
        padding: 20px;
        font-size: 18px;
    }

    .nav-link::after { display: none; }

    .mobile-login-li {
        margin-top: 5px;
        border: none !important;
        display: flex;
        justify-content: center;
    }
}

@media (min-width: 1025px) {
    .mobile-login-li { display: none; }
}

/* Hamburger Animation active state */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--brand-color);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--brand-color);
}
/* ================= RESPONSIVE BEHAVIOUR END ================= */