@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Base styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --text-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #1a1f2b;
    --accent-color: #3498db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Navigation */
.navbar {
    background-color: var(--dark-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

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

.brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* About image sizing — keep it responsive and constrained */
.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 420px; /* adjust this value if you want a different maximum */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

/* Game Section */
.game-section {
    padding: 4rem 0;
    background-color: white;
}

.game-container {
    margin-top: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 0;
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
    /* 16:9 aspect ratio using padding-top trick */
    position: relative;
    height: 0;
    padding-top: calc(9 / 16 * 100%); /* 56.25% */
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background-color: white;
    transform: none;
    filter: none;
    display: block;
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.review-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.reviewer {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.tagline {
    margin-bottom: 1rem;
    color: #a0aec0;
}

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

.social-link {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

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

.footer-nav-group h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-nav-group a {
    display: block;
    color: var(--light-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-nav-group a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.disclaimer {
    color: #a0aec0;
    margin-bottom: 1rem;
}

/* Disclaimer overlay (dim background) */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

/* Disclaimer popup (modal) */
.disclaimer-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    width: 90%;
    max-width: 560px;
}

.disclaimer-content {
    background-color: var(--dark-color);
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    color: var(--light-color);
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    animation: slideUp 0.32s ease-out;
}

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

.disclaimer-content h2 { color: var(--light-color); margin-bottom: 0.5rem; }

.disclaimer-content p { margin-bottom: 0.75rem; color: #cbd5e1; }

/* Close (X) button */
.disclaimer-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.btn-accept {
    margin-top: 0.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}


.disclaimer-text {
    color: var(--light-color);
    margin-bottom: 2rem;
}

.disclaimer-text p {
    margin-bottom: 1rem;
}

.disclaimer-text ul {
    list-style: none;
    padding-left: 1rem;
}

.disclaimer-text ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.disclaimer-text ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.disclaimer-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.disclaimer-text a:hover {
    text-decoration: underline;
}

.accept-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.accept-button:hover {
    transform: translateY(-2px);
    background-color: var(--accent-hover);
}

/* ------------------------------------------------------------------
   Legal pages styling
   - override modal styles when .disclaimer-content is used inside .disclaimer-section
   - provide readable containers for legal sections
------------------------------------------------------------------- */

/* Neutralize modal styles for page content (disclaimer page uses same class name) */
.disclaimer-section .disclaimer-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    color: var(--text-color);
}

.terms-content,
.privacy-content,
.disclaimer-section .legal-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.legal-section {
    background-color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.legal-section p,
.legal-section ul {
    color: #334155; /* darker gray for legibility */
    line-height: 1.75;
    font-size: 0.98rem;
}

.legal-section ul {
    margin-left: 1rem;
    list-style: disc inside;
}

/* Slight spacing for the page heading */
.main-content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

/* Global heading alignment: center headings h1-h4 */
h1, h2, h3, h4 {
    text-align: center;
}

/* Keep legal-section headings readable but centered */
.legal-section h2 {
    text-align: center;
}

/* ------------------------------------------------------------------
   Contact form styling
------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
}

.contact-form {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}

.contact-info {
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #0f172a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.98rem;
    color: #0f172a;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(52,152,219,0.18);
    border-color: var(--accent-color);
}

.submit-btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .terms-content,
    .privacy-content,
    .disclaimer-section .legal-section {
        gap: 0.75rem;
    }
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--light-color);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        /* mobile slide-in panel */
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 78%;
        max-width: 360px;
        transform: translateX(100%);
        background-color: var(--dark-color);
        padding: 4rem 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: -12px 0 30px rgba(2,6,23,0.4);
        transition: transform 280ms cubic-bezier(.2,.9,.2,1);
    }

    /* Visible state (panel slides in) */
    .nav-links.show {
        transform: translateX(0);
    }

    /* overlay used when menu is open (created by JS) */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1990;
        opacity: 0;
        transition: opacity 220ms ease;
        pointer-events: none;
    }

    .nav-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-section {
        flex-direction: column;
    }

    /* larger tappable links for mobile */
    .nav-links a {
        font-size: 1.05rem;
        padding: 0.9rem 1rem;
        display: block;
        border-radius: 8px;
    }

    .menu-toggle .menu-icon {
        width: 26px;
        height: 18px;
        display: inline-block;
        position: relative;
    }

    .menu-toggle .menu-icon::before,
    .menu-toggle .menu-icon::after,
    .menu-toggle .menu-icon span {
        content: '';
        position: absolute;
        left: 0;
        height: 2px;
        width: 100%;
        background: currentColor;
        transition: transform 200ms ease, opacity 200ms ease;
    }

    .menu-toggle .menu-icon::before { top: 0; }
    .menu-toggle .menu-icon span { top: 8px; }
    .menu-toggle .menu-icon::after { bottom: 0; }

    /* toggle open styles (JS toggles .open on the button) */
    .menu-toggle.open .menu-icon::before { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.open .menu-icon::after { transform: translateY(-8px) rotate(-45deg); }
    .menu-toggle.open .menu-icon span { opacity: 0; }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image img {
        max-width: 320px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}