/* ******************************* carousel  text animation */
@keyframes slideUpCarouselText {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0); 
  }
}

#animation-carousel .animated-text,
#animation-carousel .animated-text + p {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.in-view .animated-text {
  opacity: 1;
  transform: translateY(0);
  animation: slideUpCarouselText 1s ease-in-out forwards;
}

.in-view .animated-text + p {
  opacity: 1;
  transform: translateY(0);
  animation: slideUpCarouselText 1.5s ease-in-out forwards;
}

.in-view .animated-text + button {
  opacity: 1;
  transform: translateY(0);
  animation: slideUpCarouselText 2.2s ease-in-out forwards;
}






/* ************************* all pages animation *************************** */


    @keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Keyframe for sliding the text from left to right */
@keyframes slideInRight {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}




/* Initial state for all cards and text */
.services .slideUpAnimate, .slideRightAnimate {
  opacity: 0;
}

/* Animation for cards (sliding up) */
 .animate-in-view .slideUpAnimate {
  animation: slideUp 1s ease forwards;
}

/* Animation for text (sliding from left to right) */
.animate-in-view .slideRightAnimate {
  animation: slideInRight 1s ease forwards;
  animation-delay: 0.5s; /* Slight delay for text animation */
}
