// 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' }); }); }); // Countdown timer to festival function updateCountdown() { const festivalDate = new Date('July 15, 2023 16:00:00').getTime(); const now = new Date().getTime(); const distance = festivalDate - now; const days = Math.floor(distance / (1000 * 60 * 60 * 24)); const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); const seconds = Math.floor((distance % (1000 * 60)) / 1000); document.getElementById('countdown').innerHTML = `
${days} Days
${hours} Hours
${minutes} Minutes
${seconds} Seconds
`; } // Initialize countdown updateCountdown(); setInterval(updateCountdown, 1000); // Ticket hover effect document.querySelectorAll('.ticket-card').forEach(card => { card.addEventListener('mouseenter', () => { card.style.transform = 'translateY(-10px)'; }); card.addEventListener('mouseleave', () => { card.style.transform = 'translateY(0)'; }); });