/* styles.css - Agri Vistaar Agri Business Solutions */

/* Core Variables and Theme Options */
:root {
  --color-green: #115E2E;       /* Maharashtra Krishi Green */
  --color-green-dark: #0D2B17;  /* Deep Forest Green */
  --color-green-light: #4CAF50; /* Fresh Leaf Green */
  --color-amber: #F58220;       /* Vibrant Saffron Orange */
  --color-saffron: #FF9800;     /* Golden Harvest Saffron */
  --color-cream: #F4F8F5;       /* Warm Herbal Off-White Cream */
  --color-soil: #1F2E24;        /* Deep Fertile Soil Text */
  --color-white: #FFFFFF;
  --font-serif: 'Inter', 'Noto Sans Marathi', sans-serif; /* Chawadi uses modern high-quality clean sans-serif */
  --font-sans: 'Inter', 'Noto Sans Marathi', sans-serif;
}

/* Base Settings */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-soil);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Bilingual Language Toggles */
body.lang-en .lang-mr {
  display: none !important;
}

body.lang-mr .lang-en {
  display: none !important;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
}

/* Sticky Navigation Customizations */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(13, 43, 23, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--color-amber);
}

.sticky-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Signature Wheat Divider Element */
.wheat-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
  width: 100%;
}

.wheat-divider::before, .wheat-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to var(--dir, right), rgba(233, 168, 36, 0), rgba(233, 168, 36, 0.8) 50%, rgba(233, 168, 36, 0));
}

.wheat-divider::before {
  --dir: right;
  margin-right: 1.5rem;
}

.wheat-divider::after {
  --dir: left;
  margin-left: 1.5rem;
}

.wheat-divider i {
  color: var(--color-amber);
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: wheat-pulse 3s infinite ease-in-out;
}

@keyframes wheat-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: white !important;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.12) rotate(10deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--color-green-dark);
  color: var(--color-amber) !important;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--color-amber);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-green);
  color: white !important;
  transform: translateY(-4px);
}

/* Hover effect animations */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

/* Entrance Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-section, .hover-lift, .whatsapp-float, .back-to-top, .wheat-divider i {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Hero Section Custom Styles */
.hero-overlay {
  background: linear-gradient(135deg, rgba(13, 43, 23, 0.94) 0%, rgba(17, 94, 46, 0.88) 100%);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out, transform 12s ease-out;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Custom cards and badges */
.card-green-border {
  border-top: 4px solid var(--color-green);
}

.card-amber-border {
  border-top: 4px solid var(--color-amber);
}

/* Footer Accent */
.footer-bottom {
  border-top: 1px solid rgba(233, 168, 36, 0.3);
}

/* Custom styled scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-green-dark);
}
