const slides=[...document.querySelectorAll('.carousel-slide')],dots=[...document.querySelectorAll('.dot')];let current=0;function showSlide(i){slides[current]?.classList.remove('active');dots[current]?.classList.remove('active');current=(i+slides.length)%slides.length;slides[current]?.classList.add('active');dots[current]?.classList.add('active')}document.querySelector('.next')?.addEventListener('click',()=>showSlide(current+1));document.querySelector('.prev')?.addEventListener('click',()=>showSlide(current-1));dots.forEach((d,i)=>d.addEventListener('click',()=>showSlide(i)));if(slides.length){setInterval(()=>showSlide(current+1),5500)}document.querySelector('.mobile-btn')?.addEventListener('click',()=>document.querySelector('.menu').classList.toggle('show'));
