/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.delay-1 {
  transition-delay: 0.15s;
}

.scroll-reveal.delay-2 {
  transition-delay: 0.3s;
}

.scroll-reveal.delay-3 {
  transition-delay: 0.45s;
}

.scroll-reveal.delay-4 {
  transition-delay: 0.6s;
}

/* Hero Section Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
  animation-delay: 0.4s;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Feature Card Hover Animation */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Pricing Card Animation */
.pricing-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-featured {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
  }
}

/* Button Animations */
.btn {
  position: relative;
  overflow: hidden;
}

.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;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateY(-2px);
}

/* Store Button Animation */
.store-button {
  position: relative;
}

.store-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-purple-primary);
  transition: width 0.4s ease;
}

.store-button:hover::after {
  width: 100%;
}

/* Phone Mockup Animation */
.phone-mockup {
  animation: floatPhone 3s ease-in-out infinite;
}

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

/* Pulse Animation for Hero */
.pulse-indicator::before,
.pulse-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: var(--color-purple-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.pulse-indicator::before {
  animation: pulse-ring-before 2s ease-out infinite;
}

.pulse-indicator::after {
  animation: pulse-ring-after 2s ease-out infinite 1s;
}

@keyframes pulse-ring-before {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

@keyframes pulse-ring-after {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Header Scroll Effect */
.header.scrolled {
  background: rgba(26, 26, 36, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Trust List Animation */
.trust-list li {
  transition: all 0.3s ease;
}

.trust-list li:hover {
  transform: translateX(8px);
}

.trust-list svg {
  transition: transform 0.3s ease;
}

.trust-list li:hover svg {
  transform: scale(1.2);
}

/* Step Number Animation */
.step-number {
  transition: all 0.4s ease;
}

.step.revealed .step-number {
  animation: slideInNumber 0.8s ease forwards;
}

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

/* Stagger Animation for Features Grid */
.feature-card:nth-child(1) {
  transition-delay: 0s;
}

.feature-card:nth-child(2) {
  transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.2s;
}

.feature-card:nth-child(4) {
  transition-delay: 0.3s;
}

.feature-card:nth-child(5) {
  transition-delay: 0.4s;
}

.feature-card:nth-child(6) {
  transition-delay: 0.5s;
}

/* Hover Effect for Images */
.step-image,
.trust-visual,
.download-visual {
  overflow: hidden;
  transition: all 0.4s ease;
}

.step-image img,
.trust-visual img,
.download-visual img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-image:hover img,
.trust-visual:hover img,
.download-visual:hover img {
  transform: scale(1.05);
}

/* Footer Links Animation */
.footer-column a {
  position: relative;
}

.footer-column a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--color-purple-primary);
  transition: width 0.3s ease;
}

.footer-column a:hover::before {
  width: 8px;
}

/* CTA Section Animation */
.cta-content {
  transition: all 0.4s ease;
}

.cta-content.revealed {
  animation: scaleIn 0.6s ease forwards;
}

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

/* Logo Hover Animation */
.logo svg,
.footer-logo svg {
  transition: all 0.3s ease;
}

.logo:hover svg,
.footer-logo:hover svg {
  transform: rotate(180deg);
}

/* Pricing Badge Animation */
.pricing-badge {
  animation: slideDown 0.6s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile Menu Animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Hero Background Shape Animation */
.hero-bg-shape {
  animation: shapeFloat 20s ease-in-out infinite;
}

@keyframes shapeFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10%, -5%) rotate(5deg);
  }
  50% {
    transform: translate(-5%, 10%) rotate(-5deg);
  }
  75% {
    transform: translate(5%, -10%) rotate(3deg);
  }
}

/* Smooth transitions for color changes */
* {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* Override for elements that shouldn't inherit transitions */
.btn,
.scroll-reveal,
.fade-in-up,
.fade-in,
img {
  transition: all 0.3s ease;
}

/* Loading Animation for Images */
img {
  animation: imageLoad 0.6s ease;
}

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

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

  .scroll-reveal,
  .fade-in-up,
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
