/* Animations for ePokana website */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Subtle Scale */
@keyframes subtleScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Shine Effect */
@keyframes shine {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-fadeInUp {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInLeft {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.animate-scale {
  opacity: 0;
  animation: subtleScale 0.8s ease forwards;
}

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

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

/* Staggered Animation Delays */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-800 {
  animation-delay: 0.8s;
}

/* Shine effect for CTA buttons */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  background-position: -200% 0;
  background-repeat: no-repeat;
  animation: shine 3s infinite;
}

/* Special animations for specific elements */
.logo a {
  position: relative;
}

.logo a span {
  display: inline-block;
  animation: float 3s infinite ease-in-out;
}

.hero-content {
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
}

.phone-item {
  transition: all 0.3s ease;
}

.phone-item:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered scroll animations for feature cards and pricing cards */
.features-grid .feature-card:nth-child(1),
.pricing-cards .pricing-card:nth-child(1) {
  transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(2),
.pricing-cards .pricing-card:nth-child(2) {
  transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(3),
.pricing-cards .pricing-card:nth-child(3) {
  transition-delay: 0.3s;
}

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

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

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

/* Phone items staggered animation */
.phone-showcase .phone-item:nth-child(1) {
  transition-delay: 0.1s;
}

.phone-showcase .phone-item:nth-child(2) {
  transition-delay: 0.3s;
}

.phone-showcase .phone-item:nth-child(3) {
  transition-delay: 0.5s;
}

/* Testimonial cards staggered animation */
.testimonials-slider .testimonial-card:nth-child(1) {
  transition-delay: 0.1s;
}

.testimonials-slider .testimonial-card:nth-child(2) {
  transition-delay: 0.3s;
}

.testimonials-slider .testimonial-card:nth-child(3) {
  transition-delay: 0.5s;
}

/* FAQ items staggered animation */
.faq-list .faq-item:nth-child(1) {
  transition-delay: 0.1s;
}

.faq-list .faq-item:nth-child(2) {
  transition-delay: 0.2s;
}

.faq-list .faq-item:nth-child(3) {
  transition-delay: 0.3s;
}

.faq-list .faq-item:nth-child(4) {
  transition-delay: 0.4s;
}
