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

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

:root {
    --neon-cyan: #00f5ff;
    --neon-magenta: #ff00aa;
    --neon-purple: #8b5cf6;
    --neon-green: #39ff14;
    --deep-void: #0a0a12;
    --matrix-dark: #0d1117;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--deep-void);
    font-family: 'Orbitron', sans-serif;
}

body {
    position: relative;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0, 245, 255, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #0a0a12 0%, #0d0d1a 50%, #080810 100%);
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    animation: scanline-drift 8s linear infinite;
}

@keyframes scanline-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Vignette */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Hex grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 70%);
    opacity: 0.6;
}

/* Particles container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
    opacity: 0.5;
}

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    25% { transform: translate(12px, -8px) scale(1.3); opacity: 0.6; }
    50% { transform: translate(-8px, 12px) scale(0.7); opacity: 0.3; }
    75% { transform: translate(-12px, -12px) scale(1.1); opacity: 0.5; }
}

/* Glitch layer */
.glitch-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 80;
    opacity: 0;
}

.glitch-layer.active {
    animation: glitch-flash 0.3s ease-out;
}

@keyframes glitch-flash {
    0% { opacity: 0; }
    50% { 
        opacity: 0.08;
        background: linear-gradient(90deg, transparent 0%, var(--neon-magenta) 25%, var(--neon-cyan) 50%, var(--neon-magenta) 75%, transparent 100%);
    }
    100% { opacity: 0; }
}

/* Omega container */
.omega-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.omega-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 50%;
    animation: ring-rotate 20s linear infinite;
}

.omega-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    animation: ring-rotate 20s linear infinite reverse;
}

.omega-ring::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(139, 92, 246, 0.4);
    border-right-color: rgba(255, 0, 170, 0.2);
    animation: ring-rotate 15s linear infinite reverse;
}

.omega-ring-inner {
    width: 200px;
    height: 200px;
    border-color: rgba(255, 0, 170, 0.15);
    animation: ring-rotate 25s linear infinite reverse;
}

.omega-ring-inner::before {
    background: var(--neon-magenta);
    box-shadow: 0 0 15px var(--neon-magenta), 0 0 30px var(--neon-magenta);
    animation: ring-rotate 25s linear infinite;
}

.omega-ring-inner::after {
    border-top-color: rgba(0, 245, 255, 0.3);
    border-right-color: rgba(57, 255, 20, 0.2);
    animation: ring-rotate 18s linear infinite;
}

.omega-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(
        circle,
        rgba(0, 245, 255, 0.15) 0%,
        rgba(139, 92, 246, 0.08) 30%,
        transparent 70%
    );
    border-radius: 50%;
    animation: glow-pulse 4s ease-in-out infinite;
}

.omega-symbol {
    font-size: 140px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(
        135deg,
        var(--neon-cyan) 0%,
        var(--neon-purple) 50%,
        var(--neon-magenta) 100%
    );
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.6))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.4));
    animation: omega-rotate 12s linear infinite, gradient-shift 6s ease infinite;
}

@keyframes omega-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Digital rain */
.rain-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 245, 255, 0.03) 2px,
        rgba(0, 245, 255, 0.03) 4px
    );
    animation: rain-fall 0.5s linear infinite;
}

@keyframes rain-fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

/* Floating data streams */
.omega-container::before,
.omega-container::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan), transparent);
    opacity: 0.3;
    animation: data-stream 3s ease-in-out infinite;
}

.omega-container::before {
    left: -150px;
    top: -50px;
    animation-delay: 0s;
}

.omega-container::after {
    right: -150px;
    top: -50px;
    animation-delay: 1.5s;
    animation-direction: reverse;
}

@keyframes data-stream {
    0%, 100% { opacity: 0.1; transform: scaleY(0.5); }
    50% { opacity: 0.4; transform: scaleY(1); }
}
