// Navbar scroll effect
window.addEventListener("scroll", () => {
    const nav = document.querySelector(".custom-navbar");
    nav.classList.toggle("scrolled", window.scrollY > 60);
});

// Active menu animation
document.querySelectorAll(".btn-nav").forEach(link => {
    link.addEventListener("click", function () {
        document.querySelectorAll(".btn-nav").forEach(item => {
            item.classList.remove("active");
        });
        this.classList.add("active");
    });
});



const heroCarousel = document.querySelector('#heroCarousel');

if (heroCarousel) {
    new bootstrap.Carousel(heroCarousel, {
        interval: 4000,
        pause: false
    });
}
