/* =========================================================
   home.css : home page ke liye animation + polish
   Save as: public/css/home.css
   Sab rules .hm ke andar hain, isliye purani site.css nahi bigdegi.
   ========================================================= */

/* ---------- scroll progress bar ---------- */
.hm-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:300;pointer-events:none;
  transform-origin:left;transform:scaleX(0);background:linear-gradient(90deg,#ff9a00,#f03c00,#1d4ed8)}

/* ---------- reveal (sirf tab chhupta hai jab JS chal raha ho) ---------- */
.hm-js .hm .rv{opacity:0}
.hm .rv.in{opacity:1;animation:hm-rise .7s var(--d,0ms) cubic-bezier(.2,.7,.2,1) backwards}
.hm-show .hm .rv{opacity:1}

@keyframes hm-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes hm-in-left{from{opacity:0;transform:translateX(-46px)}to{opacity:1;transform:none}}
@keyframes hm-in-right{from{opacity:0;transform:translateX(46px)}to{opacity:1;transform:none}}
@keyframes hm-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes hm-kb{from{transform:scale(1.09)}to{transform:scale(1)}}
@keyframes hm-ring{0%{box-shadow:0 0 0 0 rgba(255,122,0,.40)}70%,100%{box-shadow:0 0 0 16px rgba(255,122,0,0)}}
@keyframes hm-bob{0%,100%{transform:translateY(0)}40%{transform:translateY(-7px)}70%{transform:translateY(2px)}}

/* ---------- hero: pehli nazar ---------- */
.hm .hero>.leader:first-child{animation:hm-in-left .9s .15s cubic-bezier(.2,.7,.2,1) backwards}
.hm .hero>.leader:last-child{animation:hm-in-right .9s .15s cubic-bezier(.2,.7,.2,1) backwards}
.hm .leader img{animation:hm-ring 3.2s ease-out 1.2s infinite;transition:transform .35s}
.hm .leader:hover img{transform:scale(1.04)}
.hm .slider{overflow:hidden}
.hm .slide.on img{animation:hm-kb 8s ease-out both}
.hm .slide.on h4{animation:hm-up .7s .3s ease-out backwards}

/* ---------- intro band (hero ke neeche) ---------- */
.hm-intro{padding:46px 0 10px}
.hm-intro-in{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap}
.hm-intro h1{margin:0 0 10px;max-width:22ch;font:700 clamp(1.7rem,3.2vw,2.5rem)/1.15 'Bricolage Grotesque',Hind,sans-serif;color:#0b1f44}
.hm-intro p{margin:0;max-width:62ch;font-size:1.05rem;color:#51607a}
.hm-intro-btns{display:flex;gap:12px;flex-wrap:wrap}
.hm-ghost{display:inline-flex;align-items:center;padding:10px 24px;border:2px solid #0b1f44;border-radius:40px;
  font:600 .95rem 'Bricolage Grotesque',Hind,sans-serif;color:#0b1f44;text-decoration:none;transition:.2s}
.hm-ghost:hover{background:#0b1f44;color:#fff}

/* ---------- cards: hover polish ---------- */
.hm .panel{transition:transform .3s,box-shadow .3s}
.hm .panel:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(11,31,68,.16)}
.hm .news li{transition:transform .25s,background .25s}
.hm .news li:hover{transform:translateX(6px)}

.hm .tile,.hm .useful a{position:relative;overflow:hidden;transition:transform .3s,box-shadow .3s,border-color .3s}
.hm .tile::after,.hm .useful a::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.38) 50%,transparent 65%);transform:translateX(-120%);transition:transform .75s}
.hm .tile:hover,.hm .useful a:hover{transform:translateY(-6px);box-shadow:0 18px 36px rgba(11,31,68,.18)}
.hm .tile:hover::after,.hm .useful a:hover::after{transform:translateX(120%)}
.hm .tile i,.hm .useful i{display:inline-block;transition:transform .3s}
.hm .tile:hover i{transform:scale(1.18) rotate(-6deg)}
.hm .useful a:hover i{animation:hm-bob .6s}

.hm .svc figure,.hm .imp a,.hm .sbox{transition:transform .3s,box-shadow .3s}
.hm .svc figure:hover,.hm .sbox:hover{transform:translateY(-6px);box-shadow:0 20px 44px rgba(11,31,68,.20)}
.hm .svc figcaption{transition:padding-bottom .3s}
.hm .svc figure:hover figcaption{padding-bottom:26px}
.hm .imp a:hover{transform:translateY(-5px);box-shadow:0 14px 28px rgba(11,31,68,.14)}

.hm .btn,.hm .hm-ghost{position:relative}
.hm .btn:hover{transform:translateY(-2px)}

.hm .st{transition:transform .3s}
.hm .st:hover{transform:translateY(-4px)}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .hm *,.hm *::after{animation:none!important;transition:none!important}
  .hm-js .hm .rv{opacity:1!important}
  .hm-progress{display:none}
}

/* ---------- mobile ---------- */
@media (max-width:640px){
  .hm-intro{padding-top:30px}
  .hm .hero>.leader:first-child,.hm .hero>.leader:last-child{animation-name:hm-up}
}

/* =========================================================
   BANNER: thoda bada, upar ka naam na kate, zoom animation waisi hi
   (sabse END me rakha hai, isliye fx.css ke rules ko override karta hai)
   ========================================================= */
html body .hm .bn .slider{
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:1920 / 540;   /* chhota karna ho to 500, aur bada karna ho to 580 */
}
html body .hm .bn .slide{height:100% !important}
html body .hm .bn .slide img{
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center top !important;
}
@media (max-width:992px){
  html body .hm .bn .slider{aspect-ratio:16 / 8 !important}
}
@media (max-width:560px){
  html body .hm .bn .slider{aspect-ratio:16 / 9 !important}
}