html {
  scroll-behavior: smooth;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: capitalize;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays for Cascade Effect */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Dedicated Card Interactive Hover (Spring & Lift) */
[class*="hover:-translate-y-2"],
.reveal.active[class*="hover:-translate-y-2"],
.card-hover {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease !important;
  cursor: pointer;
}

[class*="hover:-translate-y-2"]:hover,
.reveal.active[class*="hover:-translate-y-2"]:hover,
.card-hover:hover {
  transform: translateY(-10px) scale(1.025) !important;
  box-shadow: 0 20px 30px -10px rgba(43, 23, 19, 0.12), 0 10px 15px -5px rgba(217, 56, 86, 0.08) !important;
}

/* Typewriter Cursor */
.typewriter::after {
  content: '|';
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Shimmer Text */
.text-shimmer {
  background: linear-gradient(90deg, #2B1713 0%, #D93856 50%, #2B1713 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

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

/* Ripple */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Marquee */
.marquee-wrapper {
  position: relative;
  overflow: hidden;
}

.marquee-wrapper::before, .marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #FAF4ED, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #FAF4ED, transparent);
}

@keyframes marqueeAnim {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marqueeAnim 22s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.parallax {
  will-change: transform;
}
