/* ============================================================
   JANDS AUTO REPAIRS — Animations Stylesheet
   ============================================================ */

/* ---- FADE IN ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

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

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

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

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

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ---- HERO ENTRANCE ---- */
.hero-badge    { animation: fadeInDown 0.6s ease 0.2s both; }
.hero-title    { animation: fadeInUp 0.7s ease 0.35s both; }
.hero-subtitle { animation: fadeInUp 0.7s ease 0.5s both; }
.hero-actions  { animation: fadeInUp 0.7s ease 0.65s both; }
.hero-stats    { animation: fadeInUp 0.7s ease 0.8s both; }
.hero-floating-card { animation: fadeInRight 0.8s ease 0.5s both; }

/* ---- FLOATING ANIMATION ---- */
.float-anim { animation: float 3.5s ease-in-out infinite; }

/* ---- PULSE ---- */
.pulse-anim { animation: pulse 2s ease-in-out infinite; }

/* ---- SPINNER ---- */
.loading-spin { animation: spin 1s linear infinite; }

/* ---- SHIMMER GRADIENT ---- */
.shimmer-text {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 50%, var(--orange) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2.5s linear infinite;
}

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

/* ---- TESTIMONIAL SLIDER ---- */
.testimonial-slide {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.testimonial-slide.leaving {
  opacity: 0;
  transform: translateX(-30px);
}
.testimonial-slide.entering {
  animation: fadeInRight 0.5s ease both;
}

/* ---- COUNTER ---- */
.counter-wrap { overflow: hidden; }
.counter-wrap .stat-number {
  animation: countUp 0.5s ease both;
}

/* ---- HERO BACKGROUND PARALLAX ---- */
.hero-bg {
  transition: transform 0.1s linear;
}

/* ---- FEATURE STRIP SCROLL ---- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- CARD HOVER SHINE ---- */
.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.service-card { position: relative; }
.service-card:hover::before { transform: rotate(30deg) translateX(100%); }

/* ---- PROGRESS BARS ---- */
.skill-bar-fill {
  height: 6px;
  background: var(--orange);
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s ease;
}
.skill-bar-fill.animate { width: var(--target-width); }

/* ---- LOADING STATE ---- */
.btn-loading .btn-text { display: none; }
.btn-loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeIn 1s ease 1.5s both;
  z-index: 3;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: float 1.5s ease-in-out infinite;
}
.scroll-dot:nth-child(2) { animation-delay: 0.2s; }
.scroll-dot:nth-child(3) { animation-delay: 0.4s; }
