   'iPod'
        ].includes(navigator.platform)
        // iPad on iOS 13 detection
        || (navigator.userAgent.includes("Mac") && "ontouchend" in document)
        }

    function isMobileDevice() {
        return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent) || iOS();
    }

    // Load content based on device type
    function loadContent() {
        const contentDiv = document.getElementById('content');
        if (isMobileDevice()) {
            // Load mobile content
            fetch('sa