/* 
   THE NEURAL AURORA - VISUAL UNIVERSE ENGINE
   Layered, procedural animation system for immediate awe.
*/

:root {
    --aurora-bg: #020617;
    /* Deepest Obsidian */
    --aurora-1: #4f46e5;
    /* Indigo */
    --aurora-2: #10b981;
    /* Emerald */
    --aurora-3: #f43f5e;
    /* Rose */
}

/* LAYER 0: THE CONTAINER */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    background: var(--aurora-bg);
}

/* LAYER 1: THE AURORA ORBS (Breathing Light) */
.aurora-orb {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: orbFloat 20s infinite ease-in-out alternate;
}

.aurora-orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--aurora-1);
    animation-delay: 0s;
}

.aurora-orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--aurora-2);
    animation-delay: -5s;
    opacity: 0.3;
}

.aurora-orb-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--aurora-3);
    animation-delay: -10s;
    opacity: 0.25;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* LAYER 2: THE DATA GRID (Horizon Perspective) */
.aurora-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    bottom: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* LAYER 3: CINEMATIC NOISE (Texture) */
.aurora-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* UTILITY: TEXT GLOW */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.text-gradient-aurora {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

/* LAYER: STARS (Parallax Depth) */
.aurora-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(1px 1px at 10% 10%, #fff, transparent),
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 40% 70%, #fff, transparent),
        radial-gradient(2px 2px at 60% 40%, #fff, transparent),
        radial-gradient(1px 1px at 80% 80%, #fff, transparent);
    background-size: 550px 550px;
    opacity: 0.5;
    z-index: -2;
    pointer-events: none;
}