/* 🎨 Neolife Wellness - Modern Animations & Effects */

/* ===== FLOATING & FADE ANIMATIONS ===== */
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSide {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(22, 120, 110, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(22, 120, 110, 0.6);
  }
}

/* ===== PARALLAX EFFECT (via JS adjustment) ===== */
@keyframes parallaxBg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -100px;
  }
}

/* ===== IMAGE ROTATION & SCALE ===== */
@keyframes rotateScale {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1.1);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== MARQUEE ANIMATION (no marquee tag - CSS fallback) ===== */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes marqueeReverse {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== SHIMMER/LOADING EFFECT ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(22, 120, 110, 0.5);
  }
  50% {
    border-color: rgba(22, 120, 110, 1);
  }
}

/* ===== BOUNCE EFFECTS ===== */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== ANIMATION UTILITY CLASSES ===== */
.animate-float-up {
  animation: floatUp 0.8s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-side {
  animation: floatSide 2s ease-in-out infinite;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-slide-down {
  animation: slideInDown 0.6s ease-out;
}

.animate-pulse-glow {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 1.5s ease-in-out infinite;
}

.animate-rotate-scale {
  animation: rotateScale 8s linear infinite;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

.animate-bounce {
  animation: bounce 1s ease-in-out infinite;
}

.animate-bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-border-glow {
  animation: borderGlow 1.5s ease-in-out infinite;
}

/* ===== STAGGER ANIMATION (for multiple elements) ===== */
.stagger-item {
  opacity: 0;
  animation: floatUp 0.8s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ===== MARQUEE CONTAINER ===== */
.marquee-container {
  overflow: hidden;
  background: linear-gradient(90deg, #f5f5f5 0%, #ffffff 50%, #f5f5f5 100%);
  padding: 20px 0;
}

.marquee {
  display: flex;
  animation: marquee 30s linear infinite;
  gap: 30px;
  width: fit-content;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  min-width: 400px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #16786e;
  transition: all 0.3s ease;
}

.marquee-item:hover {
  box-shadow: 0 8px 24px rgba(22, 120, 110, 0.2);
  transform: translateY(-5px);
}

.marquee-item.review {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

/* ===== CAROUSEL STYLES ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(22, 120, 110, 0.6);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(22, 120, 110, 0.7);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 5px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(22, 120, 110, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

/* ===== PARALLAX CONTAINER ===== */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

.parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 120, 110, 0.4);
  z-index: 1;
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(22, 120, 110, 0.2);
}

.hover-glow:hover {
  box-shadow: 0 0 25px rgba(22, 120, 110, 0.6);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #16786e 0%, #0fa76a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 3s ease-in-out infinite;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .marquee-item {
    min-width: 300px;
    padding: 15px;
  }
  
  .carousel-nav {
    padding: 10px 15px;
    font-size: 18px;
  }
}
