/* ==========================================================================
   AgroTech - Smart Agriculture Design System & Base Style
   ========================================================================== */

/* 1. Design Tokens & Root Variables */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #3f492a;
  /* Forest Green */
  --color-primary-rgb: 63, 73, 42;
  --color-secondary: #ecf96e;
  /* Bright Lime / Yellow-Green */
  --color-secondary-rgb: 236, 249, 110;
  --color-tertiary: #bcc79d;
  /* Sage / Muted Olive */
  --color-tertiary-rgb: 188, 199, 157;
  --color-body-bg: #faf9f6;
  /* Warm Off-White Cream */
  --color-body-text: #585858;
  /* Charcoal/Soft Gray */
  --color-text-dark: #151515;
  /* Deep Charcoal Black */
  --color-border: #dfdedc;
  /* Soft Border Gray */
  --color-white: #ffffff;

  /* Typography */
  --font-headers: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(63, 73, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(21, 21, 21, 0.12);
  --border-radius-lg: 30px;
  --border-radius-md: 20px;
}

/* 2. Global Resets & Basics */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-body-bg);
  color: var(--color-body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

.poppins-font {
  font-family: "Poppins", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headers);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.8rem;
}

h5 {
  font-size: 1.4rem;
}

h6 {
  font-size: 1.2rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-tertiary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. Common Utility Classes & Helper Classes */
.bg-dark-green {
  background-color: var(--color-primary) !important;
}

.text-dark-green {
  color: var(--color-primary) !important;
}

.bg-accent-lime {
  background-color: var(--color-secondary) !important;
}

.text-accent-lime {
  color: var(--color-secondary) !important;
}

.bg-cream {
  background-color: #f3f2ed !important;
}

.text-dark-charcoal {
  color: var(--color-text-dark) !important;
}

.font-headers {
  font-family: var(--font-headers) !important;
}

/* Custom Buttons */
.btn-agrotech {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-headers);
  font-weight: 600;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-agrotech-lime {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn-agrotech-lime:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-agrotech-green:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-agrotech-outline {
  border-color: var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
}

.btn-agrotech-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.badge-agrotech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(63, 73, 42, 0.08);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.badge-agrotech svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
}

/* 4. Pre-loader Animation */
.pre-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-body-bg);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.pre-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.wdt-plant {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(63, 73, 42, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wdt-plant_leaves {
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  border-radius: 0 100% 0 100%;
  transform: rotate(-45deg);
  animation: growPlant 1.5s infinite ease-in-out;
}

@keyframes growPlant {
  0% {
    transform: scale(0.5) rotate(-45deg);
  }

  50% {
    transform: scale(1.2) rotate(-45deg);
  }

  100% {
    transform: scale(0.5) rotate(-45deg);
  }
}

/* 5. Custom Page Sections */

/* Hero Slider Overlap Cards */
.hero-overlap-cards {
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.overlap-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 35px 30px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  height: 100%;
}

.overlap-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.overlap-card.highlight {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.overlap-card .icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.overlap-card.highlight .icon-wrapper {
  background-color: rgba(63, 73, 42, 0.1);
}

.overlap-card .icon-wrapper svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.overlap-card h4 {
  color: inherit;
  font-weight: 600;
  margin-bottom: 12px;
}

.overlap-card p {
  color: inherit;
  opacity: 0.9;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Progress Bars Section */
.stat-bar-wrapper {
  margin-bottom: 25px;
}

.stat-bar-title {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.progress-agrotech {
  height: 8px;
  background-color: #dfdedc;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-agrotech {
  background-color: var(--color-primary);
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Services slider & marquee background */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-marquee-bg {
  position: absolute;
  top: 30px;
  left: 0;
  width: 200%;
  font-family: var(--font-headers);
  font-size: 10vw;
  font-weight: 800;
  color: rgba(63, 73, 42, 0.03);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  animation: marqueeText 35s linear infinite;
  z-index: 1;
}

@keyframes marqueeText {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
  height: 100%;
  position: relative;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-tertiary);
}

.service-card .service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(63, 73, 42, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background-color: var(--color-secondary);
}

.service-card .service-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--color-primary);
}

.service-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-body-text);
  margin-bottom: 25px;
}

/* Stepper blocks */
.step-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: var(--transition-smooth);
  height: 100%;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.step-number {
  position: absolute;
  top: 25px;
  right: 30px;
  font-family: var(--font-headers);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(63, 73, 42, 0.08);
  transition: var(--transition-smooth);
}

.step-card:hover .step-number {
  color: var(--color-secondary);
}

.step-card h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  margin-top: 15px;
}

/* Pricing Switcher Section */
.pricing-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pricing-tab-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  padding: 20px 25px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-tab-btn:hover {
  border-color: var(--color-primary);
  background-color: rgba(63, 73, 42, 0.02);
}

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

.pricing-tab-btn h4 {
  font-size: 1.3rem;
  margin: 0;
  color: inherit;
}

.pricing-tab-btn .price {
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-tab-btn.active .price {
  color: var(--color-secondary);
}

.pricing-features-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  height: 100%;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 40px 0;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.pricing-features-list li svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

/* Before / After comparison slider container */
.comparison-container {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3;
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.comparison-img.after-img {
  opacity: 0;
}

.comparison-container.show-after .comparison-img.after-img {
  opacity: 1;
}

.comparison-container.show-after .comparison-img.before-img {
  opacity: 0;
}

.comparison-tabs {
  display: inline-flex;
  background-color: var(--color-white);
  border-radius: 30px;
  padding: 5px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.comparison-tab-btn {
  border: none;
  background: none;
  padding: 8px 24px;
  border-radius: 25px;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-body-text);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.comparison-tab-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Blog Cards */
.blog-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.blog-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.5;
}

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

.blog-card:hover img {
  transform: scale(1.08);
}

.blog-date-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.85rem;
}

.blog-content {
  padding: 30px 25px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--color-tertiary);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.blog-card h4 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-card h4 a {
  color: var(--color-primary);
}

.blog-card h4 a:hover {
  color: var(--color-tertiary);
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--color-body-text);
  margin-bottom: 25px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.95rem;
}

.blog-read-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(5px);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

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