/* ===========================
   PROFESSIONAL ANIMATIONS
   =========================== */

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

  100% {
    transform: translateX(-100%);
  }
}

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

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In From Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide From Right Animation (Hero) */
@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide From Left Animation (Hero) */
@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In From Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Glow Animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 163, 115, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 163, 115, 0.6);
  }
}

/* ===========================
   ANIMATION UTILITY CLASSES
   =========================== */

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

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

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

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

/* Delay Classes */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-600 {
  animation-delay: 600ms;
}

/* Scroll-triggered Animation Classes */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Parallax Effect Base */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Smooth Transitions */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

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

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* ===========================
   HERO SECTION ANIMATIONS
   =========================== */

/* Slide from Left Animation */
@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-120%) scale(0.5);
  }
  60% {
    transform: translateX(5%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.animate-slide-from-left {
  animation: slideFromLeft 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Slide from Right Animation */
@keyframes slideFromRight {
  0% {
    opacity: 0;
    transform: translateX(120%) scale(0.5);
  }
  60% {
    transform: translateX(-5%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.animate-slide-from-right {
  animation: slideFromRight 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Center Glow Animation - Meeting Effect */
@keyframes centerGlow {
  0%, 100% {
    opacity: 0;
    transform: scaleX(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.animate-center-glow {
  animation: centerGlow 3s ease-in-out infinite;
  transform-origin: center;
}

/* Enhanced Center Glow - One Time Dramatic Effect */
@keyframes centerGlowEnhanced {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  30% {
    opacity: 0.8;
    transform: scaleX(1.2);
  }
  60% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

.animate-center-glow-enhanced {
  animation: centerGlowEnhanced 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: center;
}

/* Enhanced Float Animation for Coffee Beans */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  50% {
    transform: translateY(-20px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

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

/* Slide Down Animation */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-100%) scaleY(0);
  }
  60% {
    opacity: 1;
    transform: translateY(5%) scaleY(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.animate-slide-down {
  animation: slideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: top;
}

/* Slide Up Animation */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(100%) scaleY(0);
  }
  60% {
    opacity: 1;
    transform: translateY(-5%) scaleY(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom;
}

/* Expand from Left to Center */
@keyframes expandRight {
  0% {
    width: 0;
    opacity: 0;
    box-shadow: 0 0 0 rgba(212, 163, 115, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(212, 163, 115, 0.6);
  }
  100% {
    width: 50%;
    opacity: 1;
    box-shadow: 0 0 10px rgba(212, 163, 115, 0.3);
  }
}

.animate-expand-right {
  animation: expandRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Expand from Right to Center */
@keyframes expandLeft {
  0% {
    width: 0;
    opacity: 0;
    box-shadow: 0 0 0 rgba(139, 111, 71, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(139, 111, 71, 0.6);
  }
  100% {
    width: 50%;
    opacity: 1;
    box-shadow: 0 0 10px rgba(139, 111, 71, 0.3);
  }
}

.animate-expand-left {
  animation: expandLeft 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Pulsing Scale Animation */
@keyframes pulseScale {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0.3;
  }
}

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

/* Fade In Float Animation - For Coffee Beans */
@keyframes fadeInFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 0.2;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in-float {
  animation: fadeInFloat 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
             float 6s ease-in-out 0.8s infinite;
}

/* Reveal Pulse Animation - Dramatic Center Point */
@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.animate-reveal-pulse {
  animation: revealPulse 1s cubic-bezier(0.4, 0, 0.2, 1) forwards,
             pulseScale 2s ease-in-out 2s infinite;
}

/* Burst Animation - Particle Effect */
@keyframes burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}

.animate-burst {
  animation: burst 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
