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

/* Font Loading Optimization */

/* Prevent Layout Shifts */
html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --primary-color: #212121;
    --secondary-color: #323232;
    --accent-color: #0D7377;
    --highlight-color: #14FFEC;
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --border-color: #444444;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    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;
}

.highlight {
    color: var(--highlight-color);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    min-width: 120px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(20, 255, 236, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--highlight-color);
}

.btn-secondary:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
}

.btn-login {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(33, 33, 33, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.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;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--highlight-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    /* Prevent Layout Shift */
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: -1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* Prevent Layout Shift */
    aspect-ratio: 3/2;
    object-fit: cover;
    min-height: 400px;
}

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

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

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

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

.feature-card {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(20, 255, 236, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(20, 255, 236, 0.2);
    border-color: rgba(20, 255, 236, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(20, 255, 236, 0.2);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(20, 255, 236, 0.4);
}

.feature-icon:hover::before {
    opacity: 1;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    color: var(--text-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.feature-icon:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.feature-icon img {
    width: 48px;
    height: 48px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
    font-weight: 600;
    transition: var(--transition);
}

.feature-card:hover h3 {
    color: var(--text-color);
    transform: scale(1.05);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    transition: var(--transition);
}

.feature-card:hover p {
    color: var(--text-color);
}

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

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

.login-steps,
.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
    padding: 0.5rem 0;
}



.step,
.benefit {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.step::before,
.benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.step:hover,
.benefit:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(20, 255, 236, 0.3);
    border-color: var(--highlight-color);
}

.step:hover::before,
.benefit:hover::before {
    opacity: 0.1;
}

.step h3,
.benefit h3 {
    color: var(--highlight-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-left: 2rem;
}

.step h3::before,
.benefit h3::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--highlight-color);
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
}

.step:hover h3::before,
.benefit:hover h3::before {
    transform: translateX(5px);
    color: var(--text-color);
}

.step p,
.benefit p {
    color: var(--text-muted);
    line-height: 1.7;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.step:hover p,
.benefit:hover p {
    color: var(--text-color);
}

/* Games Section */
.games-section {
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 255, 236, 0.05), rgba(13, 115, 119, 0.05));
    z-index: 1;
}

.games-section .container {
    position: relative;
    z-index: 2;
}

.games-grid {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    transition: transform 0.3s ease;
    width: max-content;
}

.game-card {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(20, 255, 236, 0.3);
    border-color: var(--highlight-color);
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.9);
}

.game-card:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.game-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--highlight-color);
    font-size: 1.4rem;
    font-weight: 600;
    transition: var(--transition);
}

.game-card:hover h3 {
    color: var(--text-color);
    transform: scale(1.05);
}

.game-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: var(--transition);
}

.game-card:hover p {
    color: var(--text-color);
}

/* Slider Navigation */
.games-slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--highlight-color);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 255, 236, 0.1);
    border: 2px solid var(--highlight-color);
    color: var(--highlight-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

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

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

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

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

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

.benefit-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

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

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

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

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

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

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.testimonial-author {
    color: var(--highlight-color);
    font-weight: 600;
}

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

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

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

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

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

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Footer */
.footer {
    background: var(--primary-color);
    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(--highlight-color);
    margin-bottom: 1rem;
}

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

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

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

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

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

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

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

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

    .features-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .game-card {
        min-width: 250px;
        max-width: 300px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }

    .login-steps,
    .register-benefits {
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .step,
    .benefit {
        padding: 1.5rem;
    }

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

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

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

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

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .btn-login,
    .btn-register {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 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 */
.btn:focus,
.nav-link:focus,
.back-to-top:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #ffffff;
        --text-muted: #ffffff;
        --border-color: #ffffff;
    }
}

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

    body {
        background: white !important;
        color: black !important;
    }
}

/* About Content Styles */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(20, 255, 236, 0.1);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    border-radius: 24px 24px 0 0;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    color: var(--highlight-color);
    position: relative;
    padding-bottom: 1rem;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    border-radius: 2px;
}

.about-content p {
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 1rem;
    background: rgba(20, 255, 236, 0.03);
    border-radius: 12px;
    border-left: 4px solid transparent;
}

.about-content p:hover {
    color: var(--text-color);
    background: rgba(20, 255, 236, 0.08);
    border-left-color: var(--highlight-color);
    transform: translateX(5px);
}

.about-content ul {
    margin: 2rem 0;
    padding-left: 2rem;
    list-style: none;
}

.about-content ul li {
    margin-bottom: 1rem;
    line-height: 1.7;
    position: relative;
    padding: 0.8rem 1rem;
    background: rgba(20, 255, 236, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.about-content ul li::before {
    content: '▶';
    position: absolute;
    left: -1.5rem;
    color: var(--highlight-color);
    font-size: 0.8rem;
    transition: var(--transition);
}

.about-content ul li:hover {
    background: rgba(20, 255, 236, 0.1);
    transform: translateX(8px);
    color: var(--text-color);
}

.about-content ul li:hover::before {
    transform: scale(1.2);
    color: var(--accent-color);
}

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

.about-feature {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
}

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

/* Contact Form Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-info {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
}

.contact-item {
    margin-bottom: 2rem;
}

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

.contact-form {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-color);
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(20, 255, 236, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.support-category {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
}

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

.support-category ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* FAQ Styles */
.faq-categories h3 {
    color: var(--highlight-color);
    margin: 3rem 0 1.5rem;
    font-size: 1.5rem;
}

.faq-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: var(--highlight-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    line-height: 1.6;
    margin: 0;
}

/* Error Page Styles */
.error-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

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

.link-category {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
}

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

.link-category ul {
    list-style: none;
    padding: 0;
}

.link-category ul li {
    margin-bottom: 0.5rem;
}

.link-category ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.link-category ul li a:hover {
    color: var(--highlight-color);
}

/* Game Features */
.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.game-features span {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .helpful-links {
        grid-template-columns: 1fr;
    }
    
    .error-links {
        flex-direction: column;
        align-items: center;
    }
    
    .error-links .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .game-features {
        justify-content: center;
    }
    
    .about-content {
        padding: 2rem;
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .about-content h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about-content p {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .about-content ul li {
        padding: 0.6rem 0.8rem;
    }
}

/* Layout Shift Prevention */
img {
    display: block;
}

.game-card img {
    aspect-ratio: 3/2;
    object-fit: cover;
    width: 100%;
    height: 280px;
}

/* Font Loading Optimization */
html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html.font-loaded {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Apply Inter font to all text elements when loaded */
html.font-loaded * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Prevent Layout Shifts for Text Elements */
h1, h2, h3, h4, h5, h6, p, span, a, button {
    font-display: swap;
}

/* Smooth font transitions */
* {
    transition: font-family 0.1s ease;
}
