/* Scroll Animations CSS - Pizzan Style */

/* Base animation setup */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
}

/* Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
}

.fade-in-up.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In Left */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
}

.fade-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Fade In Right */
.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
}

.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom In */
.zoom-in {
  opacity: 0;
  transform: scale(0.8);
}

.zoom-in.animated {
  opacity: 1;
  transform: scale(1);
}

/* Slide In Left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
}

.slide-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Slide In Right */
.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
}

.slide-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

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

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

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

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

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 20s linear infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.shake:hover {
  animation: shake 0.5s;
}

/* Parallax */
.parallax {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Counter */
.counter-number {
  font-size: 48px;
  font-weight: 700;
  color: #ff6b35;
  display: inline-block;
}

/* Image Reveal */
.reveal-image {
  position: relative;
  overflow: hidden;
}

.reveal-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff6b35;
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}

.reveal-image.revealed::before {
  transform: translateX(100%);
}

.reveal-image img {
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}

.reveal-image.revealed img {
  opacity: 1;
}

/* Card Tilt */
.card-tilt {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* Button Magnetic */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger List */
.stagger-list > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Text Animation */
@keyframes textSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.text-animate:nth-child(1) { animation-delay: 0.1s; }
.text-animate:nth-child(2) { animation-delay: 0.2s; }
.text-animate:nth-child(3) { animation-delay: 0.3s; }

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Glow Effect */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 30px rgba(255, 107, 53, 0.6);
  }
}

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

/* Slide Up on Scroll */
.slide-up {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up.animated {
  transform: translateY(0);
  opacity: 1;
}

/* Scale on Scroll */
.scale-up {
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Rotate on Scroll */
.rotate-in {
  transform: rotate(-180deg) scale(0.5);
  opacity: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-in.animated {
  transform: rotate(0) scale(1);
  opacity: 1;
}

/* Delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Duration classes */
.duration-fast { transition-duration: 0.3s; }
.duration-normal { transition-duration: 0.6s; }
.duration-slow { transition-duration: 1s; }
