/* ============================================================
   LIBURNA RECRUITMENT - Animations
   ============================================================ */

/* --- Scroll Reveal --- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="150"] { transition-delay: 0.15s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }

/* --- Keyframes --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-globe { animation: float 6s ease-in-out infinite; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1); }
}
.hero-badge--top { animation: badgeFloat 4s ease-in-out infinite; }
.hero-badge--bottom { animation: badgeFloat 4s ease-in-out infinite 1s; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(45, 43, 107, 0.25); }
  50% { box-shadow: 0 8px 40px rgba(45, 43, 107, 0.4); }
}
.process-number { animation: pulse 3s ease-in-out infinite; }

/* Card hover */
.service-card, .country-card, .feature-card {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Focus visible */
*:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }

/* Mobile menu */
.nav-mobile { transition: opacity 0.3s ease, visibility 0.3s ease; }
.nav-mobile .nav-link { opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease; }
.nav-mobile.open .nav-link { opacity: 1; transform: translateY(0); }
.nav-mobile.open .nav-link:nth-child(1) { transition-delay: 0.05s; }
.nav-mobile.open .nav-link:nth-child(2) { transition-delay: 0.1s; }
.nav-mobile.open .nav-link:nth-child(3) { transition-delay: 0.15s; }
.nav-mobile.open .nav-link:nth-child(4) { transition-delay: 0.2s; }
.nav-mobile.open .nav-link:nth-child(5) { transition-delay: 0.25s; }

/* Slider */
.testimonials-track { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slider-dot { transition: width 0.3s ease, background 0.3s ease; }

/* FAQ accordion */
.faq-answer { transition: max-height 0.4s ease; }

/* --- Typewriter Cursor --- */
.typewriter-cursor {
  display: inline;
  box-shadow: 3px 0 0 0 var(--teal);
  animation: blink-caret 0.75s step-end infinite;
}
.typewriter-cursor--done {
  animation: none; opacity: 0; transition: opacity 0.3s ease;
}
@keyframes blink-caret {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-globe, .hero-badge--top, .hero-badge--bottom, .process-number { animation: none; }
  .hero { animation: none; }
  .typewriter-cursor { animation: none; opacity: 0; }
  .plane-svg-icon { opacity: 0 !important; }
  .features-container.plane-active .plane-trail-line { transition: none; clip-path: inset(0 0% 0 0); }
}
