/* ============== GENERAL SETUP & FONTS ============== */
:root {
    --primary-color: #EAEAEA; /* Off-white text */
    --secondary-color: #ffc107; /* Accent color - a classic noir gold/yellow */
    --bg-dark: #121212;
    --bg-light: #1f1f1f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--primary-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-family: 'Special Elite', cursive;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 15px;
    }

h2, h3 {
    font-family: 'Special Elite', cursive;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; color: var(--primary-color); }
p { font-size: 1.25rem; margin-bottom: 20px; }
a { color: var(--secondary-color); text-decoration: none; }

.title-row {
    align-items: center;
    gap: 15px;
}

.section {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--bg-light);
}

/* ============== MODAL STYLES ============== */
.modal-overlay {
    position: fixed; /* Pysyy paikallaan, vaikka sivua selaisi */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Puoliläpinäkyvä musta tausta */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Varmistaa, että on kaiken muun päällä */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: var(--bg-light);
    padding: 30px 40px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-content h2 {
    font-family: 'Special Elite', cursive;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-button:hover {
    color: var(--secondary-color);
}
/* ============== HERO SECTION ============== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

.hero-content .main-title {
    font-size: 4.5rem;
}

.hero-content .tagline {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.hero-content .intro-text {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.cta-buttons a {
    display: inline-block;
    padding: 0px 0px;
    background-color: var(--bg-dark);
    color: var(--bg-dark);
    font-weight: bold;
    border-radius: 5px;
    margin: 10px;
    transition: transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.cta-buttons a:hover {
    transform: scale(1.05);
}

.image-caption {
    font-family: sans-serif;
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 5px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

/* ============== PITCH & FEATURES SECTIONS ============== */
#pitch .container, #community .container {
    max-width: 800px;
    text-align: center;
}

.gameplay-showcase {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.gameplay-showcase img {
    width: 45%;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
}

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

.feature-item {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.feature-item img {
    width: 45%;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
}
/* ============== COMMUNITY & FOOTER ============== */
.social-icons a {
    font-size: 1.2rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

footer {
    background: var(--bg-light);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-links a {
    margin: 0 10px;
}

/* ============== RESPONSIVENESS ============== */
@media (max-width: 813px) {
    h1, .hero-content .main-title { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .gameplay-showcase {
        flex-direction: column;
        align-items: center;
    }

    .gameplay-showcase img {
        width: 90%;
    }

    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.6);
    }
}
