html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

@font-face {
  font-family: 'Impact';
  src: url('/fonts/impact.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'chivo';
  src: url('/fonts/chivo.regular.ttf') format('truetype');
  font-style: normal;
  font-style: normal;
}

@font-face {
  font-family: 'chivo';
  src: url('/fonts/chivo.regular.ttf') format('truetype');
  font-style: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BarlowCondensed';
  src: url('/fonts/Barlow-Regular.otf') format('opentype');
  font-style: normal;
  font-weight: normal;
}

body {
  margin: 0;
  padding: 0;
  background: #effbe6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

svg {
  width: 100%;
  justify-content: center;
  height: auto;
  display: block;
}

@keyframes fillIn {
  0% {
    fill: transparent;
  }

  100% {
    fill: #0D6637;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

a.nav-link {
  font-size: 1.4em !important;
}


/* Responsive Typography */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  font-size: calc(1rem + 0.5vw);
}

/* Responsive Buttons */
.btn {
  font-size: calc(0.8rem + 0.3vw);
  padding: calc(0.5rem + 0.2vw) calc(1rem + 0.5vw);
}

.btn-success,
.bg-success {
  background-color: #0D6637 !important;

}

/* Responsive Container */
#container {
  color: #0D6637;
  text-transform: uppercase;
  font-size: 3em;
  font-family: 'Impact';
  line-height: 1.2;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#flip {
  height: 1.3em;
  overflow: hidden;
  background-color: #0D6637;
  display: inline-flex;
  vertical-align: middle;
  border-radius: 4px;
  margin: 0;
}

#flip>div {
  display: flex;
  flex-direction: column;
  height: 300%;
  /* Triple height for 3 items */
  animation: flip-animation 6s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

#flip div div {
  color: #fff;
  padding: 0 15px;
  height: 33.33%;
  /* Each item takes 1/3 of the container height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  white-space: nowrap;
  box-sizing: border-box;
}

@keyframes flip-animation {

  0%,
  20% {
    transform: translateY(0);
  }

  33%,
  53% {
    transform: translateY(-33.33%);
  }

  66%,
  86% {
    transform: translateY(-66.66%);
  }

  100% {
    transform: translateY(0);
  }
}

/* p {
      position: fixed;
      width: 100%;
      bottom: 30px;
      font-size: 12px;
      color: #999;
      margin-top: 200px;
    } */



/* Responsive SVG and Buttons */
@media (max-width: 768px) {
  svg {
    width: 100%;
    height: auto;
  }



  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  #container {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  #flip {
    height: 40px;
  }

  #flip>div>div {
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 14px;
    /* padding-bottom: 80px; */
    /* Space for floating WhatsApp button */
  }

  #container {
    font-size: 1rem;
    /* Scaled to fit screen width on mobile */
    line-height: normal;
    flex-direction: row;
    flex-wrap: nowrap !important;
    /* Force single line */
    white-space: nowrap;
    gap: 5px;
  }

  .about.why-us-clean {
    padding-bottom: 140px !important;
    /* Increased space to clear fixed elements */
  }



  .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  svg {
    width: 500% !important;
    height: auto;
  }

  .navbar-brand {
    font-size: 1rem;
  }
}

/* Adjust Button Positions for Small Screens */
@media (max-width: 576px) {
  .btn {
    position: static !important;
    margin: 1rem auto;
    display: block;
    width: 90%;
    text-align: center;
  }
}



.home-title {
  font-size: 2.5em;
  font-weight: normal;
  font-family: 'BarlowCondensed', sans-serif;


}

.home-title span {
  position: relative;
  overflow: hidden;
  display: inline-block;
  line-height: 1.2;
  color: white;
  --delay: 0s;
  background: transparent;
  /* Optional: to show layers behind */

  z-index: 1;
}



.home-title span.animate::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: white;
  transform: scaleX(0);
  transform-origin: right;
  z-index: -1;
  animation-fill-mode: forwards;
}

.home-title span.animate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: #006A33;
  transform: scaleX(0);
  transform-origin: left;
  z-index: -2;
  animation-fill-mode: forwards;
}

.home-title span.animate.in-view::after {
  animation: a-ltr-after 1.5s cubic-bezier(.77, 0, .18, 1) forwards;
  animation-delay: var(--delay);
}

.home-title span.animate.in-view::before {
  animation: a-ltr-before 1.5s cubic-bezier(.77, 0, .18, 1) forwards;
  animation-delay: var(--delay);
}

@keyframes a-ltr-before {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes a-ltr-after {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}



footer {
  width: 100%;
  position: relative;
  bottom: 0;
  left: 0;
  z-index: 10;
}

footer div {
  background-color: transparent;
  /* margin: -5px 0 0 0; */
  padding: 0;
  color: #fff;
  text-align: center;
}

svg.footer {
  width: 100%;
  display: block;
}




#wave1 {
  animation-duration: 13s;
  fill: #A1D647;
}

#wave2 {
  animation-duration: 10s;
  animation-direction: reverse;
  /* opacity: 0.6; */
  fill: #75B11B;
}

#wave3 {
  animation-duration: 13s;
  /* opacity: 0.3; */
  fill: #0D6637;
}



@keyframes wave {
  to {
    transform: translateX(-100%);
  }
}



@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}




.image-wrapper {
  position: relative;
  display: inline-block;
}

.position-btn {
  position: absolute;
  z-index: 10;
}

.left-btn-1 {
  top: 20%;
  left: -20rem;
}

.left-btn-2 {
  top: 60%;
  left: -21rem;
}

.right-btn-1 {
  top: 10%;
  right: -20rem;
}

.right-btn-2 {
  top: 40%;
  right: -21rem;
}

.right-btn-3 {
  top: 70%;
  right: -20rem;
}

.circle-btn.btn {

  width: 100%;
  max-width: max-content;
  border-radius: 15px;
  /* Makes pill-shaped */
  background-color: #0D6637;
  color: white;
  border: none;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  font-size: 30px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'chivo', sans-serif;
  padding: 0.5rem !important;
  z-index: 2;
  border: 1px solid rgba(117, 177, 27, 0.6);
  /* Primary-dark green */

  backdrop-filter: blur(6px);
  /* box-shadow: 0 0 20px rgba(117, 177, 27, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1); */
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0.5rem 1.3rem !important;
  z-index: 1;

}

.circle-btn.btn:hover {
  transform: scale(1.05) rotate(-1deg);
  background-color: #0D6637;
  /* box-shadow: 0 0 30px rgba(117, 177, 27, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.15); */
  color: #eaffea;
}


.circle-btn.btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.1));
  transform: rotate(25deg);
  animation: shineBtn 2.5s infinite;
  z-index: 0;
  pointer-events: none;
}





@keyframes shineBtn {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }

  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

.about h2 {
  font-size: 3em;
  font-family: 'BarlowCondensed', sans-serif;
  font-weight: bold;
  color: #2B2A29;

}

.about p {
  font-size: 2em;
  font-family: 'BarlowCondensed', sans-serif;
  /* font-weight: bold; */
  color: #2B2A29;
  text-align: justify;
  max-width: 49%;
  margin: 0 auto;

}

@media (max-width: 992px) {
  .about p {
    max-width: 85%;
  }
}

@media (max-width: 576px) {
  .about p {
    max-width: 95%;
  }
}

.animate-on-scroll {
  opacity: 0;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
  animation-duration: 1s;
  animation-fill-mode: both;
}


.grow-3d-realistic {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;

  /* Anchor at bottom for transform */
  transform-origin: center bottom;

  /* 3D perspective applied via parent or self */
  perspective: 800px;

  /* Animation */
  animation: grow3D 1.5s ease-out forwards, idleFloat 4s ease-in-out 1.6s infinite;

  /* Start invisible */
  opacity: 0;

}

@keyframes grow3D {
  0% {
    transform: rotateX(60deg) translateY(100%) scaleY(0.2) scaleX(0.9);
    opacity: 0;

  }

  40% {
    transform: rotateX(20deg) translateY(10%) scaleY(1.1) scaleX(1);
    opacity: 0.6;

  }

  70% {
    transform: rotateX(-5deg) translateY(-5%) scaleY(0.98) scaleX(1.01);
    opacity: 1;

  }

  100% {
    transform: rotateX(0deg) translateY(0%) scaleY(1) scaleX(1);
    opacity: 1;

  }
}

/* Continuous idle animation */
@keyframes idleFloat {

  0%,
  100% {
    transform: rotateX(0deg) translateY(0%) scale(1);
  }

  25% {
    transform: rotateX(1deg) translateY(-1%) scale(1.01);
  }

  50% {
    transform: rotateX(0deg) translateY(1%) scale(0.99);
  }

  75% {
    transform: rotateX(-1deg) translateY(-0.5%) scale(1.005);
  }
}

:root {
  --primary: #0D6637;
  --primary-dark: #75B11B;
}

.why .button {
  background: var(--primary);
  border: 0;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  color: #fff;
  cursor: pointer;
  font-family: roboto;
  font-size: 25px;
  font-weight: 800;
  height: 50px;
  padding: 5px;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease-in-out, margin-top 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
  width: 25%;
  animation: floatPulse 3s ease-in-out infinite;

  position: relative;
  z-index: 1;
  overflow: hidden;

}

.why .button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg,
      var(--primary) 0%,
      var(--primary-dark) 50%,
      var(--primary) 100%);
  background-size: 200% 100%;
  animation: waveBackground 5s linear infinite;
  z-index: -1;
  transition: opacity 0.3s;
}

.why .button:hover,
.why .button:focus {
  opacity: 0.9;
  outline: 0;
}

.why .button:active {
  box-shadow: none;
  margin-top: 6px;
}

@keyframes floatPulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.015);
  }
}

@keyframes waveBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'chivo', sans-serif;
  animation: floatPulse 3s ease-in-out infinite;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .whatsapp-text {
    display: none;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }

  .whatsapp-icon {
    width: 32px;
    height: 32px;
  }
}

.whatsapp-float:hover {
  background-color: #1DA851;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.disclaimer {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1.5rem;
  /* allows width breathing */
  overflow-x: hidden;
  /* ❗ no horizontal scroll */
}


.disclaimer-container {
  background: #fff;
  width: 100%;
  max-width: 900px;
  /* ✅ width controls popup */
  max-height: 85vh;
  /* ✅ NOT full height */
  padding: 2rem 2.5rem;
  border-radius: 12px;

  overflow-y: auto;
  /* ✅ content scrolls vertically */
  overflow-x: hidden;
  /* ❗ no side scroll */

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.disclaimer p {
  font-size: 22px;
}

@media (max-width: 576px) {
  .disclaimer-container {
    max-width: 100%;
    max-height: 90vh;
    padding: 1.4rem;
    border-radius: 10px;
  }
}


/* ===============================
   RESPONSIVE FIX – SAFE VERSION
   =============================== */

/* Image responsive */
.grow-3d-realistic {
  max-width: 100%;
  height: auto;
}

/* Button container safety */
.image-wrapper {
  max-width: 100%;
  position: relative;
}

/* ---------- TABLET FIX ---------- */
@media (max-width: 992px) {

  .left-btn-1,
  .left-btn-2,
  .right-btn-1,
  .right-btn-2,
  .right-btn-3 {
    font-size: 18px;
    padding: 0.5rem 1rem !important;
  }

  .left-btn-1 {
    left: -14rem;
  }

  .left-btn-2 {
    left: -14rem;
  }

  .right-btn-1 {
    right: -14rem;
  }

  .right-btn-2 {
    right: -14rem;
  }

  .right-btn-3 {
    right: -14rem;
  }

  .home-title {
    font-size: 2rem;
  }

  .about p {
    max-width: 80%;
    font-size: 1.6rem;
  }
}

/* ---------- MOBILE FIX ---------- */
@media (max-width: 576px) {

  /* HERO IMAGE */
  .grow-3d-realistic {
    width: 90% !important;
    margin-bottom: 1.5rem;
  }

  /* STACK BUTTONS */
  .position-btn {
    position: static;
    margin: 0.6rem auto;
    display: block;
    width: auto;
  }

  .circle-btn.btn {
    font-size: 18px;
    padding: 0.6rem 1.2rem !important;
  }

  /* TEXT CENTERING */
  #container {
    font-size: 1.1rem;
    flex-direction: column;
    text-align: center;
  }

  #flip {
    margin-top: 0.4rem;
  }

  /* HOME TITLE */
  .home-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  /* ABOUT SECTION */
  .about h2 {
    font-size: 2rem;
  }

  .about p {
    max-width: 92%;
    font-size: 1.3rem;
  }

  /* WHY US BUTTON */
  .why .button {
    width: 100%;
    font-size: 18px;
  }

  /* NAVBAR LOGO */
  .navbar-brand img {
    width: 180px !important;
  }

  /* FOOTER */
  footer img {
    width: 120px;
  }
}

/* ===============================
   PERFECT AGRO NAVBAR
================================ */

.agri-navbar {
  background: #ffffff;
  padding: 1.6rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* LOGO */
.nav-logo {
  width: 240px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

/* LINKS */
.agri-navbar .nav-link {
  color: #1f2937;
  font-family: 'BarlowCondensed', sans-serif !important;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

/* UNDERLINE HOVER */
.agri-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #0D6637;
  transition: width 0.3s ease;
}

.agri-navbar .nav-link:hover::after {
  width: 100%;
}

/* ACTIVE LINK */
.agri-navbar .nav-link.active {
  color: #0D6637;
}

.agri-navbar .nav-link.active::after {
  width: 100%;
}

/* TOGGLER */
.navbar-toggler {
  border: 1px solid rgba(13, 102, 55, 0.3);
}

.navbar-toggler-icon {
  filter: invert(27%) sepia(21%) saturate(1658%) hue-rotate(92deg);
}

/* MOBILE MENU */
/* MOBILE OFFCANVAS MENU */
@media (max-width: 991px) {
  .agri-navbar .offcanvas {
    background-color: #ffffff;
    width: 300px;
  }

  .agri-navbar .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
  }

  .agri-navbar .offcanvas-title {
    color: #0D6637;
    font-weight: bold;
    font-family: 'BarlowCondensed', sans-serif;
    font-size: 1.5rem;
  }

  .agri-navbar .offcanvas-body {
    padding: 2rem 1.5rem;
  }

  .agri-navbar .nav-link {
    padding: 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    width: 100%;
  }

  .agri-navbar .nav-link::after {
    display: none;
    /* Hide desktop underline */
  }

  .nav-logo {
    width: 190px;
  }

  .btn-close:focus {
    box-shadow: none;
  }
}