/* Purple Theme Colors */
:root {
    --primary: #7b2cbf;
    --secondary: #9d4edd;
    --accent: #ffd60a;
    --dark: #240046;
    --text: #2b2d42;
    --background: #f8f9fa;
    --light-purple: #e0aaff;
    --border: #c77dff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.8rem;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.9rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
}

/* Active page highlight - scoped to header nav links only */
.nav-links a.active,
.nav-links a[aria-current="page"] {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(111, 0, 201, 0.15);
}

.hero {
    position: relative;
    background: url('hero.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 2rem 4rem;
    height: 90vh;
    overflow: hidden;
}

/* Dull overlay only affects the background, not text */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('hero.jpg') center/cover no-repeat;
    filter: brightness(60%) contrast(90%);
    z-index: 0;
}

/* optional soft overlay tint */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* dark tint */
    z-index: 1;
}

.hero * {
    position: relative;
    z-index: 2; /* ensures text sits above dull layers */
}

/* Hero two-column layout: content left, image right */
.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0;
    text-align: left; /* keep content left-aligned on desktop */
}

.hero-image {
    display: flex;
    justify-content: flex-end; /* push image to the right column */
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    object-fit: cover;
    display: block;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.play-button {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 214, 10, 0.4);
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 214, 10, 0.6);
}

/* Disclaimer Section */
.disclaimer {
    background: linear-gradient(135deg, #fff 0%, #f3e5ff 100%);
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 1100px;
    border-radius: 15px;
    border-left: 6px solid var(--primary);
    box-shadow: 0 5px 25px rgba(123, 44, 191, 0.15);
}

.disclaimer-content {
    text-align: center;
}

.disclaimer-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.disclaimer-content p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
}

.read-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Game Section */
.game-section {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--background);
}

.game-section h2 {
    margin-bottom: 3rem;
}

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

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(123, 44, 191, 0.2);
}

/* About Section */
.about {
    background: url('about.jpeg')center/cover;
    padding: 5rem 2rem;
}

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

.about-content h2 {
    color: var(--dark);
}

.about-content p {
    font-size: 1.15rem;
    color: var(--dark);
    line-height: 1.9;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: var(--background);
}

.features h2 {
    margin-bottom: 3.5rem;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(123, 44, 191, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(123, 44, 191, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

/* Reviews Section */
.reviews {
    background: linear-gradient(135deg, #fff 0%, #f3e5ff 100%);
    padding: 5rem 2rem;
}

.reviews h2 {
    margin-bottom: 3.5rem;
}

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

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(123, 44, 191, 0.1);
    position: relative;
}

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

.review-card p:first-child {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
    padding-left: 30px;
}

.review-card p:last-child {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: var(--background);
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(123, 44, 191, 0.15);
}

.contact-form h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-purple);
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary);
    transform: scale(1.02);
}

/* Content Pages */
.content-page {
    padding: 6rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.content-page h2 {
    font-size: 1.8rem;
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.content-page p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: var(--text);
}

.container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(123, 44, 191, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: white;
    padding: 4rem 2rem 2rem;
}

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

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

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 0, 70, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(123, 44, 191, 0.4);
    border-top: 5px solid var(--accent);
}

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

.popup-content p {
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.agree-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.agree-button:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(123, 44, 191, 0.4);
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.6);
}

.scroll-top i {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Mobile: hide the nav links by default and show via toggle */
    .nav-links {
        display: none; /* hidden until toggled */
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 1rem 0 2rem;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.7rem 1.2rem;
        width: 90%;
        text-align: center;
        border-radius: 10px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .game-container {
        max-height: auto;
    }

    .features-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

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

    .popup-content {
        width: 95%;
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Stack hero columns on small screens and center content for readability */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .hero-content {
        text-align: center;
    }

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

    /* Hamburger button (hidden on desktop) */
    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 42px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0;
    }

    .nav-toggle .bar {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--text);
        border-radius: 3px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    /* When nav is open, give a simple animation via .open on nav-links */
    .nav-links.open + .nav-toggle,
    .nav-toggle:focus {
        outline: none;
    }
}

/* Desktop: hide hamburger */
.nav-toggle { display: none; }

@media (min-width: 769px) {
    .nav-links { display: flex !important; }
}