/* Natex Extracts - Animation Styles */

/* Leaf Animation */
@keyframes floatLeaf {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Logo Animation */
.site-logo img {
  transition: transform 0.5s ease;
}

.site-logo:hover img {
  transform: scale(1.05);
}

/* Animated Leaf Elements */
.animated-leaf {
  position: absolute;
  width: 40px;
  height: 40px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%234D9C2D" d="M50,10 C70,25 90,40 80,70 C70,90 30,90 20,70 C10,40 30,25 50,10 Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

.leaf-1 {
  top: 10%;
  left: 5%;
  animation: floatLeaf 8s ease-in-out infinite;
}

.leaf-2 {
  top: 15%;
  right: 10%;
  animation: floatLeaf 12s ease-in-out infinite 1s;
  transform: rotate(45deg);
}

.leaf-3 {
  bottom: 20%;
  left: 15%;
  animation: floatLeaf 10s ease-in-out infinite 2s;
  transform: rotate(-30deg);
}

.leaf-4 {
  bottom: 30%;
  right: 5%;
  animation: floatLeaf 9s ease-in-out infinite 3s;
  transform: rotate(15deg);
}

/* Hero Section Animations */
.hero-headline {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.hero-subheadline {
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

.cta-button {
  animation: fadeInUp 1s ease-out 0.6s forwards;
  opacity: 0;
}

/* Section Title Animation */
.section-title {
  position: relative;
  overflow: hidden;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.8) 50%, 
    rgba(255,255,255,0) 100%);
  z-index: 1;
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
  background-size: 200% 100%;
  pointer-events: none;
}

/* Card Hover Effects */
.tech-feature,
.highlight-card,
.application-card,
.compliance-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-feature:hover,
.highlight-card:hover,
.application-card:hover,
.compliance-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Animated Background for Product Section */
.product-section {
  position: relative;
  overflow: hidden;
}

.product-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="1" stroke-opacity="0.1"/></svg>');
  background-size: 100px 100px;
  opacity: 0.3;
  animation: pulse 20s infinite linear;
  pointer-events: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .animated-leaf {
    width: 30px;
    height: 30px;
  }
  
  .leaf-1, .leaf-2, .leaf-3, .leaf-4 {
    animation-duration: 6s;
  }
  
  .hero-headline,
  .hero-subheadline,
  .cta-button {
    animation-delay: 0.2s;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .animated-leaf {
    animation: none;
  }
  
  .hero-headline,
  .hero-subheadline,
  .cta-button {
    animation: none;
    opacity: 1;
  }
  
  .section-title::before {
    animation: none;
  }
  
  .product-section::before {
    animation: none;
  }
}