/* ═══════════════════════════════════════════════════
   BROTHERS MEDIA MARKETING — Refined Animations
   Subtle, performance-first transitions & scroll reveals
   ═══════════════════════════════════════════════════ */

/* ─── Scroll Reveal Animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.fade-in.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero Scroll Line Animation ─── */
.hero__scroll span {
  position: relative;
  overflow: hidden;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ─── Subtle Portfolio Image Zoom on Card Hover ─── */
.work__card-img {
  transition: background-position 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work__card:hover .work__card-badge {
  background-color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(25, 24, 22, 0.08);
}

/* ─── Service Card Number Color Accent on Hover ─── */
.svc:hover .svc__num {
  transform: scale(1.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Button Subtle Press Interaction ─── */
.btn:active {
  transform: scale(0.98);
}

/* ─── Reduced Motion Support ─── */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__scroll span::after {
    animation: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
