/* ========== ANIMATIONS ========== */

/* Fade in up - for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

/* Staggered animation for lists */
.stagger > * {
    opacity: 0;
    animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 50ms; }
.stagger > *:nth-child(3) { animation-delay: 100ms; }
.stagger > *:nth-child(4) { animation-delay: 150ms; }
.stagger > *:nth-child(5) { animation-delay: 200ms; }
.stagger > *:nth-child(6) { animation-delay: 250ms; }
.stagger > *:nth-child(7) { animation-delay: 300ms; }
.stagger > *:nth-child(8) { animation-delay: 350ms; }
.stagger > *:nth-child(9) { animation-delay: 400ms; }
.stagger > *:nth-child(10) { animation-delay: 450ms; }

/* Pulse for attention */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Slide transitions for calendar */
@keyframes slideLeft {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

.slide-left {
    animation: slideLeft var(--duration-normal) var(--ease-out);
}

.slide-right {
    animation: slideRight var(--duration-normal) var(--ease-out);
}

/* Progress bar glow */
@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 0 12px rgba(0,0,0,0.2); }
}

/* Scale in */
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.animate-scale-in {
    animation: scaleIn var(--duration-normal) var(--ease-bounce);
}

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

    .service-card__bar,
    .progress-enhanced__fill,
    .progress-segment {
        transition: none !important;
    }

    .progress-segment::after {
        animation: none !important;
    }

    .progress-segment__label {
        opacity: 1 !important;
        transition: none !important;
    }

    .stagger > * {
        opacity: 1;
        animation: none;
    }

    .bottom-sheet {
        transition: none !important;
    }

    .bottom-sheet-overlay {
        transition: none !important;
    }
}
