/* ==========================================
   NAVBAR
========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.9rem 3rem;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border-light);

    transition: all 0.3s ease;
}

/* Add this class with JS on scroll */
.navbar.scrolled {
    padding: 0.7rem 3rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    background: rgba(255,255,255,0.98);
}

/* ==========================================
   LOGO
========================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 56px;
    width: 56px;

    object-fit: cover;

    border-radius: 50%;

    background: var(--primary);

    transition: transform .3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.company-name {
    display: none;
}

.mobile-menu .company-name {
    display: block;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 0.35rem;

    color: var(--navy-blue);
    text-decoration: none;

    font-weight: 500;
    font-size: 0.95rem;

    transition: all .3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Underline animation */

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width .3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

/* ==========================================
   DROPDOWN
========================================== */

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;

    min-width: 230px;

    background: white;

    border-radius: 12px;

    box-shadow: 0 15px 40px rgba(0,0,0,.08);

    border: 1px solid var(--border-light);

    padding: 0.8rem 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all .3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
}

.dropdown-content a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.dropdown-content a::after {
    display: none;
}

/* ==========================================
   CTA BUTTON
========================================== */

.compose-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.85rem 1.4rem;

    border-radius: 50px;

    background: var(--accent);
    color: white;

    font-weight: 600;
    font-size: 0.95rem;

    text-decoration: none;

    transition: all .3s ease;
}

.compose-btn:hover {
    background: var(--accent-hover);

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.compose-btn:active {
    transform: translateY(0);
}
/* toggle added here */
/* ==========================================
   MOBILE DRAWER HEADER
========================================== */

.mobile-menu-header {

    display: none;

}



/* ==========================================
   MOBILE NAVIGATION
========================================== */

@media (max-width: 992px) {

    .nav-links {

        position: fixed;

        top: 0;

        right: -100%;

        width: 320px;

        height: 100vh;

        background: white;

        display: flex;

        flex-direction: column;

        padding: 0;

        transition: .4s ease;

        overflow-y: auto;

    }

    .nav-links.active {

        right: 0;

    }

    .mobile-menu-header {

        display: flex;

        justify-content: space-between;

        align-items: center;

        padding: 1.3rem;

        border-bottom: 1px solid #eee;

        margin-bottom: 1rem;

    }

    .mobile-menu-header h2 {

        margin: 0;
        padding: 0;

        font-size: 1.3rem;

        font-weight: 800;

        letter-spacing: 2px;

        color: var(--primary);

    }

    .mobile-close-btn {

        width: 42px;

        height: 42px;

        border: none;

        border-radius: 50%;

        background: #f5f5f5;

        cursor: pointer;

        font-size: 1.2rem;

        color: var(--primary);

    }

    .nav-links a {

        padding: 14px 24px;

    }

    /* Push Apply Button To Bottom */

    .mobile-apply-btn {

        margin-top: auto;

        margin-left: 20px;

        margin-right: 20px;

        margin-bottom: 30px;

        text-align: center;

        justify-content: center;

    }

}
/* ==========================================
   MOBILE BUTTONS
========================================== */

.menu-icon,
.cancel-icon {
    display: none;

    font-size: 1.5rem;
    cursor: pointer;

    color: var(--primary);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 992px) {

    .navbar {
        padding: 1rem 1.5rem;
    }

    .company-name {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        position: fixed;

        top: 0;
        right: -100%;

        width: 320px;
        height: 100vh;

        background: white;

        flex-direction: column;
        align-items: flex-start;

        padding: 6rem 2rem;

        gap: 1.5rem;

        box-shadow: -10px 0 30px rgba(0,0,0,.08);

        transition: right .3s ease;
    }

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

    .dropdown-content {
        position: static;

        opacity: 1;
        visibility: visible;
        transform: none;

        box-shadow: none;
        border: none;

        padding-left: 1rem;
        margin-top: .5rem;

        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .compose-btn {
        width: 100%;
        justify-content: center;
    }
}