/* =====================================================
   GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {

    font-family: "Poppins", sans-serif;

    background:
        radial-gradient(
            circle at center,
            #111827 0%,
            #070b14 45%,
            #020409 100%
        );

    color: white;

    overflow: hidden;

}


/* =====================================================
   LOADER PAGE
===================================================== */

.loader-page {

    min-height: 100vh;

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 5;

    padding: 30px;

}


/* =====================================================
   BACKGROUND GRID
===================================================== */

.loader-page::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        radial-gradient(
            circle,
            black 20%,
            transparent 80%
        );

    pointer-events: none;

}


/* =====================================================
   PARTICLES
===================================================== */

.particles {

    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

}


.particles span {

    position: absolute;

    width: 3px;

    height: 3px;

    border-radius: 50%;

    background: #818cf8;

    opacity: 0.7;

    box-shadow:
        0 0 10px #818cf8;

    animation:
        particleFloat
        linear
        infinite;

}


/* Individual particles */

.particles span:nth-child(1) {

    left: 5%;
    bottom: -10px;

    animation-duration: 8s;

}


.particles span:nth-child(2) {

    left: 14%;
    bottom: -10px;

    animation-duration: 11s;

    animation-delay: 2s;

}


.particles span:nth-child(3) {

    left: 25%;
    bottom: -10px;

    animation-duration: 9s;

    animation-delay: 1s;

}


.particles span:nth-child(4) {

    left: 38%;
    bottom: -10px;

    animation-duration: 13s;

    animation-delay: 3s;

}


.particles span:nth-child(5) {

    left: 50%;
    bottom: -10px;

    animation-duration: 10s;

}


.particles span:nth-child(6) {

    left: 63%;
    bottom: -10px;

    animation-duration: 12s;

    animation-delay: 2s;

}


.particles span:nth-child(7) {

    left: 75%;
    bottom: -10px;

    animation-duration: 9s;

    animation-delay: 1s;

}


.particles span:nth-child(8) {

    left: 85%;
    bottom: -10px;

    animation-duration: 14s;

}


.particles span:nth-child(9) {

    left: 92%;
    bottom: -10px;

    animation-duration: 10s;

    animation-delay: 3s;

}


.particles span:nth-child(10) {

    left: 32%;
    bottom: -10px;

    animation-duration: 15s;

}


.particles span:nth-child(11) {

    left: 70%;
    bottom: -10px;

    animation-duration: 12s;

}


.particles span:nth-child(12) {

    left: 46%;
    bottom: -10px;

    animation-duration: 8s;

}


@keyframes particleFloat {

    0% {

        transform:
            translateY(0)
            scale(0.5);

        opacity: 0;

    }

    15% {

        opacity: 0.8;

    }

    80% {

        opacity: 0.7;

    }

    100% {

        transform:
            translateY(-110vh)
            scale(1.3);

        opacity: 0;

    }

}


/* =====================================================
   TOP LABEL
===================================================== */

.top-label {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 28px;

    color: #94a3b8;

    font-family: "Orbitron", sans-serif;

    font-size: 10px;

    letter-spacing: 3px;

}


.status-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 8px #22c55e;

    animation:
        statusPulse 1.5s infinite;

}


@keyframes statusPulse {

    0%,
    100% {

        opacity: 1;

        transform: scale(1);

    }

    50% {

        opacity: 0.4;

        transform: scale(0.7);

    }

}


/* =====================================================
   LOADER CONTAINER
===================================================== */

.loader-container {

    width: 230px;

    height: 230px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =====================================================
   OUTER RING
===================================================== */

.outer-ring {

    position: absolute;

    inset: 0;

    border-radius: 50%;

    border:

        1px solid
        rgba(129, 140, 248, 0.25);

    border-top-color: #818cf8;

    animation:
        rotateRing
        5s
        linear
        infinite;

}


.outer-ring::before {

    content: "";

    position: absolute;

    top: -4px;

    left: 50%;

    width: 8px;

    height: 8px;

    border-radius: 50%;

    transform: translateX(-50%);

    background: #a5b4fc;

    box-shadow:
        0 0 15px #818cf8,
        0 0 30px #6366f1;

}


/* =====================================================
   MIDDLE RING
===================================================== */

.middle-ring {

    position: absolute;

    inset: 13px;

    border-radius: 50%;

    border:

        1px dashed
        rgba(165, 180, 252, 0.45);

    animation:
        rotateReverse
        8s
        linear
        infinite;

}


.middle-ring::after {

    content: "";

    position: absolute;

    bottom: 8px;

    left: 50%;

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: #c4b5fd;

    box-shadow:
        0 0 15px #a78bfa;

}


/* =====================================================
   ROTATIONS
===================================================== */

@keyframes rotateRing {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}


@keyframes rotateReverse {

    from {

        transform: rotate(360deg);

    }

    to {

        transform: rotate(0deg);

    }

}


/* =====================================================
   IMAGE GLOW
===================================================== */

.image-glow {

    position: absolute;

    width: 155px;

    height: 155px;

    border-radius: 50%;

    background:

        radial-gradient(
            circle,
            rgba(99, 102, 241, 0.55),
            transparent 70%
        );

    filter: blur(18px);

    animation:
        glowPulse
        2.5s
        ease-in-out
        infinite;

}


@keyframes glowPulse {

    0%,
    100% {

        transform: scale(0.9);

        opacity: 0.6;

    }

    50% {

        transform: scale(1.15);

        opacity: 1;

    }

}


/* =====================================================
   PROFILE IMAGE
===================================================== */

.loader-image {

    position: relative;

    width: 145px;

    height: 145px;

    border-radius: 50%;

    overflow: hidden;

    z-index: 4;

    border:

        3px solid
        rgba(255, 255, 255, 0.9);

    box-shadow:

        0 0 0 5px rgba(99, 102, 241, 0.15),

        0 0 35px rgba(99, 102, 241, 0.5);

    animation:
        imageFloat
        3s
        ease-in-out
        infinite;

}


.loader-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


@keyframes imageFloat {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-5px);

    }

}


/* =====================================================
   VA BADGE
===================================================== */

.va-badge {

    position: absolute;

    bottom: 4px;

    right: 27px;

    z-index: 10;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: #6366f1;

    border: 3px solid #080c15;

    color: white;

    font-family: "Orbitron", sans-serif;

    font-size: 10px;

    font-weight: 700;

    box-shadow:
        0 0 15px rgba(99, 102, 241, 0.8);

}


/* =====================================================
   BRAND CONTENT
===================================================== */

.brand-content {

    text-align: center;

    margin-top: 30px;

}


.small-title {

    font-family: "Orbitron", sans-serif;

    font-size: 10px;

    letter-spacing: 5px;

    color: #64748b;

    margin-bottom: 8px;

}


.brand-content h1 {

    font-family: "Orbitron", sans-serif;

    font-size: clamp(26px, 5vw, 40px);

    letter-spacing: 4px;

    font-weight: 700;

    color: #f8fafc;

}


.brand-content h1 span {

    color: #818cf8;

}


.brand-content p {

    margin-top: 8px;

    color: #94a3b8;

    font-size: 12px;

    letter-spacing: 1px;

}


/* =====================================================
   LOADING AREA
===================================================== */

.loading-area {

    width: min(360px, 80vw);

    margin-top: 35px;

}


.loading-info {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 9px;

    font-size: 11px;

    color: #64748b;

}


.loading-info strong {

    color: #a5b4fc;

    font-family: "Orbitron", sans-serif;

    font-size: 11px;

}


/* =====================================================
   PROGRESS BAR
===================================================== */

.progress-container {

    width: 100%;

    height: 4px;

    border-radius: 10px;

    background: rgba(255,255,255,0.08);

    overflow: hidden;

}


.progress-bar {

    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:

        linear-gradient(
            90deg,
            #6366f1,
            #8b5cf6,
            #a78bfa
        );

    box-shadow:

        0 0 12px
        rgba(129, 140, 248, 0.8);

    transition:
        width 0.08s linear;

}


/* =====================================================
   LOADING DOTS
===================================================== */

.loading-dots {

    display: flex;

    justify-content: center;

    gap: 6px;

    margin-top: 13px;

}


.loading-dots span {

    width: 4px;

    height: 4px;

    border-radius: 50%;

    background: #818cf8;

    animation:
        dotBounce
        1.2s
        infinite ease-in-out;

}


.loading-dots span:nth-child(2) {

    animation-delay: 0.15s;

}


.loading-dots span:nth-child(3) {

    animation-delay: 0.3s;

}


@keyframes dotBounce {

    0%,
    60%,
    100% {

        transform: translateY(0);

        opacity: 0.4;

    }

    30% {

        transform: translateY(-5px);

        opacity: 1;

    }

}


/* =====================================================
   BOTTOM TEXT
===================================================== */

.bottom-text {

    position: absolute;

    bottom: 28px;

    display: flex;

    align-items: center;

    gap: 12px;

    color: #475569;

    font-family: "Orbitron", sans-serif;

    font-size: 8px;

    letter-spacing: 2px;

}


.bottom-text i {

    font-size: 3px;

    color: #6366f1;

}


/* =====================================================
   PAGE EXIT ANIMATION
===================================================== */

body.exit {

    animation:
        pageExit
        0.7s
        ease
        forwards;

}


@keyframes pageExit {

    from {

        opacity: 1;

        transform: scale(1);

    }

    to {

        opacity: 0;

        transform: scale(1.04);

    }

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    .loader-page {

        padding: 20px;

    }


    .loader-container {

        width: 195px;

        height: 195px;

    }


    .loader-image {

        width: 125px;

        height: 125px;

    }


    .image-glow {

        width: 135px;

        height: 135px;

    }


    .brand-content {

        margin-top: 25px;

    }


    .brand-content h1 {

        font-size: 24px;

        letter-spacing: 2px;

    }


    .brand-content p {

        font-size: 10px;

    }


    .loading-area {

        margin-top: 28px;

    }


    .bottom-text {

        bottom: 20px;

        gap: 8px;

        font-size: 7px;

        letter-spacing: 1px;

    }

}


@media (max-width: 380px) {

    .top-label {

        font-size: 8px;

        letter-spacing: 2px;

    }


    .loader-container {

        width: 175px;

        height: 175px;

    }


    .loader-image {

        width: 112px;

        height: 112px;

    }


    .brand-content h1 {

        font-size: 21px;

    }

}