/* BOOT SEQUENCE */
export function initBootSequence() {
    const bootScreen = document.getElementById('boot-screen');
    const steps = document.querySelectorAll('.boot-step');

    if (!bootScreen) return;

    // Step 1: Show first message immediately
    // Step 2: Show second message after 800ms
    setTimeout(() => {
        steps[0].classList.add('hidden');
        steps[1].classList.remove('hidden');
    }, 800);

    // Step 3: Show final message after 1800ms
    setTimeout(() => {
        steps[1].classList.add('hidden');
        steps[2].classList.remove('hidden');
    }, 1800);

    // Finish: Fade out after 2.5s
    setTimeout(() => {
        bootScreen.classList.add('fade-out-screen');
        // Remove from DOM for performance
        setTimeout(() => {
            bootScreen.remove();
        }, 500);
    }, 2500);
}
