document.addEventListener('DOMContentLoaded', function() { // Add animations to elements const animatedElements = document.querySelectorAll('.course-card, .feature-card'); animatedElements.forEach((el, index) => { el.style.animationDelay = `${index * 0.1}s`; el.classList.add('slide-up'); }); // Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' }); }); }); // Initialize feather icons feather.replace(); // Mobile menu toggle functionality will be added by navbar component });