:root {
    --primary-blue: #00f2ff;
    --warning-red: #ff003c;
    --safe-green: #00ff88;
    --dark-bg: #0a0b10;
    --glass: rgba(10, 11, 16, 0.7);
    --neon-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

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

body {
    background: var(--dark-bg);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scene.active {
    opacity: 1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.scene.active .bg-image {
    transform: scale(1);
}

/* HUD Overlay */
.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    box-shadow: 0 0 20px var(--primary-blue);
    animation: scan 4s infinite linear;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.status-box {
    position: absolute;
    padding: 20px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-left: 3px solid var(--primary-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

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

/* Glitch Effect */
.glitch-mode .warning-box {
    border: 2px solid var(--warning-red);
    background: rgba(255, 0, 60, 0.1);
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.3);
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--warning-red);
    position: relative;
}

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

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

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    100% { clip: rect(67px, 9999px, 62px, 0); }
}

/* Typewriter */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-blue);
    width: 0;
    animation: typing 2s steps(40, end) forwards;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Captions */
.caption {
    position: absolute;
    bottom: 80px;
    width: 80%;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 300;
    z-index: 20;
}

.final-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
}

/* Controls */
.controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#playBtn {
    padding: 15px 30px;
    background: var(--primary-blue);
    color: black;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
}

#playBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-blue);
}

.safe-mode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.shield-icon {
    font-size: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--safe-green));
}
