/* 
 * SALIKA Agriculture Cooperative Styles
 * Table of Contents:
 * 1. Imports
 * 2. Base Styles
 * 3. Typography
 * 4. Components
 * 5. Utilities
 * 6. Animations
 * 7. Custom Colors
 * 8. Custom Scrollbar
 */

/* 1. Imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* 2. Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  color: #4B5563;
}

/* 3. Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* 4. Components */
.hero-pattern {
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23466d38' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Buttons */
.btn-primary {
  background-color: #4F7942;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #3D5E33;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #CD7F32;
  color: white;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #B06C2D;
  transform: translateY(-2px);
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #4F7942;
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

/* Cards */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
}

/* Images */
.img-overlay {
  transition: all 0.4s ease;
}

.img-overlay:hover {
  filter: brightness(1.1);
}

/* Lazy Loading */
img[data-src], img[data-srcset] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.lazy-loaded {
  opacity: 1;
}

/* 5. Utilities */
.bg-light-green {
  background-color: #EFF6EE;
}

.text-green-custom {
  color: #4F7942;
}

.bg-green-custom {
  background-color: #4F7942;
}

.bg-brown-custom {
  background-color: #CD7F32;
}

/* 6. Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* 7. Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #4F7942;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3D5E33;
}
