window.addEventListener('scroll', function () {

    let navbar = document.querySelector('.custom-navbar');

    if (window.scrollY > 80) {

        navbar.classList.add('scrolled');

    } else {

        navbar.classList.remove('scrolled');

    }

});