/* ==========================================================================
   PEARL SEREEN (لؤلؤة سيرين) — Luxury Animations & Micro-Interactions
   animations.css
   ========================================================================== */

/* 1. Keyframe Animations */
@keyframes scrollPulse {
  0% {
    transform: translateY(-100%);
  }

  50% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(220%);
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 71, 103, 0.52);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(231, 71, 103, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(231, 71, 103, 0);
  }
}

@keyframes subtleShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* 2. Floating Decorative Motion */
.hero__floating-card {
  animation: floatSlow 5.5s ease-in-out infinite;
}

.hero__since-seal {
  animation: floatSlow 6.5s ease-in-out infinite 1.2s;
}

/* 3. Floating WhatsApp Micro-Pulse */
.floating-whatsapp {
  animation: pulseRing 3s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 4. Image Mask Reveal Containers */
.reveal-mask {
  position: relative;
  overflow: hidden;
}

.reveal-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-ivory-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  z-index: 2;
}

/* 5. RTL / LTR Directional Icon Mirroring */
html[dir="rtl"] .icon-mirror-rtl {
  transform: scaleX(-1);
}

html[dir="rtl"] .btn:hover .icon-mirror-rtl {
  transform: scaleX(-1) translateX(4px);
}

html[dir="ltr"] .btn:hover .icon-mirror-rtl {
  transform: translateX(4px);
}

/* 6. Editorial Hover Underline Utility */
.hover-line {
  position: relative;
  display: inline-block;
}

.hover-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: end;
  transition: transform 0.35s var(--ease-luxury);
}

.hover-line:hover::after {
  transform: scaleX(1);
  transform-origin: start;
}

/* 7. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide__bg-img,
  .hero__portrait-img {
    transform: none !important;
    transition: none !important;
  }
}