/* Base particle animations */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.particle {
    position: absolute;
    display: inline-block;
}

/* Base animations with direction support */
.particle[data-direction="up"] {
    animation: float-up 3s linear infinite;
}

.particle[data-direction="down"] {
    animation: float-down 3s linear infinite;
}

/* Base animations that Claude can customize */
.particle[data-animation="float"] {
    animation: float var(--duration, 3s) var(--easing, linear) infinite;
}

.particle[data-animation="pulse"] {
    animation: pulse var(--duration, 3s) var(--easing, ease-in-out) infinite;
}

.particle[data-animation="spin"] {
    animation: spin var(--duration, 3s) var(--easing, linear) infinite;
}

/* Animation keyframes */
@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: var(--opacity, 0.8);
    }
    90% {
        opacity: var(--opacity, 0.8);
    }
    100% {
        transform: translateY(-20vh) translateX(var(--drift, 0));
        opacity: 0;
    }
}

@keyframes float-down {
    0% {
        transform: translateY(-20vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: var(--opacity, 0.8);
    }
    90% {
        opacity: var(--opacity, 0.8);
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift, 0));
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translate(0, var(--start-y, 100vh)) rotate(var(--rotate, 0)) scale(var(--scale, 1));
        opacity: 0;
    }
    10% { opacity: var(--opacity, 0.8); }
    90% { opacity: var(--opacity, 0.8); }
    100% {
        transform: translate(var(--drift, 0), var(--end-y, -20vh)) rotate(var(--rotate, 0)) scale(var(--scale, 1));
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: var(--opacity, 0.8); }
    50% { transform: scale(var(--scale, 1.2)); opacity: var(--opacity, 0.4); }
    100% { transform: scale(1); opacity: var(--opacity, 0.8); }
}

@keyframes spin {
    from { transform: rotate(0deg) scale(var(--scale, 1)); }
    to { transform: rotate(360deg) scale(var(--scale, 1)); }
}

@keyframes spiral {
    from {
        transform: 
            translate(calc(var(--radius) * cos(var(--t))), 
            calc(var(--radius) * sin(var(--t)))) 
            scale(var(--scale));
    }
    to {
        transform: 
            translate(calc(var(--radius) * cos(var(--t) + 360deg)), 
            calc(var(--radius) * sin(var(--t) + 360deg))) 
            scale(var(--scale));
    }
}

@keyframes zigzag {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(var(--amplitude), 25%);
    }
    75% {
        transform: translate(calc(-1 * var(--amplitude)), 75%);
    }
    100% {
        transform: translate(0, 100%);
    }
}

@keyframes wave {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(
            calc(var(--wavelength) * sin(var(--t))), 
            calc(var(--amplitude) * cos(var(--t)))
        );
    }
}

@keyframes orbit {
    from {
        transform: 
            rotate(0deg)
            translateX(var(--radius))
            rotate(0deg);
    }
    to {
        transform: 
            rotate(360deg)
            translateX(var(--radius))
            rotate(-360deg);
    }
}

/* Add perspective transforms */
.particle[data-perspective] {
    transform-style: preserve-3d;
    perspective: var(--perspective);
}

/* Basic SVG shapes */
.particle svg {
    width: 100%;
    height: 100%;
} 