/* =============================================
   JUNKYARDGEORGE — ANIMATIONS
   ============================================= */

/* Keyframes */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

@keyframes counterUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero animations */
.hero-content > * {
  animation: fadeInUp 0.8s ease both;
}

.hero-status { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.25s; }
.hero-subtitle { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.55s; }
.hero-stats { animation-delay: 0.7s; }

/* Number counter animation */
.stat-number {
  display: inline-block;
  animation: counterUp 0.6s ease both;
}

/* Shimmer effect on primary button */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 150%;
}

/* Floating animation for accent elements */
.float-element {
  animation: float 4s ease-in-out infinite;
}

/* Step number hover */
.step:hover .step-number {
  transform: scale(1.1);
  transition: transform 0.3s ease;
  box-shadow: 0 0 0 8px rgba(200, 16, 46, 0.15);
}

/* Service card icon animation */
.service-card:hover .service-icon {
  animation: float 2s ease-in-out infinite;
}

/* Form input focus ring animation */
@keyframes focusRing {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.4); }
  100% { box-shadow: 0 0 0 6px rgba(200, 16, 46, 0); }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  animation: focusRing 0.5s ease;
}

/* Page transition */
.page-enter {
  animation: fadeIn 0.4s ease both;
}

/* Mobile menu link hover */
.mobile-menu a {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-red, #C8102E);
  transition: width 0.3s ease;
}

.mobile-menu a:hover::after {
  width: 100%;
}

/* Notification badge pulse */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.badge-open .badge-dot {
  animation: badgePulse 2s ease infinite;
}

/* Success checkmark */
@keyframes checkDraw {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

/* Progress bar for form */
.form-progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.form-progress-bar {
  height: 100%;
  background: var(--gradient-red, linear-gradient(135deg, #C8102E 0%, #8B0A1F 100%));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

/* Scroll-to-top button */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-red, linear-gradient(135deg, #C8102E 0%, #8B0A1F 100%));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(200, 16, 46, 0.4);
  z-index: 500;
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200, 16, 46, 0.6);
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-red, linear-gradient(135deg, #C8102E 0%, #8B0A1F 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
