/* MyTECH Pharma – scenic effects (appear / disappear on scroll, parallax, tilt).
   Uses the individual translate/scale/rotate properties so it never fights
   with the hover transforms already on cards and buttons. */

/* Scroll progress bar */
.fx-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:200;pointer-events:none;
  background:linear-gradient(90deg,var(--yellow),#ffb347 50%,var(--blue));transform-origin:0 50%;transform:scaleX(0)}

/* Elements that appear when they enter the screen and fade away when they leave */
.js .fx{opacity:0;transition:opacity .9s var(--ease),translate .9s var(--ease),scale .9s var(--ease),
  rotate .9s var(--ease),filter .9s var(--ease),clip-path 1.1s var(--ease);transition-delay:calc(var(--fx-i,0) * 70ms)}
.js .fx-up{translate:0 46px}
.js .fx-left{translate:-60px 0}
.js .fx-right{translate:60px 0}
.js .fx-zoom{scale:.86;filter:blur(8px)}
.js .fx-blur{filter:blur(12px);translate:0 18px}
.js .fx-tilt{rotate:-4deg;translate:0 40px;scale:.96}
.js .fx-wipe{clip-path:inset(0 100% 0 0 round 18px)}
.js .fx.fx-in{opacity:1;translate:0 0;scale:1;rotate:0deg;filter:none}
.js .fx-wipe.fx-in{clip-path:inset(-20% -20% -20% -20% round 0)}
/* leaving the screen upwards: drift up and fade (instead of dropping back down) */
.js .fx.fx-above{translate:0 -40px;scale:.97}

/* Headings split into words: each word rises from a blur */
.fx-words .fxw{display:inline-block;white-space:nowrap}
.js .fx-words .fxw{opacity:0;filter:blur(10px);translate:0 .55em;
  transition:opacity .8s var(--ease),filter .8s var(--ease),translate .8s var(--ease);transition-delay:calc(var(--w) * 60ms)}
.js .fx-words.fx-in .fxw{opacity:1;filter:none;translate:0 0}

/* Existing letter-by-letter headings and reveals also fade back out */
.split:not(.in) .ch{transition-delay:0s}

/* Shimmer line under section titles */
.section-head{--sheen:0}
.section-head:after{content:"";display:block;height:3px;width:90px;margin-top:6px;border-radius:3px;
  background:linear-gradient(90deg,var(--yellow),var(--blue));transform-origin:0 50%;
  transform:scaleX(var(--sheen));transition:transform 1s var(--ease)}
.section-head.center:after{margin-left:auto;margin-right:auto;transform-origin:50% 50%}
.section-head.fx-in{--sheen:1}

/* Hero: glowing orbs drifting behind the text + parallax capsules */
.hero .slide:after{content:"";position:absolute;inset:-20%;pointer-events:none;
  background:radial-gradient(28% 34% at 22% 30%,#ef790540,transparent 70%),
             radial-gradient(30% 36% at 78% 70%,#5fb4f060,transparent 70%),
             radial-gradient(22% 28% at 60% 18%,#ffffff22,transparent 70%);
  animation:fx-orbs 18s ease-in-out infinite alternate}
@keyframes fx-orbs{0%{transform:translate3d(-3%,-2%,0) rotate(0deg)}100%{transform:translate3d(3%,3%,0) rotate(8deg)}}
.hero .art{translate:var(--px,0) var(--py,0);transition:translate .6s var(--ease)}
.hero .hero-inner{translate:calc(var(--px,0) * -.35) calc(var(--py,0) * -.35);transition:translate .6s var(--ease)}
.hero .slide.active h1,.hero .slide.active .h1{text-shadow:0 10px 40px #0a2a4566}

/* Light sweep across the credentials band */
.creds{overflow:hidden}
.creds:before{content:"";position:absolute;top:0;bottom:0;width:30%;left:-40%;pointer-events:none;
  background:linear-gradient(100deg,transparent,#ffffff1c,transparent);animation:fx-sweep 7s ease-in-out infinite}
@keyframes fx-sweep{0%{left:-40%}55%,100%{left:120%}}

/* Card tilt following the mouse */
.fx-3d{transform-style:preserve-3d;rotate:var(--rx,0) var(--ry,0) 0 0deg}
.dcard.fx-3d,.dcta.fx-3d,.card.fx-3d,.post-card.fx-3d{rotate:none;transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}
.dcard.fx-3d:hover{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-6px)}
.dcard .dicon{transition:background .35s,color .35s,scale .5s var(--ease),rotate .5s var(--ease)}
.dcard:hover .dicon{scale:1.12;rotate:-8deg}

/* Floating logo panel */
.v-panel{animation:fx-float 8s ease-in-out infinite}
@keyframes fx-float{0%,100%{translate:0 0}50%{translate:0 -14px}}

/* Scroll-linked image zoom (set from JS) */
.fx-par{will-change:translate}

@media (prefers-reduced-motion:reduce){
  .js .fx,.js .fx-words .fxw{opacity:1!important;translate:none!important;scale:none!important;rotate:none!important;filter:none!important;clip-path:none!important}
  .hero .slide:after,.creds:before,.v-panel{animation:none!important}
  .fx-progress{display:none}
}
