/* Simple Mobile Menu
   A clean implementation focused on making the mobile menu work properly */

/* Desktop Navigation Styling */
/* Header layout for desktop */
.header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 20px 30px;
    position: relative;
    z-index: 1000;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
}

.desktop-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding: 5px 2px;
    transition: all 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: #8a56ff;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a65ff, #8a56ff);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

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

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

    /* Basic header layout */
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        position: relative;
        z-index: 1000;
    }
    
    /* Logo on left */
    .header .left {
        display: flex;
        align-items: center;
    }

    .header .logo {
        font-size: 20px;
        color: #fff;
        text-decoration: none;
    }

    /* Menu toggle button on right */
    .header .right {
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        background: rgba(25, 35, 77, 0.6);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        cursor: pointer;
        border-radius: 6px;
        z-index: 1001;
        box-shadow: 0 0 15px rgba(95, 105, 255, 0.3);
        transition: all 0.2s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(35, 45, 87, 0.8);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    /* Mobile Navigation Menu */
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(22, 33, 62, 0.98) 0%, rgba(35, 48, 87, 0.98) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 999;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.6);
        padding: 70px 25px 30px;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav.open {
        right: 0;
    }
    
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }
    
    .menu-close svg {
        width: 20px;
        height: 20px;
        stroke: white;
        stroke-width: 2px;
    }
    
    .mobile-nav-title {
        color: white;
        font-size: 24px;
        margin-bottom: 35px;
        text-align: center;
        font-weight: 700;
        letter-spacing: 0.5px;
        position: relative;
        padding-bottom: 15px;
    }
    
    .mobile-nav-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #4a65ff, #8a56ff);
        border-radius: 3px;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav ul li {
        margin-bottom: 18px;
        position: relative;
    }
    
    .mobile-nav ul li a {
        color: white;
        font-size: 17px;
        font-weight: 500;
        letter-spacing: 0.3px;
        text-decoration: none;
        display: flex;
        align-items: center;
        padding: 14px 18px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        transition: all 0.25s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .mobile-nav ul li a:before {
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        background: linear-gradient(135deg, #4a65ff, #8a56ff);
        border-radius: 50%;
        margin-right: 10px;
        box-shadow: 0 0 8px rgba(138, 86, 255, 0.6);
    }
    
    .mobile-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
    
    /* Overlay when menu is open */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Lock body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}
