/* =========================================
   CONFIG & VARIABLES
   Change colors, fonts, and sizing here.
   ========================================= */
:root {
    /* --- Colors (Based on Logo) --- */
    --bg-dark: #121214;         /* Deepest background */
    --bg-panel: #1e1e24;        /* Slightly lighter for cards */
    --text-main: #e0e0e0;       /* Off-white for readability */
    --text-muted: #a0a0a0;
    
    --brand-orange: #ff7f11;    /* Vibrant Orange from logo */
    --brand-cyan: #00e5ff;      /* Cyan/Teal from logo */
    
    /* --- Fonts --- */
    --font-heading: 'Press Start 2P', cursive; /* Retro Pixel Font */
    --font-body: 'Roboto', sans-serif;         /* Modern Clean Font */
    
    /* --- Layout Config --- */
    --nav-height: 70px;
    --max-width: 1100px;        /* content width constraint */
    --border-radius: 8px;       /* Modern rounded corners */
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--nav-height); /* Prevent nav from covering content */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   NAVBAR (Sticky)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(18, 18, 20, 0.95); /* Slight transparency */
    border-bottom: 2px solid var(--brand-cyan);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.navbar ul {
    display: flex;
    gap: 30px;
}

.navbar a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-main);
    text-transform: uppercase;
}

.navbar a:hover {
    color: var(--brand-orange);
    text-shadow: 0 0 8px rgba(255, 127, 17, 0.6);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    height: 90vh; /* 90% of viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #2a2a30 0%, var(--bg-dark) 70%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.logo-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.2));
}

.tagline {
    font-size: 1.2rem;
    color: var(--brand-cyan);
    margin: 20px 0 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hidden-title { display: none; } /* For SEO only, since we have the logo image */

/* Background Grid Effect */
.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* =========================================
   COMPONENTS (Buttons, Titles)
   ========================================= */
.section-title {
    font-family: var(--font-heading);
    color: var(--brand-orange);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px; /* Slightly boxy for game feel */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--brand-orange);
    color: var(--bg-dark);
    border: 2px solid var(--brand-orange);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--brand-cyan);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 20px var(--brand-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--brand-cyan);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 20px var(--brand-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    transform: scale(1.05);
}

.btn-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 20px;
}

/* =========================================
   GAME SECTIONS
   ========================================= */
.game-section {
    padding: 80px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.game-media {
    flex: 1 1 400px; /* Takes up space, min 400px */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border: 2px solid var(--bg-panel);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.game-details {
    flex: 1 1 300px;
}

.game-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.game-specs {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-panel);
    border-left: 4px solid var(--brand-cyan);
}

.game-specs li { margin-bottom: 5px; }

/* Divider */
.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bg-panel), transparent);
    margin: 0 auto;
    width: 80%;
}

/* =========================================
   GAME GALLERY (New Section)
   ========================================= */
.game-gallery {
    flex-basis: 100%; /* Forces the gallery to break to a new line below video/text */
    width: 100%;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 images per row */
    gap: 20px;
}

.gallery-img {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    border-radius: var(--border-radius);
    border: 2px solid var(--bg-panel);
    transition: transform 0.3s, border-color 0.3s;
    object-fit: cover;
}

.gallery-img:hover {
    transform: scale(1.03); /* Slight zoom effect on hover */
    border-color: var(--brand-cyan);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 10;
}

/* =========================================
   IN DEVELOPMENT GRID
   ========================================= */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dev-card {
    background: var(--bg-panel);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.dev-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-cyan);
}

.dev-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 0.7rem;
}

.dev-content {
    padding: 20px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    background: #333;
    color: var(--brand-cyan);
    font-size: 0.7rem;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* =========================================
   FOOTER & ABOUT
   ========================================= */
.about-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-panel);
    border-top: 4px solid var(--brand-orange);
}

.about-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.social-icon {
    width: 32px;
    height: 32px;
    fill: var(--brand-orange);
    transition: fill 0.3s ease, filter 0.3s ease;
}

/* HOVER STATE */
.social-links a:hover .social-icon {
    fill: var(--brand-cyan);
    filter: drop-shadow(0 0 8px var(--brand-cyan));
}

.social-links a:hover {
     transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: #000;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid #333;
}

.support-link {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
}

.support-link a {
    color: var(--brand-cyan);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed var(--brand-cyan);
}

.support-link a:hover {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}

/* =========================================
   ANIMATIONS & MOBILE
   ========================================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .navbar ul {
        gap: 15px;
    }
    .navbar a {
        font-size: 0.6rem;
    }
    .hero-section {
        height: auto;
        padding: 100px 20px;
    }
    .logo-container img {
        max-width: 250px;
    }
    .game-title {
        font-size: 1.5rem;
    }
    .game-gallery {
        grid-template-columns: 1fr; /* Stack images vertically on small screens */
    }
    .btn-group {
        width: 100%; /* Ensure container takes full width */
    }
    .btn {
        flex: 1;             /* Makes both buttons grow equally to fill the row */
        padding: 12px 5px;   /* Reduces side padding so text fits */
        font-size: 0.75rem;  /* Slightly smaller text for mobile */
        text-align: center;  /* Centers text inside the button */
        white-space: nowrap; /* Prevents text from breaking into two lines */
        display: flex;       /* Helps center text perfectly */
        justify-content: center;
        align-items: center;
    }
}

/* =========================================
   LIGHTBOX / MODAL (Pop-up)
   ========================================= */
/* The Modal background */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 2000; /* Sit on top of everything (navbar is 1000) */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

/* The Modal Image */
.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--brand-cyan);
    box-shadow: 0 0 20px var(--brand-cyan);
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

/* The Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    font-family: sans-serif; /* Keep it simple for the X */
}

.close:hover,
.close:focus {
    color: var(--brand-orange);
    text-decoration: none;
    cursor: pointer;
}

/* Add cursor pointer to gallery images to show they are clickable */
.gallery-img {
    cursor: pointer;
}

/* Animation for opening */
@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}