/* ===== NAVIGATION.CSS ===== */
.navbar {
    background-color: var(--primary);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--secondary);
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    z-index: 1;
    overflow: hidden;
}

.nav-item:hover .dropdown-content {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--secondary);
    color: white;
    padding-left: 1.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        flex-direction: column;
        padding: var(--spacing-sm);
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: var(--primary-dark);
        margin-top: 0.5rem;
    }
    
    .nav-item.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        color: var(--text-white);
        padding-left: 2rem;
    }
    
    .dropdown-content a:hover {
        background-color: var(--secondary);
    }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== FIXED NAVIGATION.CSS ===== */

.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

/* Hide hamburger by default on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e67e22;
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1001;
}

.nav-item:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #e67e22;
    color: white;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }
    
    /* Hide nav menu by default on mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Show menu when active class is added */
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid #34495e;
    }
    
    /* Mobile dropdown */
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: #34495e;
        margin-top: 5px;
        border-radius: 0;
    }
    
    .nav-item.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        color: #ecf0f1;
        padding-left: 30px;
        border-bottom: 1px solid #405b73;
    }
    
    .dropdown-content a:hover {
        background-color: #e67e22;
    }
    
    /* Hamburger animation when active */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .logo {
        height: 40px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}