/* ==========================================================
   LUCID GLOBAL ELECTRONICS
   PAGE LOADER
   ========================================================== */


/* ==========================================================
   LOADER CONTAINER
   ========================================================== */

#lucid-page-loader {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    z-index: 999999;

    opacity: 1;

    visibility: visible;

    pointer-events: all;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;

}


/* ==========================================================
   LOADER HIDDEN STATE
   ========================================================== */

#lucid-page-loader.lucid-loader-hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}


/* ==========================================================
   LOADER CONTENT
   ========================================================== */

.lucid-loader-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 20px;

}


/* ==========================================================
   LOGO
   ========================================================== */

.lucid-loader-logo {

    width: 120px;

    height: 120px;

    object-fit: contain;

    margin-bottom: 18px;

    animation: lucidLogoPulse 2s ease-in-out infinite;

}


/* ==========================================================
   BRAND NAME
   ========================================================== */

.lucid-loader-brand {

    margin: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;

    font-size: clamp(1.1rem, 3vw, 1.5rem);

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #111827;

    text-transform: uppercase;

}


/* ==========================================================
   SUBTITLE
   ========================================================== */

.lucid-loader-subtitle {

    margin: 7px 0 22px;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;

    font-size: 0.8rem;

    font-weight: 500;

    letter-spacing: 1px;

    color: #6b7280;

}


/* ==========================================================
   LOADING DOTS
   ========================================================== */

.lucid-loader-dots {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

}


/* Individual dots */

.lucid-loader-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #3535a7;

    animation:
        lucidDotPulse 1.4s ease-in-out infinite;

}


/* Stagger the dots */

.lucid-loader-dot:nth-child(1) {

    animation-delay: 0s;

}


.lucid-loader-dot:nth-child(2) {

    animation-delay: 0.2s;

}


.lucid-loader-dot:nth-child(3) {

    animation-delay: 0.4s;

}


/* ==========================================================
   LOGO PULSE
   ========================================================== */

@keyframes lucidLogoPulse {

    0%,
    100% {

        transform: scale(1);

        opacity: 1;

    }

    50% {

        transform: scale(1.04);

        opacity: 0.88;

    }

}


/* ==========================================================
   DOT ANIMATION
   ========================================================== */

@keyframes lucidDotPulse {

    0%,
    60%,
    100% {

        transform: translateY(0);

        opacity: 0.45;

    }

    30% {

        transform: translateY(-5px);

        opacity: 1;

    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .lucid-loader-logo {

        width: 95px;

        height: 95px;

        margin-bottom: 15px;

    }

    .lucid-loader-brand {

        font-size: 1rem;

        letter-spacing: 1.2px;

    }

    .lucid-loader-subtitle {

        font-size: 0.72rem;

        margin-bottom: 20px;

    }

}