/*
Theme Name: Victory Vanguard
Theme URI: https://victory-vanguard.com
Author: Victory Vanguard
Description: Custom High-End Frontpage Theme
Version: 1.3
*/

/* =========================================
   CORE SETUP (ELON / SPACE STYLE)
   ========================================= */
:root {
    --black: #000000;
    --pure-red: #ff0000;
    --dark-red: #4a0000;
    --text-white: #ffffff;
    --text-gray: #888888;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
    cursor: crosshair;
}

body {
    background-color: var(--black);
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%; /* Verhindert horizontales Scrollen */
}

#space-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.nebula-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 120%, var(--dark-red) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 2s ease;
}

/* =========================================
   HUD & SYSTEM INDICATORS
   ========================================= */
.cyber-status {
    position: absolute;
    top: 50px; /* WEITER VON DER DECKE ENTFERNT */
    left: clamp(20px, 5vw, 50px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--pure-red);
    font-weight: 800;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--pure-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pure-red);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.hud-data {
    position: absolute;
    top: 50px; /* WEITER VON DER DECKE ENTFERNT */
    right: clamp(20px, 5vw, 50px);
    text-align: right;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 2px;
    color: var(--text-gray);
    font-family: monospace;
    opacity: 0.6;
    z-index: 10;
}

/* =========================================
   HERO: STACKED GLITCH & SCANLINES
   ========================================= */
.hero {
    height: 68vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; 
    width: 100%; /* FIX: 100% statt 100vw verhindert den Rand-Bug! */
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 5;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--pure-red);
    box-shadow: 0 0 15px var(--pure-red);
    opacity: 0.3;
    animation: scanline 6s linear infinite;
    z-index: 6;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

.glitch-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 0.82;
    user-select: none;
    z-index: 10;
    max-width: 100%; /* Verhindert ausbrechen */
}

.glitch {
    position: relative;
    font-size: clamp(45px, 12vw, 200px); /* FIX: Minimal kleiner (45px), damit es auf jedem Handy passt */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px; /* Minimal reduziert für Mobile */
    color: white;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--black);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--pure-red);
    clip: rect(44px, 9999px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 9999px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(60px, 9999px, 70px, 0); }
    40% { clip: rect(20px, 9999px, 50px, 0); }
    60% { clip: rect(80px, 9999px, 90px, 0); }
    80% { clip: rect(10px, 9999px, 40px, 0); }
    100% { clip: rect(50px, 9999px, 70px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(70px, 9999px, 90px, 0); }
    100% { clip: rect(10px, 9999px, 30px, 0); }
}

.hero h2 {
    margin-top: 50px;
    font-size: clamp(12px, 2vw, 18px);
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-gray);
    font-weight: 300;
    z-index: 10;
    padding: 0 15px; /* Schützt vor Randkontakt */
}
.hero h2 span { color: var(--pure-red); font-weight: 800; }

.hero-action { margin-top: 40px; z-index: 10; }

.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 12px; border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent; color: var(--text-white);
    padding: 15px 35px; font-size: 11px; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase;
    text-decoration: none; transition: all 0.2s ease-in-out;
}

.btn-whatsapp svg {
    width: 16px; height: 16px; fill: var(--text-white);
    transition: fill 0.2s ease-in-out;
}

.btn-whatsapp:hover {
    background: var(--text-white); color: var(--black); border-color: var(--text-white);
}

.btn-whatsapp:hover svg { fill: var(--black); }

/* =========================================
   MATRIX GRID
   ========================================= */
.content-section {
    padding: 0px 5vw;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.matrix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.matrix-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(40px, 5vw, 80px); position: relative;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden; display: flex; flex-direction: column; backdrop-filter: blur(5px);
}

.matrix-card:hover {
    background: rgba(255, 0, 0, 0.05); border-color: var(--pure-red);
    transform: translateY(-5px); box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
}

.matrix-card h3 {
    font-size: clamp(24px, 4vw, 36px); text-transform: uppercase;
    margin-bottom: 15px; font-weight: 900; letter-spacing: 2px;
}

.matrix-card p {
    color: var(--text-gray); font-size: 16px; line-height: 1.6;
    margin-bottom: 30px; max-width: 450px; flex-grow: 1;
}

.matrix-card .btn {
    color: white; text-decoration: none; font-weight: 800; font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase; border: 1px solid white;
    padding: 15px 30px; width: fit-content; transition: 0.3s;
}

.matrix-card:hover .btn { background: var(--pure-red); border-color: var(--pure-red); }

.tag {
    position: absolute; top: 25px; right: 25px; font-size: 9px;
    letter-spacing: 2px; color: var(--pure-red); font-weight: 900;
    text-transform: uppercase;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 100px 50px; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #444; font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
}

/* =========================================
   MOBILE ADJUSTMENTS (iPhone 12 & Co)
   ========================================= */
@media (max-width: 900px) {
    .matrix-grid { grid-template-columns: 1fr; }
    
    /* Zwingt den Slogan zu einem sauberen Zeilenumbruch */
    .hero h2 span { 
        display: block; 
        margin-bottom: 5px; 
    }
    
    /* Etwas weniger Letter-Spacing für bessere Lesbarkeit auf Mobile */
    .hero h2 { letter-spacing: 3px; font-size: 11px; }

    /* Schützt vor Überlappung mit den HUD-Daten */
    .hero {
        padding-top: 90px; 
    }

    /* HUD-Elemente: Deutlich weiter unten und zentriert */
    .cyber-status {
        top: 60px; /* Weiter unten */
        left: 0;
        width: 100%;
        justify-content: center;
        font-size: 13px;
        letter-spacing: 5px;
    }

    .hud-data {
        top: 95px; /* Weiter unten */
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        font-size: 12px;
        letter-spacing: 3px;
    }
}