/* ============================================================
   ANIMATIONS v2
   animations.css
   ============================================================ */

/* ── Keyframes ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.08); }
}

@keyframes barRise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes drawLine {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ── Reveal system (scroll-triggered via IntersectionObserver) ── */
.reveal {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal.visible {
  animation: fadeUp 640ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-child {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal-child.visible {
  animation: fadeUp 640ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Stagger delays ── */
.stagger > .reveal:nth-child(1),
.stagger > .reveal-child:nth-child(1) { animation-delay:   0ms; }
.stagger > .reveal:nth-child(2),
.stagger > .reveal-child:nth-child(2) { animation-delay:  90ms; }
.stagger > .reveal:nth-child(3),
.stagger > .reveal-child:nth-child(3) { animation-delay: 180ms; }
.stagger > .reveal:nth-child(4),
.stagger > .reveal-child:nth-child(4) { animation-delay: 270ms; }
.stagger > .reveal:nth-child(5),
.stagger > .reveal-child:nth-child(5) { animation-delay: 360ms; }
.stagger > .reveal:nth-child(6),
.stagger > .reveal-child:nth-child(6) { animation-delay: 450ms; }

/* ── Marquee ── */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  align-items: center;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ── Tab panel fade ── */
.tab-panel {
  display: none;
  opacity: 0;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 280ms ease forwards;
}

/* ── Hover zoom for image containers ── */
.zoom-on-hover {
  overflow: hidden;
}

.zoom-on-hover img,
.zoom-on-hover .img-placeholder {
  transition: transform var(--transition-medium);
}

.zoom-on-hover:hover img,
.zoom-on-hover:hover .img-placeholder {
  transform: scale(1.05);
}

/* ── Float utility ── */
.float-anim {
  animation: float 4s ease-in-out infinite;
}

.float-anim-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

/* ── Glow orb ── */
.glow-orb {
  animation: glowPulse 4s ease-in-out infinite;
}
