document.addEventListener('DOMContentLoaded', function() { // Add click event to checkboxes const checkboxes = document.querySelectorAll('input[type="checkbox"]'); checkboxes.forEach(checkbox => { checkbox.addEventListener('change', function() { const parentLi = this.closest('li'); if (this.checked) { parentLi.classList.add('line-through', 'text-gray-400'); } else { parentLi.classList.remove('line-through', 'text-gray-400'); } }); }); // Add animation to phase cards on load const phaseCards = document.querySelectorAll('.bg-white'); phaseCards.forEach((card, index) => { setTimeout(() => { card.classList.add('opacity-0'); card.style.animation = `fadeIn 0.5s ease forwards ${index * 0.1}s`; }, 0); }); }); // Add animation keyframes to style const style = document.createElement('style'); style.textContent = ` @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } `; document.head.appendChild(style);