body {
    background-color: #030303;
    color: #e5e7eb;
    overflow-x: hidden;
}

/* Scanlines Overlay */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.15));
    background-size: 100% 4px;
    pointer-events: none; z-index: 100; opacity: 0.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030303; }
::-webkit-scrollbar-thumb { background: #1f2937; }
::-webkit-scrollbar-thumb:hover { background: #00FF41; }

/* Cyber UI Clipped Corners (Sci-Fi shapes) */
.cyber-clip {
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.cyber-clip-reverse {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

/* Buttons */
.cyber-btn {
    position: relative;
    background: transparent;
    border: 1px solid #00FF41;
    color: #00FF41;
    text-transform: uppercase;
    transition: all 0.2s linear;
}
.cyber-btn:hover {
    background: #00FF41;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}
.cyber-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.4), transparent);
    transition: all 0.5s ease;
}
.cyber-btn:hover::before { left: 100%; }

/* Secondary Cyber Buttons */
.cyber-btn-blue {
    position: relative;
    background: transparent;
    border: 1px solid #00F0FF;
    color: #00F0FF;
    text-transform: uppercase;
    transition: all 0.2s linear;
}
.cyber-btn-blue:hover {
    background: #00F0FF;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}
.cyber-btn-blue::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,240,255,0.4), transparent);
    transition: all 0.5s ease;
}
.cyber-btn-blue:hover::before { left: 100%; }

/* Red Override Buttons */
.cyber-btn-red {
    position: relative;
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    text-transform: uppercase;
    transition: all 0.2s linear;
}
.cyber-btn-red:hover {
    background: #ef4444;
    color: #000;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Glitch Text Animation for Hero */
.glitch-wrapper { position: relative; display: inline-block; }
.glitch-text {
    position: relative;
    color: white;
    z-index: 1;
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.8;
}
.glitch-text::before {
    left: 2px; text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px; text-shadow: -2px 0 #00F0FF;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(18px, 9999px, 86px, 0); }
    20% { clip: rect(6px, 9999px, 8px, 0); }
    40% { clip: rect(48px, 9999px, 98px, 0); }
    60% { clip: rect(31px, 9999px, 20px, 0); }
    80% { clip: rect(6px, 9999px, 76px, 0); }
    100% { clip: rect(82px, 9999px, 32px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(4px, 9999px, 32px, 0); }
    40% { clip: rect(2px, 9999px, 5px, 0); }
    60% { clip: rect(98px, 9999px, 14px, 0); }
    80% { clip: rect(34px, 9999px, 98px, 0); }
    100% { clip: rect(23px, 9999px, 4px, 0); }
}

/* WebGL canvas scaling */
#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Card Reveal Effect */
.archive-card::before {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background: #00FF41; transition: width 0.4s ease;
}
.archive-card:hover::before { width: 100%; }
.archive-bg { transition: transform 0.5s ease; }
.archive-card:hover .archive-bg { transform: scale(1.05) translateZ(0); }
