/* ==========================================================================
   SPIRITUAL LUXURY LOADER (SHREEDHAM108)
   ========================================================================== */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fffaf3; /* Calm, spiritual off-white background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.loader-container {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Force elements to stack cleanly vertically */
    align-items: center;
    will-change: transform, opacity;
}

/* 1. Logo: Golden Pulse & Breathe Effect */
.loader-logo {
    display: block;
    width: 130px;
    height: auto;
    min-height: 20px; /* Assigns baseline area structural presence */
    margin: 0 auto 15px;
    animation: omBreathe 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform, filter;
}

/* 3. Typography Styles */
.loader-title {
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 600;
    color: #2d1f13; /* Deep spiritual earth tone */
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    display: block;
}

.loader-subtitle {
    font-family: 'Poppins', sans-serif;
    color: #78624c;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    display: block;
}

/* 4. Sleek Loading Bar Track */
.loader-line {
    width: 200px;
    height: 3px;
    background: #eedecc;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    display: block;
}

/* Inner Moving Indicator */
.loader-line span {
    display: block;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, #d97706, #f59e0b, #d97706);
    border-radius: 10px;
    animation: smoothProgress 1.8s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */

@keyframes omBreathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.15));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 25px rgba(217, 119, 6, 0.4));
    }
}

@keyframes smoothProgress {
    0% {
        transform: translateX(-150%);
    }
    100% {
        transform: translateX(350%);
    }
}

/* ==========================================================================
   DISMISSAL STATE
   ========================================================================== */
#loader.hide-loader {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
}