/* =====================================================
   XPLOIT.ZERO V7 - MULTI-PAGE SITE
   
   COLOR SCHEME:
   - Primary accent: Cyan (#00FFFF)
   - Secondary accent: Logo Red (#E63333)
   - Background: Dark (#0A0A0A)
   ===================================================== */

/* FONTS */
@font-face {
    font-family: 'ShareTech';
    src: url('../assets/fonts/ShareTech-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SquareHead';
    src: url('../assets/fonts/SF Square Head Pro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES - Colores corregidos */
:root {
    --bg: #0A0A0A;
    --bg-alt: #111111;
    --bg-transparent: rgba(10, 10, 10, 0.92);
    --bg-alt-transparent: rgba(17, 17, 17, 0.92);
    --frame-color: rgba(207, 209, 204, 0.5);
    --cyan: #00FFFF;
    --red: #E63333;
    /* Rojo del logo */
    --text-color: #FFFFFF;
    --text-dim: #888888;
    --text-darker: #555555;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll globally */
}

body {
    overflow-x: hidden;
    position: relative;
    /* Ensure fixed elements respect viewport */
}

/* ANIMATIONS */
@keyframes flicker {

    0%,
    0.199%,
    0.4%,
    0.499%,
    0.6%,
    0.699%,
    0.9%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.3));
    }

    0.2%,
    0.399%,
    0.5%,
    0.599%,
    0.7%,
    0.899% {
        opacity: 0.4;
        filter: none;
    }
}

/* FLICKER UTILITIES */
.flicker {
    animation: flicker 10s infinite;
}

.flicker-fast {
    animation: flicker 2s infinite;
}

.flicker-slow {
    animation: flicker 15s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

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

@keyframes holoScan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

@keyframes holoPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.02);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), inset 0 0 30px rgba(0, 255, 255, 0.05);
    }
}

@keyframes dataGlitch {

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

    92% {
        transform: translate(-2px, 1px);
        opacity: 0.8;
    }

    94% {
        transform: translate(2px, -1px);
        opacity: 0.9;
    }

    96% {
        transform: translate(-1px, 2px);
        opacity: 0.7;
    }
}

body {
    background: var(--bg);
    color: var(--text-color);
    font-family: 'ShareTech', 'Courier New', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =====================================================
   MAIN NAVIGATION
   ===================================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo img {
    height: 85px;
    /* Logo grande */
    margin: -15px 0;
    /* Negativo para no aumentar altura del nav */
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.3));
    transition: filter 0.3s ease;
    animation: flicker 20s infinite;
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.6));
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyan);
}

/* =====================================================
   HERO SECTION (HOME)
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 110px 20px 20px;
    overflow: visible;
}

.cyber-frame {
    position: relative;
    min-height: calc(100vh - 130px);
}

.frame-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.frame-path {
    fill: none;
    stroke: var(--frame-color);
    stroke-width: 1.5;
}

.frame-content {
    position: relative;
    padding: 100px 100px;
    /* Máximo aire vertical y horizontal */
    min-height: inherit;
    display: flex;
    flex-direction: column;
}

/* HERO GRID REDESIGN - STACKED 3-TIER */
.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* Mucho más aire entre título, imagen y descripción */
    align-items: center;
}

.title-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* border-bottom: 2px solid rgba(0, 255, 255, 0.15); */
    padding-bottom: 30px;
    /* Un poco más de aire antes de la línea */
}

.hero-title {
    font-family: 'SquareHead', 'ShareTech', sans-serif;
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
    /* Restaurado tamaño legible */
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.hero-title.white {
    color: #fff;
    text-align: left;
}

.hero-title.cyan {
    color: var(--cyan);
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
    animation: flicker 4s infinite;
    text-align: right;
}

.hero-image-full {
    position: relative;
    width: 100%;
    margin: 10px 0;
    overflow: visible;
}

.hero-image-full img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 80px rgba(0, 255, 255, 0.15);
}

.hero-footer-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding-top: 30px;
    /* Más aire debajo de la imagen */
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0;
}

.hero-action {
    text-align: right;
}

/* =====================================================
   PAGE HERO (Secondary pages)
   ===================================================== */
.page-hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: center;
}

.page-hero h1 {
    font-family: 'SquareHead', 'ShareTech', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}

/* =====================================================
   DIAGONAL SEPARATORS (estilo referencia 2.png)
   Corte angular esquina + bloque de color
   ===================================================== */
.section-divider {
    width: 100%;
    height: 100px;
    margin: 0;
    line-height: 0;
    position: relative;
    overflow: hidden;
}

.section-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.section-divider.flip svg {
    transform: scaleX(-1);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--cyan);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.cta-button-large {
    display: inline-block;
    padding: 20px 60px;
    background: var(--cyan);
    color: var(--bg);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button-large:hover {
    background: #fff;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

.cta-button-huge {
    display: inline-block;
    padding: 25px 80px;
    background: var(--cyan);
    color: var(--bg);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button-huge:hover {
    background: #fff;
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
}

/* =====================================================
   SECTION COMMON STYLES
   ===================================================== */
section {
    padding: 100px 0;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

section h2 {
    font-family: 'SquareHead', 'ShareTech', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

section h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* =====================================================
   TRAILER SECTION
   ===================================================== */
.trailer-section {
    background: var(--bg-alt);
    padding: 80px 0;
    text-align: center;
}

.trailer-container {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.1);
}

.trailer-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trailer-placeholder {
    background: var(--bg);
    padding: 100px;
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.play-button {
    width: 80px;
    height: 80px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cyan);
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--cyan);
    color: var(--bg);
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features-section {
    background: var(--bg);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 30px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
}

/* HOLOGRAPHIC UI ENHANCEMENTS - V3 */
.holo-card {
    position: relative;
    overflow: hidden;
    background: rgba(0, 255, 255, 0.01);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    user-select: none;
    -webkit-user-select: none;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    width: 200%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 255, 255, 0.08) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Corner accents */
.holo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    pointer-events: none;
    transition: all 0.3s ease;
}

.holo-card:hover {
    border-color: var(--cyan);
    background: rgba(0, 255, 255, 0.04);
    transform: translateY(-5px) scale(1.03);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.15),
        0 15px 50px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(0, 255, 255, 0.3);
}

.holo-card:hover::before {
    opacity: 1;
    animation: holoSweep 1.5s ease-in-out infinite;
}

.holo-card:hover::after {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow:
        inset 0 0 15px rgba(0, 255, 255, 0.1),
        0 0 8px rgba(0, 255, 255, 0.4);
}

@keyframes holoSweep {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

.holo-inner {
    position: relative;
    z-index: 2;
    transition: transform 0.1s ease-out;
}

/* RED VARIANT FOR ENEMIES */
.holo-card.red {
    background: rgba(230, 51, 51, 0.01);
    border: 1px solid rgba(230, 51, 51, 0.1);
}

.holo-card.red::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(230, 51, 51, 0.08) 50%,
            transparent 100%);
}

.holo-card.red:hover {
    border-color: var(--red);
    background: rgba(230, 51, 51, 0.04);
    box-shadow:
        0 0 20px rgba(230, 51, 51, 0.3),
        0 0 40px rgba(230, 51, 51, 0.15),
        0 15px 50px rgba(230, 51, 51, 0.1),
        inset 0 1px 0 rgba(230, 51, 51, 0.3);
}

.holo-card.red:hover::after {
    border-color: rgba(230, 51, 51, 0.5);
    box-shadow:
        inset 0 0 15px rgba(230, 51, 51, 0.1),
        0 0 8px rgba(230, 51, 51, 0.4);
}

.feature-icon {
    font-size: 2rem;
    color: var(--cyan);
    display: block;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* =====================================================
   NARRATIVE SECTION
   ===================================================== */
.narrative-section {
    background: var(--bg-alt);
}

.narrative-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.narrative-text h2 {
    color: var(--cyan);
}

.narrative-text blockquote {
    font-size: 1.3rem;
    color: var(--text-color);
    font-style: italic;
    margin: 30px 0;
    padding-left: 20px;
    border-left: 3px solid var(--cyan);
}

.narrative-text p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.warning-text {
    color: var(--red) !important;
    font-style: italic;
}

.narrative-image {
    text-align: center;
}

.narrative-image img {
    max-width: 100%;
    max-height: 450px;
    filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.2));
}

.image-label {
    display: block;
    margin-top: 20px;
    font-size: 0.7rem;
    color: var(--text-darker);
    letter-spacing: 2px;
}

/* =====================================================
   GAMEPLAY LOOP SECTION
   ===================================================== */
.gameplay-loop-section {
    background: var(--bg-alt);
    padding-bottom: 10px;
}

.showcase-section {
    background: var(--bg-alt);
}

.gameplay-loop {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.loop-step {
    padding: 30px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.loop-step:hover {
    border-color: var(--cyan);
}

.step-number {
    display: block;
    font-size: 2.5rem;
    color: var(--cyan);
    font-family: 'SquareHead', sans-serif;
    margin-bottom: 15px;
}

.loop-step h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.loop-step p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.step-image {
    max-width: 100%;
    max-height: 120px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.2));
}

/* =====================================================
   ENEMIES SECTION  
   ===================================================== */
.enemies-section {
    background: var(--bg);
}

.enemy-category {
    margin-bottom: 60px;
}

.enemy-category h3 {
    color: var(--red);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.category-desc {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.enemy-grid {
    display: grid;
    gap: 20px;
}

.crawlers-grid {
    grid-template-columns: repeat(4, 1fr);
}

.flyers-grid {
    grid-template-columns: repeat(4, 1fr);
}

.enemy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(230, 51, 51, 0.02);
    border: 1px solid rgba(230, 51, 51, 0.1);
    transition: all 0.3s ease;
}

.enemy-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.enemy-card img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(230, 51, 51, 0.2));
    display: block;
}

.enemy-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* =====================================================
   DEFENSES SECTION
   ===================================================== */
.defenses-section {
    background: var(--bg-alt);
    text-align: center;
}

.defenses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.defense-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.defense-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.1);
}

.defense-card img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.2));
    display: block;
}

.defense-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 3D CARD ENHANCEMENTS --- */
/* Card 3D container used in gameplay threat/defense cards */
.card-3d-container {
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ── Interactive 3D Showcase (NeuroGate + Energy) ── */
.showcase-section {
    padding: 80px 0 40px;
}

.lightbox-hint {
    cursor: pointer;
}

/* Animation Controls */
.anim-controls {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 50;
    pointer-events: auto;
    isolation: isolate;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.anim-label {
    font-size: 11px;
    color: var(--cyan);
    margin-bottom: 2px;
    font-family: 'ShareTech', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    white-space: nowrap;
    text-align: right;
    pointer-events: auto;
    /* Allow clicking on label */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* Animation toggle button */
.anim-toggle {
    position: relative;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: var(--cyan);
    font-size: 10px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
    line-height: 1;
}

.anim-toggle:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--cyan);
}

/* Lightbox variant — bigger */
/* Lightbox variant — bigger */
.lightbox-anim-controls {
    bottom: 16px;
    right: 16px;
}

.lightbox-anim-controls .anim-toggle {
    font-size: 13px;
    padding: 8px 16px;
}

.showcase-3d-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-top: 40px;
}

.showcase-3d-item {
    position: relative;
    height: 400px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-3d-item:hover {
    border-color: var(--cyan);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.15),
        0 0 40px rgba(0, 255, 255, 0.05),
        inset 0 0 30px rgba(0, 255, 255, 0.03);
}

.showcase-large {
    flex: 7;
}

.showcase-small {
    flex: 3;
}

.showcase-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 5;
    pointer-events: none;
}

.showcase-label span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: none;
    margin-top: 4px;
}

/* Specific styles for interactive 3D cards to prevent affecting global holographic components */
.enemy-card.holo-card,
.defense-card.holo-card {
    cursor: pointer;
    width: 100%;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible !important;
    clip-path: none !important;
    padding: 0;
}

/* Hide the sweep light on 3D cards — it overflows without clip-path */
.enemy-card.holo-card::before,
.defense-card.holo-card::before {
    display: none;
}

.enemy-card .holo-inner,
.defense-card .holo-inner {
    position: relative;
    width: 100%;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.enemy-card .card-3d-container,
.defense-card .card-3d-container {
    position: relative;
    width: 100%;
    height: 190px;
    z-index: 2;
    opacity: 1;
}

.enemy-card .holo-inner span,
.defense-card .holo-inner span {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 6px 4px 8px;
    margin-top: auto;
    z-index: 3;
}

.holo-card img {
    transition: opacity 0.4s ease;
}

/* Description Tooltip */
.card-description-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 15, 15, 0.95);
    border: 1px solid var(--cyan);
    padding: 15px;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.card-description-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-description-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--cyan);
}

.tooltip-header {
    color: var(--cyan);
    font-size: 0.65rem;
    font-family: 'ShareTech', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 4px;
    text-transform: uppercase;
}

.tooltip-body {
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-family: 'ShareTech', sans-serif;
}

.tooltip-footer {
    color: var(--cyan);
    font-size: 0.55rem;
    opacity: 0.6;
    text-align: right;
    font-family: monospace;
}

/* Red version for enemies */
.enemy-card.red .card-description-tooltip {
    border-color: #E63333;
    box-shadow: 0 0 30px rgba(230, 51, 51, 0.25);
}

.enemy-card.red .card-description-tooltip::after {
    border-top-color: #E63333;
}

/* Info toggle button for mobile cards */
.card-info-toggle {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--cyan);
    font-family: 'ShareTech', sans-serif;
    font-size: 14px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 60;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.enemy-card.red .card-info-toggle {
    background: rgba(230, 51, 51, 0.1);
    border-color: rgba(230, 51, 51, 0.3);
    color: #E63333;
}

.card-info-toggle:hover {
    background: var(--cyan);
    color: var(--bg);
}

.enemy-card.red .card-info-toggle:hover {
    background: #E63333;
    color: #fff;
}

@media (max-width: 900px) {
    .card-info-toggle {
        display: flex;
    }
}



.enemy-card.red .tooltip-header,
.enemy-card.red .tooltip-footer {
    color: #E63333;
}

.enemy-card.red .tooltip-header {
    border-bottom-color: rgba(230, 51, 51, 0.3);
}


/* =====================================================
   HYBRID GAMEPLAY
   ===================================================== */
.hybrid-section {
    background: var(--bg);
    text-align: center;
}

.hybrid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
}

.hybrid-card {
    padding: 50px 40px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.hybrid-card h3 {
    color: var(--cyan);
    margin-bottom: 15px;
}

.hybrid-card p {
    color: var(--text-dim);
}

.philosophy {
    padding: 40px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.philosophy h3 {
    color: var(--cyan);
    margin-bottom: 20px;
}

.philosophy ul {
    list-style: none;
}

.philosophy li {
    color: var(--text-dim);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.philosophy li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--cyan);
}

/* =====================================================
   GAME MODES
   ===================================================== */
.modes-section {
    background: var(--bg-alt);
    text-align: center;
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mode-card {
    padding: 50px 40px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.mode-card h3 {
    color: var(--cyan);
    margin-bottom: 15px;
}

.mode-card p {
    color: var(--text-dim);
}

.closing-quote {
    font-size: 1.5rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 40px;
}

/* =====================================================
   GALLERY SECTION
   ===================================================== */
.gallery-section {
    background: var(--bg);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.gallery-media {
    position: relative;
    overflow: hidden;
    line-height: 0;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: grayscale(0.5) contrast(1.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0) contrast(1);
}

/* Corner Brackets - Attached to media container */
.gallery-media::before,
.gallery-media::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cyan);
    z-index: 5;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.gallery-media::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    transform: translate(-10px, -10px);
}

.gallery-media::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    transform: translate(10px, 10px);
}

.gallery-item:hover .gallery-media::before,
.gallery-item:hover .gallery-media::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* Scanline/Laser bar */
.gallery-scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
    z-index: 6;
    opacity: 0;
    pointer-events: none;
}

.gallery-item:hover .gallery-scan-bar {
    opacity: 1;
    animation: galleryLaser 2s linear infinite;
}

/* ANALYZING Text Overlay - Now below the photo */
.gallery-item .gallery-overlay {
    position: relative;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
    z-index: 7;
    opacity: 1;
    transform: none;
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 5px var(--cyan);
    margin-top: 0;
    text-align: left;
    transition: background 0.3s;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 255, 255, 0.05);
}

/* Hover State for the whole item */
.gallery-item:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
}

@keyframes galleryLaser {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

/* =====================================================
   STATUS SECTION (Early Access)
   ===================================================== */
.status-section {
    background: var(--bg-alt);
    text-align: center;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.status-card {
    padding: 50px 40px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    text-align: left;
}

.status-card.main-status {
    text-align: center;
}

.status-number {
    font-size: 5rem;
    font-family: 'SquareHead', sans-serif;
    color: var(--cyan);
    display: block;
    margin-bottom: 10px;
}

.status-card h3 {
    color: var(--cyan);
}

.status-card p {
    color: var(--text-dim);
    margin-bottom: 15px;
}

.status-card ul {
    list-style: none;
}

.status-card li {
    color: var(--text-dim);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.status-card li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--cyan);
}

/* =====================================================
   COMMUNICATION SECTION
   ===================================================== */
.communication-section {
    background: var(--bg);
    text-align: center;
}

/* Social links grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.social-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
}

.social-icon {
    margin-bottom: 14px;
    color: var(--text-dim);
    transition: color 0.3s;
}

.social-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 6px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.social-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Per-platform accent colors on hover */
.discord-card:hover {
    border-color: #5865F2;
}

.discord-card:hover .social-icon {
    color: #5865F2;
}

.tiktok-card:hover {
    border-color: #ff0050;
}

.tiktok-card:hover .social-icon {
    color: #ff0050;
}

.instagram-card:hover {
    border-color: #E1306C;
}

.instagram-card:hover .social-icon {
    color: #E1306C;
}

.x-card:hover {
    border-color: #ffffff;
}

.x-card:hover .social-icon {
    color: #ffffff;
}

.youtube-card:hover {
    border-color: #FF0000;
}

.youtube-card:hover .social-icon {
    color: #FF0000;
}

/* =====================================================
   SUPPORT SECTION
   ===================================================== */
.support-section {
    background: var(--bg-alt);
    text-align: center;
}

.support-intro {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 60px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-item {
    padding: 40px 30px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.roadmap-item:hover {
    border-color: var(--cyan);
}

.roadmap-icon {
    font-size: 2rem;
    color: var(--cyan);
    display: block;
    margin-bottom: 15px;
}

.roadmap-item h3 {
    color: var(--text-color);
    font-size: 1rem;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: var(--bg);
    text-align: center;
    padding: 120px 0;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 40px;
}

.cta-tagline {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--cyan);
    text-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
    margin-bottom: 40px;
}

/* =====================================================
   GET THE GAME PAGE
   ===================================================== */
.get-game-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

.get-game-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.get-game-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.get-game-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.5) 0%,
            rgba(10, 10, 10, 0.9) 100%);
}

.get-game-content {
    position: relative;
    z-index: 1;
}

.get-game-logo {
    max-width: 400px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.4));
}

.get-game-hero h1 {
    font-family: 'SquareHead', 'ShareTech', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.get-game-tagline {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.platform-badge img {
    width: 40px;
    height: 40px;
}

.platform-badge span {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.key-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.key-features span {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.main-footer {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 42.5px;
    margin-bottom: 20px;
    opacity: 0.8;
    filter: invert(1) brightness(2);
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-darker);
}

.footer-links,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-legal a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom span {
    font-size: 0.7rem;
    color: var(--text-darker);
    letter-spacing: 3px;
}

/* =====================================================
    ===================================================== */

/* MOBILE COMPONENTS (Hidden on Desktop) */
.menu-toggle,
.mobile-nav-overlay {
    display: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {

    .features-grid,
    .gameplay-loop {
        grid-template-columns: repeat(3, 1fr);
    }

    .crawlers-grid,
    .defenses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .main-nav {
        padding: 10px 20px;
        position: fixed;
        width: 100vw;
        max-width: 100%;
        left: 0;
        right: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .nav-logo img {
        height: 55px;
        margin: 0;
    }

    /* Hamburger Menu Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--cyan);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }

    /* Mobile Nav Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-alt-transparent);
        backdrop-filter: blur(20px);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 2000;
        /* Higher than nav to cover everything */
        border-left: 1px solid rgba(0, 255, 255, 0.1);
    }

    .mobile-nav-overlay.active {
        display: flex;
        /* Solo se muestra cuando está activo */
        transform: translateX(0);
    }

    .mobile-nav-overlay a {
        color: var(--text-color);
        text-decoration: none;
        font-size: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 4px;
        font-family: 'SquareHead', sans-serif;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(20px);
    }

    .mobile-nav-overlay.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-overlay a:hover,
    .mobile-nav-overlay a.active {
        color: var(--cyan);
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }

    /* Menu Toggle Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Staggered animation for links */
    .mobile-nav-overlay.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-nav-overlay.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-nav-overlay.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-nav-overlay.active a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links {
        display: none;
    }

    /* ── Hero section mobile fixes ── */
    .frame-content {
        padding: 60px 20px;
    }

    .title-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding-bottom: 20px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .hero-title.white,
    .hero-title.cyan {
        text-align: center;
    }

    .hero-footer-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
    }

    .hero-tagline {
        text-align: center;
        font-size: 1.05rem;
    }

    .hero-action {
        text-align: center;
    }

    /* Hide decorative hack-texts that overlap content on mobile */
    .hack-text {
        display: none;
    }

    .hero-grid,
    .narrative-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .narrative-text blockquote {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--cyan);
        padding-top: 20px;
    }

    .features-grid,
    .gameplay-loop {
        grid-template-columns: repeat(2, 1fr);
    }

    .crawlers-grid,
    .defenses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hybrid-grid,
    .modes-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .key-features {
        flex-direction: column;
        gap: 15px;
    }

    /* NeuroGate + Energy: stack vertically on mobile */
    .showcase-3d-row {
        flex-direction: column;
    }

    .showcase-3d-item {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .main-nav {
        padding: 10px 20px;
        width: 100vw;
    }

    .nav-logo img {
        height: 65px;
        margin: 0;
    }

    .frame-content {
        padding: 30px 20px;
    }

    .features-grid,
    .gameplay-loop,
    .crawlers-grid,
    .defenses-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

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

/* =====================================================
   HYBRID LIGHTBOX (2D/3D)
   ===================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    width: 90vw;
    height: 85vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-active-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.3));
}

.lightbox-3d-container {
    width: 100%;
    height: 100%;
}

.lightbox-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cyan);
    font-family: 'ShareTech', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: pulse 2s infinite;
}

.lightbox-deco-top,
.lightbox-deco-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cyan);
    font-size: 0.6rem;
    font-family: monospace;
    opacity: 0.4;
    letter-spacing: 2px;
}

.lightbox-deco-top {
    top: 40px;
}

.lightbox-deco-bottom {
    bottom: 80px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* =====================================================
   IMAGE LIGHTBOX (screenshots gallery - separate from 3D lightbox)
   ===================================================== */
.img-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.img-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.img-lb-wrapper {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-lb-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.15);
    transition: opacity 0.2s ease;
}

.img-lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--cyan);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-lb-close:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--cyan);
}

.img-lb-prev,
.img-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 2px;
    padding: 6px 10px;
    font-size: 0.8em;
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 36px;
    line-height: 1;
}




.img-lb-prev {
    left: 16px;
}

.img-lb-next {
    right: 16px;
}

.img-lb-prev:hover,
.img-lb-next:hover {
    background: rgba(0, 255, 255, 0.12);
    border-color: var(--cyan);
}

.img-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 255, 255, 0.6);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    z-index: 10001;
}

/* Mobile adjustments for image lightbox */
@media (max-width: 768px) {

    .img-lb-prev,
    .img-lb-next {
        width: 40px;
        height: 56px;
        font-size: 2rem;
    }

    .img-lb-prev {
        left: 6px;
    }

    .img-lb-next {
        right: 6px;
    }
}

/* =====================================================
   3D LIGHTBOX CLOSE BUTTON (Unified with Image Lightbox)
   ===================================================== */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Enemy variant (Red) */
.lightbox-close.enemy {
    border-color: rgba(255, 51, 51, 0.5) !important;
    color: #FF3333 !important;
    /* Explicit red color */
}

.lightbox-close.enemy:hover {
    background: rgba(255, 51, 51, 0.15) !important;
    border-color: #FF3333 !important;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3) !important;
}

/* Defense variant (Cyan) */
.lightbox-close.defense {
    border-color: rgba(0, 255, 255, 0.5);
    color: var(--cyan);
}

.lightbox-close.defense:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* =====================================================
   LEGAL PAGES CONTENT
   ===================================================== */
.legal-content-section {
    padding: 100px 0;
    line-height: 1.8;
}

.legal-content-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 5vw;
}

.legal-content-container h1,
.legal-content-container h2,
.legal-content-container h3 {
    color: var(--cyan);
    font-family: 'SquareHead', 'ShareTech', sans-serif;
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.legal-content-container h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-top: 0;
    text-align: center;
}

.legal-content-container h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 10px;
}

.legal-content-container h3 {
    font-size: 1.3rem;
}

.legal-content-container p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    font-size: 1.1rem;
}

.legal-content-container ul,
.legal-content-container ol {
    margin-bottom: 1.5rem;
    padding-left: 25px;
    color: var(--text-dim);
}

.legal-content-container li {
    margin-bottom: 0.8rem;
    padding-left: 10px;
}

.legal-content-container a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content-container a:hover {
    color: #fff;
    text-decoration: underline;
}

.legal-content-container strong {
    color: #fff;
}

.legal-content-container blockquote {
    border-left: 3px solid var(--cyan);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
    color: #fff;
    font-size: 1.2rem;
}