/* --- Navigation Styles --- */
.main-nav {
    background-color: transparent; 
    position: absolute; 
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: center; 
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3.5rem 2rem 1.5rem 2rem;
    position: relative; 
}

.nav-logo {
    position: absolute;
    left: 2rem; /* Changed from -10rem to align with container padding */
    top: 6rem;
    transform: translateY(-50%); 
    max-width: 25vw; /* Prevents the logo from overlapping centered nav links on small laptops */
}

.nav-logo img {
    height: 120px;
    width: auto;
    max-width: 100%; /* Ensures the image scales down if the container shrinks */
    max-height: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    color: var(--text-light); /* Assuming dark hero sections underneath */
}

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

/* --- Modifier for Light Pages (Like the Team Page) --- */
.main-nav.nav-dark .nav-links a {
    color: var(--text-dark);
}

.main-nav.nav-dark .nav-links a:hover {
    color: var(--brand-purple);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-light);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    top: 100%;
    left: 0;
    border-top: 2px solid var(--brand-purple);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
}

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

/* --- Hamburger Icon (Hidden on Desktop) --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001; 
    
    /* ADD THESE 3 LINES to reset the button styling */
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--brand-purple);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- Mobile Navigation Adjustments --- */
@media (max-width: 768px) {
    .main-nav {
        background-color: transparent; 
        position: fixed; 
    }

    .nav-logo {
        display: none !important; 
    }

    /* 1. Move Hamburger to the Left */
    .hamburger {
        display: flex;
        position: absolute;
        left: 2rem; /* Changed from right to left */
        top: 1.5rem;
    }

    /* 2. Make Menu Slide in from the Left */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Changed from right to left */
        height: 100vh;
        width: 250px;
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 6rem;
        transition: left 0.3s ease; /* Changed from right to left */
        box-shadow: 5px 0 15px rgba(0,0,0,0.1); /* Flipped shadow direction */
        gap: 1.5rem;
    }

    /* Higher specificity so text is forced dark on mobile,
       regardless of .nav-dark being present */
    .main-nav .nav-links a,
    .main-nav.nav-dark .nav-links a {
        color: var(--text-dark);
    }

    /* 3. Trigger Slide from Left */
    .nav-links.nav-active {
        left: 0; /* Changed from right to left */
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 1rem;
        background-color: transparent;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
}