/* Responsive Design for ztl games */

/* Header and Navigation Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    /* Show mobile toggle button */
    .nav-toggle {
        display: flex;
    }
    
    /* Mobile menu styles are now in main CSS */
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 97, 7, 0.1);
        border-color: var(--primary-orange);
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .btn-login,
    .btn-register {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo img {
        width: 100px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-menu .nav-list {
        max-width: 350px;
    }
    
    .nav-menu .nav-actions {
        max-width: 350px;
    }
    
    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        min-height: 55px;
    }
    
    .nav-menu .btn-login,
    .nav-menu .btn-register {
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-menu .close-menu {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .nav-actions {
        gap: 0.8rem;
    }
    
    .btn-login,
    .btn-register {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .floating-element-1,
    .floating-element-2,
    .floating-element-3,
    .floating-element-4 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Features Section Responsive */
@media (max-width: 768px) {
    .features-section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .floating-feature-1,
    .floating-feature-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon i {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* Login/Register Sections Responsive */
@media (max-width: 768px) {
    .login-section,
    .register-section {
        padding: 80px 0;
    }
    
    .login-content,
    .register-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .login-text h2,
    .register-text h2 {
        font-size: 2.5rem;
    }
    
    .login-text p,
    .register-text p {
        font-size: 1.1rem;
    }
    
    .floating-login-1,
    .floating-login-2,
    .floating-register-1,
    .floating-register-2,
    .floating-register-3,
    .floating-register-4 {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-section,
    .register-section {
        padding: 60px 0;
    }
    
    .login-text h2,
    .register-text h2 {
        font-size: 2rem;
    }
    
    .login-text p,
    .register-text p {
        font-size: 1rem;
    }
    
    .login-image img,
    .register-image img {
        border-radius: 20px;
    }
}

/* About Section Responsive */
@media (max-width: 768px) {
    .about-section {
        padding: 80px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2.5rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
    
    .benefits-list li {
        text-align: left;
    }
    
    .floating-about-1,
    .floating-about-2,
    .floating-about-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-image img {
        border-radius: 20px;
    }
}

/* About Page Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .page-header p {
        font-size: 1.2rem;
    }
    
    .about-hero,
    .mission-section,
    .values-section,
    .story-section,
    .team-section,
    .achievements-section,
    .future-section,
    .cta-section {
        padding: 80px 0;
    }
    
    .about-hero-content,
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-hero-text,
    .story-text {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-hero-text h2,
    .mission-content h2,
    .values-content h2,
    .story-text h2,
    .team-content h2,
    .achievements-content h2,
    .future-content h2,
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .about-hero-text p,
    .mission-content p,
    .values-content p,
    .story-text p,
    .team-content p,
    .achievements-content p,
    .future-content p,
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .mission-grid,
    .values-grid,
    .team-highlights,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .about-hero,
    .mission-section,
    .values-section,
    .story-section,
    .team-section,
    .achievements-section,
    .future-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .about-hero-text h2,
    .mission-content h2,
    .values-content h2,
    .story-text h2,
    .team-content h2,
    .achievements-content h2,
    .future-content h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .about-hero-text p,
    .mission-content p,
    .values-content p,
    .story-text p,
    .team-content p,
    .achievements-content p,
    .future-content p,
    .cta-content p {
        font-size: 1rem;
    }
    
    .mission-item,
    .value-item,
    .team-highlight,
    .achievement-item {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Games Page Responsive */
@media (max-width: 768px) {
    .games-hero,
    .featured-games,
    .game-categories,
    .game-features,
    .gaming-stats {
        padding: 80px 0;
    }
    
    .games-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .games-hero-text {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .games-hero-text h2,
    .featured-games .section-header h2,
    .game-categories .section-header h2,
    .game-features .section-header h2,
    .gaming-stats .stats-content h2 {
        font-size: 2.5rem;
    }
    
    .games-hero-text p,
    .featured-games .section-header p,
    .game-categories .section-header p,
    .game-features .section-header p {
        font-size: 1.1rem;
    }
    
    .featured-games-grid,
    .categories-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-item {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .games-hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .games-hero,
    .featured-games,
    .game-categories,
    .game-features,
    .gaming-stats {
        padding: 60px 0;
    }
    
    .games-hero-text h2,
    .featured-games .section-header h2,
    .game-categories .section-header h2,
    .game-features .section-header h2,
    .gaming-stats .stats-content h2 {
        font-size: 2rem;
    }
    
    .games-hero-text p,
    .featured-games .section-header p,
    .game-categories .section-header p,
    .game-features .section-header p {
        font-size: 1rem;
    }
    
    .featured-game-card,
    .category-card,
    .feature-item,
    .stat-item {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* FAQ Section Responsive */
@media (max-width: 768px) {
    .faq-preview {
        padding: 80px 0;
    }
    
    .faq-content h2 {
        font-size: 2.5rem;
    }
    
    .faq-content p {
        font-size: 1.1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-item {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .faq-preview {
        padding: 60px 0;
    }
    
    .faq-content h2 {
        font-size: 2rem;
    }
    
    .faq-content p {
        font-size: 1rem;
    }
    
    .faq-item {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .faq-item h3 {
        font-size: 1.4rem;
    }
    
    .faq-item p {
        font-size: 1rem;
    }
}

/* FAQ Page Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 80px 0;
    }
    
    .faq-categories h2 {
        font-size: 2.5rem;
        margin: 3rem 0 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.3rem;
        padding: 1.5rem 2rem 1rem;
    }
    
    .faq-answer {
        padding: 0 2rem 2rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
    }
    
    .faq-cta {
        padding: 2.5rem 2rem;
        margin-top: 3rem;
    }
    
    .faq-cta h2 {
        font-size: 2rem;
    }
    
    .faq-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-categories h2 {
        font-size: 2rem;
        margin: 2rem 0 1rem;
    }
    
    .faq-item {
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 1.5rem;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin-top: 2rem;
    }
    
    .faq-cta h2 {
        font-size: 1.8rem;
    }
    
    .faq-cta p {
        font-size: 1rem;
    }
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-page-header {
        padding: 80px 0;
    }
    
    .legal-page-header h1 {
        font-size: 3rem;
    }
    
    .legal-page-header p {
        font-size: 1.2rem;
    }
    
    .legal-content-section {
        padding: 80px 0;
    }
    
    .legal-content-text {
        padding: 2.5rem 2rem;
        border-radius: 25px;
    }
    
    .legal-content-text h2 {
        font-size: 1.8rem;
        margin: 2.5rem 0 1.2rem;
    }
    
    .legal-content-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-page-header {
        padding: 60px 0;
    }
    
    .legal-page-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-page-header p {
        font-size: 1.1rem;
    }
    
    .legal-content-section {
        padding: 60px 0;
    }
    
    .legal-content-text {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .legal-content-text h2 {
        font-size: 1.6rem;
        margin: 2rem 0 1rem;
    }
    
    .legal-content-text p {
        font-size: 0.95rem;
    }
    
    .legal-content-text ul,
    .legal-content-text ol {
        padding-left: 1.5rem;
    }
}

/* Back to Top Button Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .contact-info h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .contact-info p {
        text-align: center;
    }
    
    .contact-methods {
        gap: 1.5rem;
    }
    
    .contact-method {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
}

/* Games Section Responsive */
@media (max-width: 768px) {
    .games-section {
        padding: 80px 0;
    }
    
    .games-section .section-header h2 {
        font-size: 2.5rem;
    }
    
    .games-section .section-header p {
        font-size: 1.1rem;
    }
    
    .games-grid {
        gap: 2rem;
    }
    
    .game-card.featured {
        max-width: 100%;
        transform: rotate(0deg);
    }
    
    .games-row {
        gap: 1.5rem;
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .games-row .game-card {
        width: 200px;
        transform: rotate(0deg);
    }
    
    .floating-game-1,
    .floating-game-2,
    .floating-game-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .games-section {
        padding: 60px 0;
    }
    
    .games-section .section-header h2 {
        font-size: 2rem;
    }
    
    .games-section .section-header p {
        font-size: 1rem;
    }
    
    .games-grid {
        gap: 1.5rem;
    }
    
    .game-card.featured {
        transform: rotate(0deg);
    }
    
    .game-card.featured img {
        height: 300px;
    }
    
    .games-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .games-row .game-card {
        width: 180px;
        transform: rotate(0deg);
    }
    
    .game-card {
        border-radius: 20px;
    }
    
    .game-card img {
        height: 180px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .hero-content,
    .login-content,
    .register-content,
    .about-content {
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-gray);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .login-content,
    .register-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

/* Mobile Large */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .feature-card,
    .game-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .feature-card,
    .game-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .nav-logo .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-image img,
    .login-image img,
    .register-image img,
    .about-image img {
        border-radius: 15px;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-section {
        padding: 70px 0 30px;
    }
    
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 50px 0;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 50px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .login-image img,
    .register-image img,
    .about-image img,
    .game-card img,
    .feature-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .btn,
    .hero-buttons,
    .cta-buttons {
        display: none !important;
    }
    
    .hero-section,
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .hero-content,
    .login-content,
    .register-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .features-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-card:hover,
    .game-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Fast Transitions for Better Performance */
@media (prefers-reduced-motion: no-preference) {
    .btn,
    .nav-link,
    .feature-card,
    .game-card,
    .faq-item {
        transition-duration: var(--transition-fast) !important;
    }
    
    .nav-menu,
    .feature-card::before,
    .game-card::before {
        transition-duration: var(--transition-medium) !important;
    }
}

/* Ultra-Fast Mobile Transitions */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .feature-card,
    .game-card,
    .faq-item,
    .nav-toggle,
    .nav-menu .nav-link,
    .nav-menu .btn {
        transition-duration: 0.1s !important;
        transition-timing-function: ease-out !important;
    }
    
    .nav-menu,
    .feature-card::before,
    .game-card::before,
    .nav-menu .nav-link::before,
    .nav-menu .nav-link::after {
        transition-duration: 0.15s !important;
        transition-timing-function: ease-out !important;
    }
    
    /* Optimize mobile menu animations */
    .nav-menu.active {
        transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }
    
    .nav-list li {
        animation-duration: 0.2s !important;
    }
    
    .nav-actions {
        animation-duration: 0.25s !important;
    }
}

/* Super-Fast Small Mobile Transitions */
@media (max-width: 480px) {
    .btn,
    .nav-link,
    .feature-card,
    .game-card,
    .faq-item,
    .nav-toggle,
    .nav-menu .nav-link,
    .nav-menu .btn {
        transition-duration: 0.08s !important;
        transition-timing-function: ease-out !important;
    }
    
    .nav-menu,
    .feature-card::before,
    .game-card::before,
    .nav-menu .nav-link::before,
    .nav-menu .nav-link::after {
        transition-duration: 0.12s !important;
        transition-timing-function: ease-out !important;
    }
    
    /* Ultra-fast mobile menu */
    .nav-menu.active {
        transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }
    
    .nav-list li {
        animation-duration: 0.15s !important;
    }
    
    .nav-actions {
        animation-duration: 0.2s !important;
    }
    
    /* Additional mobile performance optimizations */
    .hero-section,
    .features-section,
    .games-section,
    .faq-section {
        will-change: transform;
    }
    
    /* Optimize touch interactions */
    .btn:active,
    .nav-link:active,
    .feature-card:active,
    .game-card:active {
        transform: scale(0.98);
        transition-duration: 0.05s !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #cccccc;
    }
    
    body {
        background-color: var(--white);
        color: var(--text-dark);
    }
    
    .feature-card,
    .game-card,
    .testimonial-card {
        background: var(--light-gray);
        color: var(--text-dark);
    }
}

/* Focus Visible for Keyboard Navigation */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--primary-orange);
        outline-offset: 2px;
        transform: scale(1.05);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #ff0000;
        --secondary-orange: #cc0000;
        --accent-red: #990000;
        --dark-gray: #000000;
        --text-dark: #000000;
        --text-light: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .feature-card,
    .game-card,
    .testimonial-card {
        border: 2px solid currentColor;
    }
}

/* Homepage FAQ Section Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-section .section-header h2 {
        font-size: 2.5rem;
    }
    
    .faq-section .section-header p {
        font-size: 1.1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
    }
    
    .faq-cta {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-section .section-header h2 {
        font-size: 2rem;
    }
    
    .faq-section .section-header p {
        font-size: 1rem;
    }
    
    .faq-grid {
        gap: 1rem;
    }
    
    .faq-item {
        padding: 1.2rem;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .faq-cta {
        padding: 1.2rem;
    }
    
    .faq-cta p {
        font-size: 1rem;
    }
} 