/* animations.css: scroll + hover animations for SiO₂ */

.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth hero and card hover */
.hero__content, .card, .media-frame img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.media-frame:hover img {
  transform: scale(1.04);
}

/* FadeIn animations for use via JS or utility class */
.fadeInUp {
  animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back-to-top button */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.4s ease;
  z-index: 999;
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--brand-2);
}