/* ============================================================
   InfoCareer — motion graphics layer
   Hero scene, floating icons, scroll reveals, hover micro-motion.
   Everything switches off for visitors who prefer reduced motion.
   ============================================================ */

/* ---------- Hero scene ---------- */
.blob{animation:drift 18s ease-in-out infinite alternate}
.blob.b2{animation-duration:22s;animation-delay:-6s}
.blob.b3{animation-duration:16s;animation-delay:-3s}
@keyframes drift{
  0%{transform:translate(0,0) scale(1)}
  50%{transform:translate(40px,-30px) scale(1.08)}
  100%{transform:translate(-30px,25px) scale(.95)}
}
.flight{position:absolute;inset:0;width:100%;height:100%;opacity:.9}
.flight-path{fill:none;stroke:#b9a8ff;stroke-width:2;stroke-dasharray:6 10;animation:dash-move 2.2s linear infinite}
@keyframes dash-move{to{stroke-dashoffset:-32}}
.ring{position:absolute;border-radius:50%;border:2px dashed rgba(124,92,252,.28)}
.ring.r1{width:220px;height:220px;right:30%;top:-70px;animation:spin 40s linear infinite}
.ring.r2{width:140px;height:140px;left:-40px;bottom:40px;border-color:rgba(20,184,166,.35);animation:spin 30s linear infinite reverse}
@keyframes spin{to{transform:rotate(360deg)}}
.dotgrid{position:absolute;right:4%;bottom:12%;width:140px;height:100px;background-image:radial-gradient(rgba(244,122,32,.45) 2px,transparent 2.5px);background-size:16px 16px;animation:bob 6s ease-in-out infinite}

.doodle{animation:bob 6s ease-in-out infinite}
.d-cap{animation:tilt 5s ease-in-out infinite}
.d-s1,.d-h1,.d-star{animation:twinkle 3.2s ease-in-out infinite}
.d-sq path,.d-h2 path,.d-j path{stroke-dasharray:24 10;animation:dash-move 1.6s linear infinite}
.d-plane{animation:glide 9s ease-in-out infinite}
.d-bulb{animation:swing 3s ease-in-out infinite;transform-origin:50% 0}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes tilt{0%,100%{transform:rotate(10deg) translateY(0)}50%{transform:rotate(-4deg) translateY(-10px)}}
@keyframes twinkle{0%,100%{transform:scale(1) rotate(0);opacity:1}50%{transform:scale(.7) rotate(25deg);opacity:.6}}
@keyframes glide{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(-30px,14px) rotate(-6deg)}}
@keyframes swing{0%,100%{transform:rotate(8deg)}50%{transform:rotate(-8deg)}}

/* floating icon bubbles around the plan */
.float-ic{position:absolute;z-index:3;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#fff;color:var(--c);border:2px solid var(--ct);box-shadow:0 14px 28px -14px var(--c);animation:float 7s ease-in-out infinite}
.float-ic svg{width:24px;height:24px}
.fi1{left:-34px;top:12%;animation-delay:-1s}
.fi2{right:-26px;top:38%;animation-duration:8s}
.fi3{right:16%;top:-40px;animation-duration:6s;animation-delay:-2s}
.fi4{right:-10px;bottom:28%;animation-duration:9s;animation-delay:-4s;display:none}
@keyframes float{
  0%,100%{transform:translate(0,0) rotate(-4deg)}
  33%{transform:translate(6px,-14px) rotate(4deg)}
  66%{transform:translate(-6px,-6px) rotate(-2deg)}
}

/* plan: scanning "today" line, shimmering bars, bobbing hand-note */
.gantt-body{position:relative}
.gantt-scan{position:absolute;top:0;bottom:0;left:110px;width:2px;background:linear-gradient(var(--teal),var(--violet));border-radius:2px;z-index:2;animation:scan 8s cubic-bezier(.6,0,.4,1) 2.4s infinite;opacity:0}
.gantt-scan::before{content:"";position:absolute;top:-5px;left:-4px;width:10px;height:10px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px rgba(20,184,166,.25)}
@keyframes scan{
  0%{left:110px;opacity:0}
  8%{opacity:1}
  85%{left:calc(100% - 6px);opacity:1}
  100%{left:calc(100% - 6px);opacity:0}
}
.gantt-bar{overflow:hidden}
.gantt-bar::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);transform:translateX(-120%);animation:shine 4.5s ease-in-out infinite}
.gantt-bar.b2::after{animation-delay:.6s}.gantt-bar.b3::after{animation-delay:1.2s}.gantt-bar.b4::after{animation-delay:1.8s}
@keyframes shine{0%,55%{transform:translateX(-120%)}80%,100%{transform:translateX(120%)}}
.gantt-milestone{animation:ms-pop .5s 1.9s cubic-bezier(.3,1.6,.5,1) forwards,trophy 2.6s 2.6s ease-in-out infinite}
@keyframes trophy{0%,100%{box-shadow:0 0 0 6px rgba(251,191,36,.25)}50%{box-shadow:0 0 0 12px rgba(251,191,36,.08)}}
.hand-note{animation:bob 4s ease-in-out infinite}
.gantt{animation:card-in .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes card-in{from{opacity:0;transform:translateY(24px) rotate(-1.5deg)}to{opacity:1;transform:none}}

/* hero copy: staggered entrance */
.hero-copy>*{animation:rise .8s cubic-bezier(.2,.8,.2,1) both}
.hero-copy>*:nth-child(2){animation-delay:.12s}
.hero-copy>*:nth-child(3){animation-delay:.24s}
.hero-copy>*:nth-child(4){animation-delay:.36s}
.hero-copy>*:nth-child(5){animation-delay:.48s}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.hero h1 .hl{background-size:0% 100%;background-repeat:no-repeat;animation:marker 1s .9s ease-out forwards}
.hero h1 .hl{background-image:linear-gradient(transparent 64%,#ffe08a 64%,#ffe08a 92%,transparent 92%);background-color:transparent}
@keyframes marker{to{background-size:100% 100%}}

/* ---------- Buttons: shine sweep ---------- */
.btn-primary{position:relative;overflow:hidden}
.btn-primary::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.4) 50%,transparent 65%);transform:translateX(-130%);transition:transform .7s ease}
.btn-primary:hover::after{transform:translateX(130%)}
.btn svg{transition:transform .25s}
.btn:hover svg{transform:translateX(2px) rotate(-6deg)}

/* ---------- Floating buttons ---------- */
.wa-float{animation:wa-in .6s 1s both,wa-ping 3.5s 3s ease-in-out infinite}
@keyframes wa-in{from{opacity:0;transform:translateY(20px) scale(.9)}to{opacity:1;transform:none}}
@keyframes wa-ping{0%,90%,100%{box-shadow:0 14px 30px -10px rgba(31,168,85,.6)}45%{box-shadow:0 0 0 10px rgba(31,168,85,.12),0 14px 30px -10px rgba(31,168,85,.6)}}
.webinar-tab{animation:wa-in .6s 1.3s both,nudge 6s 4s ease-in-out infinite}
@keyframes nudge{0%,92%,100%{transform:none}94%{transform:rotate(-4deg)}96%{transform:rotate(4deg)}98%{transform:rotate(-2deg)}}

/* ---------- Scroll reveal (added by ic.js) ---------- */
.js .rv{opacity:0;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1);transition-delay:var(--rd,0s)}
.js .rv.up{transform:translateY(28px)}
.js .rv.pop{transform:scale(.88) translateY(18px)}
.js .rv.left{transform:translateX(-36px)}
.js .rv.right{transform:translateX(36px)}
.js .rv.is-in{opacity:1;transform:none}

/* ---------- Journey ---------- */
.journey::before{transform:scaleX(0);transform-origin:left;transition:transform 1.4s cubic-bezier(.6,0,.2,1) .2s}
.journey.is-in::before{transform:scaleX(1)}
.journey-step .icon-dot{position:relative}
.journey-step .icon-dot::after{content:"";position:absolute;inset:-8px;border-radius:50%;border:2px solid var(--c);opacity:0;animation:ring-pulse 3s ease-out infinite}
.journey-step:nth-child(2) .icon-dot::after{animation-delay:.75s}
.journey-step:nth-child(3) .icon-dot::after{animation-delay:1.5s}
.journey-step:nth-child(4) .icon-dot::after{animation-delay:2.25s}
@keyframes ring-pulse{0%{transform:scale(.85);opacity:.7}100%{transform:scale(1.45);opacity:0}}
.journey-step:hover .icon-dot svg{animation:wiggle .6s ease}

/* ---------- Cards: hover micro-motion ---------- */
.path-card::before{transition:transform .5s cubic-bezier(.2,.8,.2,1)}
a.path-card:hover::before,.path-card:hover::before{transform:scale(2.2)}
.path-card:hover .icon-dot{animation:wiggle .6s ease}
@keyframes wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-10deg) scale(1.05)}50%{transform:rotate(8deg)}75%{transform:rotate(-4deg)}}
.batch-card{transition:transform .25s,box-shadow .25s,border-color .25s}
.batch-card:hover{transform:translateY(-4px)}
.batch-card:hover .batch-date{animation:wiggle .6s ease}
.course-card,.dest,.mentor{transition:transform .25s,box-shadow .25s,border-color .25s}
.course-card:hover,.mentor:hover{transform:translateY(-4px)}
.mentor img{transition:transform .5s}
.mentor:hover img{transform:scale(1.05)}
.dest:hover .icon-dot{animation:wiggle .6s ease}
.review-card{transition:transform .25s}
.review-card:hover{transform:translateY(-4px) rotate(-.6deg)}
.logo-chip{transition:transform .25s}
.logo-chip:hover{transform:translateY(-3px)}

/* ---------- Webinar banner, tool card, CTA ---------- */
.webinar-banner{background-size:200% 200%;animation:grad 10s ease infinite}
.wb-date{animation:wobble 4s ease-in-out infinite}
@keyframes wobble{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(4deg) translateY(-4px)}}
.tool-card-head{background-size:200% 200%;animation:grad 12s ease infinite}
.cta-band{background-size:200% 200% !important;animation:grad 12s ease infinite}
.tone-navy{animation:none}
@keyframes grad{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.live-dot{animation:pulse 2.2s infinite}

/* ---------- Page heroes: drifting rings ---------- */
.page-hero::before,.page-hero::after{content:"";position:absolute;border-radius:50%;pointer-events:none;z-index:0}
.page-hero::before{width:260px;height:260px;right:-60px;top:-80px;border:28px solid rgba(124,92,252,.10);animation:drift 16s ease-in-out infinite alternate}
.page-hero::after{width:120px;height:120px;left:46%;bottom:-50px;background:radial-gradient(circle,rgba(20,184,166,.25),transparent 70%);animation:drift 12s ease-in-out infinite alternate-reverse}

/* ---------- Mobile: lighter scene ---------- */
@media (max-width:620px){
  .float-ic{width:42px;height:42px;border-radius:12px}
  .float-ic svg{width:20px;height:20px}
  .fi1{left:-6px;top:-30px}
  .fi2{right:-4px;top:30%}
  .fi3{display:none}
  .ring.r1{display:none}
  .flight{opacity:.5}
  .gantt-scan{left:84px}
  @keyframes scan{0%{left:84px;opacity:0}8%{opacity:1}85%{left:calc(100% - 6px);opacity:1}100%{left:calc(100% - 6px);opacity:0}}
}
@media (prefers-reduced-motion:reduce){
  .js .rv{opacity:1;transform:none}
  .flight-plane,.gantt-scan{display:none}
  .hero h1 .hl{background-size:100% 100%}
  .journey::before{transform:none}
}
