/* Mobile Header Adjustments */

/* Desktop-only class to hide elements on mobile */
.desktop-only {
    display: block;
}

@media screen and (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    /* Adjust header layout for mobile */
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        position: relative;
    }
    
    .header .left {
        display: flex;
        align-items: center;
    }

    /* Keep the logo on the left */
    .header .logo {
        font-size: 20px;
    }

    /* Position the menu toggle on the right */
    .header .right {
        display: flex;
        align-items: center;
    }
    
    /* Make sure mobile menu toggle is visible and positioned correctly */
    .mobile-menu-toggle {
        background: transparent;
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        padding: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        z-index: 100;
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        background-color: rgba(35, 45, 87, 0.7);
        box-shadow: 0 0 20px rgba(95, 105, 255, 0.5);
        transform: scale(1.05);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    /* Hamburger styling */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #fff;
        transition: all 0.3s ease;
    }
}

/* Mobile menu behavior */
@media screen and (max-width: 767px) {
    /* Basic navigation styling */
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 1000;
        transition: all 0.3s ease-in-out;
        overflow-y: auto;
        padding: 60px 20px 20px;
    }
    
    /* When nav is open */
    .nav.open {
        left: 0;
        display: block;
    }
    
    /* Nav content styling */
    .nav-content {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-title {
        font-size: 24px;
        margin-bottom: 30px;
        color: #fff;
        text-align: center;
    }
    
    /* Navigation list styling */
    .nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .nav ul li {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .nav ul li a {
        color: #fff;
        font-size: 18px;
        text-decoration: none;
        display: block;
        padding: 10px 20px;
        transition: all 0.3s ease;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
    }
    
    /* Close button styling */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    /* Body styling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}


