/* Light Theme Variables */
:root {
    --primary-color: #4A90E2;    /* Sky blue */
    --secondary-color: #F39C12;  /* Warm orange */
    --accent-color: #27AE60;     /* Forest green */
    --text-color: #2C3E50;
    --bg-color: #FFFFFF;
    --nav-bg: #F8F9FA;
    --footer-bg: #F5F6FA;
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.nav-logo {
    margin-right: 0.5rem;
}

.hamburger {
    margin-left: auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

    .nav-links {
        display: flex;
        gap: 2rem;
        transition: max-height 0.3s, opacity 0.3s;
    }

    .hamburger {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
    }
    .hamburger span {
        display: block;
        width: 28px;
        height: 4px;
        margin: 4px 0;
        background: var(--text-color);
        border-radius: 2px;
        transition: 0.3s;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    @media (max-width: 768px) {
        .hamburger {
            display: flex;
        }
        .nav-links {
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            flex-direction: column;
            background: var(--nav-bg);
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .nav-links.open {
            max-height: 400px;
            opacity: 1;
        }
        .nav-links a {
            padding: 1rem 0;
            border-bottom: 1px solid var(--border-color);
        }
    }

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    /* Full-width dulled background using a pseudo-element so the hero matches the about section */
    position: relative;
    padding: 8rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("herobg.jpg") center/cover no-repeat;
    filter: brightness(60%) grayscale(18%);
    z-index: 0;
}

/* Keep hero content above the background image */
.hero > * {
    position: relative;
    z-index: 1;
}

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

.hero-image {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

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

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

/* Disclaimer Section */
.disclaimer {
    background-color: rgba(74, 144, 226, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* Game Container */
.game-section {
    padding: 4rem 2rem;
    text-align: center;
}

.game-section.standalone {
    margin-top: 5rem;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background-color: var(--nav-bg);
}

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

.feature-card {
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* About Section */
.about {
    /* Full-width dulled background using a pseudo-element; content remains constrained */
    position: relative;
    padding: 6rem 2rem;
    color: #ffffff; /* ensure readable text on top of image */
    overflow: hidden;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("about.jpg") center/cover no-repeat;
    /* Dull the image: lower brightness and add a little grayscale */
    filter: brightness(60%) grayscale(18%);
    z-index: 0;
    /* keep the pseudo-element clipped to the section corners if border-radius is applied */
}

/* Constrain the textual content while keeping the background full-width */
.about > * {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Reviews Section */
.reviews {
    padding: 4rem 2rem;
    background-color: var(--footer-bg);
}

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

.review-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

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

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.legal-section {
    margin: 2rem 0;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-section {
    margin-top: 6rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
        min-height: 48px;
    }
    .nav-container {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        min-height: 48px;
        padding: 0 1rem;
    }
    .nav-logo {
        font-size: 1.3rem;
        padding: 0;
    }
    .hamburger {
        width: 32px;
        height: 32px;
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        top: 48px;
    }
    .hero {
        padding: 5rem 1rem 2rem;
    }
    .game-container {
        padding: 0 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}