/*-----------------------------------------------------------------------------
 * Snaffy India - Brand PreLoader Stylesheet
 * File: css/loader.css
 * 
 * Uses the official Snaffy India emblem logo (images/preloader-logo.png)
 * with a minimal, medical-grade pulse animation.
 *----------------------------------------------------------------------------*/

/* 1. Fullscreen White Backdrop */
div#preloader,
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
}

/* 2. Hide template legacy text and bouncing dots */
.loader,
.loader h1,
.loader span {
    display: none !important;
}

/* 3. Centered Logo with Minimal Pulse Animation (Faded out by custom.js on load) */
#status {
    width: 84px;
    height: 84px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -42px;
    margin-top: -42px;
    background-image: url('../images/preloader-logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    
    /* Minimal Pulse Animation */
    animation: snaffyPulse 1.8s ease-in-out infinite;
    -webkit-animation: snaffyPulse 1.8s ease-in-out infinite;
    -moz-animation: snaffyPulse 1.8s ease-in-out infinite;
    -o-animation: snaffyPulse 1.8s ease-in-out infinite;
}

/* ---------------------------------------------------------------------------
 * Minimal Breathing Pulse Animation:
 * Smoothly scales between 0.95 and 1.05 with a soft brand shadow.
 * --------------------------------------------------------------------------- */
@keyframes snaffyPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.88;
        filter: drop-shadow(0 2px 6px rgba(149, 79, 160, 0.15));
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 6px 16px rgba(149, 79, 160, 0.30));
    }
    100% {
        transform: scale(0.95);
        opacity: 0.88;
        filter: drop-shadow(0 2px 6px rgba(149, 79, 160, 0.15));
    }
}

@-webkit-keyframes snaffyPulse {
    0% {
        -webkit-transform: scale(0.95);
        opacity: 0.88;
    }
    50% {
        -webkit-transform: scale(1.05);
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(0.95);
        opacity: 0.88;
    }
}

@-moz-keyframes snaffyPulse {
    0% {
        -moz-transform: scale(0.95);
        opacity: 0.88;
    }
    50% {
        -moz-transform: scale(1.05);
        opacity: 1;
    }
    100% {
        -moz-transform: scale(0.95);
        opacity: 0.88;
    }
}

@-o-keyframes snaffyPulse {
    0% {
        -o-transform: scale(0.95);
        opacity: 0.88;
    }
    50% {
        -o-transform: scale(1.05);
        opacity: 1;
    }
    100% {
        -o-transform: scale(0.95);
        opacity: 0.88;
    }
}

/* ---------------------------------------------------------------------------
 * ALTERNATIVE OPTION: Minimal Halo Ring
 * To use a rotating brand arc around the stationary logo instead of pulse:
 * Set animation: none on #status and uncomment the rule below:
 * --------------------------------------------------------------------------- */
/*
#status::after {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #954fa0;
    border-right-color: #02adc6;
    animation: snaffyRingSpin 1.2s linear infinite;
    -webkit-animation: snaffyRingSpin 1.2s linear infinite;
}
@keyframes snaffyRingSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
*/
