/* Premium Modern Agriculture Design System & Layout */

/* CSS Custom Properties for Theme Colors */
:root {
  --primary-color: #0c2b1c;
  /* Deep Forest Green */
  --primary-light: #16462f;
  --accent-color: #d8b48f;
  /* Warm Beige / Gold */
  --accent-hover: #c99f76;
  --accent-yellow: #f1c40f;
  --bg-light: #f7f9f6;
  /* Very light organic gray/green */
  --bg-card: #ffffff;
  --text-main: #141e17;
  /* Dark organic charcoal */
  --text-muted: #5e6d63;
  --white: #ffffff;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;
  --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Senior-Level Rendering & Layout Optimizations */
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.tillage, .ibifarms-bottom, .article-card, .footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

button {
  font-family: var(--font-body);
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

/* Scroll Animation Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Primary Layout Components */

/* Hero & Primary Layout Components */

.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 4%;
  overflow: hidden;
}

.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.ibifarms-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.ibifarms-top {
  background-color: #c8f060;
  padding: 30px 50px 80px 50px;
  position: relative;
  overflow: hidden;
}

.ibifarms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 120px;
  position: relative;
  z-index: 999;
}

.ibifarms-logo {
  font-size: 1.4rem;
  font-weight: 500;
  color: #151515;
  letter-spacing: -0.5px;
}

.ibifarms-nav {
  display: flex;
  gap: 40px;
}

.ibifarms-nav a {
  color: #151515;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.ibifarms-nav a:hover {
  opacity: 0.6;
}

.ibifarms-actions {
  display: flex;
  gap: 16px;
  color: #151515;
}

.ibifarms-hero-content {
  position: relative;
  z-index: 3;
}

.ibifarms-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  color: #151515;
  letter-spacing: -3px;
  max-width: 800px;
}

.ibifarms-asterisk {
  position: absolute;
  right: -100px;
  top: -240px;
  width: 500px;
  height: 500px;
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}

.ibifarms-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 400px;
}

.ibifarms-dark-box {
  background-color: #151515;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ibifarms-icon-graphic {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.moon-row {
  display: flex;
  gap: 4px;
}

.moon-row span {
  display: block;
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border-radius: 50%;
}

.moon-row .moon-1 {
  background: transparent;
  box-shadow: inset 8px 0 0 #ffffff;
}

.moon-row .moon-2 {
  background: transparent;
  box-shadow: inset 5px 0 0 #ffffff;
}

.moon-row .moon-3 {
  background: transparent;
  box-shadow: inset 3px 0 0 #ffffff;
}

.moon-row .moon-4 {
  background: transparent;
  box-shadow: inset 1.5px 0 0 #ffffff;
}

.ibifarms-desc {
  color: #dddddd;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 320px;
  font-weight: 300;
  margin-top: 40px;
}

.ibifarms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #c8f060;
  color: #151515;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.8rem;
  margin-top: 40px;
  width: fit-content;
}

.ibifarms-btn:hover {
  background-color: #ffffff;
}

.ibifarms-img-box {
  position: relative;
  height: 100%;
}

.ibifarms-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bio-Production Section */
.bio-section {
  position: relative;
  z-index: 2;
  padding: 60px 4% 120px 4%;
  display: flex;
  justify-content: center;
}

.bio-card {
  background-color: #ffffff;
  padding: 80px;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 50px;
}

.bio-item {
  display: flex;
  flex-direction: column;
}

.bio-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #151515;
  margin-bottom: 20px;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 16px;
}

.bio-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: #c8f060;
}

.bio-text {
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: #444444;
  font-weight: 400;
}

/* Gallery Section */
.gallery-section {
  position: relative;
  z-index: 2;
  padding: 0 4% 120px 4%;
  display: flex;
  justify-content: center;
}

.gallery-card {
  background-color: #ffffff;
  padding: 80px;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.gallery-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #151515;
  margin-bottom: 40px;
  letter-spacing: -1px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 300px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-grid > .gallery-item:nth-child(1) { grid-column: span 4; }
.gallery-grid > .gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-grid > .gallery-item:nth-child(3) { grid-column: span 2; }
.gallery-grid > .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-grid > .gallery-item:nth-child(5) { grid-column: span 2; }

/* Article / Project Page */
.page-header {
  background-color: #c8f060;
  padding: 30px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 3;
}

.article-section {
  position: relative;
  z-index: 2;
  padding: 60px 4% 120px 4%;
  display: flex;
  justify-content: center;
}

.article-card {
  background-color: #ffffff;
  padding: 80px 100px;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.article-content {
  background-color: #ffffff;
  padding: 60px 80px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.article-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 600;
  color: #151515;
  margin-bottom: 60px;
  letter-spacing: -2px;
  text-align: center;
}

.article-subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  color: #151515;
  margin-top: 50px;
  margin-bottom: 24px;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 16px;
}

.article-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: #c8f060;
}

.article-text {
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: -0.015em;
  color: #444444;
  margin-bottom: 24px;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.article-list li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 16px;
  padding-left: 36px;
  position: relative;
}

.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" fill="none" stroke="%23c8f060" stroke-width="3" viewBox="0 0 24 24"><path d="M5 13l4 4L19 7"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

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

/* About/Tillage Section */
.tillage {
  padding: 120px 4%;
  max-width: 1400px;
  margin: 0 auto;
}

.tillage-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-subtitle {
  color: var(--primary-light);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle-line {
  width: 40px;
  height: 1px;
  background-color: var(--primary-light);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.15;
}

.tillage-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.tabs-container {
  margin-bottom: 40px;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 16px;
}

.tab-btn {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 20px;
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

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

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
  display: block;
}

.tab-content-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tab-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.tab-list-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.tillage-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tillage-img-container {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

.tillage-img-container:hover img {
  transform: scale(1.08);
}

.tillage-badge {
  position: absolute;
  bottom: 30px;
  right: 10px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 24px;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  animation: float 4s ease-in-out infinite;
}

.tillage-badge .number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
}

.tillage-badge .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Solutions / Services Section */
.solutions {
  padding: 120px 4%;
  background-color: var(--white);
}

.solutions-container {
  max-width: 1400px;
  margin: 0 auto;
}

.solutions-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.solutions-col-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.solutions-col-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.solutions-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.solutions-card.card-large {
  min-height: 520px;
}

.solutions-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: var(--transition-smooth);
}

.solutions-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(12, 43, 28, 0.1) 0%, rgba(12, 43, 28, 0.85) 100%);
  z-index: -1;
  transition: var(--transition-smooth);
}

.solutions-card:hover .solutions-card-bg {
  transform: scale(1.05);
}

.solutions-card:hover::before {
  background: linear-gradient(to bottom, rgba(12, 43, 28, 0.2) 0%, rgba(12, 43, 28, 0.95) 100%);
}

.solutions-card-content {
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.solutions-card:hover .solutions-card-content {
  transform: translateY(0);
}

.solutions-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.solutions-card.card-large h3 {
  font-size: 2.2rem;
}

.solutions-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.solutions-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.solutions-link svg {
  transition: var(--transition-smooth);
}

.solutions-link:hover svg {
  transform: translateX(5px);
}

/* Modern Benefits Section */
.benefits {
  padding: 120px 4%;
  background-color: var(--bg-light);
}

.benefits-container {
  max-width: 1400px;
  margin: 0 auto;
}

.benefits-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.benefits-center .section-subtitle {
  justify-content: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-col {
  position: relative;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: var(--white);
}

.benefit-col-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: var(--transition-smooth);
}

.benefit-col-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(12, 43, 28, 0.2) 0%, rgba(12, 43, 28, 0.95) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.benefit-col:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.benefit-col:hover .benefit-col-bg {
  transform: scale(1.06);
}

.benefit-col-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.benefit-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.benefit-col h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.benefit-col p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* Logos Ticker Marquee */
.ticker-section {
  padding: 60px 4%;
  background-color: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.ticker-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-marquee {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.ticker-item:hover {
  opacity: 1;
  color: var(--primary-color);
}

.ticker-item svg {
  width: 24px;
  height: 24px;
}

/* Harvesting Split Section */
.harvesting {
  position: relative;
  background-color: var(--primary-color);
  color: var(--white);
  overflow: hidden;
}

.harvesting-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 620px;
}

.harvesting-visual {
  position: relative;
}

.harvesting-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.harvesting-content {
  background-color: #c5a88a;
  /* Earthy Warm Gold/Beige */
  color: var(--primary-color);
  padding: 100px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.harvesting-tag {
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  width: fit-content;
}

.harvesting-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
}

.harvesting-title span {
  display: block;
}

.harvesting-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(12, 43, 28, 0.85);
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  padding: 120px 4%;
  background-color: var(--bg-light);
}

.testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: center;
}

.testimonial-info {
  max-width: 400px;
}

.slider-controls {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.slider-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(12, 43, 28, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.testimonial-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 30px;
}

.testimonial-card {
  flex: 0 0 calc(50% - 15px);
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  transition: var(--transition-smooth);
}

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

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 32px;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-color);
  position: absolute;
  top: -30px;
  left: -10px;
  opacity: 0.3;
  font-family: serif;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-user img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}

.user-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* AI Detection Section */
.ai-detection {
  padding: 120px 4%;
  background-color: var(--white);
}

.ai-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-visual {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 520px;
}

.ai-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent-color);
  box-sizing: border-box;
  pointer-events: none;
  animation: scanBorder 6s linear infinite;
}

.ai-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent);
  box-shadow: 0 0 12px var(--accent-color);
  animation: scan 4s ease-in-out infinite;
}

.ai-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.ai-feature-card {
  padding: 24px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary-color);
}

.ai-feature-card h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Blog / Latest Insights */
.blog {
  padding: 120px 4%;
  background-color: var(--bg-light);
}

.blog-container {
  max-width: 1400px;
  margin: 0 auto;
}

.blog-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.blog-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  min-height: 400px;
}

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

.blog-card-solid {
  background-color: #d1b589;
  color: var(--primary-color);
  padding: 60px 40px;
  justify-content: center;
}

.blog-card-image {
  position: relative;
  color: var(--white);
}

.blog-img-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.blog-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 43, 28, 0.7);
  z-index: 2;
}

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

.blog-info {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.blog-info-overlay {
  padding: 60px 40px;
  justify-content: center;
  height: 100%;
}

.blog-category {
  color: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.blog-title {
  font-size: 1.8rem;
  color: inherit;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 600;
}

.blog-btn-container {
  text-align: center;
}

/* Call To Action (CTA) Section */
.cta {
  padding: 100px 4%;
  position: relative;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: overlay;
  z-index: 1;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-weight: 300;
}

/* Footer Section */
.footer {
  background-color: #262a2e;
  /* Sleek dark charcoal/slate gray */
  color: var(--white);
  padding: 35px 4% 15px 4%;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(280px, 1fr);
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 25px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 16px;
  max-width: 420px;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-links h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-subscribe h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-subscribe p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  position: relative;
}

.subscribe-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 30px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.subscribe-input:focus {
  border-color: var(--accent-color);
}

.subscribe-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.subscribe-btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

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

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

@keyframes scanBorder {

  0%,
  100% {
    border-color: var(--accent-color);
  }

  50% {
    border-color: var(--primary-light);
  }
}

@keyframes scan {
  0% {
    top: 0%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 0%;
  }
}

/* Responsive Breakpoints & Multi-Device Scaling */
@media (max-width: 1200px) {
  .solutions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .solutions-card.card-large {
    grid-row: span 1;
    min-height: 480px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-col {
    height: 420px;
  }
}

@media (max-width: 992px) {
  .ibifarms-card {
    margin: 20px auto;
    width: calc(100% - 40px);
  }

  .ibifarms-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  }

  .ibifarms-bottom {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ibifarms-img-box {
    height: 320px;
  }

  .bio-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px;
  }

  .tillage-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tillage-visual {
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 20px;
  }

  .footer-brand,
  .footer-subscribe {
    grid-column: span 1;
  }

  .harvesting-grid {
    grid-template-columns: 1fr;
  }

  .harvesting-visual {
    height: 380px;
  }

  .ai-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .hero-wrapper {
    padding: 20px 10px;
  }

  .ibifarms-card {
    margin: 10px auto;
    width: calc(100% - 20px);
    border-radius: 16px;
  }

  .ibifarms-top {
    padding: 24px 18px;
    border-radius: 16px 16px 0 0;
  }

  .ibifarms-header {
    margin-bottom: 40px;
  }

  .ibifarms-logo img {
    height: 42px !important;
  }

  .ibifarms-mobile-toggle {
    display: block !important;
  }
  
  .ibifarms-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    z-index: 9999;
    border-radius: 12px;
    gap: 6px;
    border: 1px solid rgba(0,0,0,0.06);
  }
  
  .ibifarms-nav.active {
    display: flex;
  }
  
  .ibifarms-nav a {
    font-size: 1.1rem;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #151515;
    font-weight: 600;
  }

  .ibifarms-nav a:last-child {
    border-bottom: none;
  }

  .ibifarms-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    line-height: 1.15;
    word-wrap: break-word;
  }

  .ibifarms-dark-box {
    padding: 28px 18px;
  }

  .ibifarms-desc {
    font-size: 1.1rem;
  }

  .bio-card {
    grid-template-columns: 1fr;
    padding: 28px 18px;
    gap: 30px;
  }

  .bio-title {
    font-size: 1.4rem;
  }

  .gallery-card {
    padding: 28px 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    gap: 16px;
  }

  .gallery-grid > .gallery-item {
    grid-column: span 1 !important;
  }
  
  .article-card {
    padding: 30px 16px;
  }

  .article-content {
    padding: 30px 18px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .article-title {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .article-subtitle {
    font-size: 1.5rem;
  }

  .article-image {
    height: 240px;
    margin: 20px 0;
  }

  .footer-container {
    padding: 10px 10px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 15px;
  }

  .footer-brand,
  .footer-subscribe {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .ibifarms-top {
    padding: 20px 14px;
  }

  .ibifarms-title {
    font-size: 1.85rem;
  }

  .article-title {
    font-size: 1.85rem;
  }

  .ibifarms-logo img {
    height: 36px !important;
  }

  .ibifarms-actions .ibifarms-mobile-toggle {
    width: 22px;
    height: 22px;
  }

  .gallery-grid {
    grid-auto-rows: 220px;
  }

  .tillage-img-container {
    width: 280px;
    height: 280px;
  }

  .tillage-badge {
    width: 95px;
    height: 95px;
    padding: 10px;
  }

  .tillage-badge .number {
    font-size: 1.2rem;
  }

  .tillage-badge .label {
    font-size: 0.6rem;
  }
}