/* ===================================
   Custom Animations - Ariston
   =================================== */

/* ---------- Phone ringing ---------- */
@keyframes phone-ring {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-15deg);
  }
  20%, 40% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(0deg);
  }
}


/* ---------- Pulse Ring (mobile call button) ---------- */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(202, 23, 53, 0.6),
                0 8px 24px rgba(202, 23, 53, 0.25);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(202, 23, 53, 0),
                0 8px 24px rgba(202, 23, 53, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(202, 23, 53, 0),
                0 8px 24px rgba(202, 23, 53, 0.25);
  }
}


/* ---------- Dot pulse (CTA online indicator) ---------- */
@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    transform: scale(1);
  }
}


/* ---------- Slow Spin (logo gear) ---------- */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fa-spin-slow {
  animation: spin-slow 8s linear infinite;
}

.logo:hover .fa-spin-slow {
  animation-duration: 2s;
}


/* ---------- Slide Down Fade ---------- */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ---------- Slide In From Left (drawer) ---------- */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* ---------- Fade In ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* ---------- Stagger items ---------- */
@keyframes staggerFadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-drawer.is-active .mobile-nav-links > li {
  opacity: 0;
  animation: staggerFadeUp 0.4s ease forwards;
}

.mobile-drawer.is-active .mobile-nav-links > li:nth-child(1) { animation-delay: 0.10s; }
.mobile-drawer.is-active .mobile-nav-links > li:nth-child(2) { animation-delay: 0.15s; }
.mobile-drawer.is-active .mobile-nav-links > li:nth-child(3) { animation-delay: 0.20s; }
.mobile-drawer.is-active .mobile-nav-links > li:nth-child(4) { animation-delay: 0.25s; }
.mobile-drawer.is-active .mobile-nav-links > li:nth-child(5) { animation-delay: 0.30s; }
.mobile-drawer.is-active .mobile-nav-links > li:nth-child(6) { animation-delay: 0.35s; }


/* ---------- Service Cards stagger reveal ---------- */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown:hover .service-card,
.dropdown.is-open .service-card {
  opacity: 0;
  animation: cardReveal 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--card-delay, 0s);
}


/* ---------- Header reveal on load ---------- */
@keyframes headerReveal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ariston-header {
  animation: headerReveal 0.6s ease-out;
}


/* ---------- Glow ---------- */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(202, 23, 53, 0.25);
  }
  50% {
    box-shadow: 0 8px 30px rgba(202, 23, 53, 0.45);
  }
}


/* ---------- Float (hero shapes) ---------- */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -25px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 20px) scale(0.97);
  }
}


/* ---------- Scroll Wheel indicator ---------- */
@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}


/* ---------- Bounce In ---------- */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
