/* Hero Section and Background Animations */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  color: white;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenBurnsZoom 20s ease-out forwards;
  z-index: 0;
}

/* Ken Burns Zoom Effect */
@keyframes kenBurnsZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15);
  }
}

/* Gradient Overlay Animation */
.gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.8), rgba(6, 182, 212, 0.7), rgba(37, 99, 235, 0.8));
  }
  25% {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(5, 150, 105, 0.8), rgba(6, 182, 212, 0.7));
  }
  50% {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.7), rgba(37, 99, 235, 0.8), rgba(5, 150, 105, 0.8));
  }
  75% {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.9), rgba(6, 182, 212, 0.7), rgba(37, 99, 235, 0.8));
  }
  100% {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.8), rgba(6, 182, 212, 0.7), rgba(37, 99, 235, 0.8));
  }
}

/* Pattern Overlay */
.pattern-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.2;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
  animation: patternShift 30s linear infinite;
}

@keyframes patternShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

/* Floating Morphing Shapes */
.floating-blob-1 {
  position: absolute;
  width: 384px;
  height: 384px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 60% 40% 30% 70%;
  filter: blur(60px);
  animation: float1 15s ease-in-out infinite;
  top: 10%;
  left: 10%;
  z-index: 1;
}

@keyframes float1 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 60% 40% 30% 70%;
  }
  25% {
    transform: translate(100px, -80px) scale(1.2);
    border-radius: 30% 60% 70% 40%;
  }
  50% {
    transform: translate(-50px, 50px) scale(0.9);
    border-radius: 70% 30% 40% 60%;
  }
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 60% 40% 30% 70%;
  }
}

.floating-blob-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  border-radius: 40% 60% 50% 50%;
  filter: blur(60px);
  animation: float2 18s ease-in-out infinite;
  animation-delay: 2s;
  bottom: 10%;
  right: 10%;
  z-index: 1;
}

@keyframes float2 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 40% 60% 50% 50%;
  }
  25% {
    transform: translate(-100px, 100px) scale(1.3);
    border-radius: 60% 40% 60% 40%;
  }
  50% {
    transform: translate(80px, -60px) scale(1.1);
    border-radius: 50% 50% 40% 60%;
  }
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 40% 60% 50% 50%;
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Spin Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 3s linear infinite;
}

/* Glow Animation */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(5, 150, 105, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(5, 150, 105, 0.5);
  }
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientMove 8s ease infinite;
}

/* Scale Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out;
}

/* Slide In from Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

/* Slide In from Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out;
}

/* Slide In from Top */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideInUp {
  animation: slideInUp 0.8s ease-out;
}

/* Slide In from Bottom */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideInDown {
  animation: slideInDown 0.8s ease-out;
}

/* Stagger animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Hover effect animations */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient background animation */
.bg-animated-gradient {
  background: linear-gradient(-45deg, #059669, #06b6d4, #0ea5e9, #10b981);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Fade in on scroll */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

/* Advanced animations from React app */

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(5, 150, 105, 0.6);
  }
}

/* Wave Animation */
@keyframes wave {
  0% {
    transform: translateX(0) translateY(0) scaleY(1);
  }
  50% {
    transform: translateX(-25%) translateY(5px) scaleY(0.95);
  }
  100% {
    transform: translateX(-50%) translateY(0) scaleY(1);
  }
}

/* Diagonal Movement */
@keyframes diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

/* 3D Rotate */
@keyframes rotate-3d {
  0% {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
  }
  50% {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }
  75% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(-5deg);
  }
  100% {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }
}

/* Bounce Slow */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

/* Spin Slow */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Morph Shape */
@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

/* Blob Animation */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Particle Float */
@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

/* Sparkle */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

/* Slide Diagonal */
@keyframes slide-diagonal {
  0% {
    transform: translate(-100%, -100%);
  }
  100% {
    transform: translate(100%, 100%);
  }
}

/* Pulse Ring */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7),
                0 0 0 0 rgba(6, 182, 212, 0.7);
  }
  40% {
    box-shadow: 0 0 0 20px rgba(5, 150, 105, 0),
                0 0 0 30px rgba(6, 182, 212, 0);
  }
  80%, 100% {
    box-shadow: 0 0 0 20px rgba(5, 150, 105, 0),
                0 0 0 30px rgba(6, 182, 212, 0);
  }
}

/* Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Slide Up */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideUp {
  animation: slideUp 0.8s ease-out;
}

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}
