/* =======================================================
    Scroll Animation Styles
   ======================================================= */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.8s ease-out, 
              transform 0.8s ease-out, 
              visibility 0.8s ease-out;
  will-change: opacity, transform, visibility;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Scale effect for specific elements */
.scale-in-section {
  opacity: 0;
  transform: scale(0.95);
  visibility: hidden;
  transition: opacity 0.8s ease-out, 
              transform 0.8s ease-out, 
              visibility 0.8s ease-out;
  will-change: opacity, transform, visibility;
}

.scale-in-visible {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

/* Apply different delays to stagger animations */
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }

/* Reset animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in-section {
    transition: none;
    opacity: 1;
    transform: none;
    visibility: visible;
  }
}

/* =======================================================
    Partner logos slider animation
   ======================================================= */
/* CSS for the infinite slider */
  .logos-slider {
    display: flex;
    align-items: center;
    animation: scroll 30s linear infinite;
    width: max-content;
  }
  
  .partner-logo {
    max-width: 100%;
    transition: all 0.3s ease;
  }

  .partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      /* This should be adjusted based on the total width of your logos */
      transform: translateX(-50%);
    }
  }
  
  /* Pause animation on hover */
  .logos-slider:hover {
    animation-play-state: paused;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .logos-slider {
      animation-duration: 20s; /* Faster on mobile */
    }
  }

/* =======================================================
    Counter Section Animations
   ======================================================= */
.counter-value {
  display: inline-block;
  position: relative;
  transition: transform 0.2s;
  text-decoration: none !important;
}

/* Removed underline effect */

/* Highlight effect when counter is active */
.counter-value[data-counted="true"] {
  animation: counter-pulse 0.5s ease-out;
}

/* Removed underline animation */

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

/* Make the counter section appear with a subtle fade-in */
.counter-section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.counter-section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
