/* Apple-style Scroll Animations */

/* Base animation classes */
.scroll-animate {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.visible {
  opacity: 1;
}

/* Fade up animation */
.fade-up {
  transform: translateY(60px);
}

.fade-up.visible {
  transform: translateY(0);
}

/* Fade down animation */
.fade-down {
  transform: translateY(-60px);
}

.fade-down.visible {
  transform: translateY(0);
}

/* Fade left animation */
.fade-left {
  transform: translateX(60px);
}

.fade-left.visible {
  transform: translateX(0);
}

/* Fade right animation */
.fade-right {
  transform: translateX(-60px);
}

.fade-right.visible {
  transform: translateX(0);
}

/* Scale up animation */
.scale-up {
  transform: scale(0.9);
}

.scale-up.visible {
  transform: scale(1);
}

/* Scale down animation */
.scale-down {
  transform: scale(1.1);
}

.scale-down.visible {
  transform: scale(1);
}

/* Blur in animation */
.blur-in {
  filter: blur(10px);
  transform: scale(0.95);
}

.blur-in.visible {
  filter: blur(0);
  transform: scale(1);
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children > *:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children > *:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger-children > *:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger-children > *:nth-child(5) {
  transition-delay: 0.4s;
}

.stagger-children > *:nth-child(6) {
  transition-delay: 0.5s;
}

/* Hero Section - Special animations */
.hero-animate {
  opacity: 0;
}

.hero-animate.visible {
  opacity: 1;
}

.hero-title-animate {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-subtitle-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

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

.hero-text-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

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

/* Section header animations */
.section-badge {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-badge.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-title {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.section-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card animations */
.card-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card hover effects - Apple style */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
  box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 194, 222, 0.15);
}

/* Pricing card special animation */
.pricing-card-animate {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Icon bounce animation on scroll */
.icon-animate {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-animate.visible {
  opacity: 1;
  transform: scale(1);
}

/* Text reveal animation */
.text-reveal {
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax-like slow scroll effect */
.parallax-slow {
  transition: transform 0.1s linear;
}

/* Counter animation styling */
.counter-animate {
  display: inline-block;
}

/* Smooth section transitions */
section {
  position: relative;
  overflow: hidden;
}

/* Gradient line decoration */
.gradient-line {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00c2de, #00a8c5);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 1rem auto;
}

.gradient-line.visible {
  width: 80px;
}

/* Image zoom on scroll */
.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom.visible img {
  transform: scale(1.05);
}

/* Footer animation */
.footer-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .hero-title-animate,
  .hero-subtitle-animate,
  .hero-text-animate,
  .section-badge,
  .section-title,
  .section-subtitle,
  .card-animate,
  .pricing-card-animate,
  .icon-animate,
  .text-reveal,
  .gradient-line,
  .footer-animate {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
