/* ============================================================
   animations.css — Kallisto Portfolio Site
   Keyframes and animation helper classes
   ============================================================ */

/* ── Word-reveal split animation ── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.word {
  display: inline-block;
}

/* ── Fade-up — controlled entirely by GSAP, not CSS ── */
/* Do NOT set opacity:0 here — GSAP sets it inline before animating */

/* ── Loading overlay ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-dark-bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  height: 80px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  animation: loader-pulse 1s ease-in-out infinite alternate;
}

@keyframes loader-pulse {
  from { opacity: 0.4; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* ── Stagger children ── */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
}

/* ── Image reveal ── */
.img-reveal {
  clip-path: inset(100% 0 0 0);
}

/* ── Card entrance ── */
.card-enter {
  opacity: 0;
  transform: translateY(50px);
}

/* ── Pulse ring (for accent elements) ── */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--color-accent);
  border-radius: inherit;
  animation: ring-pulse 2s ease-out infinite;
  opacity: 0;
}

@keyframes ring-pulse {
  0%  { transform: scale(1);   opacity: 0.6; }
  100%{ transform: scale(1.1); opacity: 0; }
}
