/* ==========================================================================
   NALAM HOMES — MICRO-ANIMATIONS & INTERACTIVE MOTION SYSTEM
   ========================================================================== */

/* 1. Scroll Reveal Utilities (triggered via IntersectionObserver) */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

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

.reveal-zoom-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* 2. Button Shine / Shimmer Sweep */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: shine-sweep 4s infinite ease-in-out;
}

@keyframes shine-sweep {
  0%, 65% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

/* 3. Floating 3D Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.25s ease-out;
}

/* 4. Glowing Ambient Aura */
.ambient-glow-gold {
  position: relative;
}

.ambient-glow-gold::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(197, 137, 64, 0.2) 0%, rgba(197, 137, 64, 0) 70%);
  z-index: -1;
  border-radius: inherit;
  filter: blur(12px);
  opacity: 0.7;
  animation: glow-pulse 3s infinite alternate ease-in-out;
}

@keyframes glow-pulse {
  0% { transform: scale(0.96); opacity: 0.4; }
  100% { transform: scale(1.04); opacity: 0.85; }
}

/* 5. Ripple Effect on Click */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

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

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

/* 6. Stepper Pulse Connector */
.process-steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary-gold) 0,
    var(--primary-gold) 10px,
    transparent 10px,
    transparent 18px
  );
  z-index: 0;
}

@media (max-width: 768px) {
  .process-steps-grid::before {
    display: none;
  }
}
