/* Base animation utilities */

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

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-2px, -2px) rotate(-0.5deg); }
    20%, 40%, 60%, 80% { transform: translate(2px, 2px) rotate(0.5deg); }
}

.shake-active {
    animation: shake 0.5s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes colorFlash {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 0, 0, 0.15); }
}

.color-flash {
    animation: colorFlash 0.15s ease-out;
}

@keyframes invertColors {
    0%, 100% { filter: invert(0); }
    50% { filter: invert(1); }
}

@keyframes blurPulse {
    0%, 100% { filter: blur(0px); }
    50% { filter: blur(3px); }
}

/* Smooth scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-pastel-pink), var(--color-sky-blue));
    z-index: 9998;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* Section transitions */
section {
    position: relative;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
