@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Orbitron:wght@500;700;900&family=Space+Grotesk:wght@400;500;700&display=swap');

body {
    background-color: #020202;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .font-display {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.font-cinzel {
    font-family: 'Cinzel', serif;
}

/* HARDWARE ACCELERATION & SMOOTH RENDERING PERFORMANCE ENGINE */
.premium-overlord-card, .click-target, .float-animation, .text-glow {
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* PREMIUM CYBER INDUSTRIAL OVERLAY GRID */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(239, 68, 68, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239, 68, 68, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 3;
}

/* BACKGROUND DIGITAL RED PARTICLES MATRIX CANVAS */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0.45;
}

/* VIGNETTE SHADOW LAYER */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    z-index: 4;
}

/* SCROLLBAR CONFIGURATION */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020202; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #110202 0%, #ef4444 50%, #110202 100%); 
    border-radius: 20px;
}

/* DYNAMIC CINEMATIC PRELOADER WITH LIGHTNING FLASHES */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

/* Thunderous Atmosphere Overlay inside preloader */
.thunder-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: transparent;
    z-index: 9998;
    animation: thunderStrike 7s infinite ease-in-out;
}

@keyframes thunderStrike {
    0%, 12%, 14%, 30%, 35%, 37%, 70%, 73%, 75%, 100% { background-color: rgba(0,0,0,0); }
    13% { background-color: rgba(239, 68, 68, 0.12); }
    36% { background-color: rgba(255, 255, 255, 0.15); filter: blur(4px); }
    74% { background-color: rgba(185, 28, 28, 0.2); }
}

/* Simulated Rolling Thunder Storm Clouds effect */
.storm-clouds {
    position: absolute;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(20, 3, 3, 0.3) 0%, transparent 60%);
    animation: cloudsDrift 12s infinite linear;
    z-index: 9997;
    opacity: 0.7;
}

@keyframes cloudsDrift {
    0% { transform: translate(-25%, -25%) rotate(0deg); }
    100% { transform: translate(-25%, -25%) rotate(360deg); }
}

.intro-logo-box {
    transform: scale(0.2);
    opacity: 0;
    z-index: 9999;
    animation: logoBlast 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes logoBlast {
    0% { transform: scale(0.2) rotate(-45deg); opacity: 0; filter: drop-shadow(0 0 0px rgba(239,68,68,0)); }
    50% { filter: drop-shadow(0 0 40px rgba(239, 68, 68, 0.8)); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; filter: drop-shadow(0 0 70px rgba(239, 68, 68, 0.9)) drop-shadow(0 0 20px #fff); }
}

.intro-text-sequence {
    opacity: 0;
    transform: translateY(40px);
    z-index: 9999;
    animation: textSequenceReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.2s;
}

@keyframes textSequenceReveal {
    0% { opacity: 0; transform: translateY(40px); letter-spacing: 0.2em; }
    40% { opacity: 1; transform: translateY(0); letter-spacing: 0.5em; color: #ffffff; text-shadow: 0 0 20px rgba(255,255,255,0.8); }
    70% { filter: brightness(1.8); text-shadow: 0 0 40px rgba(239,68,68,1); }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 0.6em; }
}

.preloader-hidden { opacity: 0; visibility: hidden; transform: scale(1.05) translateY(-100%); pointer-events: none; }

/* ADVANCED GRAPHITE METALLIC CARDS */
.text-glow { text-shadow: 0 0 25px rgba(239, 68, 68, 0.8), 0 0 50px rgba(239, 68, 68, 0.4); }

.premium-overlord-card {
    background: linear-gradient(135deg, #050505 0%, #0c0c0c 100%);
    border: 1px solid rgba(43, 43, 43, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
}

.premium-overlord-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, transparent, rgba(239, 68, 68, 0.15), transparent, transparent);
    transition: transform 0.8s;
    pointer-events: none;
    transform: rotate(0deg);
}

.premium-overlord-card:hover::before {
    transform: rotate(180deg);
}

.premium-overlord-card:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 30px 60px rgba(239, 68, 68, 0.15);
    transform: translateY(-6px) scale(1.015);
}

/* RADAR PINGING EFFECT */
.radar-ping { position: relative; }
.radar-ping::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
    border: 1px solid #22c55e; border-radius: 50%; transform: translate(-50%, -50%) scale(1);
    animation: radarPulse 2s infinite ease-out;
}
@keyframes radarPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}

/* COGNITIVE HERO AMBIENCE */
.hero-bg { 
    background: radial-gradient(circle at center, rgba(185, 28, 28, 0.16) 0%, rgba(2, 2, 2, 1) 75%); 
}

/* SHOCKWAVE INTERACTIVE WAVE CLICK EFFECT */
.click-target { position: relative; overflow: hidden; }
.shockwave {
    position: absolute; border-radius: 50%; background: rgba(239, 68, 68, 0.4);
    transform: scale(0); animation: rippleImpact 0.55s cubic-bezier(0.1, 0.8, 0.3, 1); pointer-events: none;
}
@keyframes rippleImpact { to { transform: scale(5.5); opacity: 0; } }

/* FLOATING FLOATER ANIMATION */
.float-animation {
    animation: floatingElements 4s ease-in-out infinite;
}
@keyframes floatingElements {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

#viewport-frame {
    position: relative;
    z-index: 10;
    width: 100%;
}
