/* Page Transition */
body.page-transitioning {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

body {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Reveal */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.1s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.2s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.3s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.4s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.5s; }

/* Clip-path Reveal */
[data-clip-reveal] {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

[data-clip-reveal].is-visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}


@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;
  }
  
  [data-reveal],
  [data-stagger] > *,
  [data-clip-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}