/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

/* FADE IN UP */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* SCALE UP */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-up {
  animation: scaleUp 0.5s ease-out;
}

/* FLOAT */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* GLOW PULSE */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.6);
  }
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

/* SLIDE IN LEFT */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* SLIDE IN RIGHT */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* COUNT UP NUMBERS */
@keyframes countUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.count-up {
  animation: countUp 0.6s ease-out;
}

/* SPIN */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

/* BOUNCE */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 1s ease-in-out infinite;
}

/* SHIMMER */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  background-size: 1000px 100%;
}

/* GRADIENT ANIMATION */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animate {
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

/* PARALLAX EFFECT (applies on scroll via JS) */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* HOVER LIFT */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* HOVER GLOW */
.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
}

/* SMOOTH TRANSITION */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FADE OVERLAY ON SCROLL */
.fade-on-scroll {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.fade-on-scroll.scrolled-out {
  opacity: 0.5;
}

/* BACKGROUND BLUR */
.blur-bg {
  background-color: rgba(11, 31, 59, 0.8);
  backdrop-filter: blur(10px);
}

/* GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(135deg, var(--color-action), var(--color-highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* TYPING EFFECT */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-right-color: transparent;
  }
}

.typing {
  overflow: hidden;
  border-right: 3px solid var(--color-action);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* BUTTON RIPPLE */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

.btn-ripple:active::after {
  animation: ripple 0.6s ease-out;
}

/* STAGGER ANIMATION */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* SCROLL TRIGGER ANIMATIONS */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
}

.scroll-reveal.revealed {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* PROGRESS BAR */
@keyframes progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--color-action), var(--color-highlight));
  animation: progress 2s ease;
}

/* PULSE EFFECT */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* SKELETON LOADER */
.skeleton {
  background: linear-gradient(
    90deg,
    #f3f3f3 25%,
    #e3e3e3 50%,
    #f3f3f3 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* CTA BOUNCE */
@keyframes ctaBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.cta-bounce {
  animation: ctaBounce 1.5s ease-in-out infinite;
}

/* ICON ROTATE */
@keyframes iconRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.icon-rotate {
  animation: iconRotate 2s linear infinite;
}

/* SMOOTH PAGE TRANSITION */
.page-transition {
  animation: fadeInUp 0.5s ease-out;
}

.page-exit {
  animation: fadeInUp 0.3s ease-in reverse;
}
