/*
 * ONS Agro Retail & Trading Co.
 * Custom Stylesheet - Agricultural Theme & Glassmorphism UI
 */

:root {
  --agro-green-dark: #1B5E20;
  --agro-green-mid: #2E7D32;
  --agro-sprout: #8BC34A;
  --agro-gold: #F4C542;
  --agro-amber: #E65100;
  --agro-bg-warm: #FAF9F6;
  --agro-bg-light: #F4F8F3;
  --agro-border: #E2E8F0;
  --agro-text-dark: #1C2E1D;
  --agro-text-muted: #576F59;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--agro-text-dark);
  background-color: var(--agro-bg-warm);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27, 94, 32, 0.1);
  transition: all 0.3s ease-in-out;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(27, 94, 32, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(27, 94, 32, 0.08);
}

.glass-dark {
  background: rgba(27, 94, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 197, 66, 0.2);
}

/* Background Gradients */
.bg-agro-gradient {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #174E1B 100%);
}

.bg-agro-subtle {
  background: linear-gradient(180deg, #F4F8F3 0%, #FAF9F6 100%);
}

.bg-agro-warm-tint {
  background: linear-gradient(135deg, #FAF8F5 0%, #F1F6F0 100%);
}

/* Hero Overlay & Shapes */
.hero-overlay {
  background: linear-gradient(105deg, rgba(16, 54, 19, 0.92) 0%, rgba(27, 94, 32, 0.84) 55%, rgba(46, 125, 50, 0.65) 100%);
}

/* Card Hover Elevation */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(27, 94, 32, 0.16);
  border-color: rgba(139, 195, 74, 0.45);
}

/* Image Zoom Effect */
.image-zoom-container {
  overflow: hidden;
}

.image-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-hover:hover .image-zoom-container img,
.image-zoom-container:hover img {
  transform: scale(1.08);
}

/* Button Styling & Pulses */
.btn-primary-agro {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary-agro:hover {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(27, 94, 32, 0.4);
}

.btn-gold-agro {
  background: linear-gradient(135deg, #F4C542 0%, #E8B936 100%);
  color: #1B5E20;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-gold-agro:hover {
  background: linear-gradient(135deg, #E8B936 0%, #F4C542 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(244, 197, 66, 0.5);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #20BA59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.45);
}

/* Animations */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* Navigation Active Link */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: #2E7D32;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #1B5E20;
  font-weight: 700;
}

/* Leaf decorative shape */
.leaf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 195, 74, 0.15);
  border: 1px solid rgba(139, 195, 74, 0.35);
  color: #1B5E20;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F0;
}
::-webkit-scrollbar-thumb {
  background: #2E7D32;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1B5E20;
}


/* ==============================================================================
 * Testimonial Continuous Marquee (Right-to-Left Auto-Scroll)
 * ============================================================================== */
.testimonial-carousel {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  padding: 1.25rem 0;
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: marqueeRightToLeft 38s linear infinite;
  will-change: transform;
}

.testimonial-carousel:hover .testimonial-track,
.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #FAFBF8 60%, #F2F7F0 100%);
  border: 1px solid rgba(46, 125, 50, 0.14);
  box-shadow: 0 4px 20px -3px rgba(27, 94, 32, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -6px rgba(27, 94, 32, 0.16);
  border-color: rgba(139, 195, 74, 0.55);
}

/* ==============================================================================
 * Scroll Reveal Left/Right & Stagger Variations
 * ============================================================================== */
.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-4 { transition-delay: 0.48s; }
