/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #FF5321;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    max-width: 120px;
    width: 40%;
    animation: superheroSpin 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform-origin: center center;
}

/* Superhero comic-style spin animation:
   - Spins in while scaling up large
   - Then spins back down to normal size
   - Accelerates as it loads */
@keyframes superheroSpin {
    0% {
        transform: scale(0.3) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.8) rotate(720deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(1080deg);
        opacity: 1;
    }
}
