               document.getElementById('loading-spinner').style.display = 'none';
            });
        </script>
        <script src="cursorAnimation.js"></script>

        <script>
            // Check the dark mode preference on page load
            document.addEventListener('DOMContentLoaded', () => {
                const darkMode = localStorage.getItem('darkMode');
                if (darkMode === 'enabled') {
                    document.body.classList.add('dark');
                }
            })