out(() => {
        content.style.display = "block";
    }, 6000); // Match this delay to the CSS transition duration
});

function updateActiveLink() {
    const sections = document.querySelectorAll('section'); // All your sections
    const navLinks = document.querySelectorAll('.nav-list li a'); // All navigation links

    let scrollPosition = document.documentElement.scrollTop || document.body.scrollTop;

    sections.forEach((section) => {
        const sectionTop = section.offsetTop;
    