/* =============================================
   ANIMATIONS — Keyframes & Scroll Reveal
   ============================================= */

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== REVEAL VARIANTS ===== */
.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-fade.visible {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== GENERAL ANIMATION KEYFRAMES ===== */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== PARALLAX IMAGE BREAK ===== */
.image-break {
  will-change: transform;
}

/* ===== SMOOTH SECTION TRANSITIONS ===== */
.section {
  will-change: auto;
}

/* ===== MAIN CONTENT ENTRANCE ===== */
#main-content {
  display: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

#main-content.visible {
  display: block;
  opacity: 1;
}
