/* 
===============================================
BFSF | BHARAT FPO SAFE FOODS - PREMIUM STYLES
===============================================
*/

:root {
  /* HSL Premium Color Palette */
  --primary: #1e5a3c;
  /* Deep Forest Green */
  --primary-dark: #123d26;
  /* Darker Green for Footer/Accents */
  --primary-light: #eef5f1;
  /* Very light green tint for backgrounds */
  --accent: #f2a64c;
  /* Earthy vibrant gold/amber */
  --accent-hover: #d9913d;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-inverse: #ffffff;
  --bg-main: #ffffff;
  --bg-alt: #fafafa;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Spacing & Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Advanced Shadows */
  --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.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 40px -5px rgba(30, 90, 60, 0.08);
  /* Green tinted premium shadow */
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Transitions */
  --easing: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--easing);
  --transition-normal: 0.4s var(--easing);
  --transition-slow: 0.8s var(--easing);
}

/* Utilities */
.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

/* =========================================
   RESET & FOUNDATION
   ========================================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.7; /* Premium readability bump */
  letter-spacing: -0.01em; /* Elite density */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* L4: Sovereign Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='n' %3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 400;
  /* Serif Display looks best thin */
  line-height: 1.1;
  letter-spacing: -0.02em; /* Headlines pop better with tighter spacing */
  margin-bottom: 1rem;
}

/* Expert S2: Custom Brand Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 3px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Expert S1: Loader Styles (Refined) */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.loader-logo {
    height: 70px;
    margin-bottom: 2rem;
    animation: pulseLogo 2s infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.loader-bar-container {
    width: 150px;
    height: 3px;
    background: #f0f0f0;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: barFill 1.5s infinite;
}

@keyframes barFill {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Expert S2: Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10001; /* Above Loader & Nav */
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent); /* High contrast amber indicator */
    box-shadow: 0 0 10px var(--accent);
}

/* Expert S3: Back to Top Button cluster */
.back-to-top {
    position: fixed;
    bottom: 110px; /* Elevated to avoid Assistant overlap */
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--easing);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 998;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.4s var(--easing);
    font-weight: 600;
    font-size: 0.9rem;
}

.whatsapp-float svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #128c7e;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-float span {
    white-space: nowrap;
}

/* Subtle Pulse for attention */
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 1);
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        padding: 12px;
    }
    .whatsapp-float span { display: none; }
}

/* =========================================
   BFSF WEB ASSISTANT (ELITE UI)
   ========================================= */
.assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.assistant-trigger {
    width: 60px;
    height: 60px;
    background: var(--accent); /* Amber for AI */
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(242,166,76,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--easing);
    position: relative;
}

.assistant-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(242,166,76,0.4);
}

.assistant-trigger::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: assistPulse 2s infinite;
}

@keyframes assistPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.assistant-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.assistant-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.assistant-header {
    background: var(--primary);
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.assistant-avatar {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.assistant-info h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
}

.online-status {
    font-size: 0.75rem;
    opacity: 0.7;
}

.close-assistant {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.close-assistant:hover { opacity: 1; }

.assistant-body {
    height: 350px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 85%;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.assistant {
    background: var(--primary-light);
    color: var(--primary);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

/* Typing Indicator Animation */
.typing {
    display: flex;
    gap: 4px;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1.4s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
}


.message.user {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.quick-links {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.q-link {
    background: white;
    border: 1px solid var(--primary-light);
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.q-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.assistant-footer {
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 12px;
}

.assistant-footer input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.assistant-footer input:focus { outline: none; }

.assistant-footer button {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.3s;
}

.assistant-footer button:hover { transform: scale(1.2); }

/* Hide Back-to-top when assistant is on mobile maybe? Actually let's just offset. */
@media (max-width: 480px) {
    .assistant-panel {
        width: calc(100vw - 40px);
        bottom: 70px;
        right: -10px;
    }
}



h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 7rem 0;
}

/* Utility Layouts */
.text-center {
  text-align: center;
}

.mb-16 {
  margin-bottom: 4rem;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.bg-gradient-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--primary-light) 100%);
}

/* =========================================
   BUTTONS & LINKS
   ========================================= */
a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease-out, background-color var(--transition-fast), box-shadow var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(30, 90, 60, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 90, 60, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* =========================================
   NAVIGATION (PREMIUM PILL DESKTOP)
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.75rem 0;
}

/* Floating Glassmorphism Pill for Desktop */
.navbar.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem 0.6rem 2.5rem;
  transform: translateY(12px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
}

.nav-logo-dynamic {
    height: 48px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-logo-dynamic:hover {
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
    transform: scale(1.05);
}

.navbar.scrolled .nav-logo-dynamic {
    height: 36px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-inverse);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
}

/* Desktop default links are white because of dark hero background */
.navbar:not(.scrolled) .nav-links a {
  color: white;
}

/* When scrolled, background goes pill shape, text turns dark */
.navbar.scrolled .nav-links a {
  color: var(--text-primary);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-only {
  display: none;
}

.mobile-menu-btn {
  display: none;
}

/* =========================================
   HERO BANNER - CINEMATIC HIGH IMPACT
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Cinematic subtle zoom animation */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Removed static zoom to allow JS parallax exclusively if preferred, 
     or keep for subtle static movement */
  animation: none;
}

@keyframes ambientZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 30, 20, 0.85) 0%, rgba(10, 30, 20, 0.5) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  animation: floatBadge 4s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 166, 76, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(242, 166, 76, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(242, 166, 76, 0);
  }
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: var(--accent);
  font-style: italic;
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 0.15em;
  background: var(--accent);
  opacity: 0.3;
  z-index: -1;
  border-radius: var(--radius-pill);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-divider {
  position: absolute;
  bottom: -2px;
  /* Prevent sub-pixel gap */
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.hero-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.hero-divider .shape-fill {
  fill: var(--bg-main);
}

/* =========================================
   REUSABLE UI COMPONENTS
   ========================================= */

/* Golden Section Tag */
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background-color: var(--accent);
}

.section-tag::before {
  right: 100%;
  margin-right: 15px;
}

.section-tag::after {
  left: 100%;
  margin-left: 15px;
}

/* Split Layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* =========================================
   SERVICES / CARDS - GLASSMORPHISM & SOFT UI
   ========================================= */
.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  border: 1px solid rgba(30, 90, 60, 0.05);
  /* very subtle green border */
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--shadow-sm);
  z-index: 1;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.services-grid h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.services-grid p {
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================
   IMPACT SECTION - PARALLAX
   ========================================= */
.impact {
  background-color: var(--primary-dark);
  color: white;
  position: relative;
}

.impact p.section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   ANIMATIONS (Scroll Reveals)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr !important;
    /* Force override structural inline styles if any */
    gap: 3rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-inverse);
    /* initial white */
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .navbar.scrolled .mobile-menu-btn span {
    background-color: var(--primary);
  }

  /* Mobile Menu Panel */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background-color: white;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s var(--easing);
    gap: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a,
  .navbar:not(.scrolled) .nav-links a {
    color: var(--text-primary);
    /* Force dark text on mobile menu */
    font-size: 1.5rem;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--text-primary);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--text-primary);
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .impact .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-split {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 992px) {
  .service-structured-row {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .service-structured-row .service-cards-grid {
    order: 2 !important;
  }

  .service-structured-row .service-info-block {
    order: 1 !important;
  }
}

/* =========================================
   ABOUT / CHALLENGE & OPPORTUNITY
   ========================================= */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 5rem;
  text-align: left;
}

.challenge-card {
  background: transparent;
  padding: 1.5rem;
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 0, 0, 0.05);
  /* very soft red warning hint */
}

.challenge-card:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.challenge-icon {
  background: rgba(255, 50, 50, 0.1);
  color: #e53e3e;
  border-radius: var(--radius-sm);
  padding: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.opportunity-split {
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.opportunity-split .section-title {
  font-size: 2.25rem;
}

.opportunity-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.opportunity-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.bullet-dot {
  background: var(--primary);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
  margin-top: 10px;
  flex-shrink: 0;
}

.opportunity-box {
  background: rgba(32, 111, 65, 0.04);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(32, 111, 65, 0.1);
}

.opportunity-box-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.category-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-heading::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 3px;
  background-color: var(--accent);
}

/* =========================================
   RE-ENGINEERED ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: flex-start;
}

.mb-24 { margin-bottom: 6rem; }

.challenge-cards-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.challenge-card-modern {
    background: #0d2818; /* Urgent Deep Green */
    padding: 3.5rem 2.5rem 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.challenge-card-modern:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 35px 70px rgba(0,0,0,0.3);
}

.challenge-num {
    font-family: var(--font-heading);
    font-size: 5rem; /* Larger for impact */
    color: var(--accent);
    opacity: 0.12;
    position: absolute;
    top: -5px;
    right: 1rem;
    line-height: 1;
    pointer-events: none;
    font-weight: 700;
}

.challenge-card-modern p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.opportunity-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-top: 5rem;
}

.premium-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 4.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 8px solid var(--accent);
}

.opportunity-box-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
}

.prop-item {
    margin-top: 3rem;
}

.prop-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.prop-item p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.opportunity-list-premium {
    list-style: none;
    padding: 0;
}

.opportunity-list-premium li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bullet-check {
    margin-top: 6px;
    color: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .about-grid, .opportunity-row {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
    }
    .challenge-cards-stack {
        grid-template-columns: 1fr !important;
    }
    .opportunity-row .opportunity-visual {
        order: 2;
    }
    .opportunity-row .opportunity-header {
        order: 1;
    }
    .premium-glass-card {
        padding: 3rem 2rem;
    }
}

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

/* =========================================
   MODERN FOOTER
   ========================================= */
.modern-footer {
  background-color: #0b2517;
  /* Extra dark depth */
  color: rgba(255, 255, 255, 0.7);
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 1.5rem 0;
  max-width: 300px;
}

.footer-logo {
  height: 45px;
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-nav h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.footer-nav a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  margin-right: -10px;
  color: var(--accent);
}

.footer-nav a:hover {
  color: white;
}

.footer-nav a:hover::before {
  opacity: 1;
  transform: translateX(0);
  margin-right: 8px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-watermark {
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-size: 25vw;
  font-family: var(--font-heading);
  color: white;
  opacity: 0.03; /* Barely visible for high-end feel */
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
  line-height: 1;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* =========================================
   PARTNERS TICKER (INFINITE SCROLL)
   ========================================= */
.partners-ticker {
  background-color: var(--primary-light);
  padding: 3rem 0;
  border-bottom: 1px solid rgba(30, 90, 60, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.ticker-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.ticker-track {
  width: 100%;
  position: relative;
  display: flex;
}

.ticker-track::before,
.ticker-track::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.ticker-track::before {
  left: 0;
  background: linear-gradient(to right, var(--primary-light), transparent);
}

.ticker-track::after {
  right: 0;
  background: linear-gradient(to left, var(--primary-light), transparent);
}

.ticker-content {
  display: flex;
  gap: 6rem;
  align-items: center;
  white-space: nowrap;
  animation: scrollTicker 30s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-content span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-secondary);
  opacity: 0.4;
  transition: all var(--transition-fast);
  cursor: default;
}

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

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 3rem));
  }
}

/* =========================================
   MODERN CONTACT SECTION
   ========================================= */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-card-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-card-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-modern h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-card-modern p,
.contact-card-modern a {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.glass-form-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(30, 90, 60, 0.08);
  border: 1px solid rgba(255, 255, 255, 1);
}

.form-group-modern {
  position: relative;
  margin-bottom: 2rem;
}

.form-control-modern {
  width: 100%;
  padding: 1.25rem 0 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  border-radius: 0;
  transition: all var(--transition-fast);
}

.form-control-modern:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

textarea.form-control-modern {
  min-height: 120px;
  resize: vertical;
}

/* Floating Label Magic */
.floating-label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 1.05rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-control-modern:focus~.floating-label,
.form-control-modern:not(:placeholder-shown)~.floating-label {
  top: -0.75rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.select-modern {
  appearance: none;
  -webkit-appearance: none;
  color: #94a3b8;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.select-modern:focus,
.select-modern:valid {
  color: var(--text-primary);
}

.select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.btn-modern-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  border-radius: var(--radius-pill);
}

@media (max-width: 992px) {
  .glass-form-card {
    padding: 2.5rem;
  }
}

/* =========================================
   LEADERSHIP SHOWCASE
   ========================================= */
.leadership-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.leadership-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

/* L2: Image Shimmer Effect */
.leadership-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    animation: magazineShimmer 10s infinite;
}

@keyframes magazineShimmer {
    0% { left: -100%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

.leadership-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leadership-content {
    padding: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leadership-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 1rem;
}

.leadership-name {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.highlight-text {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.bio-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .leadership-card {
        grid-template-columns: 1fr;
    }
    .leadership-content {
        padding: 3rem 2rem;
    }
}


/* =========================================
   IMPACT SECTION
   ========================================= */
.impact {
  background-color: #0d2818;
  /* Deep Agri-Tech Green */
  position: relative;
  overflow: hidden;
  color: white;
}

.impact-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.3;
}

.section-tag.inverse {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title.white {
  color: white;
}

.white-opacity {
  color: rgba(255, 255, 255, 0.7);
}

.impact-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.stat-card {
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.stat-label {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: white;
}

.stat-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 250px;
  margin: 0 auto;
}

.impact-benefits-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.benefit-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.benefit-tag:hover {
  background: var(--accent);
    letter-spacing: 0.1em;
}

@media (max-width: 1200px) {
    .impact-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .impact-map-fragment { display: none; }
}

@media (max-width: 992px) {
  .impact-stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Form Status Animations */
@keyframes dash {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.success-animation svg {
  animation: scaleIn 0.5s var(--easing);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}