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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulseSlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

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

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

/* Staggered animations */
.service-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0ms;
}

.service-card:nth-child(2) {
    animation-delay: 100ms;
}

.service-card:nth-child(3) {
    animation-delay: 200ms;
}

.service-card:nth-child(4) {
    animation-delay: 300ms;
}

.service-card:nth-child(5) {
    animation-delay: 400ms;
}

.service-card:nth-child(6) {
    animation-delay: 500ms;
}

.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:nth-child(1) {
    animation-delay: 0ms;
}

.product-card:nth-child(2) {
    animation-delay: 100ms;
}

.product-card:nth-child(3) {
    animation-delay: 200ms;
}

.product-card:nth-child(4) {
    animation-delay: 300ms;
}

.product-card:nth-child(5) {
    animation-delay: 400ms;
}

.product-card:nth-child(6) {
    animation-delay: 500ms;
}

/* Hover animations */
.hover-lift {
    transition: all 0.3s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover-glow {
    transition: all 0.3s ease-in-out;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.2);
}


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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }
}

/* Badge animations */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.badge-animated {
    animation: badgePulse 2s ease-in-out infinite;
}

/* Button animations */
@keyframes buttonHover {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.02);
    }
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    animation: buttonHover 0.3s ease forwards;
}

/* Loading animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Counter animations */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out forwards;
}

/* Card hover effects */
.product-card,
.blog-card,
.solution-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover,
.blog-card:hover,
.solution-card:hover {
    transform: translateY(-5px);
}

/* Text animations */
@keyframes textGlow {
    0%, 100% {
        color: var(--text-dark);
    }
    50% {
        color: var(--primary-color);
    }
}

.text-animated {
    animation: textGlow 3s ease-in-out infinite;
}

/* Stagger animations */
.blog-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(1) {
    animation-delay: 0ms;
}

.blog-card:nth-child(2) {
    animation-delay: 100ms;
}

.blog-card:nth-child(3) {
    animation-delay: 200ms;
}

.blog-card:nth-child(4) {
    animation-delay: 300ms;
}

.blog-card:nth-child(5) {
    animation-delay: 400ms;
}

.blog-card:nth-child(6) {
    animation-delay: 500ms;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Modal animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.active .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* Carousel animations */
@keyframes carouselFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.carousel-slide {
    animation: carouselFade 0.5s ease-out;
}

/* Ripple effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1);
    transform-origin: 50% 50%;
    pointer-events: none;
}

.ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* Gradient animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Solution card animations */
.solution-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.solution-card:nth-child(1) {
    animation-delay: 0ms;
}

.solution-card:nth-child(2) {
    animation-delay: 100ms;
}

.solution-card:nth-child(3) {
    animation-delay: 200ms;
}

.solution-card:nth-child(4) {
    animation-delay: 300ms;
}

/* Service detail animations */
.service-detail-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-detail-item:nth-child(1) {
    animation-delay: 0ms;
}

.service-detail-item:nth-child(2) {
    animation-delay: 100ms;
}

.service-detail-item:nth-child(3) {
    animation-delay: 200ms;
}

.service-detail-item:nth-child(4) {
    animation-delay: 300ms;
}

.service-detail-item:nth-child(5) {
    animation-delay: 400ms;
}

.service-detail-item:nth-child(6) {
    animation-delay: 500ms;
}
