/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Optimize WebP images */
img[src*=".webp"] {
    image-rendering: optimizeQuality;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --background-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-primary);
    overflow-x: hidden;
}

/* Font loading state management */
.font-loading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-loaded {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-10px, -10px) scale(1.05); }
    50% { transform: translate(10px, -5px) scale(1.02); }
    75% { transform: translate(-5px, 10px) scale(1.03); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation - Enhanced Layout Shift Prevention */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
    /* Prevent layout shifts */
    min-height: 80px;
    max-height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    /* Prevent layout shifts */
    display: inline-block;
    line-height: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar {
    padding: 1rem 0;
    height: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    /* Prevent layout shifts */
    min-height: 80px;
    max-height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 40px;
    width: 120px;
    flex-shrink: 0;
    /* Prevent layout shifts */
    min-width: 120px;
    min-height: 40px;
}

.nav-logo img {
    height: 40px;
    width: 120px;
    object-fit: contain;
    display: block;
    /* Prevent layout shifts */
    min-width: 120px;
    min-height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    /* Prevent layout shifts */
    min-height: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    /* Prevent layout shifts */
    min-height: 40px;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    /* Prevent layout shifts */
    min-height: 44px;
    line-height: 1.2;
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-register {
    background: var(--gradient-primary);
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section - Enhanced Layout Shift Prevention */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    /* Prevent layout shifts */
    min-height: 600px;
    margin-top: 80px; /* Account for fixed header */
}

.hero::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="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    /* Prevent layout shifts */
    min-height: 520px;
}

.hero-content {
    /* Prevent layout shifts */
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    /* Prevent layout shifts */
    min-height: 4.2rem;
    max-width: 600px;
    word-wrap: break-word;
    /* Prevent font loading shifts */
    font-family: inherit;
}

.highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    /* Prevent layout shifts */
    min-height: 2rem;
    max-width: 500px;
    /* Prevent font loading shifts */
    font-family: inherit;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* Prevent layout shifts */
    min-height: 3.5rem;
    align-items: flex-start;
}

.hero-image {
    width: 500px;
    height: 400px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px;
    /* Prevent layout shifts */
    min-width: 500px;
    min-height: 400px;
}

.hero-image img {
    width: 500px;
    height: 400px;
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
    display: block;
    /* Prevent layout shifts */
    min-width: 500px;
    min-height: 400px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section - Layout Shift Prevention */
.features {
    padding: 80px 0;
    background: var(--background-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    /* Prevent layout shifts */
    min-height: 3rem;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    /* Prevent layout shifts */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-card svg {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
    /* Prevent layout shifts */
    flex-shrink: 0;
}

.feature-card:hover svg {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    /* Prevent layout shifts */
    min-height: 2.5rem;
    line-height: 1.2;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    /* Prevent layout shifts */
    min-height: 3rem;
    flex-grow: 1;
}

/* Registration Steps - Layout Shift Prevention */
.registration-steps {
    padding: 80px 0;
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
    /* Prevent layout shifts */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-medium);
    /* Prevent layout shifts */
    flex-shrink: 0;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    /* Prevent layout shifts */
    min-height: 2.5rem;
    line-height: 1.2;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
    /* Prevent layout shifts */
    min-height: 4rem;
    flex-grow: 1;
}

.cta-section {
    text-align: center;
    /* Prevent layout shifts */
    min-height: 3rem;
}

/* Games Showcase - Layout Shift Prevention */
.games-showcase {
    padding: 80px 0;
    background: var(--background-secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    /* Prevent layout shifts */
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Prevent layout shifts */
    flex-shrink: 0;
}

.game-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    /* Prevent layout shifts */
    min-height: 2.5rem;
    line-height: 1.2;
}

.game-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    /* Prevent layout shifts */
    min-height: 3rem;
    flex-grow: 1;
}

/* Footer - Layout Shift Prevention */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    /* Prevent layout shifts */
    min-height: 1.5rem;
    line-height: 1.2;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    /* Prevent layout shifts */
    min-height: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    /* Prevent layout shifts */
    min-height: 1.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    /* Prevent layout shifts */
    display: inline-block;
    line-height: 1.5;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    /* Prevent layout shifts */
    min-height: 2rem;
}

/* Responsive Design with Layout Shift Prevention */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        /* Prevent layout shifts */
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        /* Prevent layout shifts */
        min-height: 3rem;
        max-width: 100%;
    }
    
    .hero-subtitle {
        /* Prevent layout shifts */
        min-height: 2rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        /* Prevent layout shifts */
        min-height: 3.5rem;
    }
    
    .hero-image {
        width: 100%;
        max-width: 400px;
        height: 320px;
        margin: 0 auto;
        /* Prevent layout shifts */
        min-width: auto;
        min-height: 320px;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 400px;
        height: 320px;
        /* Prevent layout shifts */
        min-width: auto;
        min-height: 320px;
    }
    
    .features-grid,
    .steps-container,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
        /* Prevent layout shifts */
        min-height: 2.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        /* Prevent layout shifts */
        width: 25px;
        height: 20px;
        justify-content: center;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        /* Prevent layout shifts */
        display: block;
    }
}

/* Additional Layout Shift Prevention */
.highlight {
    color: var(--accent-color);
    /* Prevent layout shifts */
    display: inline;
}

/* Prevent text wrapping layout shifts */
.nav-link,
.btn,
.hero-title,
.hero-subtitle {
    word-break: keep-all;
    overflow-wrap: normal;
}

/* Ensure consistent spacing */
* + * {
    margin-top: 0;
}

/* Prevent image loading layout shifts */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Critical rendering path optimization */
.hero,
.nav-container,
.hero-content,
.hero-image {
    contain: layout style paint;
}

/* Prevent font fallback layout shifts */
@supports (font-display: swap) {
    .font-loading {
        font-display: swap;
    }
}

/* Ensure consistent button heights */
.btn,
.btn-primary,
.btn-secondary,
.btn-login,
.btn-register {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Prevent navigation menu layout shifts */
.nav-menu li {
    height: 40px;
    display: flex;
    align-items: center;
}

/* Ensure hero section maintains dimensions */
.hero {
    contain: layout;
    min-height: 600px;
    max-height: 800px;
}

/* Prevent content jumping during font loading */
.hero-title,
.hero-subtitle,
.nav-link,
.btn {
    font-display: swap;
}

/* Optimize for Core Web Vitals */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-image img {
        animation: none;
    }
    
    body::before {
        animation: none;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
}

/* Skip link styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
    transition: top 0.3s ease;
    font-weight: 500;
}

.skip-link:focus {
    top: 6px;
}

/* Page Header Styles */
.page-header {
    padding: 120px 0 60px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Section Styles */
.content-section {
    padding: 60px 0;
    background: white;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.policy-content h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.policy-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.policy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
    background: var(--background-secondary);
}

/* Contact method icons */
.contact-method svg {
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover svg {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Feature card icons */
.feature-card svg {
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.feature-card:hover svg {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.contact-method h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-method p {
    color: var(--text-secondary);
    margin: 0;
}

.response-times {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.response-times h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.response-times ul {
    list-style: none;
    padding: 0;
}

.response-times li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

.contact-form h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* FAQ Section Styles */
.faq-section {
    padding: 60px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Support Categories Styles */
.support-categories {
    padding: 60px 0;
    background: var(--background-secondary);
}

.support-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Error Page Styles */
.error-section {
    padding: 120px 0 60px;
    background: var(--background-secondary);
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.suggested-pages {
    margin-bottom: 3rem;
}

.suggested-pages h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.suggested-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    min-height: 80px;
}

.suggested-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: var(--primary-color);
}

.search-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
}

.search-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-content h1 {
        font-size: 2rem;
    }
    
    .suggested-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .policy-content h2 {
        font-size: 1.8rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Games Page Styles */
.games-section {
    padding: 4rem 0;
}

.game-category {
    margin-bottom: 4rem;
}

.game-category h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.game-category p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.game-card h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.features-section {
    background: var(--background-secondary);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
}

/* Responsive Design for Games Page */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Promotions Page Styles */
.promotions-section {
    padding: 4rem 0;
}

.promotions-section:nth-child(even) {
    background: var(--background-secondary);
}

.promotion-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.promotion-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.promotion-card.featured .bonus-amount {
    color: var(--accent-color);
    font-weight: 700;
}

.promotion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.promotion-header h2,
.promotion-header h3 {
    margin: 0;
    color: inherit;
}

.bonus-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.promotion-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.bonus-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.bonus-details h3 {
    margin-bottom: 1rem;
    color: inherit;
}

.bonus-details ul {
    list-style: none;
    padding: 0;
}

.bonus-details li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.bonus-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.promotion-cta {
    margin-top: 2rem;
    text-align: center;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vip-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vip-tier {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.vip-tier:hover {
    transform: translateY(-5px);
}

.vip-tier h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.vip-tier p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.vip-tier ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.vip-tier li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.vip-tier li::before {
    content: '🎁';
    position: absolute;
    left: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.event-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.prize-pool,
.entry-fee {
    background: var(--background-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.prize-pool {
    color: var(--primary-color);
}

/* Responsive Design for Promotions Page */
@media (max-width: 768px) {
    .promotion-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vip-tiers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-details {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Additional mobile menu improvements */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .header-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Ensure mobile menu doesn't overlap content */
    main {
        margin-top: 80px;
    }
    
    /* Smooth transition for mobile menu */
    .nav {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* Better touch targets for mobile */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
    }
}
