// 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' }); }); }); // Form submission handler document.addEventListener('DOMContentLoaded', function() { const contactForm = document.querySelector('form'); if (contactForm) { contactForm.addEventListener('submit', function(e) { e.preventDefault(); alert('شكراً لتواصلك معنا! سنرد عليك في أقرب وقت ممكن.'); this.reset(); }); } }); // Initialize feather icons feather.replace();