/*!
 * Unit Three Collective – Animations
 * Smooth, performance-friendly CSS animations
 */

/* ─── Keyframes ─── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .7;
  }
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

/* ─── Hero entrance ─── */
.hero-title {
  animation: fadeInDown .8s ease both;
  animation-delay: .1s;
}

.hero-sub {
  animation: fadeInUp .8s ease both;
  animation-delay: .3s;
}

.hero-desc {
  animation: fadeIn .8s ease both;
  animation-delay: .5s;
}

.hero-cta {
  animation: fadeInUp .8s ease both;
  animation-delay: .65s;
}

/* ─── Header logo / nav ─── */
.site-logo {
  animation: fadeIn .5s ease both;
}

.main-navigation .nav-menu li {
  animation: fadeInDown .4s ease both;
}

.main-navigation .nav-menu li:nth-child(1) {
  animation-delay: .05s;
}

.main-navigation .nav-menu li:nth-child(2) {
  animation-delay: .10s;
}

.main-navigation .nav-menu li:nth-child(3) {
  animation-delay: .15s;
}

.main-navigation .nav-menu li:nth-child(4) {
  animation-delay: .20s;
}

.main-navigation .nav-menu li:nth-child(5) {
  animation-delay: .25s;
}

.main-navigation .nav-menu li:nth-child(6) {
  animation-delay: .30s;
}

.main-navigation .nav-menu li:nth-child(7) {
  animation-delay: .35s;
}

.main-navigation .nav-menu li:nth-child(8) {
  animation-delay: .40s;
}

.main-navigation .nav-menu li:nth-child(9) {
  animation-delay: .45s;
}

/* ─── Card hover lift (supplement to style.css) ─── */
.utc-product-card,
.utc-event-card,
.utc-tap-card {
  will-change: transform;
}

/* ─── Scroll-reveal classes (toggled by JS) ─── */
[data-anim] {
  opacity: 0;
  transition: opacity .65s ease, transform .65s ease;
}

[data-anim="fade-up"] {
  transform: translateY(32px);
}

[data-anim="fade-left"] {
  transform: translateX(-32px);
}

[data-anim="fade-right"] {
  transform: translateX(32px);
}

[data-anim="scale"] {
  transform: scale(.95);
}

[data-anim].in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="100"] {
  transition-delay: .10s;
}

[data-delay="200"] {
  transition-delay: .20s;
}

[data-delay="300"] {
  transition-delay: .30s;
}

[data-delay="400"] {
  transition-delay: .40s;
}

[data-delay="500"] {
  transition-delay: .50s;
}

/* ─── Skeleton loader shimmer (Elementor placeholder) ─── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ─── Floating icon (optional decorative) ─── */
.float-icon {
  animation: float 3s ease-in-out infinite;
}

/* ─── Button ripple ─── */
.btn-utc,
.wp-element-button {
  position: relative;
  overflow: hidden;
}

.btn-utc::after,
.wp-element-button::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .5s ease, opacity .5s ease;
  opacity: 0;
}

.btn-utc:active::after,
.wp-element-button:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}

/* ─── Page transition overlay ─── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--utc-dark, #030213);
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s cubic-bezier(.76, 0, .24, 1);
  pointer-events: none;
}

.page-transition-overlay.animating {
  transform: scaleY(1);
  transform-origin: top;
}

/* ─── Reduce motion ─── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}