/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500;600&display=swap');

/* Custom Properties */
:root {
    --color-primary: #4A154B;
    --color-secondary: #00B8D9;
    --color-accent: #FF5630;
    --color-background: #f8f9fa;
    --color-text: #2D3436;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Utility container to constrain readable widths */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation (modern, centered pill) */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1100px;
    width: calc(100% - 2rem);
    padding: 0.65rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(18,18,18,0.08);
    transition: background-color 0.25s ease, transform 0.15s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
}

.logo {
    height: 40px;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.15s;
}

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

.logo-link { display: flex; align-items: center; gap: 12px; }
.logo { height: 44px; }
.nav-menu a { display: inline-block; }
.nav-cta {
    background: linear-gradient(90deg,var(--color-accent), #d94422);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255,86,48,0.12);
}


/* Hero Section */
.hero {
    min-height: 80vh;
    padding: 6.5rem 0 3rem; /* horizontal padding handled by .container */
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero.jpg') center/cover;
    opacity: 0.75;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 720px;
}

/* About Section */
.about {
    padding: 3.5rem 0;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: center;
}
.about-content p { color: #4b4f51; }
.about-img {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 8px 30px rgba(74,21,75,0.08);
}

/* Light overlay and centered symbol on about image */
.about-img {
    position: relative;
    overflow: hidden;
}
.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.12));
    pointer-events: none;
}
.about-img .about-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.45); /* dark circle to contrast white icon */
    background-image: url('../img/gamepad.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 56%;
    opacity: 0.95;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* Improved about layout: larger lead and subtle card */
.about-content > div:first-child {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    padding: 1.25rem 1rem;
    border-radius: 12px;
}
.about-content h2 { margin-bottom: 0.6rem; color: #111; }
.about-content p.lead { font-size: 1.05rem; color: #333; }

/* Page disclaimer card shown above game sections */
.page-disclaimer {
    background: rgba(255,255,255,0.03);
    border-left: 4px solid rgba(255,86,48,0.9);
    padding: 1rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.95);
}
.page-disclaimer p { margin: 0; color: var(--color-secondary); }


/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-frame {
    width: 100%;
    height: 0;
    padding-bottom: calc(100% * 9 / 16); /* maintain 16:9 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
/* ensure iframe children fill their container if present */
.games-grid > .game-frame, .games-grid > iframe { position: relative; }
.games-grid > iframe { width: 100%; height: 100%; display: block; }

/* ---------- Games Section (stacked 3x1 on all viewports) ---------- */
.games-section {
    padding: 2.5rem 0;
}

.games-grid-inner {
    display: grid;
    grid-template-columns: 1fr; /* single column */
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.game-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 30px rgba(18,18,18,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(18,18,18,0.12);
}

.game-header {
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.game-header h3 { margin: 0 0 0.35rem 0; color: white; font-size: 1.05rem; }
.game-header p { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.95rem; }

.game-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect */
    background: rgba(0,0,0,0.05);
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ensure games-grid (old) becomes stacked as well if used */
.games-grid { grid-template-columns: 1fr; }

/* Reviews / Testimonials */
.reviews {
    padding: 3rem 0;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(18,18,18,0.06);
}
.review-card p { font-style: italic; color: #333; }
.review-card cite { display: block; margin-top: 0.75rem; color: #666; font-size: 0.95rem; }


/* Features Section */
.features {
    padding: 4rem 0;
    background: linear-gradient(45deg, #f6f7f8, #ffffff);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.disclaimer-card {
    grid-column: 1/-1;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.footer-brand img.footer-logo { height: 40px; }
.footer-links a, .footer-contact a { display: block; color: rgba(255,255,255,0.9); text-decoration: none; margin: 0.35rem 0; }
.footer-links h3, .footer-contact h3 { margin-bottom: 0.75rem; }

/* Footer small print */
.footer small { display: block; margin-top: 1rem; color: rgba(255,255,255,0.7); }

/* Small-screen adjustments for about and reviews */
@media (max-width: 992px) {
    .about-content { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
}

/* Age Verification Modal */
.age-verify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.age-verify-modal {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.verify-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.verify-btn:hover {
    background: #e64920;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--color-text);
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hero {
        text-align: center;
        padding-top: 6rem;
    }
}
/* ----- Main content defaults for secondary pages (Contact, Terms, Privacy, Disclaimer) ----- */
.page-header {
    padding: 4rem 0 2rem;
    background: transparent;
}
.page-header:not(.hero) { padding-top: 8rem; } /* leave .hero spacing as-is, increase other page headers to clear fixed navbar */
.page-header .container, .page-header { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.page-header h1 { font-size: 2rem; color: var(--color-primary); }
.page-header p { color: rgba(45,52,54,0.85); margin-top: 0.5rem; }

.content, .contact-form, .content-wrapper {
    padding: 2rem 0 3rem;
}
.content .content-wrapper, .contact-form .form, .content-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(18,18,18,0.04);
    color: var(--color-text);
}

/* Form styles */
.form { display: block; }
.form-group { margin-bottom: 0.85rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: #222; }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    font-family: var(--font-body);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.submit-btn { background: var(--color-accent); color: white; padding: 0.75rem 1rem; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; }
.submit-btn:hover { filter: brightness(0.95); }

/* content lists and headings inside content-wrapper */
.content-wrapper h2 { margin-top: 0; color: var(--color-primary); }
.content-wrapper h3 { margin-top: 1rem; color: #333; }
.content-wrapper p { color: #444; line-height: 1.7; }

/* make sure footers inside wrapper don't get white background */
.content-wrapper .footer { background: transparent; box-shadow: none; }

/* Font imports */
