/* ==========================================================================
   VINDHYA MILLETS - SPLASH SCREEN REDESIGN
   Matches Reference Mockup (media_1788582349503.jpg)
   Supports Both Laptop & Mobile Screens (Responsive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* ── OVERLAY CONTAINER ── */
#vm-splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #14281a;
    background: radial-gradient(circle at 50% 35%, #1f4228 0%, #132b1a 60%, #0c1c11 100%);
    overflow: hidden;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* Hide footer while splash is active */
body.splash-active .site-footer {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Butter-Smooth Exit Animation (No GPU Black Flash Glitch) */
#vm-splash-screen.vm-splash-exit {
    opacity: 0 !important;
    transform: scale(1.04) !important;
    pointer-events: none !important;
}

/* ── CINEMATIC BACKGROUND ── */
.vm-splash-bg {
    position: absolute;
    inset: 0;
    background-color: #14281a;
    background-image: 
        radial-gradient(circle at 50% 35%, rgba(20, 35, 20, 0.15) 0%, rgba(5, 12, 6, 0.65) 100%),
        url('../images/splash-bg-millet.webp'),
        url('../images/splash-bg-millet.jpg');
    background-size: cover;
    background-position: center 25%;
    transform: scale(1.03);
    animation: bgSlowZoom 12s ease-out forwards;
    z-index: 0;
}

@keyframes bgSlowZoom {
    0% { transform: scale(1.03); }
    100% { transform: scale(1.0); }
}

/* ── INTERACTIVE CANVAS OVERLAY (Gentle Golden Embers) ── */
.vm-splash-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── TOP LEFT CORNER: KICKER & CURSIVE STAMP (Laptop) ── */
.vm-splash-corner-tl {
    position: absolute;
    top: 40px;
    left: 48px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.vm-splash-kicker {
    display: flex;
    flex-direction: column;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}

.vm-kicker-line {
    width: 26px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.5);
    margin: 8px 0 22px;
    border-radius: 1px;
}

.vm-splash-stamp-left {
    font-family: 'Caveat', cursive;
    color: #ffdda4;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    transform: rotate(-10deg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    position: relative;
    padding-bottom: 6px;
}

.vm-stamp-swash {
    position: absolute;
    bottom: 0;
    left: 4px;
    width: 65px;
    height: 3px;
    background: #4ade80;
    border-radius: 2px;
    transform: rotate(-2deg);
    box-shadow: 0 1px 6px rgba(74, 222, 128, 0.6);
}

/* ── TOP RIGHT: SKIP INTRO BUTTON (Laptop & Phone) ── */
.vm-splash-skip {
    position: absolute;
    top: 38px;
    right: 48px;
    z-index: 10;
    background: rgba(18, 28, 20, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.vm-splash-skip:hover {
    background: rgba(30, 50, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.vm-skip-arrow {
    transition: transform 0.25s ease;
}

.vm-splash-skip:hover .vm-skip-arrow {
    transform: translateX(4px);
}

/* ── RIGHT VERTICAL RAIL: TRUST ICONS (Laptop) ── */
.vm-splash-rail-right {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.vm-rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vm-rail-icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.92);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.vm-rail-item span {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.vm-rail-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.35);
}

/* ── BOTTOM RIGHT CORNER (Laptop) ── */
.vm-splash-corner-br {
    position: absolute;
    bottom: 34px;
    right: 48px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    text-transform: uppercase;
}

.vm-br-tomorrow {
    color: #ffffff !important;
}

/* ── BOTTOM CENTER INITIATIVE ── */
.vm-splash-bottom-center {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    white-space: nowrap;
}

.vm-bc-line {
    width: 28px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 1px;
}


/* ════════════════════════════════════════════════════════════════
   CENTRAL FROSTED GLASS BRAND CARD (THE HERO ELEMENT)
   ════════════════════════════════════════════════════════════════ */
.vm-splash-card {
    position: relative;
    z-index: 3;
    width: clamp(340px, 92vw, 490px);
    padding: 38px 36px 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.32) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    border-radius: 32px;
    box-shadow: 
        0 28px 70px rgba(0, 0, 0, 0.4),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.75),
        inset 0 -1.5px 2px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    animation: cardFloatIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFloatIn {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Warm Sunburst Halo Backlight behind Logo */
.vm-card-halo {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 190px;
    background: radial-gradient(circle, rgba(255, 235, 160, 0.65) 0%, rgba(255, 210, 120, 0.25) 50%, transparent 80%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

/* 1. Official Oval Brand Logo */
.vm-card-logo-wrap {
    position: relative;
    z-index: 1;
    width: 140px;
    margin-bottom: 16px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.22));
    transition: transform 0.4s ease;
}

.vm-card-logo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 2. Tagline */
.vm-card-tagline {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #1f2820;
    margin-bottom: 12px;
}

.vm-card-tagline-dash {
    width: 22px;
    height: 1.5px;
    background: rgba(31, 40, 32, 0.5);
    margin-top: 6px;
    border-radius: 1px;
}

/* 3. Main Title: Vindhya Millets */
.vm-card-title-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.vm-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.3rem, 5.4vw, 2.95rem);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.vm-title-vindhya {
    color: #163e20;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.vm-title-millets {
    color: #df7c16;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.vm-card-sub {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #382c20;
}

/* 4. Three Cultural Pillars: Jai Kisan | Jai Hind | Jai Jawan */
.vm-card-pillars {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 370px;
    margin-bottom: 18px;
    padding: 0 10px;
}

.vm-pillar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.vm-pillar-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-kisan {
    color: #1e6330;
}

.icon-kisan svg {
    width: 25px;
    height: 25px;
}

.icon-hind {
    color: #162a3c;
}

.icon-hind svg {
    width: 32px;
    height: 32px;
}

.icon-jawan {
    color: #1a3c22;
}

.icon-jawan svg {
    width: 28px;
    height: 28px;
}

.vm-pillar-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: #172418;
    white-space: nowrap;
}

.vm-pillar-divider {
    width: 1px;
    height: 28px;
    background: rgba(23, 36, 24, 0.22);
}

/* 5. Central Cursive Script Stamp */
.vm-card-cursive {
    position: relative;
    z-index: 1;
    font-family: 'Caveat', cursive;
    color: #7d481b;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
    transform: rotate(-6deg);
    margin-bottom: 22px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 6. Loading Progress Bar & Percentage Ticker */
.vm-card-progress {
    position: relative;
    z-index: 1;
    width: 100%;
}

.vm-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #1a261c;
}

.vm-progress-text {
    text-transform: uppercase;
}

.vm-progress-pct {
    font-variant-numeric: tabular-nums;
    color: #14351b;
    font-weight: 900;
}

.vm-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(18, 30, 20, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.vm-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 60%, #f97316 100%);
    border-radius: 50px;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.7);
    transition: width 0.08s linear;
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (LAPTOP VS PHONE)
   ════════════════════════════════════════════════════════════════ */

/* Tablet (max-width: 1100px) */
@media (max-width: 1100px) {
    .vm-splash-corner-tl {
        top: 28px;
        left: 30px;
    }

    .vm-splash-skip {
        top: 28px;
        right: 30px;
    }

    .vm-splash-rail-right {
        right: 30px;
    }

    .vm-splash-corner-br {
        bottom: 28px;
        right: 30px;
    }
}

/* Small Tablet & Mobile Phone (max-width: 900px) */
@media (max-width: 900px) {
    /* Hide peripheral desktop decorative elements to maintain pure focus */
    .vm-splash-corner-tl,
    .vm-splash-rail-right,
    .vm-splash-corner-br {
        display: none !important;
    }

    .vm-splash-skip {
        top: 22px;
        right: 20px;
        padding: 8px 18px;
        font-size: 0.74rem;
    }

    .vm-splash-bottom-center {
        bottom: 20px;
        font-size: 0.68rem;
    }
}

/* Mobile Phones (max-width: 600px) */
@media (max-width: 600px) {
    .vm-splash-card {
        width: 92vw;
        padding: 30px 22px 24px;
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.38) 100%);
    }

    .vm-card-logo-wrap {
        width: 112px;
        margin-bottom: 12px;
    }

    .vm-card-tagline {
        font-size: 0.68rem;
        letter-spacing: 1.8px;
        margin-bottom: 8px;
    }

    .vm-card-title {
        font-size: 2.25rem;
        margin-bottom: 4px;
    }

    .vm-card-sub {
        font-size: 0.72rem;
        letter-spacing: 1.4px;
    }

    .vm-card-pillars {
        max-width: 100%;
        margin-bottom: 14px;
        padding: 0 4px;
    }

    .vm-pillar-icon {
        width: 30px;
        height: 30px;
    }

    .icon-kisan svg { width: 22px; height: 22px; }
    .icon-hind svg { width: 28px; height: 28px; }
    .icon-jawan svg { width: 24px; height: 24px; }

    .vm-pillar-label {
        font-size: 0.75rem;
    }

    .vm-card-cursive {
        font-size: 1.25rem;
        margin-bottom: 18px;
    }

    .vm-progress-header {
        font-size: 0.72rem;
    }

    .vm-progress-track {
        height: 7px;
    }

    .vm-splash-skip {
        top: 18px;
        right: 18px;
        padding: 8px 16px;
        font-size: 0.72rem;
        letter-spacing: 1.6px;
    }
}

/* Small / Narrow Mobile Phones (max-width: 380px) */
@media (max-width: 380px) {
    .vm-splash-card {
        padding: 24px 16px 20px;
    }

    .vm-card-logo-wrap {
        width: 95px;
    }

    .vm-card-title {
        font-size: 1.95rem;
    }

    .vm-pillar-label {
        font-size: 0.68rem;
    }
}
