/* ===== Mian GSM Lab — modern motion layer ===== */

/* scroll progress bar */
.mgl-progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:120;
  background:linear-gradient(90deg,var(--accent,#2F6BFF),#2F6BFF);
  box-shadow:0 0 12px rgba(60,140,255,.55);transition:width .08s linear}

/* animated glow orbs inside hero */
.hero{position:relative;overflow:hidden}
.hero>*{position:relative;z-index:1}
.mgl-orbs{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.mgl-orb{position:absolute;border-radius:50%;filter:blur(70px);opacity:.34;
  animation:mglFloat 20s ease-in-out infinite}
.mgl-orb.a{width:360px;height:360px;background:radial-gradient(circle,#2f6bff,transparent 70%);top:-80px;left:-60px}
.mgl-orb.b{width:320px;height:320px;background:radial-gradient(circle,#2F6BFF,transparent 70%);top:80px;right:-70px;animation-delay:-7s}
.mgl-orb.c{width:280px;height:280px;background:radial-gradient(circle,#7b5cff,transparent 70%);bottom:-90px;left:34%;animation-delay:-13s}
@keyframes mglFloat{0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(32px,-26px) scale(1.06)}
  66%{transform:translate(-24px,20px) scale(.96)}}

/* scroll reveal */
.mgl-anim{opacity:0;transform:translateY(22px);will-change:opacity,transform}
.mgl-anim.in{opacity:1;transform:none;
  transition:opacity .62s cubic-bezier(.2,.7,.2,1),transform .62s cubic-bezier(.2,.7,.2,1)}
.mgl-anim.card,.mgl-anim.tile{transform:translateY(24px) scale(.975)}
.mgl-anim.card.in,.mgl-anim.tile.in{transform:none}

/* card / tile hover lift + accent glow */
.card,.tile{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.card:hover,.tile:hover{transform:translateY(-5px);
  border-color:color-mix(in srgb,var(--accent,#2F6BFF) 48%,transparent);
  box-shadow:0 20px 44px -22px rgba(60,140,255,.55)}

/* button shine sweep */
.btn.p,.cta,.btn-primary,.hero-cta .btn{position:relative;overflow:hidden}
.btn.p::after,.cta::after,.btn-primary::after,.hero-cta .btn::after{content:"";position:absolute;
  top:0;left:-140%;width:55%;height:100%;transform:skewX(-20deg);pointer-events:none;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.4),transparent);
  transition:left .6s ease}
.btn.p:hover::after,.cta:hover::after,.btn-primary:hover::after,.hero-cta .btn:hover::after{left:150%}

/* animated gradient on the accent headline word */
.hero h1 .grad,.hero h1 .accent{
  background:linear-gradient(90deg,#2F6BFF,#2F6BFF,#7b5cff,#2F6BFF);
  background-size:260% auto;-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;animation:mglShimmer 6s linear infinite}
@keyframes mglShimmer{to{background-position:260% center}}

/* stat number pop when counting */
.stats .n,.cr-stats .n{transition:transform .3s ease}

@media (prefers-reduced-motion:reduce){
  .mgl-anim,.mgl-anim.in{opacity:1!important;transform:none!important;transition:none!important}
  .mgl-orb{animation:none}
  .hero h1 .grad,.hero h1 .accent{animation:none}
}
