﻿/*
 * Scroll reveal effects for the Index page.
 * Elements are hidden only when JavaScript adds the "fx-enabled" class
 * to <html>, so the page stays fully visible without JavaScript.
 */

.fx-enabled {
  --fx-distance: 80px;
  --fx-duration: 0.9s;
  --fx-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

  /* Initial (hidden) state */
  .fx-enabled .fx {
    opacity: 0;
    transition: opacity var(--fx-duration) var(--fx-ease), translate var(--fx-duration) var(--fx-ease), transform 0.3s ease;
    transition-delay: var(--fx-delay, 0s), var(--fx-delay, 0s), 0s;
    will-change: opacity, translate;
  }

  /* Direction names describe where the element comes from */
  .fx-enabled .fx-from-left {
    translate: calc(var(--fx-distance) * -1) 0;
  }

  .fx-enabled .fx-from-right {
    translate: var(--fx-distance) 0;
  }

  .fx-enabled .fx-from-bottom {
    translate: 0 var(--fx-distance);
  }

  /* Final (visible) state */
  .fx-enabled .fx.fx-visible {
    opacity: 1;
    translate: 0 0;
  }

/* Smaller travel distance on small screens to avoid horizontal overflow */
@media (max-width: 768px) {
  .fx-enabled {
    --fx-distance: 40px;
    --fx-duration: 0.7s;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fx-enabled .fx {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}
body {
}
