/* Mobile Responsiveness */
.mobile-toggle,
.nav-toggle,
.mobile-actions {
    display: none;
}

@media (max-width: 768px) {

    .mobile-toggle,
    .nav-toggle,
    .mobile-actions {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        flex-wrap: nowrap;
    }

    .nav-menu,
    .nav-links {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
        height: auto !important;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        z-index: 1000;
        align-items: stretch;
    }

    .logo {
        flex-shrink: 0;
    }

    .nav-menu.active,
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu li,
    .nav-links li {
        width: 100%;
    }

    .nav-item {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        color: var(--primary-color) !important;
        height: auto !important;
        justify-content: space-between !important;
        text-align: start !important;
        font-weight: 600;
    }

    /* Mobile Dropdowns */
    .dropdown-menu,
    .submenu,
    .mega-menu {
        position: static;
        box-shadow: none;
        padding-right: 1rem;
        padding-left: 0;
        display: none !important;
        border-top: none;
        min-width: 100%;
        width: 100%;
        background: var(--off-white);
        margin-top: 0.5rem;
        
        /* Disable desktop 3D effects on mobile */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        pointer-events: auto !important;
    }

    .dropdown.open>.dropdown-menu,
    .dropdown.open .mega-menu {
        display: block !important;
    }

    .dropdown-menu a,
    .submenu a,
    .mega-menu a {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        color: var(--text-dark) !important;
        display: block;
        text-align: start !important;
    }

    /* Removed duplicate chevron since HTML already has <i> elements */

    .dropdown.open>a i,
    .dropdown.open>span i {
        transform: rotate(180deg);
    }
    
    .nav-item i {
        transition: transform 0.3s ease;
    }

    /* Mega Menu Mobile */
    .mega-menu-container,
    .mega-menu-wrapper,
    .mega-menu-content,
    .mega-menu .container {
        position: static !important;
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        background: var(--off-white);
    }
    
    .mega-menu-wrapper {
        border-radius: 0;
        border: none;
    }

    .mega-col {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mega-col:last-child {
        border-bottom: none;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Scrolled State - Removed for stability */
/* header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
} */