/* ============================================================
   MONTERA SYSTEMS — ANIMATIONS
   Keyframes, scroll-reveal, entrance classes
   ============================================================ */

/* ============================================================
   SCROLL REVEAL — BASE STATE
   ============================================================ */
.reveal {
  opacity: 0;
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none !important;
}

/* Variant transforms (applied BEFORE visible) */
.reveal-up    { transform: translateY(36px); }
.reveal-down  { transform: translateY(-24px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(0.92); }
.reveal-fade  { /* opacity only, no transform */ }

/* Stagger delays */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }
.delay-6 { transition-delay: 480ms; }
.delay-7 { transition-delay: 560ms; }

/* ============================================================
   HERO ENTRANCE — CSS KEYFRAMES
   (play on page load, no IntersectionObserver)
   ============================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Float animation (decorative elements) */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* Scroll indicator bounce */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.6; }
}

/* Rotate (loading spinner) */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   HERO ANIMATION CLASSES
   ============================================================ */
.hero-animate-1 {
  animation: fadeSlideUp 0.7s var(--ease-out) 0ms both;
}
.hero-animate-2 {
  animation: fadeSlideUp 0.7s var(--ease-out) 120ms both;
}
.hero-animate-3 {
  animation: fadeSlideUp 0.7s var(--ease-out) 240ms both;
}
.hero-animate-4 {
  animation: fadeSlideUp 0.7s var(--ease-out) 360ms both;
}
.hero-animate-5 {
  animation: fadeSlideUp 0.7s var(--ease-out) 480ms both;
}
.hero-animate-visual {
  animation: slideInRight 0.9s var(--ease-out) 300ms both;
}

/* ============================================================
   FLOATING ELEMENT
   ============================================================ */
.float-anim {
  animation: float 5s ease-in-out infinite;
}

.float-anim-slow {
  animation: float 7s ease-in-out infinite;
}

.float-anim-alt {
  animation: float 5s ease-in-out 1.5s infinite;
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out) 800ms both;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

.scroll-indicator-text {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  writing-mode: vertical-rl;
}

/* ============================================================
   TEXT HIGHLIGHT
   ============================================================ */
.shimmer-text {
  color: var(--color-accent);
  font-style: italic;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(53, 48, 42, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   TICKER / MARQUEE
   ============================================================ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-inline: var(--space-6);
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.ticker-item .ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
