/* GLOBAL BASE */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #0e0e12;
    color: #e6d6b8;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* GLOBAL IMAGE SAFETY RULE */
img {
    max-width: 100%;
    height: auto;
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

/* Make entire logo area clickable WITHOUT changing layout */
.logo-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.9;
}

/* Ensure text keeps original look */
.logo-text {
    display: inline-block;
}

.logo a {
    color: inherit;
    text-decoration: none;
    line-height: inherit;
    margin: 0;
    padding: 0;
}

/* NAVIGATION */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    backdrop-filter: blur(8px);
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topnav a {
    color: #f1e6d2;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
}

.topnav a:hover {
    color: #ffffff;        /* slightly brighter on hover */
    text-decoration: underline;
}

.nav-logo {
    height: 42px;
    width: auto;
}

.social a {
    margin-left: 12px;
    font-size: 16px;
    opacity: 0.9;
}

.social a:hover {
    opacity: 1;
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 180px 20px 140px 20px;
    background-image: url("../assets/images/Background01.png");
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 48px;
    letter-spacing: 4px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

.hero h1,
.hero p,
.hero-buttons {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 10px black;
}

/* CONTAINER */
.container {
    max-width: 900px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Global in-page link styling to match footer */
.container a {
    color: #c8b18b;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.2s ease;
}

.container a:hover {
    color: #e6d6b8;
    text-decoration: underline;
    opacity: 1;
}


/* SECTION STYLING – IMPROVED HYBRID FIX */
.about, .current-project, .supported-games, .support {
    text-align: center;
    padding: 90px 20px;

    background-image: url("../assets/images/Background02.png");

    /* KEEP THE COVER LOOK */
    background-size: cover;
    background-position: center;

    /* THIS STOPS ZOOMING WHEN CONTENT GROWS */
    background-attachment: fixed;

    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
}



.about::before,
.current-project::before,
.supported-games::before,
.support::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.about .container,
.current-project .container,
.supported-games .container,
.support .container {
    position: relative;
    z-index: 2;
}

/* SECTION TITLES */
h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h2::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

/* BUTTONS */
.button {
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none;
    margin: 10px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: bold;
}

.primary {
    background: linear-gradient(#2b4f82, #152a47);
    color: white;
    box-shadow: inset 0 1px rgba(255,255,255,0.2),
                0 3px 10px rgba(0,0,0,0.6);
}

.secondary {
    background: linear-gradient(#5a3a3a, #2d1d1d);
    color: white;
    box-shadow: inset 0 1px rgba(255,255,255,0.2),
                0 3px 10px rgba(0,0,0,0.6);
}

.button:hover {
    transform: scale(1.03);
    transition: 0.2s;
}

/* GAME CARD */
.game-card {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    background: rgba(10,10,15,0.75);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
}

.status {
    color: #7aa8ff;
    font-weight: bold;
    margin-top: 10px;
    text-shadow: 0 0 8px rgba(120,160,255,0.6);
}

/* LANDING PAGE PREVIEW FIX */
.square-preview {
    width: 260px;
    height: 260px;
    margin: auto;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
}

.square-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SCREENSHOT SCROLLER */

.screenshot-container {
    width: 1600px;
    overflow: hidden;
    margin: auto;
    padding-top: 20px;
}

.screenshot-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
}

.screenshot-track img {
    width: 300px;
    height: 300px;
    object-fit: cover;

    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 15px rgba(0,0,0,0.6);

    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshot-track img:hover {
    transform: scale(1.05);
}

/* LIGHTBOX */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;

    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid rgba(255,255,255,0.3);
}

/* FOOTER LINK STYLING */

footer a {
    color: #c8b18b;          /* Soft warm gold tone */
    text-decoration: none;
    opacity: 0.85;
    transition: 0.2s ease;
}

footer a:hover {
    color: #e6d6b8;          /* Slightly brighter on hover */
    opacity: 1;
    text-decoration: underline;
}

footer {
    font-size: 14px;
    letter-spacing: 0.5px;
}


/* RESPONSIVE */

@media (max-width: 1700px) {
    .screenshot-container {
        width: 1400px;
    }
}

@media (max-width: 1500px) {
    .screenshot-container {
        width: 1200px;
    }
}

@media (max-width: 1300px) {
    .screenshot-container {
        width: 1000px;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        height: 36px;
    }

    .hero h1 {
        font-size: 32px;
    }
}

/* CONTACT FORM STYLING */

input, textarea {
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e6d6b8;
    border-radius: 4px;
    transition: 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(120,160,255,0.6);
    background: rgba(20, 20, 28, 0.95);
}

::placeholder {
    color: rgba(230,214,184,0.6);
}

/* FAQ ACCORDION STYLING */

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 14px;
    background: rgba(20,20,30,0.8);
    color: #e6d6b8;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.faq-question:hover {
    background: rgba(30,30,45,0.9);
}

.faq-answer {
    display: none;
    padding: 14px;
    background: rgba(10,10,15,0.7);
    border-left: 2px solid rgba(120,160,255,0.6);
    margin-top: 6px;
    border-radius: 4px;
}

.faq-item.active .faq-answer {
    display: block;
}
