// Case Slider
jQuery(document).ready(function() {
  jQuery('.case-study-section .owl-carousel').owlCarousel({
    loop: true,
    margin: 30,
    nav: false,
    dots: true,
    rtl: false,
    items: 1,
    autoplay: true,
  });
});

// Scroll to Top
window.onscroll = function() {
  const classic_saas_company_button = document.querySelector('.scroll-top-btn');
  if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
    classic_saas_company_button.style.display = "block";
  } else {
    classic_saas_company_button.style.display = "none";
  }
};

document.querySelector('.scroll-top-btn a').onclick = function(event) {
  event.preventDefault();
  window.scrollTo({top: 0, behavior: 'smooth'});
};