/* Home page ki animations -- sirf CSS, JavaScript nahi.

   1. Hero ka text: page khulte hi ek ke baad ek upar aata hai.
   2. Baaki sections: scroll karne par halka "fade + upar uthna" (CSS scroll-driven animation).
      Jin browsers mein ye supported nahi hai wahan sections bina animation ke seedhe dikhte hain
      (kuch chhupta nahi), isliye content kabhi gayab nahi hota.
   Hero aur Dr Pathik wale pinned (scroll-stack) section ka apna animation hai, unhe chhod diya hai. */

@keyframes homeRevealUp {
    from { opacity: 0; transform: translate3d(0, 36px, 0); }
    to   { opacity: 1; transform: none; }
}

/* ---- Hero text: page load par ---- */
.hero-banner-content > * {
    animation: homeRevealUp .9s cubic-bezier(.22, .61, .36, 1) both;
}
.hero-banner-content > *:nth-child(2) { animation-delay: .15s; }
.hero-banner-content > *:nth-child(3) { animation-delay: .3s; }
.hero-banner-content > *:nth-child(4) { animation-delay: .45s; }

/* ---- Sections: scroll par ---- */
@supports (animation-timeline: view()) {
    section:not(.hero-banner):not(.community-home) > :not(script):not(style):not(link) {
        animation: homeRevealUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner-content > *,
    section > * {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}
