/* ============================================================
   JER REPAIR - Animations
   jr-animations.css
   ============================================================ */

/* ---- Keyframe Animations ---- */
@keyframes jr-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

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

@keyframes jr-float-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes jr-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes jr-fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes jr-fade-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes jr-fade-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes jr-shimmer {
  from { background-position: -1000px 0; }
  to { background-position: 1000px 0; }
}

@keyframes jr-bounce-in {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes jr-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes jr-hero-shape-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

/* ---- Hero Animations ---- */
.jr-hero-shape-1 { animation: jr-hero-shape-drift 18s ease-in-out infinite; }
.jr-hero-shape-2 { animation: jr-hero-shape-drift 22s ease-in-out infinite reverse; }
.jr-hero-shape-3 { animation: jr-float-gentle 14s ease-in-out infinite; }

.jr-hero-badge { animation: jr-fade-in-up 0.8s ease both; }
.jr-hero-headline { animation: jr-fade-in-up 0.9s 0.15s ease both; }
.jr-hero-description { animation: jr-fade-in-up 0.9s 0.3s ease both; }
.jr-hero-action-group { animation: jr-fade-in-up 0.9s 0.45s ease both; }
.jr-hero-trust-strip { animation: jr-fade-in-up 0.9s 0.6s ease both; }
.jr-hero-image-block { animation: jr-fade-in-right 1s 0.3s ease both; }
.jr-hero-stat-card-1 { animation: jr-slide-up 0.8s 0.8s ease both; }
.jr-hero-stat-card-2 { animation: jr-slide-up 0.8s 1s ease both; }

/* ---- Floating icons ---- */
.jr-float-icon { animation: jr-float 3s ease-in-out infinite; }
.jr-float-icon-slow { animation: jr-float 5s ease-in-out infinite; }
.jr-float-icon-alt { animation: jr-float 4s ease-in-out infinite; animation-delay: 1.5s; }

/* ---- Counter animation ---- */
.jr-counter-value {
  display: inline-block;
  transition: opacity 0.3s;
}

/* ---- Shimmer loading ---- */
.jr-shimmer {
  background: linear-gradient(90deg, #f0f2f5 0px, #fafbfc 40px, #f0f2f5 80px);
  background-size: 1000px;
  animation: jr-shimmer 1.5s infinite linear;
}

/* ---- Icon hover bounce ---- */
.jr-icon-bounce {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.jr-icon-bounce:hover { transform: scale(1.2) rotate(-5deg); }

/* ---- Service card icon animation ---- */
.jr-service-card:hover .jr-service-card-icon-badge {
  background: var(--jr-orange-500);
  transform: rotate(-10deg) scale(1.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Scroll progress bar ---- */
.jr-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--jr-orange-400);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---- Animated background dots ---- */
.jr-animated-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--jr-orange-400);
  opacity: 0.15;
  animation: jr-float 6s ease-in-out infinite;
}

/* ---- Smooth hover lift ---- */
.jr-hover-lift {
  transition: transform var(--jr-transition), box-shadow var(--jr-transition);
}
.jr-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--jr-shadow-lg);
}

/* ---- Stats counter number animation ---- */
.jr-stats-bar-value { transition: transform 0.3s ease; }
.jr-stats-bar-item:hover .jr-stats-bar-value { transform: scale(1.08); }

/* ---- Ping animation for availability indicator ---- */
@keyframes jr-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.jr-availability-ping {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.jr-availability-ping::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  display: inline-block;
  animation: jr-pulse 2s infinite;
}

/* ---- Page transitions ---- */
.jr-page-enter { animation: jr-fade-in-up 0.6s ease both; }

/* ---- Input focus glow ---- */
@keyframes jr-focus-glow {
  from { box-shadow: 0 0 0 0 rgba(37,87,167,0.3); }
  to { box-shadow: 0 0 0 8px rgba(37,87,167,0); }
}

.jr-form-control:focus {
  animation: jr-focus-glow 0.5s ease;
}

/* ---- Team card overlay ---- */
.jr-team-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--jr-transition);
}

.jr-team-card:hover .jr-team-card-photo::after { opacity: 1; }

/* ---- Step number pulse on hover ---- */
@keyframes jr-step-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.jr-process-step:hover .jr-process-step-number {
  animation: jr-step-pop 0.4s ease;
}

/* ---- CTA section wave ---- */
.jr-cta-wave-animate {
  animation: jr-float-gentle 8s ease-in-out infinite;
}

/* ---- Divider animation ---- */
.jr-svg-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

/* ---- Stagger children ---- */
.jr-stagger-children > *:nth-child(1) { animation-delay: 0s; }
.jr-stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.jr-stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.jr-stagger-children > *:nth-child(4) { animation-delay: 0.3s; }
.jr-stagger-children > *:nth-child(5) { animation-delay: 0.4s; }
.jr-stagger-children > *:nth-child(6) { animation-delay: 0.5s; }

/* ---- Gradient text ---- */
.jr-gradient-text {
  background: linear-gradient(135deg, var(--jr-blue-400), var(--jr-orange-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Skeleton loader ---- */
.jr-skeleton {
  border-radius: var(--jr-radius-sm);
  background: linear-gradient(90deg, var(--jr-gray-200) 0px, var(--jr-gray-100) 40px, var(--jr-gray-200) 80px);
  background-size: 1000px;
  animation: jr-shimmer 1.5s infinite linear;
}
