/* Utility animations based on Web Animations API & CSS Transitions */

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal / Sheet transitions */
.modal-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.is-active {
  opacity: 1;
}

.modal-content {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.modal-content.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Accordion/Dropdown transitions */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}

.accordion-content.is-open {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

/* Page Transitions */
.page-fade-in {
  animation: fadeIn 0.4s var(--ease-out) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
