document.addEventListener('DOMContentLoaded', function() { // Initialize animations const animatedElements = document.querySelectorAll('.fade-in, .slide-up'); const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('animate'); } }); }, { threshold: 0.1 }); animatedElements.forEach(el => observer.observe(el)); // Mobile menu toggle functionality will be handled by navbar component });