let slideIndex = 0;

function showSlides() {
  let slides = document.getElementsByClassName("slide");
  for (let i = 0; i < slides.length; i++) {
    slides[i].style.display = "none";  
  }
  slideIndex++;
  if (slideIndex > slides.length) { slideIndex = 1 }
  slides[slideIndex - 1].style.display = "block";  
  setTimeout(showSlides, 2000); 
}

showSlides();

document.getElementById('contactForm').addEventListener('submit', function(e) {
  const honeypot = document.getElementById('honeypot').value;
  if (honeypot !== '') {
    e.preventDefault(); 
    alert('Bot detected!');
  }
});
