/* Hiker Web Masters – page animations. Safe to delete: remove this file, js/animations.js and their <link>/<script> tags. */

/* ---- scroll reveal (only active when JS has added .js-anim to <html>) ---- */
.js-anim .reveal{opacity:0;transform:translate3d(0,32px,0);
  transition:opacity .9s cubic-bezier(.22,.61,.36,1),transform .9s cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--d,0ms);will-change:opacity,transform}
.js-anim .reveal.reveal-left{transform:translate3d(-40px,0,0)}
.js-anim .reveal.reveal-right{transform:translate3d(40px,0,0)}
.js-anim .reveal.reveal-zoom{transform:scale(.94)}
.js-anim .reveal.in{opacity:1;transform:none}

/* divider line draws itself */
.js-anim .divider.reveal{transform:scaleX(0);transform-origin:left center;opacity:1;transition-duration:.9s}
.js-anim .divider.reveal.in{transform:scaleX(1)}

/* ---- hover polish ---- */
.system-card,.feature-item,.service,.block-33{transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}
.feature-item:hover{transform:translateY(-6px);box-shadow:0 14px 32px rgba(0,0,0,.09);border-color:#f4b214}
.service:hover{transform:translateY(-6px)}
.system-card:hover{border-color:#f4b214}
.system-card .icon,.feature-item .icon{transition:transform .4s ease}
.system-card:hover .icon,.feature-item:hover .icon{transform:scale(1.18) rotate(-4deg)}
.work-thumb{overflow:hidden}
.work-thumb img{transition:transform .8s cubic-bezier(.22,.61,.36,1)}
.work-thumb:hover img{transform:scale(1.07)}
.btn{transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease,color .25s ease,border-color .25s ease}
.btn:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.15)}
.btn:active{transform:translateY(-1px)}
.footer-social a{transition:transform .25s ease,background-color .25s ease}
.footer-social a:hover{transform:translateY(-4px) scale(1.1)}
.navbar-nav .nav-link{transition:color .25s ease}

/* gentle float on the system-page visual icon */
.system-visual .icon{display:inline-block;animation:hwmFloat 4.5s ease-in-out infinite}
@keyframes hwmFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* demo box accent pulses once when it appears */
.demo-box.in{animation:hwmGlow 1.6s ease .5s 1}
@keyframes hwmGlow{0%{box-shadow:0 0 0 0 rgba(244,178,20,.55)}100%{box-shadow:0 0 0 18px rgba(244,178,20,0)}}

/* ---- scroll progress bar + back to top ---- */
#hwm-progress{position:fixed;top:0;left:0;height:3px;width:0;background:#f4b214;z-index:100000;pointer-events:none;transition:width .1s linear}
#hwm-top{position:fixed;right:20px;bottom:20px;width:46px;height:46px;border:0;border-radius:50%;background:#f4b214;color:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.25);cursor:pointer;z-index:9999;display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transform:translateY(16px);transition:opacity .3s ease,transform .3s ease,visibility .3s}
#hwm-top.show{opacity:1;visibility:visible;transform:none}
#hwm-top:hover{background:#212529;transform:translateY(-4px)}
#hwm-top svg{width:20px;height:20px}

/* ---- respect users who prefer less motion ---- */
@media (prefers-reduced-motion:reduce){
  .js-anim .reveal,.js-anim .reveal.in{opacity:1!important;transform:none!important;transition:none!important}
  .system-visual .icon,.demo-box.in{animation:none!important}
  .btn,.system-card,.feature-item,.service,.work-thumb img{transition:none!important}
  #hwm-progress{transition:none}
}
