/* CRITICAL FIX: Mobile navigation - target nav-active class */

/* Hide mobile close button by default */
.mobile-nav-close {
    display: none;
}

@media (max-width: 768px) {

    /* Force nav menu to cover entire screen when active */
    #nav-menu.nav-active,
    .nav.nav-active {
        height: 100vh !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        background-color: #000000 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 9999 !important;
        transform: translateX(0) !important;
        position: fixed !important;
    }

    /* Force ALL 4 links visible */
    #nav-menu.nav-active a,
    .nav.nav-active a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
        font-size: 1.5rem !important;
        padding: 1.5rem !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Show and style close button when menu is active */
    #nav-menu.nav-active .mobile-nav-close,
    .nav.nav-active .mobile-nav-close {
        display: block !important;
        position: absolute !important;
        top: 2rem !important;
        right: 2rem !important;
        background: transparent !important;
        border: 2px solid #ffffff !important;
        color: #ffffff !important;
        font-size: 2.5rem !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        padding: 0 !important;
        transition: all 0.3s ease !important;
    }

    #nav-menu.nav-active .mobile-nav-close:hover,
    .nav.nav-active .mobile-nav-close:hover {
        background: #ffffff !important;
        color: #000000 !important;
        transform: rotate(90deg) !important;
    }
}