/**
 * Animation styles for frontend components
 */

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0.8; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    opacity: 1;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Slide Up Animation */
@keyframes slideUp {
    from { opacity: 0.8; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animation */
.fade-in {
    opacity: 1;
    transition: opacity 0.8s ease;
}

.fade-in.animated {
    opacity: 1;
}

/* Slide In Animation */
.slide-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Team Card Animations */
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card .rounded-full {
    transition: transform 0.5s ease;
}

.team-card h3 {
    transition: color 0.3s ease;
}

/* Button Hover Effects */
.hover\:text-white:hover,
a:hover.hover\:text-white {
    color: white !important;
}

.group:hover svg {
    color: white !important;
}

/* Testimonial Card Animations */
.testimonial-slider .flex-shrink-0 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Rotate Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Bounce Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Staggered Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* RTL Support for Animations */
html[dir="rtl"] .slide-in {
    transform: translateX(0);
}

html[dir="rtl"] .slide-in.animated {
    transform: translateX(0);
}
