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

:root {
    --primary-color: #CF0F47;
    --secondary-color: #FF0B55;
    --accent-color: #FFDEDE;
    --text-color: #000000;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray: #666666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

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

/* Header and Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

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

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

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(207, 15, 71, 0.3);
}

.nav-toggle:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(207, 15, 71, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(207, 15, 71, 0.3);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scale(0.95);
}

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

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-login {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-login:hover,
.btn-login:focus {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

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

.btn-register:hover,
.btn-register:focus {
    background: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, var(--primary-color) 50%, var(--secondary-color) 75%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInLeft 1s ease-out;
}

.highlight {
    background: linear-gradient(45deg, var(--white), #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, var(--white), var(--accent-color));
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 0.5s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    animation: slideInUp 1s ease-out 0.3s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.2);
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

.hero-buttons .btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-color: var(--secondary-color);
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out 0.3s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05) rotate(2deg);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating elements for extra coolness */
.hero-section .floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.hero-section .floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-section .floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.hero-section .floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

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

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

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

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon svg {
    color: var(--white);
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(207, 15, 71, 0.3);
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Login and Register Sections */
.login-section,
.register-section {
    background: var(--white);
}

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

/* Login section side-by-side layout for desktop */
.login-section .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
}

.login-section .login-content {
    flex: 1;
    text-align: left;
    max-width: none;
    margin: 0;
}

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

.login-section .hero-image-login img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Responsive adjustments for login section */
@media (max-width: 768px) {
    .login-section .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .login-section .login-content {
        text-align: center;
    }
    
    .login-section .hero-image-login {
        order: -1; /* Show image first on mobile */
    }
}

/* Register section layout for desktop */
.register-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.register-section .hero-image {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.register-section .hero-image img {
    max-width: 30%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.register-section .hero-image img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for register section */
@media (max-width: 768px) {
    .register-section .register-content {
        margin-bottom: 2rem;
    }
    
    .register-section .hero-image {
        gap: 1.5rem;
        flex-direction: column;
    }
    
    .register-section .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }
}

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

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(207, 15, 71, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(207, 15, 71, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

.login-content h2,
.register-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.login-content p,
.register-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.login-content h3,
.register-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

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

.login-content li,
.register-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.login-note,
.register-note {
    margin-top: 2rem;
    font-style: italic;
}

.login-note a,
.register-note a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-note a:hover,
.register-note a:focus {
    text-decoration: underline;
    color: var(--secondary-color);
}

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

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

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Games Slider Section */
.games-slider-section {
    background: linear-gradient(135deg, #2c1f3d 0%, #1a1a2e 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.games-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(207, 15, 71, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.slider-header {
    text-align: center;
    margin-bottom: 3rem;
}

.slider-header .section-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.slider-header .emoji {
    font-size: 2rem;
}

.language-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-games-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

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

.slider-nav svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

/* Mobile Slider Container */
.mobile-slider-container {
    position: relative;
    overflow: visible;
    margin: 0 60px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.mobile-slide {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transform: scale(0.7) translateX(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.mobile-slide[data-slide="0"] {
    transform: scale(0.7) translateX(-200px) rotateY(-15deg);
    z-index: 2;
}

.mobile-slide[data-slide="1"] {
    transform: scale(0.8) translateX(-100px) rotateY(-8deg);
    z-index: 3;
}

.mobile-slide[data-slide="2"] {
    transform: scale(1) translateX(0) rotateY(0deg);
    z-index: 5;
    opacity: 1;
}

.mobile-slide[data-slide="3"] {
    transform: scale(0.8) translateX(100px) rotateY(8deg);
    z-index: 3;
}

.mobile-slide[data-slide="4"] {
    transform: scale(0.7) translateX(200px) rotateY(15deg);
    z-index: 2;
}

.mobile-slide.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0deg) !important;
    z-index: 5;
}

.mobile-screen {
    position: relative;
    width: 280px;
    height: 500px;
   
    overflow: hidden;
    
    
    
    perspective: 1000px;
}

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

.game-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-badge {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    justify-content: center;
}

.game-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.game-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Game Thumbnails */
.game-thumbnails {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: var(--transition);
    opacity: 0.6;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.thumbnail-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-item.active .thumbnail-icon {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(207, 15, 71, 0.3);
}

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

.slider-slogan {
    text-align: center;
    margin-top: 2rem;
    color: var(--white);
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design for Slider */
@media (max-width: 768px) {
    .slider-header .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-games-slider {
        padding: 0 1rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-slider-container {
        margin: 0 50px;
        height: 500px;
    }
    
    .mobile-screen {
        width: 230px;
        height: 400px;
    }
    
    .game-badge {
        min-width: 180px;
        padding: 0.75rem 1rem;
    }
    
    .game-thumbnails {
        gap: 0.5rem;
    }
    
    .thumbnail-icon {
        width: 40px;
        height: 40px;
    }
    
    .thumbnail-name {
        font-size: 0.7rem;
    }
    
    /* Adjust overlapping positions for mobile */
    .mobile-slide[data-slide="0"] {
        transform: scale(0.7) translateX(-150px) rotateY(-10deg);
    }
    
    .mobile-slide[data-slide="1"] {
        transform: scale(0.8) translateX(-75px) rotateY(-5deg);
    }
    
    .mobile-slide[data-slide="3"] {
        transform: scale(0.8) translateX(75px) rotateY(5deg);
    }
    
    .mobile-slide[data-slide="4"] {
        transform: scale(0.7) translateX(150px) rotateY(10deg);
    }
}

@media (max-width: 480px) {
    .slider-header .section-title {
        font-size: 1.5rem;
    }
    
    .mobile-slide {
        flex: 0 0 200px;
    }
    
    .mobile-screen {
        width: 180px;
        height: 320px;
    }
    
    .game-badge {
        min-width: 150px;
        padding: 0.5rem 0.75rem;
    }
    
    .game-icon {
        width: 30px;
        height: 30px;
    }
    
    .game-name {
        font-size: 0.8rem;
    }
    
    .thumbnail-icon {
        width: 35px;
        height: 35px;
    }
    
    .thumbnail-name {
        font-size: 0.6rem;
    }
}

/* Legacy Games Section (fallback) */
.games-section {
    background: var(--gray-light);
    text-align: center;
}

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

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

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

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

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

.game-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.games-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* 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-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

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

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

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
}

.testimonial-author span {
    color: var(--text-color);
    font-size: 0.9rem;
}

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

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

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

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

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

/* CTA Section */
.cta-section {
    background: var(--accent-color);
    text-align: center;
}

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

/* Footer */
.footer {
    background: var(--text-color);
    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 a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding-top: 1rem;
    text-align: center;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .floating-element {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

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

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

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

    .nav-toggle {
        display: flex;
    }

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

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

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

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

    .features-grid,
    .about-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .hero-description {
        font-size: 1rem;
    }

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

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

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-buttons,
    .hero-buttons,
    .cta-buttons {
        display: none;
    }

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

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --accent-color: #FFFFFF;
        --text-color: #000000;
    }
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.content-section {
    padding: 3rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.content-wrapper h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-wrapper ul, .content-wrapper ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Contact page styles */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.support-category {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.support-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

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

.response-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.response-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.social-link {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* FAQ page styles */
.faq-categories {
    margin: 2rem 0;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item h4 {
    background: var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 0;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-item h4:hover {
    background: var(--primary-color);
    color: var(--white);
}

.faq-answer {
    padding: 1.5rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-contact {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.contact-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* About page styles */
.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

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

.mission-card,
.vision-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.mission-card h3,
.vision-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.value-card {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.highlight-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.highlight-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

.achievement-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.achievement-card span {
    color: var(--text-color);
    font-size: 0.9rem;
}

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

.tech-feature {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.tech-feature h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.community-values ul {
    list-style: none;
    padding: 0;
}

.community-values li {
    background: var(--white);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.future-plans ul {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Error page styles */
.error-section {
    padding: 4rem 0;
    text-align: center;
}

.error-code h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-code h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 1rem 0 2rem;
}

.error-message {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.error-actions {
    margin: 2rem 0;
}

.helpful-links {
    margin: 3rem 0;
}

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

.helpful-link {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.helpful-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.search-suggestion {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.policy-footer {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    text-align: center;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --gray-light: #2a2a2a;
        --text-color: #FFFFFF;
        --gray: #CCCCCC;
    }
} 