/* 
    =====================
    This is the css file for preloader(used for all the user app files).
    ====================== 
*/

#preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    z-index: 99999 !important;
    background: #fff !important;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}


/* ======================= prevent image drap ======================= */
/* ======================= prevent image drap ======================= */
.no-drag-element {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    pointer-events: none;
}




/* ======================= animation ======================= */
/* ======================= animation ======================= */
.hero-animate1,
.hero-animate2,
.hero-animate3 {
    opacity: 0;
    /* hidden until animation starts */
    animation: none;
    /* no movement until triggered */
}

/* ----- Triggered after page load ----- */
.animate-active.hero-animate1 {
    animation: animate3 0.6s ease-in-out forwards;
}

.animate-active.hero-animate2 {
    animation: animate2 0.6s ease-in-out forwards;
}

.animate-active.hero-animate3 {
    animation: animate3 0.6s ease-in-out forwards;
}

@keyframes animate3 {
    0% {
        opacity: 0;
        transform: translateX(-4%);
    }

    50% {
        opacity: 0.2;
    }

    75% {
        opacity: 0.5;
    }


    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes animate2 {
    0% {
        opacity: 0;
        transform: translateX(4%);
    }

    50% {
        opacity: 0.2;
    }

    75% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}






/* ========= Loading overlay(for image, element or content) spinner */
/* ========= Loading overlay(for image, element or content) spinner */
.loading-trigger {
    position: relative;
    transition: opacity 0.2s;
}

.loading-trigger.is-loading {
    pointer-events: none;
    opacity: 1;
}

.loading-trigger.is-loading::before {
    content: "\f110";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: fa-spin 0.7s infinite linear;
}

.loading-trigger.btn-sm.is-loading::before {
    font-size: 0.8rem;
}

.loading-trigger.is-loading::before {
    color: rgb(255, 255, 255);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

@keyframes fa-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}








/* ============== Scroll Animation System */
/* ============== Scroll Animation System */
.scroll-animate {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}


/* 1. Ultra Smooth Fade Up */
.animate-fade-up {
    transform: translate3d(0, 50px, 0);
}

/* 2. Ultra Smooth Fade Down */
.animate-fade-down {
    transform: translate3d(0, -50px, 0);
}

/* 3. Ultra Smooth Fade Left */
.animate-fade-left {
    transform: translate3d(50px, 0, 0);
}

/* 4. Ultra Smooth Fade Right */
.animate-fade-right {
    transform: translate3d(-50px, 0, 0);
}

/* 5. Fluid Zoom In Scale */
.animate-zoom-in {
    transform: scale3d(0.92, 0.92, 1);
}

/* --- THE ACTIVE FINISHED STATE --- */
.scroll-animate.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Optional: Cleanly disables animations if the visitor has a slow phone or has 
   "Reduce Motion" enabled in their operating system settings */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}







/* ============== GLOBAL MODAL DESIGN */
/* ============== GLOBAL MODAL DESIGN */
.modal-content {
    border: none;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .12);
}

.modal-header {
    padding: 1rem 1.25rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1rem;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
}

.modal-backdrop.show {
    opacity: .65;
}


.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal.fade .modal-dialog {
    transform: translateY(30px) scale(.95);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}