/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.mobile-nav-overlay .nav-links a {
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

/* Tablet & Desktop Adjustments */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .header-wrapper {
        width: 100%;
        top: 0;
        border-radius: 0;
    }
    
    .header-glass {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(139, 92, 246, 0.3);
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .header-glass .btn-neon {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-btns {
        flex-direction: column;
        padding: 0 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .game-wrapper {
        padding: 3px;
        border-radius: 16px;
    }

    .game-iframe-container {
        height: 450px;
        border-radius: 13px;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .legal-container {
        padding: 30px 20px;
    }
}