/* ===== CLEAN ORGANIZED NAVIGATION ===== */
.top-nav {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* ===== LOGO SECTION ===== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.03);
}

.logo-image {
    height: 50px;
    width: auto;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: 0.3px;
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #1a202c;
    font-weight: 600;
}

/* ===== DESKTOP MENU ===== */
.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 20px;
    color: #1a202c;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-menu > li > a.active {
    background: rgba(251, 191, 36, 0.2);
    color: #ffffff;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown-toggle {
    cursor: pointer;
}

.arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 8px;
    margin-top: 8px;
    list-style: none;
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.dropdown-menu li a.active {
    background: #fff7ed;
    color: #f59e0b;
    font-weight: 600;
}

.menu-icon {
    font-size: 1.2rem;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px 12px;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu ul {
    list-style: none;
    padding: 16px 16px 32px 16px;
    margin: 0;
}

.mobile-menu ul li {
    margin-bottom: 4px;
}

.mobile-menu ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu ul li a:hover {
    background: #f8fafc;
}

.mobile-menu ul li a.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.mobile-section {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 16px 8px;
    margin-top: 8px;
}

.mobile-section:first-child {
    margin-top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .nav-container {
        height: 60px;
        padding: 0 16px;
    }

    .logo-image {
        height: 40px;
    }

    .logo-name {
        font-size: 1.2rem;
    }

    .logo-tagline {
        display: none;
    }

    .mobile-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
    
    /* Ensure scrolling works on small screens */
    .mobile-menu ul {
        padding-bottom: 40px;
    }
}