/* Animations CSS */

/* Basic Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

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

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

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-in-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.5s ease-in-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.5s ease-in-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.5s ease-in-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-in-out;
}

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

.animate-pulse-soft {
  animation: pulse 3s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

/* Delay Classes */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.2);
}

/* Zoom Effect for Images */
.zoom-effect {
  overflow: hidden;
}

.zoom-effect img {
  transition: transform 0.5s ease;
}

.zoom-effect:hover img {
  transform: scale(1.1);
}

/* Button Hover Effect */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
}

.btn-hover-effect::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hover-effect:hover::after {
  width: 300%;
  height: 300%;
}

/* Ripple Effect */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  animation: ripple 0.6s linear;
  pointer-events: none;
  transform: scale(0);
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Arrow Bounce Animation */
@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.arrow-bounce {
  animation: arrowBounce 2s infinite;
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.scroll-animate.fade-in {
  opacity: 0;
}

.scroll-animate.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-animate.fade-down {
  opacity: 0;
  transform: translateY(-30px);
}

.scroll-animate.fade-left {
  opacity: 0;
  transform: translateX(-50px);
}

.scroll-animate.fade-right {
  opacity: 0;
  transform: translateX(50px);
}

.scroll-animate.scale-in {
  opacity: 0;
  transform: scale(0.8);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger animation for groups */
.stagger-container .stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.stagger-container.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container.visible .stagger-item:nth-child(1) {
  transition-delay: 0ms;
}

.stagger-container.visible .stagger-item:nth-child(2) {
  transition-delay: 100ms;
}

.stagger-container.visible .stagger-item:nth-child(3) {
  transition-delay: 200ms;
}

.stagger-container.visible .stagger-item:nth-child(4) {
  transition-delay: 300ms;
}

.stagger-container.visible .stagger-item:nth-child(5) {
  transition-delay: 400ms;
}

.stagger-container.visible .stagger-item:nth-child(6) {
  transition-delay: 500ms;
}

/* Animated counter */
.animate-number {
  display: inline-block;
  position: relative;
  font-variant-numeric: tabular-nums;
  font-weight: bold;
}

/* Progress bar animation */
@keyframes progressBar {
  from { width: 0; }
  to { width: 100%; }
}

.progress-bar {
  width: 0;
  animation: progressBar 2s forwards;
}
