/* ============================================================
   RYNAVEX - Animations Stylesheet
   Prefix: rn-
   ============================================================ */

/* --- Keyframe Definitions --- */
@keyframes rn-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes rn-slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes rn-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes rn-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes rn-particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

@keyframes rn-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes rn-scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rn-count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Particle Styles --- */
.rn-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(42,124,138,0.4);
  animation: rn-particle-float linear infinite;
}

/* --- Entrance Animations (triggered by IntersectionObserver) --- */
.rn-animate {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rn-animate.rn-animated {
  opacity: 1;
  transform: translateY(0);
}

.rn-animate-left {
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rn-animate-left.rn-animated {
  opacity: 1;
  transform: translateX(0);
}

.rn-animate-right {
  opacity: 0;
  transform: translateX(25px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rn-animate-right.rn-animated {
  opacity: 1;
  transform: translateX(0);
}

.rn-animate-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rn-animate-scale.rn-animated {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.rn-delay-100 { transition-delay: 0.1s; }
.rn-delay-200 { transition-delay: 0.2s; }
.rn-delay-300 { transition-delay: 0.3s; }
.rn-delay-400 { transition-delay: 0.4s; }
.rn-delay-500 { transition-delay: 0.5s; }
.rn-delay-600 { transition-delay: 0.6s; }

/* --- Hero Animations --- */
.rn-hero-badge {
  animation: rn-fadeIn 0.6s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.rn-hero-title {
  animation: rn-fadeInUp 0.7s ease forwards;
  animation-delay: 0.35s;
  opacity: 0;
}

.rn-hero-desc {
  animation: rn-fadeInUp 0.7s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.rn-hero-actions {
  animation: rn-fadeInUp 0.7s ease forwards;
  animation-delay: 0.65s;
  opacity: 0;
}

.rn-hero-stats {
  animation: rn-fadeInUp 0.7s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.rn-hero-img-frame {
  animation: rn-slideInRight 0.8s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

/* --- Float Animation --- */
.rn-float-element {
  animation: rn-float 5s ease-in-out infinite;
}

/* --- Pulse Indicator --- */
.rn-pulse-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rn-teal-light);
}

.rn-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--rn-teal-light);
  animation: rn-pulse-ring 1.5s ease-out infinite;
}

/* --- Loading Shimmer --- */
.rn-shimmer {
  background: linear-gradient(90deg,
    var(--rn-gray-100) 0%,
    var(--rn-gray-200) 50%,
    var(--rn-gray-100) 100%);
  background-size: 200% 100%;
  animation: rn-shimmer 1.5s infinite;
}

/* --- Progress Bar Animation --- */
.rn-progress-bar {
  height: 4px;
  background: var(--rn-gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.rn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rn-teal), var(--rn-teal-light));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Hover Effects --- */
.rn-hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rn-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,39,66,0.12);
}

/* --- Number Counter Animation --- */
.rn-counter-num {
  display: inline-block;
  animation: rn-count-up 0.6s ease forwards;
}

/* --- Testimonial Fade --- */
.rn-testimonial-slide {
  animation: rn-fadeIn 0.4s ease;
}

/* --- Checklist Animation --- */
.rn-checklist-body {
  animation: rn-fadeIn 0.2s ease;
}

/* --- Section bg gradient animation --- */
.rn-gradient-bg {
  background: linear-gradient(135deg, var(--rn-navy) 0%, #1e3a5f 50%, var(--rn-teal) 100%);
  background-size: 200% 200%;
  animation: rn-shimmer 6s ease infinite;
}
