body.loading,
body.loading * {
    cursor: auto !important;
}

body.loading .cursor-dot,
body.loading .cursor-outline,
body.loading .cursor-particle {
    display: none !important;
}

/* ==========================================================
   CINEMATIC PORTFOLIO LOADER
========================================================== */

:root {
    --loader-bg: #050505;
    --loader-panel: #050505;

    --loader-text: #ffffff;
    --loader-muted: #8b8b8b;

    --loader-green: #ff4f87;
    --loader-red: #F26B6B;

    --loader-glow: #ff4f87;
}


/* Prevent scrolling while loader is active */

body.loading {
    overflow: hidden;
}


/* ==========================================================
   LOADER
========================================================== */

#loader {

    /* Used by GSAP */
    --split-line-opacity: 0;

    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    background:
        radial-gradient(circle at center,
            rgba(255, 79, 135, 0.05),
            transparent 45%),
        var(--loader-bg);

    z-index: 999999;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    isolation: isolate;

    user-select: none;
    -webkit-user-select: none;

    touch-action: none;

    cursor: auto;
}


/* ==========================================================
   CONTENT
========================================================== */

.loader-content {

    position: relative;

    z-index: 30;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

}


/* ==========================================================
   ROBOT
========================================================== */

.loader-robot {

    width: min(520px, 80vw);

    display: flex;

    justify-content: center;

    align-items: center;

}

.loader-robot svg {

    width: 100%;

    height: auto;

    overflow: visible;

}


/* ==========================================================
   STATUS TEXT
========================================================== */

.loader-status {

    margin-top: 42px;

    text-align: center;

}

#loader-status-text {

    font-family: "JetBrains Mono", monospace;

    font-size: 1.25rem;

    letter-spacing: .45rem;

    color: white;

    opacity: .8;

    text-transform: uppercase;

}


/* ==========================================================
   PINK GLOW
========================================================== */

.loader-flash {

    position: absolute;

    width: 420px;

    height: 420px;

    border-radius: 50%;

    background: var(--loader-glow);

    filter: blur(150px);

    opacity: 0;

    pointer-events: none;

}


/* ==========================================================
   SPLIT PANELS
========================================================== */

.loader-panel {

    position: absolute;

    left: 0;

    width: 100%;

    height: 50%;

    background: var(--loader-panel);

    z-index: 20;

}

.loader-top {

    top: 0;

    transform-origin: top;

}

.loader-bottom {

    bottom: 0;

    transform-origin: bottom;

}


/* ==========================================================
   SVG COLORS
========================================================== */

#panel {

    fill: #171717 !important;

    stroke: #2b2b2b;

}

#toggle {

    fill: var(--loader-green);

}

.robotHand path {

    transition: .3s;

}


/* ==========================================================
   CENTER GLOW LINE
========================================================== */

#loader::after {

    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 100%;
    height: 2px;

    opacity: var(--split-line-opacity);

    background: linear-gradient(90deg,
            transparent,
            #ff2e63,
            #ff82b2,
            #ff2e63,
            transparent);

    box-shadow:
        0 0 10px #ff2e63,
        0 0 25px #ff2e63,
        0 0 50px rgba(255, 46, 99, 0.6);

    transform: translateY(-50%);

    pointer-events: none;

    z-index: 40;
}


/* ==========================================================
   FADE OUT
========================================================== */

#loader.loader-finished {

    pointer-events: none;

}