/* ============================================================
   Rasikam Preloader — rasikam-preloader.css
   ============================================================ */

/* ---------- Preloader overlay ---------- */
#rasikam-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #16291d;           /* apna brand color yahan change karo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#rasikam-preloader.rp-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---------- Stage (container) ---------- */
.rp-stage {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ---------- Animated rings ---------- */
.rp-ring {
    position: absolute;
    inset: 0;
}

.rp-ring circle {
    fill: none;
    stroke: #c9a14d;               /* ring ka color — apna gold/brand color set karo */
    stroke-width: 1.2;
    stroke-linecap: round;
}

/* Draw animation — dono circles ek saath khatam hote hain (~0.95s par) */
.rp-circle-main {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: rp-draw 0.9s cubic-bezier(.4,0,.2,1) forwards;
    transform-origin: center;
}

.rp-circle-inner {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    opacity: 0.6;
    animation: rp-draw 0.9s cubic-bezier(.4,0,.2,1) forwards 0.05s;
    transform-origin: center;
}

@keyframes rp-draw {
    to { stroke-dashoffset: 0; }
}

/* ---------- Center logo ---------- */
/* Logo, ring se pehle hi (~0.83s par) fade-in complete kar leta hai,
   taaki jab ring animation khatam ho (0.95s), tab tak logo bhi poora dikh chuka ho */
.rp-logo {
    position: relative;
    width: 170px;
    height: auto;
    opacity: 0;
    transform: scale(0.82);
    filter: drop-shadow(0 0 14px rgba(201, 161, 77, 0));
    animation: rp-logo-in 0.675s cubic-bezier(0.2, 0.7, 0.3, 1) forwards 0.15s;
}

@keyframes rp-logo-in {
    to {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 14px rgba(201, 161, 77, 0.35));
    }
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 480px) {
    .rp-stage {
        width: 200px;
        height: 200px;
    }
    .rp-logo {
        width: 120px;
    }
}
