/*
 * ─────────────────────────────────────────────────────────────────────────────
 *  UPWARD JOBS — PREMIUM MOTION SYSTEM  (home-premium-motion.css v2 — SAFE)
 *  RULES:
 *  • NO header styles — header is left 100% as-is
 *  • NO opacity:0 on page elements that could block scroll
 *  • Only hover polish, card interactions, FAQ, form focus, CTA glow
 *  • All scroll-reveal opacity starts are only on .pm-reveal / .pm-scale-reveal
 *    which are used on SPECIFIC small wrappers, not whole sections
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. CUSTOM PROPERTIES — Motion Tokens
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --ease-spring:    cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. REDUCED MOTION — skip all animations
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (prefers-reduced-motion: reduce) {
  .pm-reveal, .pm-scale-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pm-mouse-glow { display: none !important; }
  .pm-float      { animation: none !important; }
  .home-hero-badge-dot, .home-marquee-item i { animation: none !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. SCROLL REVEAL — only used on explicitly tagged small wrappers
      NOT on sections, NOT on anything full-width that could block scroll
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pm-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
  will-change: opacity, transform;
}
.pm-reveal.pm-in {
  opacity: 1;
  transform: translateY(0);
}

.pm-scale-reveal {
  opacity: 0;
  transform: scale(0.97) translateY(18px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-spring);
  will-change: opacity, transform;
}
.pm-scale-reveal.pm-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. HERO — Mouse Glow (absolutely positioned, no layout impact)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pm-mouse-glow {
  position: absolute;
  pointer-events: none;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,210,31,0.06) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: left 1s ease, top 1s ease;
  z-index: 1;
  will-change: left, top;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. HERO BADGE — Subtle pulse on the green dot
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@keyframes pm-pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(142,210,31,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(142,210,31,0); }
  100% { box-shadow: 0 0 0 0   rgba(142,210,31,0); }
}
.home-hero-badge-dot {
  animation: pm-pulse-ring 2.6s ease-out infinite;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. MARQUEE — Icon dots pulse
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.home-marquee-item i {
  display: inline-block;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. GLOBAL BUTTON HOVER POLISH
      IMPORTANT: only applies on hover — no layout-breaking initial state
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  transition:
    transform  280ms var(--ease-spring),
    box-shadow 280ms ease,
    background 200ms ease,
    color      200ms ease !important;
}
.btn:hover {
  transform: translateY(-2px) !important;
}
.btn-g:hover  { box-shadow: 0 8px 24px rgba(142,210,31,0.30) !important; }
.btn-gh:hover { box-shadow: 0 8px 24px rgba(6,30,54,0.15) !important; }
.btn-w:hover  { box-shadow: 0 8px 24px rgba(255,255,255,0.15) !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. JOURNEY CARDS — Hover elevation only (NO initial opacity:0)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (min-width: 901px) {
  .journey-step-card {
    transition:
      transform    350ms var(--ease-spring),
      box-shadow   350ms ease,
      border-color 250ms ease !important;
  }
  .journey-step-card:nth-of-type(1):hover { transform: translateY(-5px) !important; }
  .journey-step-card:nth-of-type(2):hover { transform: translateY(11px)  !important; }
  .journey-step-card:nth-of-type(3):hover { transform: translateY(27px)  !important; }
  .journey-step-card:nth-of-type(4):hover { transform: translateY(43px)  !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. SERVICE CARDS — hover only
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.home-svc-row {
  transition:
    transform    300ms var(--ease-spring),
    box-shadow   300ms ease,
    border-color 200ms ease !important;
}
.home-svc-row:hover {
  transform:  translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(6,30,54,0.07) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. TECH ECOSYSTEM — Category hover (no initial opacity changes)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.role-cat-block {
  transition:
    transform    300ms var(--ease-spring),
    box-shadow   300ms ease,
    border-color 200ms ease,
    background   200ms ease,
    opacity      250ms ease !important;
}
/* Dim siblings on hover — JS adds pm-has-hover to parent */
.role-categories-cards.pm-has-hover .role-cat-block:not(.pm-hovered) {
  opacity: 0.45;
}
.role-categories-cards.pm-has-hover .role-cat-block.pm-hovered {
  opacity: 1;
}

/* Filter tabs */
.ftab {
  transition: all 230ms var(--ease-spring) !important;
}
.ftab:hover  { transform: translateY(-2px); }
.ftab.active { box-shadow: 0 4px 14px rgba(6,30,54,0.12); }

/* Role pills hover */
.rpill {
  transition:
    opacity      300ms ease,
    transform    300ms var(--ease-spring),
    border-color 180ms ease,
    color        180ms ease !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. ARCHITECTURE STAGE HIGHLIGHT (pm-stage-active — added by JS)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.flow-five-step {
  transition: transform 350ms var(--ease-spring), opacity 350ms ease !important;
}
.flow-five-step.pm-stage-active .glass-node {
  border-color: rgba(142,210,31,0.65) !important;
  box-shadow: 0 6px 28px rgba(142,210,31,0.15), inset 0 0 20px rgba(255,255,255,0.5) !important;
  transform: translateY(-4px);
  transition: all 450ms var(--ease-spring);
}
.flow-five-step.pm-stage-active .flow-five-icon {
  background: #8ED21F !important;
  color: #061E36 !important;
  transform: scale(1.1);
}
.flow-five-step.pm-stage-active h4 { color: #5c8a14 !important; }

/* Timeline line fill */
.pm-timeline-line {
  position: absolute;
  top: 42px; left: 0; right: 0;
  height: 2px;
  background: #DCE7EF;
  z-index: 0; border-radius: 2px;
  overflow: hidden; pointer-events: none;
}
.pm-timeline-line-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #8ED21F, #a8e432);
  border-radius: 2px;
  transition: width 1.2s var(--ease-out-expo);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. COMPANY LOGO CARDS — hover only
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.tcs-card {
  transition:
    box-shadow   260ms ease,
    transform    260ms var(--ease-spring),
    border-color 180ms ease !important;
}
.tcs-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 10px 32px rgba(6,30,54,0.12) !important;
}
.tcs-logo-wrap img {
  transition: filter 260ms ease, transform 260ms ease;
}
.tcs-card:hover .tcs-logo-wrap img {
  filter: grayscale(0%) opacity(1) !important;
  transform: scale(1.04);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. FAQ ACCORDION — smooth open/close (hover only, NO initial opacity)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.uj-faq-item {
  transition: border-color 230ms ease, box-shadow 230ms ease, background 230ms ease !important;
}
.uj-faq-item.active {
  background: rgba(240,250,224,0.45) !important;
  border-color: rgba(142,210,31,0.45) !important;
  box-shadow: 0 4px 20px rgba(142,210,31,0.07) !important;
}
.uj-faq-answer {
  transition: max-height 380ms var(--ease-out-quart), padding 380ms var(--ease-out-quart) !important;
}
.uj-faq-question .uj-faq-icon {
  transition: transform 320ms var(--ease-spring), background 230ms ease, color 230ms ease !important;
}
.uj-faq-item.active .uj-faq-icon { transform: rotate(180deg) !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. CONTACT FORM — focus glow only
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#mainContactForm .f-inp,
#mainContactForm .f-txt,
#mainContactForm .f-sel {
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease !important;
}
#mainContactForm .f-inp:focus,
#mainContactForm .f-txt:focus,
#mainContactForm .f-sel:focus {
  border-color: #8ED21F !important;
  box-shadow: 0 0 0 3px rgba(142,210,31,0.14) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. FINAL CTA — ambient lime glow pulse (purely visual on existing panel)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.uj-cta-panel {
  position: relative;
  overflow: hidden;
}
.uj-cta-panel::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(142,210,31,0.07) 0%, transparent 70%);
  animation: pm-cta-pulse 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes pm-cta-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%       { transform: scale(1.12); opacity: 1;   }
}
.uj-cta-panel > * { position: relative; z-index: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. CONTROL CARDS — hover only
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.control-card {
  transition: transform 280ms var(--ease-spring), box-shadow 280ms ease, border-color 200ms ease !important;
}
.control-card:hover { transform: translateY(-3px) !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   17. FOOTER LINKS — subtle right-shift on hover
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer a {
  transition: color 180ms ease, transform 180ms ease !important;
  display: inline-block;
}
.site-footer a:hover { transform: translateX(2px) !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   18. STATE-SHIFT COMPARISON — border trace mouse effect
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.border-trace {
  background: radial-gradient(circle 180px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(142,210,31,0.28), transparent 80%);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19. MOBILE — disable any remaining effects
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  .pm-mouse-glow { display: none !important; }
  .flow-five-step.pm-stage-active .glass-node { transform: none !important; }
  .home-contact-photo { transition: none !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   20. 2026-TIER PREMIUM INTERACTION LAYER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Staggered Slide-Up & Fade */
.pm-reveal-up {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart) !important;
}
.pm-reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.pm-reveal-stagger > *:nth-child(1) { transition-delay: 0.0s !important; }
.pm-reveal-stagger > *:nth-child(2) { transition-delay: 0.1s !important; }
.pm-reveal-stagger > *:nth-child(3) { transition-delay: 0.2s !important; }
.pm-reveal-stagger > *:nth-child(4) { transition-delay: 0.3s !important; }
.pm-reveal-stagger > *:nth-child(5) { transition-delay: 0.4s !important; }
.pm-reveal-stagger > *:nth-child(6) { transition-delay: 0.5s !important; }

/* Companies Logo Marquee */
.tcs-slider-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.tcs-row {
  display: flex;
  width: max-content;
  animation: pmMarquee 40s linear infinite !important;
}
.tcs-row:hover {
  animation-play-state: paused !important;
}
@keyframes pmMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Spotlight Effect */
.pm-spotlight {
  transition: transform 0.6s var(--ease-out-quart), box-shadow 0.6s var(--ease-out-quart), border-color 0.6s ease !important;
}
.pm-spotlight.pm-spotlight-active {
  transform: scale(1.02) !important;
  box-shadow: 0 0 25px rgba(142, 210, 31, 0.4) !important;
  border-color: rgba(142, 210, 31, 0.8) !important;
}

/* Glass-morphic Parallax */
.pm-glass-parallax {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

/* Magnetic CTA Hover */
.btn-magnetic {
  position: relative;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
  will-change: transform;
}
.btn-magnetic:hover {
  box-shadow: 0 0 15px rgba(142, 210, 31, 0.6) !important;
  z-index: 10;
}
