/* Responsive Design - Mobile First Approach */

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    z-index: 1001;
}

/* Mobile Navigation Styles */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: all 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-auth {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .nav-auth .btn {
        width: 100%;
        max-width: 200px;
    }
}



/* Mobile Layout Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    body {
        width: 100%;
        overflow-x: hidden;
    }
    
    .main-content {
        width: 100%;
        margin-top: 80px;
    }
    
    /* Games Slider Mobile Adjustments */
    .games-slider-section {
        padding: 4rem 0;
    }
    
    .slider-header .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .slider-header .emoji {
        font-size: 2rem;
    }
    
    .language-badge {
        padding: 0.4rem 1.5rem;
        font-size: 1rem;
    }
    
    .mobile-games-slider {
        padding: 1rem 0;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .mobile-slider-container {
        margin: 0;
        perspective: 800px;
    }
    
    .mobile-slide {
        width: 220px;
    }
    
    /* Adjust fanned-out positions for mobile */
    .mobile-slide[data-slide="0"] {
        transform: translate(-100%, -50%) scale(0.5) rotateY(-20deg);
    }
    
    .mobile-slide[data-slide="1"] {
        transform: translate(-50%, -50%) scale(0.6) rotateY(-15deg);
    }
    
    .mobile-slide[data-slide="2"] {
        transform: translate(-50%, -50%) scale(0.8) rotateY(0deg);
    }
    
    .mobile-slide[data-slide="3"] {
        transform: translate(-50%, -50%) scale(0.6) rotateY(15deg);
    }
    
    .mobile-slide[data-slide="4"] {
        transform: translate(0%, -50%) scale(0.5) rotateY(20deg);
    }
    
    .game-thumbnails {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .thumbnail-item {
        gap: 0.3rem;
    }
    
    .thumbnail-icon {
        width: 40px;
        height: 40px;
    }
    
    .thumbnail-name {
        font-size: 0.7rem;
    }
    
    .slider-slogan p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Mobile slider height adjustment */
    .mobile-slider {
        height: 450px;
    }
    
    /* Mobile thumbnail adjustments */
    .game-thumbnails {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .thumbnail-item {
        margin: 0 0.5rem;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero Section */
    .hero-section {
        padding: 4rem 0;
        min-height: auto;
        width: 100%;
        overflow: hidden;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.3;
        text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Sections */
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .cta-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    /* Grid Layouts */
    .features-grid,
    .login-steps,
    .register-benefits,
    .games-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Mobile login section adjustments */
    .login-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .login-content {
        order: 1;
        padding-right: 0;
    }
    
    .login-image {
        order: 2;
        margin-top: 2rem;
        padding-left: 0;
    }
    

    
    /* Better mobile spacing */
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    /* Mobile card improvements */
    .feature-card,
    .step,
    .benefit,
    .game-card,
    .testimonial-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    /* Mobile icon sizing */
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .register-image {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .register-image img {
        max-width: 100%;
        max-width: 280px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        text-align: center;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Cards and Components */
    .feature-card,
    .step,
    .benefit,
    .game-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 1rem;
    }
    
    .footer-section h3 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition);
    }
    
    .footer-section ul li a:hover {
        color: var(--secondary-color);
    }
}

/* Tablet Layout Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    /* Hero Section */
    .hero-section .container {
        gap: 3rem;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    /* Games Slider Tablet Adjustments */
    .games-slider-section {
        padding: 5rem 0;
    }
    
    .slider-header .section-title {
        font-size: 2.5rem;
    }
    
    .mobile-slider {
        height: 550px;
    }
    
    .mobile-slide {
        width: 250px;
    }
    
    /* Grid Layouts */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .login-steps,
    .register-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet login section adjustments */
    .login-section .container {
        gap: 3rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Better tablet spacing */
    .features-section,
    .login-section,
    .register-section,
    .about-section,
    .games-section,
    .benefits-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 4rem 0;
    }
}

/* Large Desktop Adjustments */
@media (min-width: 1025px) {
    .nav-toggle {
        display: none !important;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        box-shadow: none;
        left: 0;
        transform: none;
    }
    
    .nav-list {
        flex-direction: row;
        width: auto;
        text-align: left;
    }
    
    .nav-item {
        margin: 0 1.5rem;
        width: auto;
    }
    
    .nav-link {
        display: inline;
        padding: 0;
        width: auto;
        border-bottom: none;
    }
    
    .nav-auth {
        flex-direction: row;
        gap: 0;
        margin-top: 0;
    }
    
    .nav-auth .btn {
        width: auto;
        max-width: none;
    }
    
    /* Large desktop slider adjustments */
    .mobile-slider {
        height: 650px;
    }
    
    .mobile-slide {
        width: 300px;
    }
    
    .games-slider-section {
        padding: 7rem 0;
    }
    
    /* Large desktop hero adjustments */
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section .container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('/public/images/hero-bg.webp');
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .hero-section {
        background: none !important;
        color: var(--primary-color) !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: var(--primary-color) !important;
    }
    
    .stats-section {
        background: none !important;
        color: var(--primary-color) !important;
    }
    
    .stat-number {
        color: var(--secondary-color) !important;
    }
    
    .stat-label {
        color: var(--text-color) !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
    
    /* Landscape mobile slider adjustments */
    .mobile-slider {
        height: 350px;
    }
    
    .mobile-slide {
        width: 200px;
    }
    
    .game-thumbnails {
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    body {
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-section {
        width: 100%;
        overflow: hidden;
    }
    
    .hero-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .mobile-slider {
        height: 400px;
    }
    
    .mobile-slide {
        width: 180px;
    }
    
    .game-thumbnails {
        gap: 0.5rem;
    }
    
    .thumbnail-icon {
        width: 35px;
        height: 35px;
    }
    
    .thumbnail-name {
        font-size: 0.6rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .register-image {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .register-image img {
        max-width: 250px;
    }
    
    .hero-buttons .btn {
        max-width: 250px;
    }
    
    /* Contact page mobile adjustments */
    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-submit {
        flex-direction: column;
    }
    
    /* FAQ page mobile adjustments */
    .search-box {
        flex-direction: column;
        border-radius: 25px;
        padding: 1rem;
    }
    
    .search-box input {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .faq-question {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .faq-question h3 {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .faq-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    
    /* Still have questions section mobile adjustments */
    .contact-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-option {
        padding: 2rem;
    }
    
    .still-have-questions-section .section-title {
        font-size: 2rem;
    }
    
    .still-have-questions-section .section-description {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    /* Privacy policy page mobile adjustments */
    .privacy-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .policy-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .policy-section p {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .last-updated {
        padding: 0.75rem 1rem;
        margin-bottom: 2rem;
    }
    
    .last-updated p {
        font-size: 1rem;
    }
    
    /* Terms & conditions page mobile adjustments */
    .terms-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .terms-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .terms-section p {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .last-updated {
        padding: 0.75rem 1rem;
        margin-bottom: 2rem;
    }
    
    .last-updated p {
        font-size: 1rem;
    }
    
    /* Disclaimer page mobile adjustments */
    .disclaimer-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .disclaimer-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .disclaimer-section h2 {
        font-size: 1.5rem;
    }
    
    .disclaimer-section h3 {
        font-size: 1.2rem;
    }
    
    .disclaimer-section p {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .last-updated {
        padding: 0.75rem 1rem;
        margin-bottom: 2rem;
    }
    
    .last-updated p {
        font-size: 1rem;
    }
    
    /* About Us page mobile adjustments */
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .story-text .section-title {
        font-size: 2rem;
    }
    
    .story-text p {
        text-align: left;
        font-size: 1rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-card,
    .vision-card {
        padding: 2rem;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
    }
    
    .card-icon i {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .value-item {
        padding: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        padding: 2rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .achievement-item {
        padding: 2rem;
    }
    
    .achievement-number {
        font-size: 2rem;
        padding: 0.75rem;
    }
    
    .plans-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .plans-text p {
        text-align: left;
    }
    
    /* Back to top button mobile adjustments */
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 3rem;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
                     0 0 40px rgba(255, 255, 255, 0.2);
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        min-width: 200px;
        padding: 16px 30px;
    }
    
    /* Floating elements mobile adjustments */
    .floating-particle {
        display: none;
    }
    
    .glow-orb {
        display: none;
    }
    
    .animated-line {
        display: none;
    }
    
    /* 404 page mobile adjustments */
    .error-404-section {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .error-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .error-title {
        font-size: 3rem;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1.1rem;
    }
    
    .error-help {
        padding: 1.5rem;
    }
    
    .help-links a {
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .error-cta .btn {
        display: block;
        margin: 0.5rem auto;
        max-width: 250px;
    }
    
    /* Small mobile logo sizing */
    .nav-logo img {
        max-height: 35px;
        padding: 0 10px;
    }
    
    /* Small mobile icon sizing */
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.75rem;
    }
    
    /* Small mobile login section */
    .login-section .container {
        gap: 1.5rem;
    }
    
    .login-image {
        margin-top: 1.5rem;
    }
}

/* Accessibility Improvements for Mobile */
@media (max-width: 768px) {
    /* Ensure touch targets are large enough */
    .btn,
    .nav-link,
    .nav-toggle,
    .thumbnail-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve focus visibility on mobile */
    .btn:focus,
    .nav-link:focus,
    .thumbnail-item:focus {
        outline: 3px solid var(--secondary-color);
        outline-offset: 2px;
    }
    
    /* Better spacing for mobile reading */
    p {
        line-height: 1.7;
    }
    
    /* Improve mobile navigation */
    .nav-toggle span {
        width: 30px;
        height: 4px;
        margin: 4px 0;
    }
    
    /* Mobile logo sizing */
    .nav-logo img {
        max-height: 40px;
        padding: 0 18px;
    }
    
    /* Better mobile slider accessibility */
    .slider-nav {
        min-width: 44px;
        min-height: 44px;
    }
    
    .slider-nav:focus {
        outline: 3px solid var(--secondary-color);
        outline-offset: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --text-color: #e0e0e0;
        --border-color: #404040;
    }
    
    .header {
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
    }
    
    .feature-card,
    .step,
    .benefit,
    .game-card,
    .testimonial-card {
        background: var(--light-gray);
        border: 1px solid var(--border-color);
    }
}

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