document.addEventListener('DOMContentLoaded', () => { // Scroll Animation (Fade Up) const observerOptions = { threshold: 0.1, rootMargin: "0px 0px -50px 0px" }; const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('visible'); } }); }, observerOptions); const fadeElements = document.querySelectorAll('.fade-up'); fadeElements.forEach(el => observer.observe(el)); // Header Blur Effect on Scroll const header = document.querySelector('.header'); window.addEventListener('scroll', () => { if (window.scrollY > 50) { header.style.background = 'rgba(10, 10, 10, 0.95)'; header.style.boxShadow = '0 5px 20px rgba(0,0,0,0.5)'; } else { header.style.background = 'rgba(10, 10, 10, 0.8)'; header.style.boxShadow = 'none'; } }); });