// Counter Animation Function
// Adjust speed dynamically based on the target value
? Math.ceil(target / 100) // Faster for larger values
: Math.ceil(target / 200); // Slower for smaller values
setTimeout(updateCount, target > 100 ? 10 : 50); // Slow down updates for smaller values
// Intersection Observer to trigger animation when section is in view
animateNumbers(); // Trigger animation
observer.unobserve(numbersSection); // Stop observing after animation
threshold: 0.5 // Trigger when 50% of the section is visible