/* =============================================
   BXPROD — PARTICLES & EXTRA VISUALS
   ============================================= */

/* ---- Before/After Slider in VFX ---- */
.before-after-slider {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    z-index: 10;
}

.ba-before,
.ba-after {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ba-before {
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
}

.ba-after {
    background: rgba(91, 124, 255, 0.15);
    border: 1px solid rgba(91, 124, 255, 0.4);
    border-radius: 0 8px 8px 0;
}

.ba-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    font-weight: 600;
}

.ba-before .ba-label {
    color: rgba(255, 255, 255, 0.3);
}

.ba-after .ba-label {
    color: var(--accent);
}

.ba-visual {
    display: none;
}

.ba-handle {
    width: 2px;
    background: var(--accent);
    position: relative;
    flex-shrink: 0;
}

.ba-handle::before {
    content: '◀▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.5rem;
    color: var(--accent);
    white-space: nowrap;
    background: rgba(6, 6, 8, 0.9);
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* ---- Particle dot for hero/cta ---- */
.particle-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: var(--start-opacity);
    }

    50% {
        transform: translateY(calc(var(--dy) * -0.5)) translateX(calc(var(--dx) * 0.5)) scale(1.2);
    }

    100% {
        transform: translateY(var(--dy)) translateX(var(--dx)) scale(0.8);
        opacity: 0;
    }
}