/* Modern Agricultural Theme - Sleek & Contemporary */

:root {
  /* Agricultural Color Palette */
  --primary: #16a34a;      /* Fresh green */
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-soft: #dcfce7;
  --secondary: #7c3a1d;    /* Earth brown */
  --secondary-dark: #5c2a15;
  --accent: #3b82f6;       /* Sky blue */
  --accent-light: #60a5fa;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --harvest: #f59e0b;      /* Golden harvest */
  --soil: #92400e;         /* Rich soil */
  
  /* Clean Neutral Scale */
  --dark: #111827;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --off-white: #fafafa;
  
  /* Subtle, Clean Gradients */
  --gradient-primary: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
  --gradient-section: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  
  /* Clean, Subtle Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  --shadow-clean: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  
  /* Clean Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-smooth: 400ms ease-in-out;
  
  /* Clean Border Radius */
  --radius-none: 0;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Consistent Spacing System */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Clean Borders */
  --border-width: 1px;
  --border-color: rgba(0, 0, 0, 0.06);
  --border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Global Styles - Enhanced */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  letter-spacing: -0.011em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Clean Minimal Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-50);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Clean Typography System */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}

.text-balance {
  text-wrap: balance;
}

/* Clean Navigation Bar */
.modern-nav {
  background: var(--white);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

.modern-nav.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-brand {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
}

.nav-link:hover {
  color: var(--gray-900);
  background: var(--gray-50);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

/* Mobile Menu Animation - Enhanced */
.mobile-menu {
  transform: translateY(-100%);
  transition: transform var(--transition-smooth);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  box-shadow: var(--shadow-2xl);
}

.mobile-menu.active {
  transform: translateY(0);
}

/* Agriculture-Themed Hero Section with Background Image */
.hero-section {
  position: relative;
  padding: 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Agriculture Background with Overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(
      135deg,
      rgba(22, 163, 74, 0.85) 0%,
      rgba(21, 128, 61, 0.75) 50%,
      rgba(5, 46, 22, 0.85) 100%
    ),
    url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

/* Pattern Overlay for Depth */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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="%23ffffff" fill-opacity="0.05"%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');
  opacity: 0.3;
  z-index: 1;
}

.hero-section > div {
  position: relative;
  z-index: 2;
}

.hero-modern {
  position: relative;
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(59, 130, 246, 0.9));
  overflow: hidden;
  border-bottom: var(--border);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
  background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&h=1080&fit=crop'),
                    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  filter: brightness(0.7) contrast(1.2);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
  line-height: 1.6;
  max-width: 600px;
}

/* Clean Modern Cards */
.card-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  transition: all var(--transition-base);
  position: relative;
}

.card-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(15deg);
  }
  100% {
    transform: translateX(100%) rotate(15deg);
  }
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: var(--gray-100);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.card-modern:hover .card-image {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modern Agricultural Button System */
.btn-modern {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  border: var(--border-width) solid transparent;
  cursor: pointer;
  position: relative;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
}

.btn-modern::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::after {
  width: 300px;
  height: 300px;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.btn-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-modern:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* Enhanced Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 100;
}

.fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.fab:active {
  transform: scale(0.95);
}

/* Clean Form Elements */
.form-modern {
  width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  outline: none;
  color: var(--gray-900);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

/* Modern Professional Stats Cards */
.stats-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(220, 252, 231, 0.4) 100%);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Category Cards with Agricultural Theme */
.category-card {
  background: var(--white);
  border: 1px solid rgba(22, 163, 74, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.12);
  border-color: var(--primary-light);
}

.category-card:hover::before {
  opacity: 0.03;
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all var(--transition-base);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.stats-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.05;
  transition: opacity var(--transition-base);
}

.stats-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--gray-300);
}

.stats-card:hover::after {
  opacity: 0.08;
}

.stats-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}

.stats-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.stats-label {
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

/* Utility Classes */
.animate-fadeIn {
  animation: fadeIn 0.8s ease-out;
}

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

.animate-fadeInDown {
  animation: fadeInDown 0.8s ease-out;
}

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

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

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

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

/* Premium Glass Effect with Farm Theme */
.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-farm {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(220, 252, 231, 0.7));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(22, 163, 74, 0.15);
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.08);
}

/* Agricultural Background Patterns */
.farm-pattern {
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(22, 163, 74, 0.03) 100px, rgba(22, 163, 74, 0.03) 200px),
    repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(245, 158, 11, 0.03) 100px, rgba(245, 158, 11, 0.03) 200px);
}

/* Section Backgrounds */
.section-farm-light {
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.2) 0%, rgba(254, 249, 195, 0.1) 100%);
  position: relative;
}

.section-farm-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?w=1920&h=600&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.02;
  pointer-events: none;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Loading Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* Premium Notification Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(4, 120, 87, 0.1);
  color: var(--primary);
  border: 1px solid rgba(4, 120, 87, 0.2);
}

.badge-secondary {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Responsive Grid */
.grid-modern {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Content Cards */
.content-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.08);
  overflow: hidden;
  transition: all var(--transition-base);
}

.content-card:hover {
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.12);
  transform: translateY(-2px);
}

/* Professional Section Styling */
.section-padding {
  padding: 6rem 0;
  position: relative;
}

.section-with-bg {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-align: center;
  background: linear-gradient(135deg, var(--gray-900), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
  font-weight: 400;
}

/* Stagger Animation */
.stagger-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Responsiveness - Agriculture Theme */
@media (max-width: 768px) {
  /* Hero section mobile optimization */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    background-attachment: scroll;
    background-position: center center;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Mobile navigation adjustments */
  .nav-brand span {
    font-size: 1.125rem;
  }
  
  .nav-brand .w-10 {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  /* Mobile stats */
  .stats-value {
    font-size: 2rem;
  }
  
  /* Mobile FAB */
  .fab {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
  }
  
  /* Mobile cards */
  .card-modern {
    border-radius: var(--radius-lg);
  }
  
  .stats-card {
    padding: 1.5rem;
  }
  
  /* Mobile search bar */
  .hero-section .max-w-4xl {
    padding: 0 1rem;
  }
  
  /* Mobile quick search tags */
  .quick-search-tag {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-section::before {
    background-attachment: scroll;
  }
}

/* Dark Mode Support - Enhanced (disabled site-wide) */
@media (prefers-color-scheme: dark-disabled) {
  :root {
    /* Dark mode color palette - ensuring proper contrast */
    --gray-50: #020617;
    --gray-100: #0f172a;
    --gray-200: #1e293b;
    --gray-300: #334155;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    --white: #0f172a;
    --dark: #f8fafc;
    --off-white: #1e293b;
    
    /* Agriculture green colors adjusted for dark mode */
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --primary-soft: rgba(34, 197, 94, 0.1);
  }
  
  body {
    background: #0f172a;
    color: #f1f5f9;
  }
  
  /* Dark mode navigation - ensuring text visibility */
  .modern-nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(12px);
  }
  
  .nav-link {
    color: #cbd5e1;
  }
  
  .nav-link:hover {
    color: #f1f5f9;
    background: rgba(51, 65, 85, 0.5);
  }
  
  .nav-link.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
  }
  
  /* Dark mode cards - proper contrast */
  .card-modern,
  .stats-card {
    background: #1e293b;
    border-color: #334155;
  }
  
  .card-modern:hover {
    border-color: #475569;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  }
  
  /* Dark mode forms - ensuring input visibility */
  .form-input,
  .form-select,
  .form-textarea {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
  }
  
  .form-input::placeholder {
    color: #64748b;
  }
  
  .form-input:hover,
  .form-select:hover,
  .form-textarea:hover {
    border-color: #475569;
  }
  
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  }
  
  .form-label {
    color: #e2e8f0;
  }
  
  /* Dark mode buttons */
  .btn-outline {
    background: transparent;
    border-color: #475569;
    color: #e2e8f0;
  }
  
  .btn-outline:hover {
    background: rgba(51, 65, 85, 0.5);
    border-color: #64748b;
    color: #f8fafc;
  }
  
  .btn-secondary {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
  }
  
  .btn-secondary:hover {
    background: #334155;
    border-color: #64748b;
    color: #f8fafc;
  }
  
  /* Dark mode mobile menu */
  .mobile-menu-link {
    color: #e2e8f0;
  }
  
  .mobile-menu-link:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
  }
  
  #mobileMenu {
    background: rgba(15, 23, 42, 0.98);
  }
  
  #mobileMenu .bg-white {
    background: #0f172a;
  }
  
  #mobileMenu .border-t {
    border-top-color: #334155;
  }
  
  /* Dark mode hero section with agriculture background */
  .hero-section::before {
    background-image: 
      linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(21, 128, 61, 0.8) 50%,
        rgba(5, 46, 22, 0.9) 100%
      ),
      url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&q=80');
  }
  
  /* Dark mode text in hero - ensuring white text on dark background */
  .hero-section h1,
  .hero-section p,
  .hero-section span {
    color: #f8fafc;
  }
  
  /* Search bar in dark mode */
  .hero-section .bg-white {
    background: #1e293b !important;
  }
  
  .hero-section input::placeholder {
    color: #64748b;
  }
  
  .hero-section input {
    color: #f1f5f9;
  }
  
  .hero-section select {
    background: transparent;
    color: #e2e8f0;
  }
  
  .hero-section option {
    background: #1e293b;
    color: #f1f5f9;
  }
  
  /* Quick search tags in dark mode */
  .quick-search-tag {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
  }
  
  .quick-search-tag:hover {
    background: linear-gradient(to right, rgba(34, 197, 94, 0.15), rgba(59, 130, 246, 0.15));
    border-color: transparent;
    color: #f8fafc;
  }
  
  /* Dark mode footer */
  footer {
    background: #020617;
  }
  
  footer h4 {
    color: #22c55e;
  }
  
  footer p,
  footer li,
  footer a {
    color: #94a3b8;
  }
  
  footer a:hover {
    color: #f1f5f9;
  }
  
  /* Dark mode stats */
  .stats-value {
    color: #f8fafc;
  }
  
  .stats-label {
    color: #cbd5e1;
  }
  
  /* Dark mode badge */
  .badge-primary {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
  }
  
  /* Scrollbar in dark mode */
  ::-webkit-scrollbar-track {
    background: #0f172a;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #334155;
    border-color: #0f172a;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #475569;
  }
}

/* Agriculture Theme - Additional Background Options */
.bg-agriculture-1 {
  background-image: 
    linear-gradient(135deg, rgba(22, 163, 74, 0.9), rgba(21, 128, 61, 0.8)),
    url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.bg-agriculture-2 {
  background-image: 
    linear-gradient(135deg, rgba(22, 163, 74, 0.85), rgba(5, 46, 22, 0.85)),
    url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.bg-agriculture-3 {
  background-image: 
    linear-gradient(135deg, rgba(21, 128, 61, 0.85), rgba(22, 163, 74, 0.75)),
    url('https://images.unsplash.com/photo-1560493676-04071c5f467b?w=1920&q=80');
  background-size: cover;
  background-position: center;
}

/* Agriculture-themed section backgrounds */
.section-agriculture {
  position: relative;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.section-agriculture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M50 10 L50 30 M50 70 L50 90 M10 50 L30 50 M70 50 L90 50" stroke="%2316a34a" stroke-width="1" fill="none" opacity="0.05"/%3E%3C/svg%3E');
  opacity: 0.3;
  pointer-events: none;
}

/* Text visibility utilities for light/dark backgrounds */
.text-on-dark {
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.text-on-light {
  color: #1f2937;
}

/* Overlay utilities */
.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.overlay-dark > * {
  position: relative;
  z-index: 2;
}

.overlay-green {
  position: relative;
}

.overlay-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.85), rgba(21, 128, 61, 0.75));
  z-index: 1;
}

.overlay-green > * {
  position: relative;
  z-index: 2;
}

/* Modern Page Sections with Background Images */
.section-hero {
  position: relative;
  min-height: 600px;
  background-image: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(22, 163, 74, 0.7)),
    url('https://images.unsplash.com/photo-1595855759920-86582396756a?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-products {
  position: relative;
  background-image: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.92)),
    url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-categories {
  position: relative;
  background-image: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 244, 246, 0.91)),
    url('https://images.unsplash.com/photo-1560493676-04071c5f467b?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Modern Glassmorphism Components */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

/* Modern Form Components */
.search-bar-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Professional Product Cards */
.product-card-modern {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card-modern .product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.product-card-modern .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card-modern:hover .product-image img {
  transform: scale(1.1);
}

.product-card-modern .product-content {
  padding: 1.5rem;
}

.product-card-modern .product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.product-card-modern .product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Modern Footer with Background */
.footer-modern {
  position: relative;
  background-image: 
    linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(0, 0, 0, 0.98)),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Professional Hover Effects */
.hover-lift {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.hover-glow {
  transition: all var(--transition-smooth);
  position: relative;
}

.hover-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-smooth);
  filter: blur(8px);
}

.hover-glow:hover::before {
  opacity: 0.4;
}

/* Professional Loading States */
.loading-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Modern Dividers */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
  margin: 2rem 0;
}

.divider-dashed {
  height: 1px;
  background-image: linear-gradient(90deg, var(--gray-400) 50%, transparent 50%);
  background-size: 8px 1px;
  margin: 2rem 0;
}

/* Professional Alert Components */
.alert-modern {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid;
  position: relative;
  overflow: hidden;
}

.alert-modern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

/* Modern Table Styling */
.table-modern {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.table-modern thead {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.table-modern th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
}

.table-modern td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.table-modern tbody tr {
  transition: all var(--transition-fast);
}

.table-modern tbody tr:hover {
  background: rgba(22, 163, 74, 0.05);
}

/* Print Styles */
@media print {
  .modern-nav,
  .fab,
  .btn-modern {
    display: none;
  }
  
  .card-modern {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
}
