/* =============================================
   CINEMATIC BACKGROUND LAYERS
   ============================================= */

/* Layer 1: Gradient with slow drift */
.bg-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 100% 80% at 20% 10%,
            oklch(72% 0.19 145 / 12%) 0%,
            transparent 50%),
        radial-gradient(ellipse 80% 100% at 80% 90%,
            oklch(70% 0.18 45 / 8%) 0%,
            transparent 50%),
        radial-gradient(ellipse 60% 60% at 50% 50%,
            oklch(60% 0.15 180 / 5%) 0%,
            transparent 60%);
    animation: gradient-drift 30s ease-in-out infinite alternate;
}

@keyframes gradient-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(3%, -2%) scale(1.05);
    }

    100% {
        transform: translate(-2%, 3%) scale(1.02);
    }
}

/* Layer 2: Subtle grid lines */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: linear-gradient(oklch(100% 0 0 / 3%) 1px, transparent 1px),
        linear-gradient(90deg, oklch(100% 0 0 / 3%) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 40s linear infinite;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 0%, transparent 70%);
}

@keyframes grid-drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Layer 3: Chalk dust particles */
.chalk-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.chalk {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: chalk-float 15s infinite;
    filter: blur(0.5px);
}

.chalk.large {
    width: 4px;
    height: 4px;
    filter: blur(1px);
}

.chalk.medium {
    width: 3px;
    height: 3px;
}

.chalk.small {
    width: 2px;
    height: 2px;
}

@keyframes chalk-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) rotate(0deg);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) translateX(30px) rotate(180deg);
    }
}

/* Barbell silhouette behind hero */
.barbell-silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 40px;
    opacity: 0.03;
    filter: blur(2px);
    pointer-events: none;
}

.barbell-silhouette::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 8px;
    background: white;
    border-radius: 4px;
}

.barbell-silhouette::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg,
            white 0%,
            white 8%,
            transparent 8%,
            transparent 15%,
            white 15%,
            white 18%,
            transparent 18%,
            transparent 82%,
            white 82%,
            white 85%,
            transparent 85%,
            transparent 92%,
            white 92%,
            white 100%);
    border-radius: 4px;
}

/* Spotlight cursor follower */
.spotlight {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.6;
    will-change: transform;
    transition: opacity 0.3s;
}