/* ============================================================
   ANIMATIONS — Ian's Power Washing
   ============================================================ */

/* ── Scroll Reveal ── */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.reveal-fade.is-visible {
  opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hero title lines stagger ── */
.hero-title-line1,
.hero-title-line2 {
  display: block;
  overflow: hidden;
}

/* ── Hero background parallax ── */
.hero-bg {
  will-change: transform;
}

/* ── Smooth tab panel transitions ── */
.tab-panel {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ── Stat number pulse on count-up ── */
@keyframes statPulse {
  0%   { color: var(--color-accent); }
  50%  { color: var(--color-accent-warm); }
  100% { color: var(--color-accent); }
}

.stat-number.counting {
  animation: statPulse 1.6s ease forwards;
}

/* ── Accent line entrance ── */
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Particles ── */
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50%      { transform: translateY(-30px) scale(1.2); opacity: 0.6; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles i {
  position: absolute;
  font-size: 0.5rem;
  color: var(--color-accent);
  opacity: 0.15;
}

.hero-particles i:nth-child(1) { top: 15%; left: 10%; animation: particleFloat 5s ease-in-out infinite; }
.hero-particles i:nth-child(2) { top: 25%; left: 45%; animation: particleFloat 7s ease-in-out infinite 1s; }
.hero-particles i:nth-child(3) { top: 60%; left: 80%; animation: particleFloat 6s ease-in-out infinite 0.5s; }
.hero-particles i:nth-child(4) { top: 70%; left: 20%; animation: particleFloat 8s ease-in-out infinite 2s; }
.hero-particles i:nth-child(5) { top: 40%; left: 70%; animation: particleFloat 5.5s ease-in-out infinite 1.5s; }
.hero-particles i:nth-child(6) { top: 80%; left: 55%; animation: particleFloat 6.5s ease-in-out infinite 3s; }
.hero-particles i:nth-child(7) { top: 10%; left: 85%; animation: particleFloat 7.5s ease-in-out infinite 0.8s; }
.hero-particles i:nth-child(8) { top: 50%; left: 30%; animation: particleFloat 5.8s ease-in-out infinite 2.5s; }

/* ── Gallery card hover ── */
.gallery-card {
  transition: box-shadow 0.3s ease;
}

.gallery-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ── Testimonial card hover ── */
.testimonial-card {
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* ── About section hover ── */
.about-img-wrap img {
  transition: transform 0.6s ease;
}

/* ── Scroll indicator pulse (in layout.css, keeping ref) ── */

/* ── Footer entrance ── */
#footer {
  opacity: 1;
}