/* Mobile Navigation Fix */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        cursor: pointer !important;
        width: 30px !important;
        height: 21px !important;
        justify-content: space-between !important;
        z-index: 1003 !important;
        position: relative !important;
    }
    
    .mobile-menu-btn span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: var(--primary-color) !important;
        transition: all 0.3s ease !important;
        border-radius: 3px !important;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        flex-direction: column !important;
        padding: 30px 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        display: flex !important;
    }
    
    .dark-mode .nav-links {
        background-color: rgba(26, 26, 26, 0.98) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    }
    
    .nav-links.active {
        transform: translateX(0) !important;
    }
    
    .nav-links > a {
        margin: 15px 0 !important;
        padding: 15px 0 !important;
        font-size: 1.4rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        text-decoration: none !important;
        color: var(--text-dark) !important;
    }
    
    .dark-mode .nav-links > a {
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-light) !important;
    }
    
    .nav-links > a:hover,
    .nav-links > a:active {
        padding-left: 10px !important;
        color: var(--primary-color) !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Mobile dropdown */
    .dropdown {
        width: 100% !important;
        margin: 15px 0 !important;
    }
    
    .dropdown-toggle {
        padding: 15px 0 !important;
        font-size: 1.4rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        justify-content: space-between !important;
        width: 100% !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
    }
    
    .dark-mode .dropdown-toggle {
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-light) !important;
    }
    
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        display: none !important;
        width: 100% !important;
        background-color: rgba(0, 0, 0, 0.05) !important;
        border: none !important;
        border-radius: 8px !important;
        margin-top: 10px !important;
        padding: 10px 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .dark-mode .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    /* Ensure mobile menu button is visible */
    .nav-container .mobile-menu-btn {
        display: flex !important;
    }
    
    .dropdown-menu a {
        display: block !important;
        padding: 12px 20px !important;
        margin: 5px 0 !important;
        border-left: 3px solid var(--primary-color) !important;
        border-bottom: none !important;
        font-size: 1.2rem !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .dark-mode .dropdown-menu a {
        color: var(--text-light) !important;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        background-color: rgba(0, 0, 0, 0.1) !important;
        color: var(--primary-color) !important;
    }
    
    .dark-mode .dropdown-menu a:hover,
    .dark-mode .dropdown-menu a:active {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
}