@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  --primary: #1d3826;
  --field-green: #334F3B;
  --primary-container: #334f3b;
  --on-primary-container: #a0c0a6;
  --primary-fixed: #caebd0;
  --primary-fixed-dim: #aeceb4;
  
  --secondary: #af3100;
  --harvest-orange: #F9602F;
  --secondary-container: #fe6432;
  --on-secondary: #ffffff;
  
  --sprout-lime: #C1FEA1;
  --tertiary: #103b00;
  --tertiary-container: #21540a;
  
  --earth-brown: #7C5135;
  --data-blue: #2F80ED;
  
  --surface: #fff8f5;
  --surface-gray: #F8F9F8;
  --surface-dim: #ffd1b5;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #fff1ea;
  --surface-container: #ffeadf;
  --surface-container-high: #ffe3d3;
  --surface-container-highest: #ffdbc7;
  
  --on-surface: #311301;
  --on-surface-variant: #424842;
  --outline: #727972;
  --outline-variant: #c2c8c0;
  
  --shadow-ambient: 0 4px 20px rgba(51, 79, 59, 0.08);
  --shadow-ambient-lg: 0 10px 30px rgba(51, 79, 59, 0.12);
  --shadow-orange: 0 4px 14px rgba(249, 96, 47, 0.39);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Montserrat', sans-serif;
}

/* Glassmorphism Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(193, 254, 161, 0.25);
  box-shadow: var(--shadow-ambient);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-ambient-lg);
}

.ambient-shadow {
  box-shadow: var(--shadow-ambient);
}

.card-ambient-shadow {
  box-shadow: 0 4px 20px rgba(51, 79, 59, 0.08);
}

.organic-gradient {
  background: linear-gradient(135deg, #fff8f5 0%, #f0f7f2 100%);
}

.sentinel-grid-pattern {
  background-image: radial-gradient(#C1FEA1 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Material Symbols Helper */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-block;
  user-select: none;
}

.material-symbols-outlined.fill-1,
[data-weight="fill"],
.fill-current-symbol {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Navigation active indicator */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--harvest-orange);
  transition: width 0.3s ease;
}

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

.nav-link.active {
  color: var(--harvest-orange) !important;
  font-weight: 700;
}

/* Buttons */
.btn-primary {
  background-color: var(--harvest-orange);
  color: #ffffff;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-orange);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #e04e20;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 96, 47, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--field-green);
  border: 1.5px solid var(--field-green);
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--field-green);
  color: #ffffff;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 16px 20px;
  background: #ffffff;
  border-left: 4px solid var(--field-green);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease forwards;
}

.toast-message.toast-success {
  border-left-color: #2e7d32;
}

.toast-message.toast-info {
  border-left-color: var(--harvest-orange);
}

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

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 59, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 1.25rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--field-green);
}

/* ==========================================================================
   Hero Section Dynamic Background Slider & Continuous Ken Burns Motion
   ========================================================================== */
.hero-slider-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.4s;
  transform-origin: center center;
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Smooth continuous Ken Burns animations (each slide has its own motion pattern) */
.hero-kb-1 {
  animation: kb-motion-1 18s ease-in-out infinite alternate;
}
.hero-kb-2 {
  animation: kb-motion-2 20s ease-in-out infinite alternate;
}
.hero-kb-3 {
  animation: kb-motion-3 19s ease-in-out infinite alternate;
}
.hero-kb-4 {
  animation: kb-motion-4 22s ease-in-out infinite alternate;
}
.hero-kb-5 {
  animation: kb-motion-5 18s ease-in-out infinite alternate;
}
.hero-kb-6 {
  animation: kb-motion-6 21s ease-in-out infinite alternate;
}

@keyframes kb-motion-1 {
  0% { transform: scale(1.0) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1.5%, -0.8%); }
  100% { transform: scale(1.14) translate(-3%, -1.5%); }
}

@keyframes kb-motion-2 {
  0% { transform: scale(1.14) translate(2%, -1%); }
  50% { transform: scale(1.07) translate(0.5%, 0.8%); }
  100% { transform: scale(1.02) translate(-2%, 1%); }
}

@keyframes kb-motion-3 {
  0% { transform: scale(1.02) translate(-1%, 1%); }
  50% { transform: scale(1.09) translate(1%, -1%); }
  100% { transform: scale(1.15) translate(2.5%, -1.8%); }
}

@keyframes kb-motion-4 {
  0% { transform: scale(1.15) translate(0, -2%); }
  50% { transform: scale(1.08) translate(-1.5%, 0.5%); }
  100% { transform: scale(1.03) translate(1.5%, 1.5%); }
}

@keyframes kb-motion-5 {
  0% { transform: scale(1.0) translate(1.5%, -1%); }
  50% { transform: scale(1.08) translate(-1%, 1.2%); }
  100% { transform: scale(1.15) translate(-2.5%, 0); }
}

@keyframes kb-motion-6 {
  0% { transform: scale(1.14) translate(-2%, 0); }
  50% { transform: scale(1.06) translate(1%, -1%); }
  100% { transform: scale(1.02) translate(2%, 1.2%); }
}

/* Slider Controls & Glass Indicators */
.hero-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-nav-btn:hover {
  background: var(--harvest-orange);
  border-color: var(--harvest-orange);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(249, 96, 47, 0.4);
}

.hero-indicator-pill {
  position: relative;
  height: 6px;
  width: 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.hero-indicator-pill:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-indicator-pill.active {
  width: 48px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-indicator-pill.active .pill-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--harvest-orange);
  transform-origin: left center;
  animation: hero-pill-progress 5.5s linear infinite;
}

@keyframes hero-pill-progress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Video Background Layer */
.hero-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s;
  z-index: 2;
}

.hero-video-layer.active {
  opacity: 1;
  visibility: visible;
}

