/* ================================
   PLÄANT — ANIMATION STYLES
   ================================ */

/* ---- SCROLL ANIMATIONS ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- PAGE LOAD ANIMATION ---- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  animation: fadeInDown 0.6s ease;
}

/* ---- HOVER ANIMATIONS ---- */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---- INTERACTIVE ELEMENTS ---- */
.btn-primary, .btn-ghost, .btn-outline {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-ghost::before,
.btn-outline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.btn-primary:active::before,
.btn-ghost:active::before,
.btn-outline:active::before {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  from {
    width: 0;
    height: 0;
  }
  to {
    width: 300px;
    height: 300px;
  }
}

/* ---- STAGGER ANIMATION FOR GRIDS ---- */
.product-card,
.why-card,
.stat {
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- LOADING STATE ---- */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(
    90deg,
    #EDE8DF 25%,
    #F7F3EE 50%,
    #EDE8DF 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ---- TRANSITION DELAYS FOR STAGGER ---- */
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }

.why-card:nth-child(1) { animation-delay: 0s; }
.why-card:nth-child(2) { animation-delay: 0.1s; }
.why-card:nth-child(3) { animation-delay: 0.2s; }
.why-card:nth-child(4) { animation-delay: 0.3s; }

/* ---- MOBILE MENU ANIMATION ---- */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.nav-links.open {
  animation: slideInLeft 0.3s ease;
}

/* ---- HAMBURGER ANIMATION ---- */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ---- FORM INPUT FOCUS ---- */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 60, 46, 0.1);
}

/* ---- BACKDROP ANIMATIONS ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
