/* Core Animations */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulse-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

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

@keyframes dust-float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Utility Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-alt {
    animation: float 8s ease-in-out infinite reverse;
}

.pulse-active {
    animation: pulse-dot 2s infinite;
}

/* Ambient Particles */
.dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--accent-primary);
    opacity: 0;
}

/* Generate multiple particles via inline nth-child styles in JS/HTML if needed, 
   or hardcode a few for the pure CSS approach */
.particle:nth-child(1) { left: 10%; animation: dust-float 15s linear infinite; }
.particle:nth-child(2) { left: 30%; animation: dust-float 20s linear infinite 2s; }
.particle:nth-child(3) { left: 50%; animation: dust-float 18s linear infinite 5s; }
.particle:nth-child(4) { left: 70%; animation: dust-float 22s linear infinite 1s; }
.particle:nth-child(5) { left: 90%; animation: dust-float 16s linear infinite 4s; }