/* --- Ambient Background Effects --- */

.hoa-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5; /* Behind everything */
    background-color: var(--bg-dark);
    overflow: hidden;
    pointer-events: none; /* Let clicks pass through */
}

/* Cinematic Grain Overlay */
.hoa-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Glowing Orbs */
.hoa-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: hoa-float 20s infinite ease-in-out alternate;
}

.hoa-blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    animation-duration: 25s;
}

.hoa-blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #004e92 0%, transparent 70%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.hoa-blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #7b4397 0%, transparent 70%);
    animation-duration: 22s;
    animation-delay: -10s;
    opacity: 0.2;
}

/* Animation Keyframes */
@keyframes hoa-float {
    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);
    }
}
