/* ==========================================================================
   AURELIA AESTHETIC MEDICINE — ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SCROLL REVEAL (INTERSECTION OBSERVER DRIVEN)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-editorial),
              transform 0.8s var(--ease-editorial);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child items */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* Subtle image clip-path reveal */
.reveal-clip {
  clip-path: inset(10% 0 10% 0);
  opacity: 0;
  transform: scale(1.03);
  transition: clip-path 1s var(--ease-editorial),
              opacity 1s var(--ease-editorial),
              transform 1.2s var(--ease-editorial);
  will-change: clip-path, opacity, transform;
}

.reveal-clip.is-revealed {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: scale(1);
}

/* Fade in only */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s var(--ease-editorial);
}

.reveal-fade.is-revealed {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   2. HERO FLOATING & SUBTLE KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes floatSubtle {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
  animation: floatSubtle 7s ease-in-out infinite;
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-glow {
  animation: pulseSubtle 5s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   3. HOVER & TRANSITION STATES
   -------------------------------------------------------------------------- */
.hover-card {
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hover-zoom-img {
  overflow: hidden;
}

.hover-zoom-img img {
  transition: transform var(--duration-normal) var(--ease-editorial);
}

.hover-zoom-img:hover img {
  transform: scale(1.035);
}

/* Accordion Arrow Rotation */
.accordion-toggle svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.accordion-item.is-active .accordion-toggle svg {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   4. ACCESSIBILITY: REDUCED MOTION OVERRIDE
   -------------------------------------------------------------------------- */
@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;
  }
  
  .reveal,
  .reveal-clip,
  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
