document.addEventListener('DOMContentLoaded', function() { // Mobile menu toggle functionality will be handled by navbar component // Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function(e) { e.preventDefault(); const targetId = this.getAttribute('href'); if (targetId === '#') return; const targetElement = document.querySelector(targetId); if (targetElement) { targetElement.scrollIntoView({ behavior: 'smooth' }); } }); }); // Instagram feed - in a real implementation, this would fetch from Instagram API // For demo purposes, we're using placeholder images // Newsletter form submission const newsletterForm = document.querySelector('form'); if (newsletterForm) { newsletterForm.addEventListener('submit', function(e) { e.preventDefault(); const emailInput = this.querySelector('input[type="email"]'); if (emailInput.value) { alert('Thank you for subscribing to our newsletter!'); emailInput.value = ''; } }); } // Initialize all feather icons feather.replace(); });