/* Service Page Animations */

/* Fade in and Scale Up Animation */
.fade-in-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Entrance Animation */
.stagger-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Animation */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Rotating Icon Animation */
.rotate-icon {
  transition: transform 0.5s ease;
}

.rotate-icon:hover {
  transform: rotate(360deg);
}

/* Pulse Animation */
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Highlight Text Animation */
.highlight-text {
  background-size: 200% 100%;
  background-position: -100%;
  background-image: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
  transition: background-position 0.5s ease;
}

.highlight-text:hover {
  background-position: 0%;
}

/* Card Flip Animation */
.card-flip-container {
  perspective: 1000px;
}

.card-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-flip-container:hover .card-flip {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-back {
  transform: rotateY(180deg);
}

/* Border Glow Animation */
.border-glow {
  transition: box-shadow 0.3s ease;
}

.border-glow:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Staggered Animation JavaScript Helper */
.animation-container .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.animation-container .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.animation-container .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.animation-container .stagger-item:nth-child(4) { transition-delay: 0.4s; }
.animation-container .stagger-item:nth-child(5) { transition-delay: 0.5s; }
.animation-container .stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* Process Icon Bounce Animation */
.bounce-animation {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Text Reveal Animation */
.text-reveal-container {
  position: relative;
  overflow: hidden;
}

.text-reveal {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.text-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Image Zoom Effect */
.zoom-effect {
  overflow: hidden;
}

.zoom-effect img {
  transition: transform 0.5s ease;
}

.zoom-effect:hover img {
  transform: scale(1.1);
}

/* Slide in from side */
.slide-in-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Extra Animations for Service Pages */
.cardService.hovered {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.process-icon.hovered img {
  transform: scale(1.1);
}

/* Ensure elements are visible by default for browsers without JS */
.no-js .fade-in-scale,
.no-js .stagger-item,
.no-js .slide-in-left,
.no-js .slide-in-right,
.no-js .text-reveal {
  opacity: 1;
  transform: none;
} 