<!DOCTYPE html>
<html lang="en">
<head>
    <script>
        // Apply dark mode immediately to prevent flash
        (function() {
            const savedTheme = localStorage.getItem('darkMode');
            const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
            
            if (savedTheme === 'true' || (savedTheme !== 'false' && prefersDark)) {
                document.documentElement.classList.add('dark-mode');
            }
        })();
    </script>
   