/* ==========================================================================
   BASUMATI VOLUNTEER ORGANIZATION (BVO) - ANNIVERSARY CELEBRATION
   Festive, Regal, Ultra-Responsive Static Site
   ========================================================================== */

/* --- 1. CSS Custom Properties / Design Tokens --- */
:root {
    --cream-light: #fffdf8;
    --cream-base: #fef8eb;
    --cream-deep: #faedd0;
    --cream-accent: #f5dfb0;

    --crimson-bright: #f02530;
    --crimson-main: #d81921;
    --crimson-deep: #b80913;
    --crimson-dark: #82040b;
    --crimson-shadow: #550106;

    --emerald-light: #169363;
    --emerald-main: #095a3e;
    --emerald-dark: #053b28;
    --emerald-glow: rgba(9, 90, 62, 0.28);

    --gold-bright: #ffe285;
    --gold-main: #f5a623;
    --gold-deep: #d48208;
    --gold-glow: rgba(245, 166, 35, 0.4);

    --text-dark: #123325;
    --text-muted: #4a6358;

    --font-serif: "Noto Serif Bengali", "Hind Siliguri", Georgia, serif;
    --font-sans: "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
    --font-brand: "Montserrat", "Poppins", sans-serif;

    --ease-out-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- 2. CSS Reset & Global Standards --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--cream-base);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

/* Page wrapper ensuring no horizontal scrollbars */
.page-container {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}


/* ==========================================================================
   3. HERO / WELCOME SECTION (Exactly matches the reference image)
   ========================================================================== */
.hero-welcome {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 38%, #ffffff 0%, var(--cream-light) 42%, var(--cream-deep) 85%, #f6e5be 100%),
        var(--cream-base);
}

/* --- Decorative Corner 1: Top-Left Crimson & Gold Ribbons --- */
.corner-ribbon-tl {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(230px, 32vw, 460px);
    height: clamp(140px, 20vw, 280px);
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 10px 20px rgba(115, 1, 7, 0.2));
    animation: ribbonFloat 6s ease-in-out infinite alternate;
}

.corner-svg-tl {
    width: 100%;
    height: 100%;
}

/* --- Decorative Corner 2: Top-Right Golden Foliage Sprigs --- */
.corner-foliage-tr {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(150px, 23vw, 340px);
    height: clamp(130px, 21vw, 300px);
    pointer-events: none;
    z-index: 4;
}

.corner-svg-tr {
    width: 100%;
    height: 100%;
}

.foliage-sway-group {
    transform-origin: 320px 20px;
    animation: foliageSway 7s ease-in-out infinite alternate;
}

/* --- Ambient Floating Gold Dust Particles --- */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-bright) 0%, var(--gold-main) 70%, transparent 100%);
    opacity: 0.35;
    animation: particleDrift 8s ease-in-out infinite;
}

.p-1 { left: 16%; top: 22%; width: 7px; height: 7px; animation-delay: 0s; }
.p-2 { right: 18%; top: 28%; width: 5px; height: 5px; animation-delay: 2s; }
.p-3 { left: 28%; top: 64%; width: 6px; height: 6px; animation-delay: 3.5s; }
.p-4 { right: 22%; top: 68%; width: 8px; height: 8px; animation-delay: 1.2s; }
.p-5 { left: 45%; top: 18%; width: 4px; height: 4px; animation-delay: 4.8s; }
.p-6 { right: 40%; top: 76%; width: 5px; height: 5px; animation-delay: 2.8s; }


/* --- Main Welcome Content Card --- */
.welcome-card-content {
    position: relative;
    z-index: 12;
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(40px, 5.5vw, 70px) 16px clamp(15px, 2.5vw, 30px);
    text-align: center;
}


/* ==========================================================================
   4. WELCOME CARD ELEMENTS & TYPOGRAPHY (Matching Reference Image)
   ========================================================================== */

/* 1. Top BVO Crest / Logo in Golden Ring */
.top-bvo-crest {
    margin: 0 auto clamp(12px, 1.8vw, 18px);
    display: flex;
    justify-content: center;
}

.top-crest-ring {
    width: clamp(72px, 8.5vw, 98px);
    height: clamp(72px, 8.5vw, 98px);
    border-radius: 50%;
    padding: 3.8px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-main) 50%, var(--gold-deep) 100%);
    box-shadow:
        0 8px 26px var(--gold-glow),
        0 4px 14px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    animation: crestFloat 5s ease-in-out infinite alternate;
    transition: transform 0.4s var(--ease-out-bounce), box-shadow 0.3s ease;
    flex-shrink: 0;
}

.top-bvo-crest:hover .top-crest-ring {
    transform: scale(1.08) rotate(3deg);
    box-shadow:
        0 14px 32px var(--gold-glow),
        0 6px 18px rgba(0, 0, 0, 0.22);
}

.top-crest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    display: block;
}

/* 2. Basumati Brand Logo Header (Where it was in the image) */
.brand-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.8vw, 16px);
    margin: 0 auto clamp(10px, 1.5vw, 16px);
}

.basumati-logo-badge {
    width: clamp(44px, 5.2vw, 64px);
    height: clamp(44px, 5.2vw, 64px);
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-out-bounce);
}

.brand-header:hover .basumati-logo-badge {
    transform: scale(1.08) rotate(4deg);
}

.basumati-icon-svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    color: var(--crimson-main);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    animation: brandShine 6s ease-in-out infinite;
}

.reg-tm {
    font-size: 0.42em;
    font-weight: 700;
    position: relative;
    top: -0.55em;
    margin-left: 2px;
    color: var(--crimson-main);
}

/* 2. Organization Pill Badge: বসুমতি ভলান্টিয়ার অর্গানাইজেশন (BVO) */
.org-pill-wrap {
    margin: 0 auto clamp(14px, 2vw, 22px);
    display: flex;
    justify-content: center;
}

.org-pill {
    display: inline-block;
    padding: clamp(8px, 1.1vw, 11px) clamp(22px, 3.2vw, 36px);
    border-radius: 9999px;
    background: linear-gradient(180deg, #0d704d 0%, var(--emerald-main) 100%);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: clamp(1.02rem, 2.4vw, 1.42rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.01em;
    box-shadow:
        0 8px 24px var(--emerald-glow),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pillBreathing 4s ease-in-out infinite alternate;
}

.org-pill:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(9, 90, 62, 0.38);
}

/* 3. Occasion Subtitle: প্রতিষ্ঠাবার্ষিকী উদযাপন উপলক্ষে */
.occasion-title {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3.8vw, 2.25rem);
    font-weight: 700;
    color: var(--emerald-main);
    line-height: 1.4;
    margin: 0 auto;
    letter-spacing: -0.01em;
    animation: textSwayGentle 5s ease-in-out infinite alternate;
}

/* 4. Upper & Lower Filigree Dividers */
.filigree-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(10px, 1.5vw, 16px) auto 0;
}

.upper-divider {
    width: min(520px, 88%);
}

.lower-divider {
    width: min(420px, 78%);
    margin-top: clamp(14px, 1.8vw, 22px);
}

.divider-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* 5. Centerpiece: 'স্বাগতম' with Flanking Petals & Underline Swash */
.swagatom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.2vw, 24px);
    margin: clamp(6px, 1vw, 14px) auto 0;
    position: relative;
    width: 100%;
}

/* Flanking 3-Petal Flourishes (Left & Right) */
.swagatom-flourish {
    width: clamp(38px, 7.5vw, 84px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.flourish-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.flourish-left {
    animation: flourishWaveLeft 4s ease-in-out infinite alternate;
}

.flourish-right {
    animation: flourishWaveRight 4s ease-in-out infinite alternate;
}

/* Center Block with Dual-Layer 3D Text & Swash */
.swagatom-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: titleFloatMotion 4.5s ease-in-out infinite alternate;
}

.swagatom-heading {
    position: relative;
    margin: 0;
    line-height: 1.05;
    display: inline-block;
    text-align: center;
}

/* Background 3D White Outline Layer */
.swagatom-stroke-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-serif);
    font-size: clamp(4.2rem, 13vw, 9.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    -webkit-text-stroke: clamp(8px, 1.8vw, 18px) #ffffff;
    text-shadow:
        0 clamp(6px, 1.2vw, 12px) 0 rgba(115, 1, 7, 0.25),
        0 clamp(12px, 2.2vw, 24px) clamp(16px, 2.8vw, 32px) rgba(90, 0, 5, 0.35);
    pointer-events: none;
    z-index: 1;
}

/* Foreground Rich Crimson Gradient Layer */
.swagatom-fill-layer {
    position: relative;
    z-index: 2;
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(4.2rem, 13vw, 9.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #f02530 0%, #d81420 40%, var(--crimson-deep) 75%, var(--crimson-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Graceful Curved Red Underline Swash */
.swagatom-swash-wrap {
    width: clamp(210px, 32vw, 380px);
    height: clamp(26px, 4vw, 44px);
    margin-top: clamp(-8px, -1.2vw, -2px);
    position: relative;
    z-index: 3;
}

.swash-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 6. Tagline / Slogan Block: — মানবতার সেবায়, মানুষের পাশে — */
.tagline-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2.4vw, 22px);
    margin: clamp(18px, 2.5vw, 28px) auto 0;
    width: min(720px, 92%);
}

.tagline-line {
    flex: 1;
    max-width: 90px;
    height: 1.8px;
    background: linear-gradient(90deg, transparent, var(--emerald-main));
}

.tagline-block .tagline-line:last-child {
    background: linear-gradient(90deg, var(--emerald-main), transparent);
}

.tagline-text {
    font-family: var(--font-serif);
    font-size: clamp(1.22rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--emerald-main);
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.35;
    animation: taglineBreathe 5s ease-in-out infinite alternate;
}


/* ==========================================================================
   5. VIDEO SECTION (Right after the texts)
   ========================================================================== */
.video-showcase-section {
    position: relative;
    width: 100%;
    padding: clamp(15px, 2.5vw, 30px) 16px clamp(40px, 5.5vw, 70px);
    background: transparent;
    z-index: 10;
}

.video-container {
    width: min(980px, 100%);
    margin: 0 auto;
}

/* ==========================================================================
   6. FLOWER & RED WAVE TRANSITION (Finishes with the flower and footer)
   ========================================================================== */
.flower-footer-transition {
    position: relative;
    width: 100%;
    height: clamp(160px, 20vw, 250px);
    margin-top: -30px;
    margin-bottom: -1px;
    overflow: visible;
    pointer-events: none;
    z-index: 12;
}

.botanical-corner-bl {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: clamp(210px, 32vw, 440px);
    height: auto;
    pointer-events: none;
    z-index: 15;
    filter: drop-shadow(4px 8px 18px rgba(0, 0, 0, 0.16));
}

.botanical-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Hibiscus & Foliage subtle organic sway in the breeze */
.flower-breeze-motion {
    transform-origin: 185px 335px;
    animation: hibiscusBreeze 6s ease-in-out infinite alternate;
}

.golden-sprays {
    transform-origin: 90px 280px;
    animation: goldSprayShimmer 5s ease-in-out infinite alternate;
}

.bottom-wave-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.bottom-wave-svg {
    width: 100%;
    height: 100%;
}

/* Video Section Header */
.video-header {
    text-align: center;
    margin-bottom: clamp(26px, 4vw, 42px);
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(9, 90, 62, 0.1), rgba(245, 166, 35, 0.15));
    border: 1px solid rgba(245, 166, 35, 0.45);
    color: var(--emerald-dark);
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(9, 90, 62, 0.08);
}

.video-badge-icon {
    color: var(--gold-deep);
    animation: goldPulse 2s ease-in-out infinite;
}

.video-section-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.8vw, 2.6rem);
    font-weight: 800;
    color: var(--crimson-deep);
    margin-bottom: 10px;
    line-height: 1.35;
}

.video-section-subheading {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Luxurious Video Player Card Frame */
.video-card-frame {
    position: relative;
    width: 100%;
    background: #0d1e18;
    border-radius: clamp(18px, 2.8vw, 28px);
    padding: clamp(6px, 1vw, 10px);
    box-shadow:
        0 24px 60px rgba(9, 90, 62, 0.18),
        0 10px 25px rgba(0, 0, 0, 0.12);
    border: 3px solid transparent;
    background-image:
        linear-gradient(#071b14, #071b14),
        linear-gradient(135deg, var(--gold-bright) 0%, var(--emerald-main) 50%, var(--crimson-main) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.video-inner-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: clamp(14px, 2.2vw, 22px);
    overflow: hidden;
    background: #04100c;
}

/* HTML5 Video Element */
.event-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom Interactive Overlay */
.video-poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-poster-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(9, 90, 62, 0.4) 0%, rgba(5, 27, 18, 0.85) 60%, rgba(2, 13, 9, 0.96) 100%);
}

.overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-align: center;
}

/* Glowing Play Button */
.play-btn-circle {
    position: relative;
    width: clamp(62px, 8vw, 86px);
    height: clamp(62px, 8vw, 86px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson-bright) 0%, var(--crimson-deep) 100%);
    border: 3px solid var(--gold-bright);
    color: #ffffff;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(216, 25, 33, 0.45);
    transition: transform 0.3s var(--ease-out-bounce), box-shadow 0.3s ease;
}

.play-icon {
    margin-left: 4px;
}

.play-ripple {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    animation: playRipplePulse 2.2s infinite;
}

.play-btn-circle:hover {
    transform: scale(1.12);
    box-shadow: 0 14px 40px rgba(245, 166, 35, 0.6);
}

.overlay-text-block {
    color: #ffffff;
}

.overlay-title {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.overlay-subtitle {
    display: block;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--gold-bright);
    margin-top: 4px;
    opacity: 0.9;
}

/* Video Card Meta / Info Tags */
.video-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 24px);
    padding: clamp(12px, 1.8vw, 18px) 10px 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.82rem, 1.6vw, 0.95rem);
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ==========================================================================
   8. FOOTER SECTION (Starts directly after the video section)
   ========================================================================== */
.celebration-footer {
    position: relative;
    width: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        linear-gradient(165deg, var(--crimson-main) 0%, var(--crimson-deep) 45%, var(--crimson-dark) 85%, var(--crimson-shadow) 100%);
    color: #ffffff;
    overflow: hidden;
    z-index: 10;
    padding-top: clamp(10px, 2vw, 20px);
}

.footer-inner-content {
    position: relative;
    z-index: 2;
    width: min(840px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(25px, 4vw, 45px) 16px clamp(35px, 5vw, 55px);
    text-align: center;
}

/* Circular Crest with BVO Logo in Golden Ring */
.footer-crest-wrap {
    margin: 0 auto clamp(14px, 2vw, 20px);
    display: inline-block;
}

.footer-crest-ring {
    width: clamp(72px, 9vw, 96px);
    height: clamp(72px, 9vw, 96px);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-main) 50%, var(--gold-deep) 100%);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        0 0 25px var(--gold-glow);
    overflow: hidden;
    animation: crestFloat 5s ease-in-out infinite alternate;
}

.footer-crest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
}

.footer-org-title {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: var(--gold-bright);
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-badge {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: clamp(0.8rem, 1.6vw, 0.95rem);
    margin-bottom: 22px;
}

/* Footer Divider Line */
.footer-divider-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(380px, 80%);
    margin: 0 auto 20px;
}

.footer-divider-line span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
}

.footer-divider-line span:last-child {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
}

.footer-divider-line b {
    color: var(--gold-bright);
    font-size: 1.1rem;
    animation: goldPulse 2.5s ease-in-out infinite;
}

.footer-bottom-bar {
    padding-top: 10px;
}

.copyright-text {
    font-size: clamp(0.78rem, 1.5vw, 0.9rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}


/* ==========================================================================
   9. MOTION ANIMATIONS FOR ALL TEXTS & GRAPHICS
   ========================================================================== */

/* --- Entrance Reveal Animations (Staggered) --- */
.motion-reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: revealUp 0.9s var(--ease-smooth) forwards;
}

.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.26s; }
.reveal-3 { animation-delay: 0.42s; }
.reveal-4 { animation-delay: 0.58s; }
.reveal-5 { animation-delay: 0.76s; }
.reveal-6 { animation-delay: 0.94s; }
.reveal-7 { animation-delay: 1.1s; }
.reveal-8 { animation-delay: 1.25s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll-Triggered Reveal Classes --- */
.motion-reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-smooth);
}

.motion-reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Ambient Keyframe Animations --- */

/* Brand Header text soft shimmer */
@keyframes brandShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}

/* Pill badge breathing */
@keyframes pillBreathing {
    0%, 100% {
        box-shadow: 0 8px 24px var(--emerald-glow), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 12px 30px rgba(9, 90, 62, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    }
}

/* Gentle text sway */
@keyframes textSwayGentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Center 'স্বাগতম' title floating */
@keyframes titleFloatMotion {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.015);
    }
}

/* Left & Right Flanking Petal Flourish Waves */
@keyframes flourishWaveLeft {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-3deg) scale(1.05); }
}

@keyframes flourishWaveRight {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.05); }
}

/* Tagline breathing */
@keyframes taglineBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.012); }
}

/* Top-Left Ribbon gentle floating */
@keyframes ribbonFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, -3px); }
}

/* Top-Right Foliage sway */
@keyframes foliageSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2.5deg); }
}

/* Bottom-Left Hibiscus organic breathing */
@keyframes hibiscusBreeze {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(1.8deg) scale(1.02); }
}

/* Golden Sprays subtle shimmer */
@keyframes goldSprayShimmer {
    0%, 100% { opacity: 0.6; transform: rotate(0deg); }
    50% { opacity: 0.85; transform: rotate(-1.5deg); }
}

/* Particle drift */
@keyframes particleDrift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.25;
    }
    50% {
        transform: translate(14px, -24px);
        opacity: 0.65;
    }
}

/* Play button ripple pulse */
@keyframes playRipplePulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Gold star pulse */
@keyframes goldPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Footer crest floating */
@keyframes crestFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}


/* ==========================================================================
   10. RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */

/* --- Tablets & Medium Screens (max-width: 860px) --- */
@media (max-width: 860px) {
    .hero-welcome {
        min-height: auto;
    }

    .welcome-card-content {
        padding-top: 45px;
        padding-bottom: 20px;
    }

    .botanical-corner-bl {
        width: clamp(190px, 34vw, 300px);
        bottom: -10px;
        left: -10px;
    }

    .video-showcase-section {
        padding: 20px 14px 45px;
    }
}

/* --- Mobile Devices (max-width: 580px) --- */
@media (max-width: 580px) {
    .hero-welcome {
        min-height: auto;
    }

    .welcome-card-content {
        width: calc(100% - 20px);
        padding-top: 35px;
        padding-bottom: 15px;
    }

    /* Top crest scaling on mobile */
    .top-crest-ring {
        width: 58px;
        height: 58px;
    }

    /* Keep top ribbons compact so they don't crowd brand */
    .corner-ribbon-tl {
        width: 190px;
        height: 115px;
    }

    .corner-foliage-tr {
        width: 130px;
        height: 120px;
    }

    /* Botanical corner scaled down to not overlap text */
    .botanical-corner-bl {
        width: 175px;
        bottom: -5px;
        left: -10px;
        opacity: 0.95;
    }

    /* Main 'স্বাগতম' container on small mobile */
    .swagatom-container {
        gap: 6px;
    }

    .swagatom-flourish {
        width: 32px;
    }

    .swagatom-swash-wrap {
        width: 200px;
        height: 24px;
        margin-top: -4px;
    }

    /* Tagline text wrap nicely if needed */
    .tagline-block {
        gap: 8px;
    }

    .tagline-line {
        max-width: 40px;
    }

    .tagline-text {
        white-space: normal;
        text-align: center;
        font-size: 1.15rem;
    }

    /* Video player card adjustments */
    .video-showcase-section {
        padding: 35px 12px 50px;
    }

    .video-card-meta {
        flex-direction: column;
        gap: 8px;
    }

    /* Footer adjustments */
    .footer-inner-content {
        padding-top: 20px;
        padding-bottom: 35px;
    }
}

/* --- Very Small Devices (max-width: 380px) --- */
@media (max-width: 380px) {
    .top-crest-ring {
        width: 48px;
        height: 48px;
        padding: 2.5px;
    }

    .brand-header {
        gap: 8px;
    }

    .brand-text {
        font-size: 1.8rem;
    }

    .org-pill {
        font-size: 0.92rem;
        padding: 6px 16px;
    }

    .occasion-title {
        font-size: 1.15rem;
    }

    .swagatom-stroke-layer,
    .swagatom-fill-layer {
        font-size: 3.6rem;
    }

    .swagatom-flourish {
        width: 24px;
    }

    .botanical-corner-bl {
        width: 140px;
    }
}

/* --- Accessibility: Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .motion-reveal,
    .motion-reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}
