/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Hero fade ===== */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  animation: heroFade 0.8s ease-out forwards;
}

.hero-animate-delay {
  animation: heroFade 0.8s 0.2s ease-out forwards;
  opacity: 0;
}

.hero-animate-delay-2 {
  animation: heroFade 0.8s 0.4s ease-out forwards;
  opacity: 0;
}

/* ===== Underline nav ===== */
.nav ul li a {
  position: relative;
}

/* ===== Smooth scroll ===== */
html { scroll-behavior: smooth; }

/* ===== Ripple ===== */
@keyframes ripple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  width: 20px;
  height: 20px;
  pointer-events: none;
  animation: ripple 0.6s ease-out;
}

/* ===== Fade in ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== Parallax hero bg ===== */
.hero-bg-img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ===== Hover lift ===== */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}