/* ============================================================
   IN HEALTH — luxury.css
   Premium animations, micro-interactions & visual effects
   ============================================================ */

/* ── 3. HERO — LUXURY ENTRANCE ── */
.hero-title { overflow: hidden; }
.hero-title .word {
  display: inline-block;
  animation: wordSlideIn .8s cubic-bezier(.16,1,.3,1) both;
}
.hero-title .word:nth-child(2) { animation-delay: .1s; }
.hero-title .word:nth-child(3) { animation-delay: .2s; }
@keyframes wordSlideIn {
  from { opacity: 0; transform: translateY(110%) rotate(4deg); }
  to   { opacity: 1; transform: none; }
}

/* ── 4. MAGNETIC BUTTONS ── */
.btn-magnetic { transition: transform .2s cubic-bezier(.34,1.56,.64,1) !important; }

/* ── 5. SECTION NUMBERS — decorative ── */
.sec-num-decor {
  position: absolute; right: 0; top: -1rem;
  font-family: var(--fd); font-size: 7rem; font-weight: 800;
  color: rgba(0,153,204,.04); line-height: 1;
  pointer-events: none; user-select: none;
  transition: color .5s;
}
section:hover .sec-num-decor { color: rgba(0,153,204,.07); }

/* ── 6. STATS — GLOW PULSE when visible ── */
.stat-col.visible .stat-n {
  animation: statGlow 2s ease-in-out;
}
@keyframes statGlow {
  0%   { text-shadow: none; }
  50%  { text-shadow: 0 0 30px rgba(0,191,255,.6); }
  100% { text-shadow: none; }
}

/* ── 8. ABOUT IMAGES — parallax tilt ── */
.about-main, .about-sec {
  transition: transform .4s cubic-bezier(.34,1.2,.64,1), box-shadow .4s;
}
.about-wrap:hover .about-main {
  transform: rotate(-1.5deg) translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,100,160,.2);
}
.about-wrap:hover .about-sec {
  transform: rotate(1.5deg) translateY(4px) translateX(4px);
  box-shadow: 0 20px 50px rgba(0,100,160,.18);
}

/* ── 9. TEAM CARDS — 3D tilt ── */
.ih-card.team-tilt {
  transform-style: preserve-3d; perspective: 800px;
  transition: transform .15s ease-out, box-shadow .3s !important;
}
.ih-card.team-tilt:hover { box-shadow: 0 20px 60px rgba(0,100,160,.2) !important; }

/* ── 10. PROGRAM IMAGE — Ken Burns ── */
.prog-card .prog-img img {
  animation: none;
  transition: transform .5s cubic-bezier(.4,0,.2,1) !important;
}
.prog-card:hover .prog-img img { transform: scale(1.1) !important; }

/* ── 11. SCROLLING TEXT TICKER ── */
.luxury-ticker {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface), rgba(240,250,254,.8), var(--surface));
  padding: .7rem 0; position: relative; z-index: 1;
}
.ticker-track {
  display: flex; gap: 3rem; width: max-content;
  animation: tickerScroll 18s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: .7rem; white-space: nowrap;
  font-size: .78rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 12. SECTION REVEAL — clip path ── */
.reveal-clip {
  opacity: 0; clip-path: inset(0 100% 0 0);
  transition: opacity .8s, clip-path .8s cubic-bezier(.4,0,.2,1);
}
.reveal-clip.visible { opacity: 1; clip-path: inset(0 0% 0 0); }

/* ── 13. HERO IMAGE — luxury frame ── */
.hero-img-wrap::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(0,191,255,.25), transparent 40%, transparent 60%, rgba(0,153,204,.15));
  pointer-events: none; z-index: 1;
}
.hero-img-wrap::before {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(0,191,255,.2);
  border-radius: 20px; z-index: 2; pointer-events: none;
  animation: framePulse 3s ease-in-out infinite;
}
@keyframes framePulse {
  0%,100% { opacity: .4; }
  50%      { opacity: 1; }
}

/* ── 14. TESTIMONIAL CARD — quote animation ── */
.test-feat .test-quot {
  animation: quoteFade 1s .3s both;
  display: block;
}
@keyframes quoteFade {
  from { opacity: 0; transform: scale(.7) rotate(-10deg); }
  to   { opacity: 1; transform: none; }
}

/* ── 15. COUNTER — shimmer after count ── */
.stat-n.counted {
  background: linear-gradient(90deg, var(--cyan-light), var(--cyan), var(--cyan-light));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 1.5s linear;
}
@keyframes textShimmer {
  from { background-position: 200% center; }
  to   { background-position: 0% center; }
}

/* ── 16. WORKSHOP ITEMS — stagger slide ── */
.ws-row {
  transition: transform .3s cubic-bezier(.34,1.4,.64,1), 
              border-color .3s, background .3s !important;
}
.ws-row:hover .ws-n {
  opacity: 1 !important;
  transform: scale(1.2);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}

/* ── 17. FOOTER — gradient border top ── */
#footer {
  border-top: none !important;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), rgba(0,191,255,.5), var(--cyan), transparent);
}

/* ── 18. NAV LINKS — glow on active ── */
.nav-link.active::after {
  box-shadow: 0 0 8px rgba(0,191,255,.6);
}

/* ── 19. PROGRESS BAR — gradient glow ── */
#scroll-progress {
  box-shadow: 0 0 12px rgba(0,191,255,.5), 0 0 4px rgba(0,191,255,.8) !important;
}

/* ── 20. SECTION ENTRANCE — stagger children ── */
.stagger-children > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s, transform .5s cubic-bezier(.4,0,.2,1);
}
.stagger-children.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.stagger-children.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.12s; }
.stagger-children.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.19s; }
.stagger-children.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.26s; }
.stagger-children.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.33s; }
.stagger-children.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:.40s; }

/* ── 21. GALLERY — grid reveal ── */
.gal-item {
  transition: transform .4s cubic-bezier(.34,1.3,.64,1), box-shadow .3s;
}
.gal-item:hover { transform: scale(1.03) translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.35); z-index:2; }

/* ── 22. MARQUEE — pause on hover ── */
.mq-track:hover { animation-play-state: paused; }

/* ── 23. CONTACT SECTION — floating labels ── */
.float-label-group { position: relative; }
.float-label-group input,
.float-label-group textarea,
.float-label-group select {
  padding-top: 1.4rem !important; padding-bottom: .5rem !important;
}
.float-label-group label {
  position: absolute; top: .9rem; left: 1rem;
  font-size: .88rem; color: var(--muted); pointer-events: none;
  transition: top .2s, font-size .2s, color .2s; z-index: 1;
  text-transform: none !important; letter-spacing: 0 !important;
}
.float-label-group input:focus ~ label,
.float-label-group input:not(:placeholder-shown) ~ label,
.float-label-group textarea:focus ~ label,
.float-label-group textarea:not(:placeholder-shown) ~ label {
  top: .3rem; font-size: .7rem; color: var(--cyan); font-weight: 600;
}

/* ── 24. GOLD ACCENT LINE on headings ── */
h2.sec-gold::after {
  content: '';
  display: block; width: 0; height: 2px; margin-top: .5rem;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  border-radius: 2px;
  transition: width .6s .2s cubic-bezier(.4,0,.2,1);
}
h2.sec-gold.visible::after { width: 60px; }

/* ── 25. WAVY SECTION DIVIDERS ── */
.wave-divider {
  width: 100%; overflow: hidden; line-height: 0;
  position: relative; z-index: 1;
}
.wave-divider svg { display: block; width: 100%; }

/* ── MEDIA ── */
@media (max-width: 768px) {
  .sec-num-decor { font-size: 4rem; }
  #cursor-glow, #cursor-dot { display: none; }
}
