// Shared functionality document.addEventListener('DOMContentLoaded', function() { // Print resume functionality const printBtn = document.createElement('button'); printBtn.className = 'fixed bottom-6 right-6 bg-primary text-white px-4 py-2 rounded-full shadow-lg flex items-center no-print'; printBtn.innerHTML = ' Print Resume'; document.body.appendChild(printBtn); printBtn.addEventListener('click', function() { window.print(); }); feather.replace(); }); // 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' }); }); });