/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure proper mobile viewport */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    --primary-dark: #18230F;
    --primary-medium: #27391C;
    --primary-light: #255F38;
    --accent: #1F7D53;
    --accent-light: #0cce4d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --text-light: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-ligh);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, #40f777, #057705);
    color: var(--white);
    border: 2px solid #0e5a0e;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #187925, #087c21);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-login {
    background: var(--primary-light);
    color: var(--white);
    margin-right: 10px;
}

.btn-register {
    background: var(--accent);
    color: var(--white);
}

/* Navigation */
.navbar {
    background: var(--primary-dark);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    background: var(--primary-medium);
    color: var(--white);
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
        padding: 0 15px;
    }
    
    .hero-image img {
        max-width: 350px;
    }
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    min-height: 200px;
    overflow: visible;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    max-height: 500px;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Features Section */
.features-section {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Login & Register Sections */
.login-section, .register-section {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    color: var(--white);
}

/* Login Section Side-by-Side Layout */
.login-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.login-section .section-content {
    text-align: left;
    margin: 0;
    padding: 0;
}

.login-section .hero-image-login {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.login-section .hero-image-login img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.login-section .hero-image-login img:hover {
    transform: scale(1.02);
}

.login-section h2, .register-section h2,
.login-section h3, .register-section h3 {
    color: var(--white);
}

.login-section ul, .register-section ol {
    text-align: left;
    max-width: 600px;
    margin: 2rem auto;
}

.login-section li, .register-section li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.login-link {
    margin-top: 2rem;
}

.login-link a {
    color: var(--white);
    text-decoration: underline;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-item {
    text-align: center;
    padding: 2rem;
}

/* Games Section */
.games-section {
    background: var(--light-gray);
}

.games-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.game-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.games-description {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Games Slider Section - WinZO Style */
.games-slider-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.games-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.slider-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--white), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emoji {
    font-size: 3rem;
    margin-left: 1rem;
}

.language-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.mobile-games-slider {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 700px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mobile-slider-container {
    position: relative;
    overflow: visible;
    padding: 60px 0 120px 0;
    perspective: 1000px;
    margin-bottom: 80px;
}

.mobile-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 0;
    position: relative;
    min-height: 500px;
}

.mobile-slide {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

/* Center slide (active) */
.mobile-slide.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0deg);
    z-index: 10;
}

/* Left slides - fanned out */
.mobile-slide.prev-slide {
    opacity: 0.8;
    transform: scale(0.85) translateX(-100px) rotateY(15deg);
    z-index: 5;
}

.mobile-slide.prev-slide-2 {
    opacity: 0.6;
    transform: scale(0.7) translateX(-160px) rotateY(25deg);
    z-index: 3;
}

.mobile-slide.prev-slide-3 {
    opacity: 0.4;
    transform: scale(0.55) translateX(-200px) rotateY(35deg);
    z-index: 1;
}

/* Right slides - fanned out */
.mobile-slide.next-slide {
    opacity: 0.8;
    transform: scale(0.85) translateX(100px) rotateY(-15deg);
    z-index: 5;
}

.mobile-slide.next-slide-2 {
    opacity: 0.6;
    transform: scale(0.7) translateX(160px) rotateY(-25deg);
    z-index: 3;
}

.mobile-slide.next-slide-3 {
    opacity: 0.4;
    transform: scale(0.55) translateX(200px) rotateY(-35deg);
    z-index: 1;
}

.mobile-screen {
    position: relative;
    width: 280px;
    height: 500px;
    
    border-radius: 25px;
    padding: 20px;
   
   
    margin-bottom: 20px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.game-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.game-amount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    z-index: 5;
}

.game-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid var(--accent);
    background: var(--white);
    padding: 5px;
}

.game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    letter-spacing: 1px;
}

.game-thumbnails {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 15;
    padding: 20px 0;
}

.thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    transform: scale(0.9);
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1);
}

.thumbnail-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.thumbnail-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item.active .thumbnail-icon {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(31, 125, 83, 0.5);
}

.thumbnail-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    letter-spacing: 0.5px;
}

.slider-slogan {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.slider-slogan p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.back-to-top:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Benefits Section */
.benefits-section {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    color: var(--text-light);
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    background: var(--primary-dark);
    color: var(--white);
}

.stats-section h2 {
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item h3 {
    color: var(--accent);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--white);
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-medium);
    opacity: 0.8;
}

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

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

    .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-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
        width: 100%;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-image {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: var(--shadow);
    }

    .hero-content h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure hero image is visible on mobile */
    .hero-image {
        order: 2;
        margin-top: 2rem;
        padding: 0 15px;
    }
    
    .hero-content {
        order: 1;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }

    .features-grid,
    .about-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .nav-auth {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-auth .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Ensure all sections fit mobile width */
    section {
        padding: 60px 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section-content {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix image responsiveness */
    .hero-image {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin-top: 1.5rem;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
        max-width: 350px;
        object-fit: cover;
    }
    
    /* Login Section Mobile Layout */
    .login-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .login-section .section-content {
        text-align: center;
        order: 1;
    }
    
    .login-section .hero-image-login {
        order: 2;
        margin-top: 2rem;
    }
    
    .login-section .hero-image-login img {
        max-width: 350px;
    }
    
    /* Ensure proper mobile layout */
    .navbar {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    /* Fix any potential horizontal scrolling */
    .feature-card,
    .about-card,
    .game-card,
    .benefit-card,
    .testimonial-card,
    .stat-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    /* Games Slider Mobile Responsiveness */
    .games-slider-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .emoji {
        font-size: 2rem;
    }
    
    .mobile-games-slider {
        padding: 0 15px;
        min-height: 600px;
    }
    
    .mobile-slider-container {
        padding: 40px 0 100px 0;
        margin-bottom: 60px;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .mobile-screen {
        width: 240px;
        height: 420px;
    }
    
    .game-thumbnails {
        gap: 15px;
        padding: 15px 0;
    }
    
    .thumbnail-icon {
        width: 45px;
        height: 45px;
    }
    
    /* Back to Top Button Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .games-slider-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .emoji {
        font-size: 1.5rem;
    }
    
    .language-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .mobile-games-slider {
        padding: 0 10px;
        min-height: 500px;
    }
    
    .mobile-slider-container {
        padding: 30px 0 80px 0;
        margin-bottom: 50px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: 5px;
    }
    
    .slider-nav.next {
        right: 5px;
    }
    
    .mobile-screen {
        width: 200px;
        height: 360px;
    }
    
    .game-thumbnails {
        gap: 10px;
        margin-top: 0;
        padding: 10px 0;
    }
    
    .thumbnail-icon {
        width: 40px;
        height: 40px;
    }
    
    .thumbnail-name {
        font-size: 0.7rem;
    }
    
    .slider-slogan p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    /* Back to Top Button Small Mobile */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-container {
        padding: 0 10px;
        gap: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 12px 16px;
        min-width: auto;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        max-width: 280px;
    }

    section {
        padding: 50px 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .section-content {
        padding: 0 10px;
    }
    
    .features-grid,
    .about-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        padding: 0 10px;
        gap: 1rem;
    }
    
    .hero-image {
        padding: 0 10px;
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        object-fit: cover;
    }
    
    /* Login Section Small Mobile Layout */
    .login-section .container {
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .login-section .hero-image-login img {
        max-width: 300px;
    }
    
    /* Ensure text doesn't overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.footer-section a:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-dark: #000000;
        --primary-medium: #333333;
        --primary-light: #666666;
        --accent: #ffffff;
        --text-dark: #000000;
        --text-light: #333333;
    }
}

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

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero-section {
        padding: 20px 0;
        min-height: auto;
    }
} 