/* Global Grain & Ambient Effects */

:root {
    --grain-opacity: 0.03;
    --ambient-color-1: rgba(51, 65, 85, 0.08); /* Slate/Sage */
    --ambient-color-2: rgba(148, 163, 184, 0.08); /* Lighter Slate */
}

/* 1. Grain Overlay */
.bg-grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* 2. Ambient Blurry Background */
.bg-ambient-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--color-bg);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-orb 20s infinite ease-in-out alternate;
}

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

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

.orb-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: rgba(200, 200, 200, 0.1);
    animation-delay: -10s;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 50px) scale(1.1);
    }
    100% {
        transform: translate(-20px, -30px) scale(0.95);
    }
}
