/* Responsive Styles */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    .about-decoration {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
        margin: 0 auto; 
        align-items: center;
        width: 100%;
    }

    /* Header */
    .nav-menu {
        gap: var(--space-md);
    }
    
    .header-actions {
        display: none;
    }

    /* Hero Section */
    .hero-section {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-section .container {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: var(--space-xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 80%;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: var(--space-xl);
    }

    /* Games Section */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Disclaimer */
    .age-restriction {
        flex-direction: column;
        text-align: center;
    }

    .age-restriction p {
        text-align: center;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-badges {
        justify-content: center;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    /* Header */
    .header-content {
        padding: var(--space-sm) 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-icon img {
        height: 35px;
        width: 35px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, rgba(13, 2, 33, 0.98), rgba(31, 41, 55, 0.95));
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: var(--space-lg);
        transition: left 0.3s ease;
        padding: var(--space-xl) 0;
        z-index: 999;
        overflow-y: auto;
        border-top: 1px solid rgba(139, 92, 246, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(-50px);
        animation: slideIn 0.3s ease forwards;
    }

    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu li:nth-child(6) { animation-delay: 0.6s; }

    .nav-link {
        flex-direction: row;
        gap: var(--space-sm);
        font-size: 1.1rem;
        padding: var(--space-md) var(--space-lg);
        display: flex;
        text-align: center;
        border-radius: var(--border-radius-sm);
        transition: all 0.3s ease;
        width: 200px;
        justify-content: center;
    }

    .nav-link:hover {
        background: rgba(139, 92, 246, 0.2);
        transform: scale(1.05);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 999;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    /* Games Section */
    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
}

/* Mobile Menu Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--space-sm);
    }

    /* Header */
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon img {
        height: 30px;
        width: 30px;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* About Section */
    .about-text p {
        font-size: 1rem;
    }

    /* Section Padding */
    section {
        padding: var(--space-xl) 0;
    }

    /* Back to Top Button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}