document.addEventListener(
    'DOMContentLoaded',
    function () {

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

        /* =========================
           STICKY NAVBAR
        ========================= */

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

                if (window.scrollY > 50) {
                    navbar.classList.add('scrolled');
                } else {
                    navbar.classList.remove('scrolled');
                }

            }
        );

    }
);