:root {
    --clr-bg: #000;
    --clr-text: #fff;
    --clr-muted: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* ==================================================
   BACKGROUND VIDEO
   ================================================== */
.video-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient overlay to ensure text readability */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 80%);
    pointer-events: none;
}



/* ==================================================
   HERO ALIGNMENT
   ================================================== */
.hero {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

/* Flex container for structural gap management */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
    gap: 30px;
    /* Strict gaps between child elements */
}

.hero-logo {
    /* Robust min/max width limits to prevent aspect-ratio squashing */
    width: 40vw;
    min-width: 280px;
    max-width: 520px;
    height: auto !important;
    aspect-ratio: 5.8 / 1 !important;
    object-fit: fill !important;
    flex-shrink: 0;
    /* Optical alignment correction */
    transform: translateX(-16px);
    /* Prevents vertical squashing by flex containers */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
    transition: all 0.3s ease;
}

.brand-slogan {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--clr-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ==================================================
   ACTIONS & BUTTONS
   ================================================== */
.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-void {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--clr-text);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    padding: 14px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    transition: all 0.4s ease;
}

/* Hover interaction aesthetics */
.btn-void:hover {
    background: var(--clr-text);
    color: #000;
    border-color: var(--clr-text);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    /* White outer glow effect on hover */
}

/* ==================================================
   KEYFRAME ANIMATIONS
   ================================================== */
@keyframes fadeRight {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slowReveal {
    0% {
        opacity: 0;
        letter-spacing: 0.25em;
        transform: translateY(15px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        letter-spacing: 0.05em;
        transform: translateY(0);
        filter: blur(0);
    }
}

.fade-in-right {
    animation: fadeRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.slow-reveal {
    animation: slowReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

/* ==================================================
   GAMES PAGE CLASSES
   ================================================== */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    padding: 40px 5%;
    z-index: 100;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--clr-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-back:hover {
    color: var(--clr-text);
    transform: translateX(-5px);
}

.back-arrow {
    font-size: 1.2rem;
    line-height: 1;
}

.games-showcase {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 150px 5% 100px 5%;
}

.game-card {
    display: flex;
    width: 100%;
    max-width: 1050px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
}

.card-visual {
    flex: 1.6;
    min-height: 350px;
    background: #0a0a0a;
    position: relative;
}

.card-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #111, #222);
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    font-weight: 300;
}

.card-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    color: var(--clr-text);
}

.game-status {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: #ffd700;
    margin-bottom: 12px;
    font-weight: 600;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--clr-muted);
    background: rgba(255, 255, 255, 0.05);
}

.game-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--clr-muted);
    font-weight: 300;
    margin-bottom: 40px;
}

.btn-void.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.more-games-soon {
    margin-top: 20px;
    padding: 30px;
    text-align: center;
    width: 100%;
}

.more-games-soon span {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    border-radius: 4px;
}

/* ==================================================
   ABOUT US PAGE CLASSES
   ================================================== */
.about-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}

.about-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

.about-content.centered {
    align-items: center;
    text-align: center;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--clr-text);
    margin-bottom: 5px;
}

.about-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: #ffd700;
    margin-bottom: 30px;
    font-weight: 600;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--clr-muted);
    font-weight: 300;
    margin-bottom: 25px;
}

.about-actions {
    margin-top: 30px;
}

/* ==================================================
   CONTACT PAGE CLASSES
   ================================================== */
.contact-split-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    gap: 60px;
}

.contact-left {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contact-logo {
    width: 100%;
    max-width: 550px;
    height: auto !important;
    aspect-ratio: 5.8 / 1 !important;
    align-self: center;
    opacity: 1;
    object-fit: fill !important;
}

.contact-divider {
    width: 2px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
}

.contact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.contact-title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--clr-text);
    margin-bottom: 20px;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--clr-muted);
    font-weight: 300;
    margin-bottom: 20px;
    max-width: 500px;
}

.contact-email-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.contact-email-icon {
    flex-shrink: 0;
    color: #fff;
}

.contact-email-link {
    font-size: 1.3rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.contact-email-link:hover {
    color: #ffd700;
}

.contact-socials-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.steam-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.btn-void:hover .steam-icon {
    filter: brightness(0);
}




/* ==================================================
   MOBILE RESPONSIVENESS
   ================================================== */
@media (max-width: 768px) {
    .video-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%);
    }

    .hero {
        padding: 0 5%;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .hero-logo {
        transform: translateX(0);
        /* Disable optical offset and center align */
        width: 90%;
        /* Use percentage instead of vw to prevent overflow */
        min-width: auto;
        max-width: 320px;
    }

    .hero-actions {
        /* Stack buttons vertically to avoid overlap */
        flex-direction: column;
        width: 100%;
    }

    .btn-void {
        width: 100%;
    }

    /* Stack game card layout vertically on mobile */
    .game-card {
        flex-direction: column;
        border-radius: 8px;
    }

    .card-visual {
        min-height: 250px;
        width: 100%;
    }

    .card-content {
        padding: 40px 25px;
        text-align: center;
        align-items: center;
    }

    .game-tags {
        justify-content: center;
    }

    .game-title {
        font-size: 2rem;
    }

    /* Coming soon badge fix */
    .more-games-soon span {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        padding: 12px 15px;
        display: block;
        word-break: break-word;
    }

    /* About Us - Mobile */
    .about-container {
        padding: 120px 5% 80px 5%;
    }

    .about-title {
        font-size: 2.2rem;
    }

    /* Contact Split - Mobile */
    .contact-split-container {
        flex-direction: column;
        padding: 100px 5% 50px 5%;
        gap: 30px;
    }

    .contact-left {
        justify-content: center;
        width: 100%;
        flex: none;
        /* Prevent 50vh vertical stretch */
    }

    .contact-logo {
        max-width: 250px;
        height: auto;
    }

    .contact-divider {
        width: 100%;
        height: 1px;
        max-width: 150px;
    }

    .contact-right {
        align-items: center;
        text-align: center;
        width: 100%;
        flex: none;
        /* Prevent vertical stretch */
    }

    .contact-title {
        font-size: 2.2rem;
    }

    .contact-email-link {
        font-size: 1rem;
        word-break: break-all;
    }

    .contact-socials-row {
        flex-direction: column;
        width: 100%;
    }

    .contact-socials-row .btn-void {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        margin-bottom: 10px;
    }
}

/* ==================================================
   404 ERROR PAGE - LOST IN THE VOID
   ================================================== */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    z-index: 10;
    position: relative;
}

.error-code {
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--clr-text);
    opacity: 0.12;
    margin-bottom: 20px;
    pointer-events: none;
    display: block;
}

.error-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--clr-text);
}

.error-message {
    font-size: 1.2rem;
    color: var(--clr-muted);
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.error-actions {
    margin-top: 20px;
}

/* ==================================================
   LANGUAGE SWITCHER
   ================================================== */
.lang-switcher {
    position: fixed;
    top: 40px;
    right: 5%;
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--clr-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--clr-text);
}

.lang-btn.active {
    color: var(--clr-text);
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.lang-divider {
    display: none;
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 20px;
    }
}