/* ============================================================
   Chars Consulting — Motion & effects (§2.5)
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulseSoft { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--accent) / .5); }
  50%      { box-shadow: 0 0 26px 4px hsl(var(--accent) / .55); }
}
@keyframes shimmer { 100% { background-position: 200% 0; } }

.animate-fade-up { animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
.animate-fade-in { animation: fadeIn .8s ease both; }
.animate-scale-in { animation: scaleIn .5s cubic-bezier(.22,1,.36,1) both; }
.float { animation: float 5s ease-in-out infinite; }
.pulse-soft { animation: pulseSoft 3s ease-in-out infinite; }
.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }
.delay-600 { animation-delay: .6s; }

/* Scroll reveal — hidden until IntersectionObserver adds .is-visible */
[data-reveal] { opacity: 0; }
[data-reveal].is-visible { animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
[data-reveal][data-reveal="in"].is-visible { animation: fadeIn .8s ease both; }
[data-reveal][data-reveal="scale"].is-visible { animation: scaleIn .55s cubic-bezier(.22,1,.36,1) both; }

/* Hover lift */
.hover-lift { transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }

/* Button shine */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn-shine:hover::after { transform: translateX(120%); }

/* Animated underline (right → left) */
.link-underline { position: relative; }
.link-underline::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: hsl(var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.link-underline:hover::after,
.link-underline[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Glass surfaces */
.glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid hsl(0 0% 100% / .35);
}
.glass-strong {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.dark .glass-strong { background: rgba(18,28,25,.85); }
.glass-dark {
  background: rgba(14,24,20,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; }
}
