/* Custom Styles for Earth Connection Community */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Shipibo-inspired pattern background */
.shipibo-pattern {
  background-image: url('images/shipibo-pattern.jpg');
  background-repeat: repeat;
  background-size: 300px;
  opacity: 0.08;
}

/* Add animation for navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #2D6A4F;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Button hover effects */
.btn-primary {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Section transitions */
section {
  position: relative;
  transition: background-color 0.5s ease;
}

.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Image hover effects */
.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.02);
}

/* Custom animation for about section */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.2s;
}

.animate-delay-2 {
  animation-delay: 0.4s;
}

.animate-delay-3 {
  animation-delay: 0.6s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F2EBE3;
}

::-webkit-scrollbar-thumb {
  background: #2D6A4F;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1b4332;
}

/* Footer pattern overlay */
.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/shipibo-pattern.jpg');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.05;
  z-index: 0;
}

/* Mobile menu animations */
@keyframes slideDown {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-menu-open {
  animation: slideDown 0.3s ease forwards;
}