/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== ANIMATED ELEMENTS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-on-scroll.slide-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-on-scroll.slide-right {
  animation: slideInRight 0.8s ease forwards;
}

.animate-on-scroll.scale-in {
  animation: scaleIn 0.6s ease forwards;
}

/* ===== STAGGER ANIMATIONS ===== */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: 0.35s; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: 0.4s; }

/* ===== HERO ANIMATIONS ===== */
.hero-badge {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title {
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-subtitle {
  animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-actions {
  animation: fadeInUp 0.6s ease 0.8s both;
}

.hero-stats {
  animation: fadeInUp 0.6s ease 1s both;
}

/* ===== SMOOTH HOVER EFFECTS ===== */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== NUMBER COUNTER ===== */
.counter-animated {
  display: inline-block;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-dim);
}

/* ===== GLOW EFFECTS ===== */
.glow-accent {
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.2);
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

/* ===== TRANSITION UTILITY ===== */
.no-transition * {
  transition: none !important;
  animation: none !important;
}
