/* Animations CSS */

/* Fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide up */
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Pulse */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Apply animations */
.hero-title, 
.hero-subtitle, 
.signup-form, 
.device-mockup,
.section-header h2,
.section-header p {
  animation: slideUp 0.6s ease-out forwards;
}

.hero-subtitle {
  animation-delay: 0.1s;
}

.signup-form {
  animation-delay: 0.2s;
}

.section-header p {
  animation-delay: 0.1s;
}

.ticker-item {
  animation: fadeIn 0.5s ease-out forwards;
}

.ticker-item:nth-child(1) {
  animation-delay: 0.1s;
}

.ticker-item:nth-child(2) {
  animation-delay: 0.2s;
}

.ticker-item:nth-child(3) {
  animation-delay: 0.3s;
}

.ticker-item:nth-child(4) {
  animation-delay: 0.4s;
}

.crypto-card {
  animation: fadeIn 0.5s ease-out forwards;
}

.crypto-card:nth-child(1) {
  animation-delay: 0.1s;
}

.crypto-card:nth-child(2) {
  animation-delay: 0.15s;
}

.crypto-card:nth-child(3) {
  animation-delay: 0.2s;
}

.crypto-card:nth-child(4) {
  animation-delay: 0.25s;
}

.btn-primary:hover {
  animation: pulse 0.6s ease-out;
}

.feature-card:hover .feature-icon,
.cta-text .btn-light:hover {
  animation: pulse 0.6s ease-out;
}

/* Price chart animation */
.price-chart {
  position: relative;
  overflow: hidden;
}

.price-chart::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: 
    linear-gradient(90deg, 
      rgba(0, 82, 255, 0.1) 0%, 
      rgba(0, 82, 255, 0.2) 50%, 
      rgba(0, 82, 255, 0.1) 100%);
  animation: wave 3s ease-in-out infinite alternate;
}

@keyframes wave {
  0% {
    transform: translateX(-30%) scaleY(1);
  }
  50% {
    transform: translateX(0%) scaleY(0.8);
  }
  100% {
    transform: translateX(30%) scaleY(1);
  }
}

/* Hover animations */
.nav-link {
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Button hover effect */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

/* Floating animation for device */
.device-mockup {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Trophy pulse animation */
.trophy-graphic {
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
}