/* ===========================
   PRELOADER
=========================== */

#preloader{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:linear-gradient(135deg,#ffffff,#edf5ff,#dbeafe);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:999999;

    transition:opacity .8s ease,
               visibility .8s ease;

}

#preloader.hide{

    opacity:0;
    visibility:hidden;

}

.loader-content{

    text-align:center;
    animation:fadeUp 1s ease;

}

.loader-logo{

    width:140px;
    margin-bottom:20px;

    animation:logoSpin 2s ease-in-out infinite;

}

.loader-content h2{

    color:#0d6efd;
    font-weight:600;
    margin-bottom:5px;

}

.loader-content h1{

    color:#003c8f;
    font-size:40px;
    font-weight:800;
    font-family: "Maiandra GD", "Segoe UI", sans-serif;

}

.loader-content p{

    color:#666;
    margin-bottom:30px;

}

/* ===========================
   PRELOADER
=========================== */
/* ===========================
   PRELOADER BACKGROUND
=========================== */

.loader-bg{
    position:absolute;
    inset:0;
    overflow:hidden;
    background:linear-gradient(135deg,#ffffff,#eaf4ff,#d7ebff);
    z-index:0;
}

/* Circles */

.loader-bg .circle{
    position:absolute;
    border-radius:50%;
    filter:blur(25px);
    opacity:.55;
    animation:float 12s ease-in-out infinite alternate;
}

/* Circle 1 */
.loader-bg .c1{
    width:320px;
    height:320px;
    background:#2d6cdf;
    top:-100px;
    left:-80px;
    animation-duration:14s;
}

/* Circle 2 */
.loader-bg .c2{
    width:250px;
    height:250px;
    background:#69b7ff;
    bottom:-80px;
    right:-60px;
    animation-duration:16s;
}

/* Circle 3 */
.loader-bg .c3{
    width:180px;
    height:180px;
    background:#b8dcff;
    top:45%;
    left:12%;
    animation-duration:11s;
}

/* Circle 4 */
.loader-bg .c4{
    width:220px;
    height:220px;
    background:#4b91ff;
    top:15%;
    right:15%;
    animation-duration:18s;
}

/* Floating Animation */

@keyframes float{

    0%{
        transform:translate(0,0) scale(1);
    }

    25%{
        transform:translate(50px,-40px) scale(1.08);
    }

    50%{
        transform:translate(-30px,50px) scale(.95);
    }

    75%{
        transform:translate(40px,25px) scale(1.12);
    }

    100%{
        transform:translate(-50px,-20px) scale(1);
    }

}

/* Optional soft shimmer */

.loader-bg::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        transparent 20%,
        rgba(255,255,255,.35) 50%,
        transparent 80%
    );
    animation:shine 8s linear infinite;
}

@keyframes shine{

    from{
        transform:translateX(-100%);
    }

    to{
        transform:translateX(100%);
    }

}
#preloader{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:linear-gradient(135deg,#ffffff,#edf5ff,#dbeafe);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:999999;

    transition:opacity .8s ease,
               visibility .8s ease;

}

#preloader.hide{

    opacity:0;
    visibility:hidden;

}

.loader-content{

    text-align:center;
    animation:fadeUp 1s ease;

}

.loader-logo{

    width:140px;
    margin-bottom:20px;

    animation:logoSpin 2s ease-in-out infinite;

}

.loader-content h2{

    color:#0d6efd;
    font-weight:600;
    margin-bottom:5px;

}

.loader-content h1{

    color:#003c8f;
    font-size:40px;
    font-weight:800;

}

.loader-content p{

    color:#666;
    margin-bottom:30px;

}

/* Spinner */

.loader-spinner{

    width:70px;
    height:70px;

    margin:auto;

    border:7px solid #dbeafe;
    border-top:7px solid #0056d6;

    border-radius:50%;

    animation:spin 1s linear infinite;

}

/* Animations */

@keyframes spin{

    100%{
        transform:rotate(360deg);
    }

}

@keyframes logoSpin{

    0%,100%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(30px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* Mobile */

@media(max-width:768px){

.loader-logo{

    width:100px;

}

.loader-content h1{

    font-size:28px;

}

.loader-content h2{

    font-size:22px;

}

.loader-spinner{

    width:55px;
    height:55px;

}

}