/* preloader.css */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111315;
    /* Matches the dark elegant theme */
    z-index: 9999999;
    /* Highest possible */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Minimalist glowing pulse ring */
.preloader-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: rotate 2s linear infinite;
}

.preloader-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-right-color: rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* ZenYx initial floating in the center */
.preloader-text {
    position: absolute;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    animation: textFade 1.5s ease-in-out infinite alternate;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
    }
}

@keyframes textFade {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
}