:root {
    --color-bg: #000000;
    --color-surface: #111111;
    --color-primary: #D7FF00;
    /* Distinctive Marathon Neon Lime */
    --color-text: #FFFFFF;

    --font-heading: 'Kanit', 'Helvetic', 'Arial Black', sans-serif;
    /* Thick, blocky sans */
    --font-mono: 'Kanit', 'Courier New', monospace;
    /* For flavor text */

    --spacing-container: 1400px;
}

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

body {
    background-color: transparent;
    /* Allow video to show through */
    color: var(--color-text);
    font-family: 'Kanit', 'Inter', sans-serif;
    overflow-x: hidden;
    font-size: 1.1rem;
    /* Base increased */
}

html {
    background-color: #000;
    /* Fallback color behind video */
}

/* Background Slideshow */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s linear;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Video Background (Universal) */
#video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* Typography Overrides */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -1px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background: #000;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 1rem;
    /* Increased from 0.8rem */
    text-transform: uppercase;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    height: 50px;
}

.nav-left {
    display: flex;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    padding: 0 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    border-right: 1px solid #333;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    border-right: 1px solid #333;
}

.nav-item:hover,
.nav-item.active {
    color: #000;
    background-color: var(--color-primary);
}

.nav-logo {
    background: var(--color-primary);
    color: #000;
    font-weight: 900;
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-right {
    background: var(--color-primary);
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 0 40px;
    cursor: pointer;
}

.nav-right:hover {
    background: #000;
    color: var(--color-primary);
}

.nav-highlight {
    background: var(--color-primary) !important;
    color: #000 !important;
    transition: 0.2s;
}

.nav-highlight:hover {
    background: #000 !important;
    color: var(--color-primary) !important;
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-item {
    padding: 15px 0;
    border-bottom: 1px solid #222;
    color: #fff;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 1.2rem;
}

.mobile-nav-item.active {
    color: var(--color-primary);
}

/* HUD Hero Section */
.hero-hud {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
}

/* Sidebar (Left Strip) */
.hud-sidebar {
    width: 60px;
    height: 100%;
    background: var(--color-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-right: 1px solid #000;
}

.hud-sidebar-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* HUD Overlay Elements */
.hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    padding: 20px;
}

/* Big "MARATHON" Logo at Bottom Left */
.hud-logo-container {
    position: absolute;
    bottom: 60px;
    left: 80px;
    z-index: 5;
}

.hud-logo-img {
    display: block;
    max-width: 400px;
    /* Standardize size */
    height: auto;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

/* Status Text at Bottom Right */
.hud-status-text {
    position: absolute;
    bottom: 60px;
    right: 40px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #fff;
    z-index: 5;
    text-transform: uppercase;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .hud-status-text {
        bottom: 30px;
        right: 20px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .hud-logo-container {
        left: 20px;
        bottom: 30px;
    }

    .hud-logo-img {
        max-width: 70vw;
    }
}

/* Crosshair Center */
.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-crosshair::before,
.hud-crosshair::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
}

.hud-crosshair::before {
    width: 20px;
    height: 2px;
}

.hud-crosshair::after {
    width: 2px;
    height: 20px;
}

/* Corner Brackets */
.hud-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.top-left {
    top: 100px;
    left: 100px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 100px;
    right: 40px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 40px;
    left: 100px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 40px;
    right: 40px;
    border-left: none;
    border-top: none;
}

/* Responsive text resize */
@media (max-width: 1200px) {
    .hud-logo {
        font-size: 6rem;
    }
}

@media (max-width: 900px) {
    .nav-left .nav-item:not(.mobile-back) {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-right {
        padding: 0 20px;
        font-size: 0.8rem;
    }

    .hud-logo {
        font-size: 4rem;
        left: 20px;
    }

    .hud-sidebar {
        display: none;
    }

    .top-left {
        left: 20px;
        top: 20px;
    }

    .bottom-left {
        left: 20px;
    }

    .hud-logo-container {
        left: 20px;
        bottom: 20px;
    }

    .hud-logo-img {
        max-width: 90vw;
    }
}

/* Split Section (Neon Panel) */
.content-split {
    display: flex;
    border-bottom: 1px solid #333;
}

.panel-black {
    background: #000;
    color: #fff;
    width: 50%;
    padding: 60px;
    border-right: 1px solid #333;
}

.panel-neon {
    background: var(--color-primary);
    color: #000;
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-desc-mono {
    font-family: var(--font-mono);
    font-size: 1rem;
    /* Ensure readable size */
    line-height: 1.6;
}

.btn-arrow {
    background: #fff;
    color: #000;
    padding: 15px 30px;
    font-family: var(--font-mono);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    border: 1px solid #000;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-arrow:hover {
    background: #000;
    color: #fff;
    border-color: #fff;
}

.btn-neon {
    display: inline-block;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 20px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.3s;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-neon:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px var(--color-primary);
}

/* Grid Layout for News */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: #000;
    /* Ensure content covers video */
    position: relative;
    z-index: 1;
}

.grid-item {
    aspect-ratio: 1/1;
    position: relative;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    overflow: hidden;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    width: 100%;
}

/* Footer */
/* Footer Complex Grid */
footer {
    background: #000;
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    border-top: 1px solid var(--color-primary);
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-primary);
}

.footer-meta {
    display: flex;
}

.meta-box {
    padding: 15px 30px;
    border-right: 1px solid var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
}

.footer-quote {
    padding: 15px 30px;
    color: #ccc;
    max-width: 600px;
    text-align: right;
    font-size: 0.75rem;
    line-height: 1.4;
    border-left: 1px solid var(--color-primary);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    /* LogoSpace Social Hazard Legal */
    min-height: 300px;
    border-bottom: 1px solid var(--color-primary);
}

.footer-col {
    padding: 30px;
    border-right: 1px solid var(--color-primary);
}

.footer-col:last-child {
    border-right: none;
}

.footer-col-logo {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.footer-marathon-logo {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: #fff;
    line-height: 0.8;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list li a {
    text-decoration: none;
    color: var(--color-primary);
    transition: 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-list li a:hover {
    color: #fff;
}

.hazard-stripe {
    background: repeating-linear-gradient(45deg,
            var(--color-primary),
            var(--color-primary) 20px,
            #000 20px,
            #000 40px);
    width: 100%;
    height: 100%;
}

.footer-bottom {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    gap: 40px;
    font-size: 0.7rem;
    color: #fff;
}

.esrb-box {
    background: #fff;
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    border: 1px solid #fff;
}

.footer-legal-text {
    flex-grow: 1;
    text-align: right;
    color: #888;
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-quote {
        display: none;
    }

    .hazard-stripe {
        display: none;
    }
}

/* Responsive */
/* Content Split Mobile */
.content-split {
    flex-direction: column;
}

.panel-black,
.panel-neon {
    width: 100%;
    padding: 40px 20px;
    border-right: none;
    border-bottom: 1px solid #333;
}

.section-label {
    font-size: 2.5rem;
}

.hero-desc-mono {
    font-size: 0.9rem;
    margin-bottom: 20px !important;
}

/* Story Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #000;
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--color-primary);
    width: 80%;
    max-width: 900px;
    box-shadow: 0 0 20px rgba(215, 255, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: var(--color-primary);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-primary);
}

.modal-text {
    padding: 40px;
    color: #ccc;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

.modal-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modal-text p {
    margin-bottom: 15px;
    text-align: justify;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}