:root {
    --bg-dark: #070708;
    --accent-cs2: #fb8c00;
    --accent-csgo: #1e88e5;
    --text-white: #ffffff;
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

    /* Layout Variables */
    --split-pos: 50%;
    --slant-offset: -12vw;
    --blur-intensity: 0px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-primary);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

/* FILM GRAIN OVERLAY */
body::after {
    content: "";
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/76/1k_pnt_noisel_texture.png");
    opacity: 0.04;
    pointer-events: none;
    z-index: 10000;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    30% {
        transform: translate(3%, -15%);
    }

    50% {
        transform: translate(12%, 9%);
    }

    70% {
        transform: translate(-9%, 4%);
    }

    90% {
        transform: translate(2%, 11%);
    }
}

/* LOADER */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s var(--ease-out-expo);
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--accent-cs2);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.main-container {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease-out;
}

/* TACTICAL DASHBOARD HEADER */
.header-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: bannerSlide 1.2s var(--ease-out-expo) forwards;
}

.header-banner::before,
.header-banner::after {
    content: "";
    position: absolute;
    bottom: -1px;
    height: 2px;
}

.header-banner::before {
    left: 0;
    width: var(--split-pos);
    background: linear-gradient(90deg, transparent, var(--accent-cs2));
    box-shadow: 0 0 15px var(--accent-cs2);
    transition: width 0.8s var(--ease-out-expo);
}

.header-banner::after {
    right: 0;
    width: calc(101.3% - var(--split-pos));
    background: linear-gradient(270deg, transparent, var(--accent-csgo));
    box-shadow: 0 0 15px var(--accent-csgo);
    transition: width 0.8s var(--ease-out-expo);
}

.main-title {
    font-size: clamp(0.9rem, 1.8vw, 1.4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    color: #fff;
    opacity: 0.85;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: opacity 0.5s ease;
}

@keyframes bannerSlide {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* SPLIT SCREEN ENGINE */
.split-screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    background: #000;
}

.game-section {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100vw;
    transition: clip-path 0.8s var(--ease-out-expo);
}

.left {
    z-index: 10;
    clip-path: polygon(0 0, var(--split-pos) 0, calc(var(--split-pos) + var(--slant-offset)) 100%, 0 100%);
}

.right {
    z-index: 5;
}

.diagonal-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    clip-path: polygon(calc(var(--split-pos) - 1px) 0, calc(var(--split-pos) + 1px) 0, calc(var(--split-pos) + var(--slant-offset) + 1px) 100%, calc(var(--split-pos) + var(--slant-offset) - 1px) 100%);
    background: linear-gradient(180deg, transparent, #fff 50%, transparent);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    transition: clip-path 0.8s var(--ease-out-expo);
    opacity: 0.8;
}

/* VISUAL ASSETS */
.background-wrapper {
    position: absolute;
    inset: -5%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, filter;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.1) brightness(0.25) contrast(1.15) blur(var(--blur-intensity));
    transition: filter 0.8s var(--ease-out-expo), transform 2s var(--ease-out-expo);
}

.game-section:hover .bg-img {
    filter: grayscale(0) brightness(0.8) contrast(1.2) blur(0);
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    z-index: 2;
}

/* CONTENT BOXES */
.content {
    position: absolute;
    top: 55%;
    width: 40vw;
    text-align: center;
    z-index: 20;
    transition: transform 1s var(--ease-out-expo), opacity 0.5s ease, left 0.8s var(--ease-out-expo);
    opacity: 0;
}

.loaded .content {
    opacity: 1;
}

.left .content {
    left: 25%;
    transform: translate(-50%, -40%);
}

.right .content {
    left: 75%;
    transform: translate(-50%, -40%);
}

.game-section:hover .content {
    transform: translate(-50%, -50%);
}

.split-screen.hover-left .left .content {
    left: 32%;
}

.split-screen.hover-right .right .content {
    left: 68%;
}

/* LOGO & TYPOGRAPHY */
.game-logo {
    margin-bottom: 2rem;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.logo-text {
    font-size: clamp(1.8rem, 3.5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -1px;
    filter: drop-shadow(0 0 30px #000);
    color: #fff;
}

.accent {
    transition: color 0.5s ease;
}

.left .accent {
    color: var(--accent-cs2);
    text-shadow: 0 0 30px var(--accent-cs2);
    animation: accentPulse 4s infinite alternate;
}

.right .accent {
    color: var(--accent-csgo);
    text-shadow: 0 0 30px var(--accent-csgo);
    animation: accentPulse 4s infinite alternate-reverse;
}

@keyframes accentPulse {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.5) drop-shadow(0 0 10px currentColor);
    }
}

.subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3.5rem;
    text-transform: uppercase;
}

/* CTA BUTTONS */
.cta-button {
    position: relative;
    display: inline-flex;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 4px;
    border-radius: 2px;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.cta-button:hover::before {
    left: 150%;
}

.left .cta-button:hover {
    border-color: var(--accent-cs2);
    box-shadow: 0 0 40px rgba(251, 140, 0, 0.2);
    background: rgba(251, 140, 0, 0.05);
}

.right .cta-button:hover {
    border-color: var(--accent-csgo);
    box-shadow: 0 0 40px rgba(30, 136, 229, 0.2);
    background: rgba(30, 136, 229, 0.05);
}

/* SERVER STATUS CARDS */
.server-status-container {
    position: absolute;
    bottom: 6vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    opacity: 0.45;
}

.left-corner {
    left: 4vw;
    transform: translateX(-20px);
}

.right-corner {
    right: 4vw;
    transform: translateX(20px);
    align-items: flex-end;
}

.game-section:hover .server-status-container {
    opacity: 1;
    transform: translateX(0) scale(1.1);
}

.server-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 210px;
}

.server-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 10px #4caf50;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.server-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.server-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.server-ip {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.copy-icon {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
}

.server-card:hover .copy-icon {
    color: #fff;
}

/* PRODUCTION FOOTER */
.page-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.footer-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

.page-footer p {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}



.spotlight {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1000;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 11;
    pointer-events: none;
    opacity: 0.4;
}

/* RESPONSIVE ENGINE */
@media (max-width: 1024px) {
    .split-screen {
        flex-direction: column;
    }

    .game-section {
        position: relative;
        height: 50% !important;
        clip-path: none !important;
    }

    .diagonal-divider,
    .header-banner::before,
    .header-banner::after {
        display: none;
    }

    .content {
        left: 50% !important;
        width: 80% !important;
        top: 50%;
        transform: translate(-50%, -50%) !important;
    }

    .server-status-container {
        position: relative;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        align-items: center;
        padding: 10px;
        opacity: 1;
        transform: none !important;
    }

    .main-title {
        font-size: 0.8rem;
        letter-spacing: 0.2rem;
    }

    .page-footer {
        height: 60px;
    }
}