Changed around line 1
+ document.addEventListener('DOMContentLoaded', () => {
+ const menuToggle = document.querySelector('.menu-toggle');
+ let isMenuOpen = false;
+
+ menuToggle.addEventListener('click', () => {
+ isMenuOpen = !isMenuOpen;
+ const spans = menuToggle.querySelectorAll('span');
+
+ if (isMenuOpen) {
+ spans[0].style.transform = 'rotate(45deg) translate(6px, 6px)';
+ spans[1].style.opacity = '0';
+ spans[2].style.transform = 'rotate(-45deg) translate(6px, -6px)';
+ } else {
+ spans[0].style.transform = 'none';
+ spans[1].style.opacity = '1';
+ spans[2].style.transform = 'none';
+ }
+ });
+
+ // Add smooth scroll behavior
+ document.documentElement.style.scrollBehavior = 'smooth';
+
+ // Add subtle parallax effect to circle
+ window.addEventListener('mousemove', (e) => {
+ const circle = document.querySelector('.animated-circle');
+ const x = (e.clientX - window.innerWidth / 2) * 0.02;
+ const y = (e.clientY - window.innerHeight / 2) * 0.02;
+ circle.style.transform = `translate(${x}px, ${y}px)`;
+ });
+ });