/* ── SCROLL REVEAL BASE ───────────────────────────────────── */
.reveal,
.reveal-up,
.reveal-left,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

/* Fade in from bottom */
.reveal {
  transform: translateY(30px);
}

/* Slide up */
.reveal-up {
  transform: translateY(50px);
}

/* Slide in from left */
.reveal-left {
  transform: translateX(-40px);
}

/* Scale in */
.reveal-scale {
  transform: scale(0.94);
}

/* ── VISIBLE STATE ────────────────────────────────────────── */
.reveal.visible,
.reveal-up.visible,
.reveal-left.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ── STAGGER DELAYS FOR GRIDS ─────────────────────────────── */
.services-grid .reveal-up:nth-child(1) { transition-delay: 0.05s; }
.services-grid .reveal-up:nth-child(2) { transition-delay: 0.15s; }
.services-grid .reveal-up:nth-child(3) { transition-delay: 0.25s; }
.services-grid .reveal-up:nth-child(4) { transition-delay: 0.1s; }
.services-grid .reveal-up:nth-child(5) { transition-delay: 0.2s; }
.services-grid .reveal-up:nth-child(6) { transition-delay: 0.3s; }

.trust-grid .reveal-left:nth-child(1) { transition-delay: 0.05s; }
.trust-grid .reveal-left:nth-child(2) { transition-delay: 0.15s; }
.trust-grid .reveal-left:nth-child(3) { transition-delay: 0.1s; }
.trust-grid .reveal-left:nth-child(4) { transition-delay: 0.2s; }
.trust-grid .reveal-left:nth-child(5) { transition-delay: 0.15s; }
.trust-grid .reveal-left:nth-child(6) { transition-delay: 0.25s; }

.portfolio-grid .reveal-scale:nth-child(1) { transition-delay: 0.05s; }
.portfolio-grid .reveal-scale:nth-child(2) { transition-delay: 0.15s; }
.portfolio-grid .reveal-scale:nth-child(3) { transition-delay: 0.25s; }
.portfolio-grid .reveal-scale:nth-child(4) { transition-delay: 0.1s; }
.portfolio-grid .reveal-scale:nth-child(5) { transition-delay: 0.2s; }
.portfolio-grid .reveal-scale:nth-child(6) { transition-delay: 0.3s; }

/* ── HERO ENTRANCE ANIMATION ──────────────────────────────── */
.hero-eyebrow {
  animation: heroFadeUp 0.9s ease 0.2s both;
}
.hero-content h1 {
  animation: heroFadeUp 0.9s ease 0.45s both;
}
.hero-sub {
  animation: heroFadeUp 0.9s ease 0.65s both;
}
.hero-content .btn {
  animation: heroFadeUp 0.9s ease 0.85s both;
}

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

/* ── HERO IMAGE SLOW ZOOM ─────────────────────────────────── */
.hero-img {
  animation: slowZoom 12s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* ── NUMBER COUNTER PULSE (licenses) ─────────────────────── */
.trust-check {
  transition: background 0.3s ease, transform 0.3s ease;
}
.trust-item:hover .trust-check {
  background: #6d1424;
  transform: scale(1.15);
}

/* ── SERVICE CARD LINE ACCENT ─────────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--wine);
  transition: width 0.4s ease;
}
.service-card:hover::after { width: 100%; }
.service-card--accent::after { background: rgba(255,255,255,0.3); }

/* ── CTA BANNER TEXT PULSE ────────────────────────────────── */
#cta-banner h2 {
  animation: none;
}
#cta-banner.visible h2 {
  animation: softPulse 3s ease infinite;
}

@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.85; }
}

/* ── TESTIMONIAL STAGGER ──────────────────────────────────── */
.testimonials-grid .reveal-up:nth-child(1) { transition-delay: 0.05s; }
.testimonials-grid .reveal-up:nth-child(2) { transition-delay: 0.18s; }
.testimonials-grid .reveal-up:nth-child(3) { transition-delay: 0.31s; }

/* ── STATS BAR STAGGER ────────────────────────────────────── */
.stats-grid .reveal-up:nth-child(1) { transition-delay: 0.05s; }
.stats-grid .reveal-up:nth-child(3) { transition-delay: 0.15s; }
.stats-grid .reveal-up:nth-child(5) { transition-delay: 0.25s; }
.stats-grid .reveal-up:nth-child(7) { transition-delay: 0.35s; }

/* ── SCROLL INDICATOR ON HERO ─────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: bounce 2s ease infinite;
  cursor: pointer;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.5);
}

.scroll-indicator p {
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}
