/* Fullscreen Loader Background */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* Neon Text Loader */
.loader {
    display: flex;
    font-size: 70px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 15px;
    text-shadow: 0 0 10px #00f6ff, 0 0 30px #00f6ff, 0 0 50px #00f6ff;
}

/* Animated Letters */
.letter {
    opacity: 0;
    animation: glow 1.5s infinite alternate ease-in-out;
}

/* Delay for Sequential Letter Animation */
.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.3s; }
.letter:nth-child(3) { animation-delay: 0.6s; }

/* Glow Animation */
@keyframes glow {
    0% { opacity: 0.2; transform: scale(0.8); text-shadow: 0 0 5px #00f6ff; }
    100% { opacity: 1; transform: scale(1); text-shadow: 0 0 20px #00f6ff, 0 0 50px #00f6ff; }
}

/* Smooth Fade-out */
.loader-hide {
    opacity: 0;
    visibility: hidden;
}

/* Optional: Spinning Background Effect */
@keyframes spin-bg {
    0% { background: radial-gradient(circle, #111, #000); }
    50% { background: radial-gradient(circle, #000, #111); }
    100% { background: radial-gradient(circle, #111, #000); }
}

#loader {
    animation: spin-bg 3s infinite alternate ease-in-out;
}
