/* Advanced Animations & Micro-interactions */

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  pointer-events: none;
}

/* Hover Effects */
button, a[class*="btn"], .card-hover {
  position: relative;
  overflow: hidden;
}

button::before, 
a[class*="btn"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before,
a[class*="btn"]:hover::before {
  width: 300px;
  height: 300px;
}

/* Fade In on Scroll */
[data-gsap-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

/* Card Animations */
.article-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: #c8a34b;
  box-shadow: 0 20px 40px rgba(200, 163, 75, 0.15);
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

[data-float] {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animate {
  background: linear-gradient(-45deg, #c8a34b, #fff, #c8a34b, #fff);
  background-size: 300% 300%;
  animation: gradient-shift 15s ease infinite;
}

/* Slide In */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bounce In */
@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Input Focus Animation */
input:focus, 
textarea:focus, 
select:focus {
  box-shadow: 0 0 0 3px rgba(200, 163, 75, 0.1);
  animation: pulse 0.4s ease-out;
}

/* Newsletter Form Animation */
#footer-newsletter,
#newsletter-form {
  animation: slide-in 0.6s ease-out;
}

/* Button Press Animation */
button:active {
  transform: scale(0.98);
}

/* Loading State */
.loading {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Success State */
.success {
  animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #10b981;
}

/* Error State */
.error {
  animation: shake 0.5s;
  color: #ef4444;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Text Gradient Animation */
.gradient-text {
  background: linear-gradient(135deg, #c8a34b, #fff, #c8a34b);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

/* Stagger Animation for Lists */
ul li {
  animation: slide-in 0.5s ease-out;
  animation-fill-mode: both;
}

ul li:nth-child(1) { animation-delay: 0.1s; }
ul li:nth-child(2) { animation-delay: 0.2s; }
ul li:nth-child(3) { animation-delay: 0.3s; }
ul li:nth-child(4) { animation-delay: 0.4s; }
ul li:nth-child(5) { animation-delay: 0.5s; }
ul li:nth-child(n+6) { animation-delay: calc(0.1s * (n - 5)); }
