/* Font Display Optimization */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --primary-color: #0A8A43;
    --secondary-color: #FFD700;
    --accent-color: #FFB300;
    --danger-color: #7B1113;
    --text-dark: #0D0D0D;
    --text-light: #2B2B2B;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    /* Font metric overrides to prevent layout shifts */
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography with Font Display Optimization */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-display: swap;
    /* Prevent layout shifts with consistent metrics */
    font-size-adjust: 0.5;
    font-stretch: 100%;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

/* 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: all 0.3s ease;
    font-size: 1rem;
    font-display: swap;
    /* Prevent layout shifts */
    font-size-adjust: 0.5;
}

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

.btn-primary:hover {
    background-color: #066b35;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

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

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

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

.btn-login:hover {
    background-color: #e69a1a;
}

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

.btn-register:hover {
    background-color: #5a0d0e;
}

.btn-login-large,
.btn-register-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.navbar {
    padding: 1rem 0;
    position: relative;
}

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

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

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-display: swap;
    /* Prevent layout shifts */
    font-size-adjust: 0.5;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #066b35 100%);
    color: var(--white);
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    font-display: swap;
    /* Prevent layout shifts */
    font-size-adjust: 0.5;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-display: swap;
    /* Prevent layout shifts */
    font-size-adjust: 0.5;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

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

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

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

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

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

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Login & Register Sections */
.login-section,
.register-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e69a1a 100%);
    color: var(--white);
}

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

.login-content h2,
.register-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

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

.login-buttons,
.register-buttons {
    margin-top: 2rem;
}

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

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

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

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

.game-category {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-category:hover {
    transform: translateY(-5px);
}

.game-category img {
    width: 100%;
    max-width: 250px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 1rem;
    display: block;
}

.game-category h3,
.game-category p {
    padding: 1.5rem;
}

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

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

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

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

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

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

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

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

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

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

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #066b35 100%);
    color: var(--white);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--danger-color) 0%, #5a0d0e 100%);
    color: var(--white);
}

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

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

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

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

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

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-section p {
    color: var(--border-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
        border-radius: 0 0 15px 15px;
        border-top: 1px solid rgba(0,0,0,0.1);
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        min-width: 250px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 30px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid var(--white);
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    

    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.1rem;
        color: var(--text-dark);
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--primary-color);
        background: rgba(10, 138, 67, 0.08);
        transform: translateX(5px);
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
        align-items: center;
    }
    
    .mobile-buttons .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 25px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .mobile-buttons .btn-login {
        background: var(--accent-color);
        color: white;
        border: 2px solid var(--accent-color);
    }
    
    .mobile-buttons .btn-login:hover {
        background: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: translateY(-2px);
    }
    
    /* Game category images on mobile */
    .game-category img {
        max-width: 200px;
        height: 120px;
    }
    
    .game-category {
        padding: 1rem;
    }
    
    /* Games grid on mobile */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mobile-buttons .btn-register {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }
    
    .mobile-buttons .btn-register:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Hide mobile buttons on desktop */
@media (min-width: 769px) {
    .mobile-buttons {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Game category images on very small screens */
    .game-category img {
        max-width: 180px;
        height: 100px;
    }
    
    .game-category {
        padding: 0.75rem;
    }
    
    .games-grid {
        gap: 1rem;
    }
}

/* 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,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-dark: #000000;
        --text-light: #2B2B2B;
        --border-color: #000000;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

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

.back-to-top:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .back-to-top {
        display: none;
    }
    
    body {
        color: #000000;
        background: #ffffff;
    }
}

/* Enhanced Hero Sections */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    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="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.hero-visual {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.floating-card, .game-preview, .contact-preview, .support-preview {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2), .game-preview:nth-child(2), .contact-preview:nth-child(2), .support-preview:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3), .game-preview:nth-child(3), .contact-preview:nth-child(3), .support-preview:nth-child(3) {
    animation-delay: -4s;
}

.floating-card i, .game-preview i, .contact-preview i, .support-preview i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.floating-card span, .game-preview span, .contact-preview span, .support-preview span {
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Enhanced Cards */
.category-card, .mission-card, .value-card, .team-card, .contact-method-card, .help-card, .hours-card, .experience-card, .provider-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-card:hover, .mission-card:hover, .value-card:hover, .team-card:hover, .contact-method-card:hover, .help-card:hover, .hours-card:hover, .experience-card:hover, .provider-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-card.featured, .contact-method-card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
}

.category-badge, .method-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-header, .method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.category-icon, .method-icon, .card-icon, .value-icon, .team-avatar, .hours-icon, .experience-icon, .provider-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-icon i, .method-icon i, .card-icon i, .value-icon i, .team-avatar i, .hours-icon i, .experience-icon i, .provider-logo i {
    font-size: 1.5rem;
    color: white;
}

.category-features, .method-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    background: rgba(10, 138, 67, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.category-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.min-bet {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Timeline */
.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-marker i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Mission Features */
.mission-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.mission-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.mission-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Tabs */
.categories-tabs {
    margin-top: 2rem;
}

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

.tab-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 138, 67, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

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

.help-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.help-item ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.help-item li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Search Box */
.hero-search {
    margin-top: 2rem;
}

.search-box {
    display: flex;
    max-width: 500px;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--accent-color);
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Help Links */
.help-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.help-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.help-links a:hover {
    text-decoration: underline;
}

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

.support-option {
    text-align: center;
    padding: 2rem;
}

.support-option.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
}

.support-option.featured .option-icon {
    background: rgba(255,255,255,0.2);
}

.availability {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: block;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(10, 138, 67, 0.05);
}

.faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    visibility: visible;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

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

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Images */
.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
}

/* Game category image hover effect */
.game-category img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Font Loading States */
body:not(.fonts-loaded) * {
    font-display: swap;
}

body.fonts-loaded * {
    font-display: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Progressive Image Loading */
img[data-progressive] {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

img[data-progressive].high-res-loaded {
    filter: blur(0);
}

/* Image loading states */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive image containers */
.image-container {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.image-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Helpful Links Section */
.helpful-links-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

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

.helpful-link-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.helpful-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.helpful-link-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.helpful-link-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.helpful-link-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.helpful-link-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.helpful-link-btn:hover {
    background: var(--accent-color);
}

/* Homepage FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.faq-section .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.faq-section .faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section .faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-section .faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.faq-section .faq-question:hover {
    background: rgba(10, 138, 67, 0.05);
}

.faq-section .faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-section .faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-section .faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

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

.faq-cta {
    text-align: center;
    margin-top: 2rem;
}

.faq-cta p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.faq-cta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-cta a:hover {
    text-decoration: underline;
}

/* FAQ Grid Layout */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Ensure FAQ items are visible */
.faq-item {
    opacity: 1;
    visibility: visible;
}

.faq-cta {
    text-align: center;
    margin-top: 2rem;
}

.faq-cta p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Form Enhancements */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-list {
        font-size: 0.9rem;
    }
    
    .helpful-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .helpful-link-card {
        padding: 1.5rem;
    }
    
    .faq-section .faq-grid {
        max-width: 100%;
    }
    
    .faq-section .faq-question {
        padding: 1.25rem;
    }
    
    .faq-section .faq-question h3 {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-visual {
        flex-direction: column;
        gap: 1rem;
    }
    
    .floating-card, .game-preview, .contact-preview, .support-preview {
        padding: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem;
        margin: 1rem;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .floating-card,
    .game-preview,
    .contact-preview,
    .support-preview,
    .search-box,
    .tab-buttons {
        display: none;
    }
    
    .hero-title {
        color: black;
        text-shadow: none;
    }
    
    .hero-subtitle {
        color: black;
    }
}
