/* Responsive Design */

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

/* Desktop */
@media (max-width: 1199px) {
    .hero-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-list {
        flex-direction: column;
        margin-bottom: 2rem;
        gap: 1rem;
    }

    .nav-item {
        margin: 0;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .features-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Games Slider Responsive */
    .mobile-games-slider {
        padding: 0 40px;
    }
    
    .slider-header .section-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-slider-container {
        height: 500px;
    }
    
    .mobile-slide[data-slide="0"] {
        transform: translateX(-300px) rotateY(-15deg) scale(0.7);
    }
    
    .mobile-slide[data-slide="1"] {
        transform: translateX(-150px) rotateY(-8deg) scale(0.8);
    }
    
    .mobile-slide[data-slide="3"] {
        transform: translateX(150px) rotateY(8deg) scale(0.8);
    }
    
    .mobile-slide[data-slide="4"] {
        transform: translateX(300px) rotateY(15deg) scale(0.7);
    }
    
    .mobile-screen {
        width: 240px;
        height: 420px;
    }
    
    .game-thumbnails {
        gap: 1.5rem;
    }

    .login-steps,
    .register-benefits {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .hero-content {
        animation: fadeIn 2s ease-out;
    }
    
    .hero-subtitle {
        animation: slideInUp 1.5s ease-out 0.5s both;
    }
    
    .hero-buttons {
        animation: slideInUp 1.5s ease-out 1s both;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        background-size: 200% 200%;
        animation: gradientShift 15s ease-in-out infinite;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .hero-section::after {
        font-size: 12rem;
        top: -50px;
        right: -50px;
    }
    
    .hero-section::before {
        font-size: 2rem;
    }
    
    /* Back to Top Button Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Login Section Mobile */
    .login-section .container {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }
    
    .login-content,
    .login-image {
        max-width: 100%;
        text-align: center;
        height: auto;
    }
    
    .login-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Register Section Mobile */
    .register-section .container {
        gap: 2rem;
    }
    
    .register-content {
        max-width: 100%;
    }
    
    .register-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .register-image {
        flex-direction: column;
        gap: 1rem;
    }
    
    .register-image img {
        max-width: 100%;
        max-height: 300px;
    }
    
    /* Commitment Section Mobile */
    .commitment-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .commitment-section h2 {
        font-size: 2rem;
    }
    
    .commitment-section ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .commitment-section li {
        padding: 1rem;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .contact-form h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .contact-form > p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .checkbox-label {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .checkmark {
        width: 20px;
        height: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* FAQ Contact Mobile */
    .faq-contact {
        padding: 2.5rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    /* Privacy Policy Mobile */
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .page-header p {
        font-size: 1.2rem;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .content-wrapper {
        max-width: 95%;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .content-wrapper h2 {
        font-size: 2rem;
        margin: 2rem 0 1rem 0;
    }
    
    .content-wrapper h3 {
        font-size: 1.6rem;
        margin: 2rem 0 1rem 0;
        padding-left: 1.2rem;
    }
    
    .content-wrapper h3::before {
        font-size: 1rem;
    }
    
    .content-wrapper h4 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .content-wrapper p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    
    .content-wrapper li {
        padding: 0.8rem 1.2rem;
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
    }
    
    .content-wrapper li::before {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        left: -6px;
    }
    
    .policy-footer, .terms-footer, .disclaimer-footer {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .policy-footer p, .terms-footer p, .disclaimer-footer p {
        font-size: 1.1rem;
    }
    
    .privacy-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .contact-info-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .last-updated {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-contact h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .faq-contact p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-contact ul {
        margin-bottom: 2rem;
    }
    
    .faq-contact li {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .faq-contact .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }
    
    /* Games Slider Mobile */
    .mobile-games-slider {
        padding: 0 20px;
    }
    
    .slider-header .section-title {
        font-size: 2rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .mobile-slider-container {
        height: 400px;
    }
    
    .mobile-slide[data-slide="0"] {
        transform: translateX(-200px) rotateY(-15deg) scale(0.6);
    }
    
    .mobile-slide[data-slide="1"] {
        transform: translateX(-100px) rotateY(-8deg) scale(0.7);
    }
    
    .mobile-slide[data-slide="3"] {
        transform: translateX(100px) rotateY(8deg) scale(0.7);
    }
    
    .mobile-slide[data-slide="4"] {
        transform: translateX(200px) rotateY(15deg) scale(0.6);
    }
    
    .mobile-screen {
        width: 180px;
        height: 320px;
    }
    
    .game-thumbnails {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .thumbnail-icon {
        width: 40px;
        height: 40px;
    }
    
    .thumbnail-name {
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .feature-card,
    .game-card,
    .benefit-item,
    .testimonial-card {
        padding: 1.5rem;
    }

    .login-content,
    .register-content,
    .about-content,
    .cta-content {
        padding: 0 1rem;
    }

    .step,
    .benefit {
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-logo img {
        height: 40px;
    }

    .navbar {
        padding: 0.5rem 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .game-card img {
        height: 150px;
    }

    .hero-image img {
        max-width: 90%;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }
}

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

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .btn,
    .footer {
        display: none !important;
    }

    .hero-section {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }

    .hero-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }

    section {
        padding: 20px 0;
        background: none !important;
        color: black !important;
    }

    .section-title {
        color: black !important;
    }
}

/* Accessibility Improvements for Mobile */
@media (max-width: 767px) {
    /* Increase touch targets */
    .nav-link,
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Improve text readability */
    body {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Better focus indicators */
    .nav-link:focus,
    .btn:focus {
        outline: 3px solid var(--highlight-color);
        outline-offset: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-light: #1a1a1a;
        --text-dark: #ffffff;
    }

    .features-section,
    .register-section,
    .games-slider-section,
.games-section,
    .testimonials-section {
        background-color: var(--background-light);
        color: var(--text-dark);
    }

    .feature-card,
    .game-card,
    .testimonial-card {
        background-color: var(--secondary-color);
        color: var(--text-light);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .nav-menu,
    .feature-card,
    .game-card,
    .btn {
        transition: none;
    }

    .hero-title,
    .hero-subtitle {
        animation: none;
    }
}

/* Mobile Hero Section Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 