﻿/* ==========================================================
   HOME PAGE PRELOADER
   ========================================================== */

html.home-preloader-lock,
body.home-preloader-active {
    overflow: hidden !important;
}

.home-page-preloader {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
    background: radial-gradient( circle at 50% 38%, rgba(255, 227, 155, 0.58) 0, rgba(255, 173, 48, 0.33) 30%, transparent 58% ), linear-gradient( 135deg, #ff9a16 0%, #f47700 48%, #d94f00 100% );
    opacity: 1;
    visibility: visible;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

    .home-page-preloader::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 115deg, transparent 20%, rgba(255, 255, 255, 0.14) 45%, transparent 70% );
        transform: translateX(-100%);
        animation: homePreloaderShine 2.6s linear infinite;
    }

    .home-page-preloader.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.home-preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.home-preloader-image-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 286px;
    height: 286px;
    margin-bottom: 28px;
}

.home-preloader-spinner {
    position: absolute;
    inset: 0;
    display: block;
    border: 8px solid rgba(4, 89, 48, 0.22);
    border-top-color: #075f37;
    border-right-color: #169553;
    border-bottom-color: rgba(5, 104, 56, 0.45);
    border-left-color: transparent;
    border-radius: 50%;
    filter: drop-shadow(0 5px 12px rgba(0, 75, 39, 0.35));
    animation: homePreloaderRotate 1.05s linear infinite;
}

    .home-preloader-spinner::before {
        content: "";
        position: absolute;
        top: 12px;
        right: 26px;
        width: 14px;
        height: 14px;
        background: #ffffff;
        border: 4px solid #08713e;
        border-radius: 50%;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.24), 0 0 20px rgba(3, 102, 54, 0.72);
    }

.home-preloader-image-circle {
    position: relative;
    z-index: 2;
    width: 244px;
    height: 244px;
    overflow: hidden;
    background: #ffffff;
    border: 8px solid #075e37;
    border-radius: 50%;
    box-shadow: 0 22px 50px rgba(91, 31, 0, 0.34), 0 0 0 9px rgba(255, 255, 255, 0.28);
}

.home-preloader-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 34%;
    transform: scale(1.34);
    animation: homePreloaderImagePulse 2.2s ease-in-out infinite;
}

.home-preloader-title {
    margin: 0;
    color: #ffffff;
    font-family: "Inter", "Noto Sans Devanagari", Arial, sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    text-shadow: 0 4px 14px rgba(102, 27, 0, 0.4);
}

.home-preloader-subtitle {
    margin-top: 10px;
    color: #ffffff;
    font-family: "Noto Sans Devanagari", "Inter", Arial, sans-serif;
    font-size: clamp(17px, 2vw, 24px);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 3px 10px rgba(88, 24, 0, 0.36);
}

.home-preloader-loading {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.94);
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.home-preloader-dots::after {
    content: "";
    display: inline-block;
    width: 30px;
    text-align: left;
    animation: homePreloaderDots 1.3s steps(4, end) infinite;
}

@keyframes homePreloaderRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes homePreloaderImagePulse {
    0%, 100% {
        transform: scale(1.34);
    }

    50% {
        transform: scale(1.39);
    }
}

@keyframes homePreloaderDots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75%, 100% {
        content: "...";
    }
}

@keyframes homePreloaderShine {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@media (max-width: 767.98px) {
    .home-preloader-image-shell {
        width: 224px;
        height: 224px;
        margin-bottom: 22px;
    }

    .home-preloader-image-circle {
        width: 190px;
        height: 190px;
        border-width: 6px;
    }

    .home-preloader-spinner {
        border-width: 6px;
    }

    .home-preloader-title {
        font-size: 36px;
    }

    .home-preloader-subtitle {
        font-size: 17px;
    }
}

@media (max-width: 420px) {
    .home-preloader-image-shell {
        width: 194px;
        height: 194px;
    }

    .home-preloader-image-circle {
        width: 164px;
        height: 164px;
    }

    .home-preloader-title {
        font-size: 31px;
    }

    .home-preloader-subtitle {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-preloader-spinner {
        animation-duration: 2.4s;
    }

    .home-preloader-image,
    .home-page-preloader::before {
        animation: none;
    }
}
