}); } navbar.style.boxShadow = '0 2px 10px rgba(0, 0, 0, 0.5)'; } else { navbar.style.boxShadow = '0 4px 20px rgba(0, 0, 0, 0.8)'; if (window.scrollY > 50) { const navbar = document.querySelector('.navbar'); window.addEventListener('scroll', function() { // Add navbar shadow on scroll }); }); } target.scrollIntoView({ behavior: 'smooth', block: 'start' }); if (target) { const target = document.querySelector(this.getAttribute('href')); e.preventDefault(); anchor.addEventListener('click', function (e) { document.querySelectorAll('a[href^="#"]').forEach(anchor => { // Smooth scroll for navigation links