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

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

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

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes borderPulse {
  0%, 100% { border-color: var(--color-border); }
  50% { border-color: rgba(0,212,170,0.4); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 3s ease-in-out infinite;
}

/* SERVICE ICON HOVER */
.service-card:hover .service-icon,
.service-detail-card:hover .icon-large {
  animation: scaleIn 0.3s ease forwards;
}

/* STAT CARD ENTRANCE */
.stat-card.visible {
  animation: slideInUp 0.6s ease forwards;
}

/* LOGO HOVER */
.logo:hover span {
  animation: pulse 1s ease-in-out;
}

/* GLOW BORDER */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--color-gradient);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.glow-border:hover::after {
  opacity: 1;
}

/* SHIMMER TEXT */
.shimmer-text {
  background: linear-gradient(90deg, var(--color-text) 0%, var(--color-accent) 50%, var(--color-text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

/* LOADING SKELETON */
.skeleton {
  background: linear-gradient(90deg, var(--color-card) 25%, rgba(255,255,255,0.05) 50%, var(--color-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* TICKER ENTRANCE */
.ticker-bar {
  animation: slideInUp 0.8s ease forwards;
}

/* TESTIMONIAL CARDS HOVER */
.testimonial-card:hover blockquote {
  color: var(--color-text);
}

/* MARKET MINI CHART HOVER */
.market-card:hover .mini-bar {
  opacity: 0.7;
}

.market-card:hover .mini-bar:nth-child(odd) {
  height: calc(30% + 5px);
}

.market-card:hover .mini-bar:nth-child(even) {
  height: calc(70% + 5px);
}

/* PRICING CARD HOVER */
.pricing-card.featured:hover {
  box-shadow: 0 0 60px rgba(0,212,170,0.2);
}

.pricing-card:hover:not(.featured) {
  transform: translateY(-8px);
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* PARTICLE EFFECT (hero background) */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-200px) scale(0); }
}

/* BUTTON RIPPLE */
.btn-primary::after,
.btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.1);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s, opacity 0.4s;
}

.btn-primary:active::after,
.btn-outline:active::after {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

/* 404 BACKGROUND ANIMATION */
.error-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.error-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
}

.error-bg-shapes .shape:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.error-bg-shapes .shape:nth-child(2) {
  width: 300px;
  height: 300px;
  background: #0066FF;
  bottom: -50px;
  right: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.error-bg-shapes .shape:nth-child(3) {
  width: 200px;
  height: 200px;
  background: var(--color-accent-gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 5s ease-in-out infinite;
}

/* PAGE TRANSITION */
body.page-transitioning {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* COUNTER ANIMATION */
.stat-number.counting {
  animation: countUp 0.5s ease forwards;
}

/* HERO CARD REVEAL */
.hero-card .glass-card {
  animation: slideInRight 0.8s ease forwards;
}

/* RESPONSIVE ANIMATIONS ADJUSTMENTS */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
