/*
 * Mobile Navigation Fix
 * This file corrects the mobile navigation display issue.
 */

/* 1. Hide mobile navigation elements by default on desktop */
.nav-mobile,
.nav-toggle,
.mobile-nav-toggle {
    display: none;
}

/* 2. Media Query for Mobile Devices (e.g., screen width <= 768px) */
@media (max-width: 768px) {

    /* Hide the desktop navigation menu */
    .nav-menu,
    .nav-desktop {
        display: none;
    }

    /* Show the mobile navigation toggle button (hamburger icon) */
    .nav-toggle,
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff; /* Assuming header text is white */
        font-size: 24px;
        cursor: pointer;
        z-index: 1001; /* Ensure it's on top */
    }

    /* Style the mobile navigation container */
    .nav-mobile {
        display: none; /* It's hidden until the 'active' class is added by JS */
        position: fixed; /* Use fixed to overlay the whole screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Full screen overlay */
        background-color: rgba(10, 10, 10, 0.98); /* Dark, slightly transparent background */
        z-index: 1000;
        padding-top: 80px; /* Space for header/close button */
        text-align: center;
        overflow-y: auto; /* Allow scrolling if content is long */
    }

    /* This class will be toggled by JavaScript to show the menu */
    .nav-mobile.active {
        display: block;
    }

    .nav-mobile ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-mobile ul li {
        padding: 15px 0;
    }

    .nav-mobile ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .nav-mobile ul li a:hover {
        color: #007bff; /* Highlight color on hover */
    }
}
