/* Custom styles and enhancements for RonAgro */
:root {
  --primary-green: #1b4d2e;
  --primary-green-dark: #12351f;
  --primary-green-light: #2d7a49;
  --accent-gold: #eab308;
  --accent-amber: #f59e0b;
  --agro-dark: #0d1a12;
  --agro-surface: #15241b;
  --agro-slate: #1e293b;
  --agro-light: #f8fafc;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #1b4d2e;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #12351f;
}

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

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-nav-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.glass-card-dark {
  background: rgba(21, 36, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(27, 77, 46, 0.08);
}

/* Agricultural Glow & Gradients */
.hero-gradient {
  background: linear-gradient(135deg, rgba(13, 26, 18, 0.88) 0%, rgba(27, 77, 46, 0.82) 60%, rgba(18, 53, 31, 0.92) 100%);
}

.agro-gradient-badge {
  background: linear-gradient(135deg, #1b4d2e 0%, #2d7a49 100%);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.green-gradient-text {
  background: linear-gradient(135deg, #1b4d2e 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 28px rgba(34, 197, 94, 0.8); }
}

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

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

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

.animate-pulse-gold {
  animation: pulseGold 3s infinite;
}

/* Feature card hover effects */
.service-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(27, 77, 46, 0.12), 0 10px 10px -5px rgba(27, 77, 46, 0.04);
}

/* Pattern Overlay */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(27, 77, 46, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-dots-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Custom WhatsApp Floating Tooltip */
.whatsapp-widget {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tab Buttons & Active State */
.tab-btn {
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  border-radius: 9999px;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  color: #334155;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
  border-color: #1b4d2e;
  color: #1b4d2e;
  background-color: #f0fdf4;
  transform: translateY(-1px);
}

.tab-btn.active {
  background-color: #1b4d2e !important;
  color: #ffffff !important;
  border-color: #1b4d2e !important;
  box-shadow: 0 4px 14px rgba(27, 77, 46, 0.3) !important;
  transform: translateY(-1px);
}

/* Solution Card Transition */
.solution-card {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card.hidden-card {
  display: none !important;
}

.solution-card.fade-in {
  animation: fadeInCard 0.35s ease forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Infinite Brand Logos Marquee Carousel */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  width: 100%;
  gap: 1.5rem; /* Exact match with track item gap */
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 10;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f5f5f4 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f5f5f4 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.5rem;
  min-width: max-content;
  animation: scrollMarquee 40s linear infinite;
  will-change: transform;
}

/* Synchronize pause on both tracks when hovering anywhere in marquee */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 1.5rem));
  }
}

.brand-logo-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-logo-card:hover {
  z-index: 10;
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -4px rgba(27, 77, 46, 0.16);
  border-color: rgba(27, 77, 46, 0.4);
}


