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

:root {
  --primary-color: #244030;
  --secondary-color: #88b04b; /* Light green */
  --accent-color: #e0a423;
  --bg-color: #f4f4f4;
  color: #2f5f44;
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  /* color: #333; */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
}
a{
  text-decoration: none;
}



/* Header Section */
.header {
  background: linear-gradient(rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0.397)),
    url("./images/green-farm-with-organic-produce-sustainable-farming-practices-renewable-energy-solutions-cleaner-environment_888396-56126.jpg")
      no-repeat center center/cover;
  color: #ffffff;
  height: 100vh;
  display: flex;
  top: 20px;
  flex-direction: column;
  text-align: center;
}
.header-container{
  background-color: var(--primary-color);
  max-width: 100%;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 70px;
  /* border-radius: 15px 15px; */
  /* margin-top: 30px; */
  position: fixed;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.logo {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
}

.logo a{
  color: #ffffff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover{
  color: var(--accent-color);
}
.nav-links a.active {
  color: var(--accent-color);
}


.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 5px;
  /* margin-bottom: 8px; */
}

.hero-buttons {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.primary-btn {
  background: var(--accent-color);
  color: white;
  padding: 17px 35px;
}

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

.secondary-btn {
  background: none;
  color: var(--accent-color);
  border: 3px solid var(--accent-color);
}

.secondary-btn:hover {
  background: var(--accent-color);
  color: white;
}

.hero {
  margin-top: 10rem;
}

.hero-container {
  align-items: center;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 60px;
}

/* about section */
.about-us {
padding: 80px 0;
}

/* .about-us::after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 0;
  width: 300px; 
  height: 300px; 
  background: rgba(255, 255, 255, 0.877);
  z-index: 1;
  pointer-events: none;
} */

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding-top: 150px;
  padding-bottom: 150px;
  position: relative; */
}

.about-content {
  flex: 1;
  /* margin-right: 70px; */
  padding: 10px 100px 10px 0;
}
.about-content h2{
  color: var(--primary-color);
}

.about-content p {
  color: #1a1a1a;
}


.about-img {
  flex: 1;
  max-width: 50%;
  height: auto;
  /* margin: 0 auto; */
  border-radius: 20px;
  overflow: hidden;
}

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

/* Products Section */
.products {
  padding: 5rem 0 7rem 0;
}

.products h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-item {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-item img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.product-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-item p {
  font-size: 0.9rem;
  color: #666;
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
}

.benefits h2 {
  text-align: center;
  margin-bottom: 2.2rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--secondary-color);
  border-radius: 10px;
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.benefit-item p {
  font-size: 1rem;
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
}

.testimonial-item h4 {
  margin-top: 1rem;
  color: var(--primary-color);
}

/* Contact Section */
.contact {
  padding: 50px 0;
  text-align: center;
  margin-bottom: 60px;
}

.contact-container {
  background: var(--primary-color);
  padding: 80px 250px;
  border-radius: 25px;
}

.contact-container h2 {
  color: white;
  font-size: 42px;
}

.contact-container p {
  color: white;
  font-size: 18px;
}

.contact form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 17px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact button {
  width: 100%;
  margin-top: 10px;
}

/* footer section */
.footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* Responsive Styles */
@media (max-width: 900px) and (min-width: 769px) /* Adjust breakpoint as needed */{

  .hero-container {
      flex-direction: column; /* Stack elements vertically */
      align-items: center;    /* Center horizontally */
      text-align: center;     /* Center text */

  }


}




@media (max-width: 768px) {

  .header-container{
    width: 100%;
  }
  .navbar{
    width: 100%;
    margin: 0;
    padding: 30px 20px;
    border-radius:0;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 91px;
    right: 0px;
    width: 100%;
    background: #2f5f44;
    padding: 1rem;
    transition: max-height 0.3s ease-in-out; /* Add the transition */
    max-height: 0; /*Initially hide the menu with 0 height */
    overflow: hidden; /* Prevent content from overflowing */
  }

  .nav-links.open {
    display: flex;
    max-height: 300px;
  }
  .nav-links li {
    margin: 10px 0; /* Add spacing between list items */
  }

  .nav-links li:hover {  /* Target the anchor link within the list item */
    background-color:var(--accent-color); /* Or any color you want */
    padding: 5px; 

 }

  .get-quote {
    display: none;
  }

  .hero-container {
    flex-direction: column; /* Stack elements vertically */
    align-items: center;    /* Center horizontally */
    text-align: center;     /* Center text */
    padding-top: 90px;

  }

  .hero {
    margin-top: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;  /* Reduce heading size */
  }

  .hero p {
    font-size: 1.2rem; /* Reduce paragraph size */

  }

  .hero-buttons {
      flex-direction: column; /* Stack buttons vertically */
      gap: 10px;

      align-items: center;    /* Center the buttons */
  }

    .hero-buttons a{
        margin: 10px 0; /* Add some space between buttons */
        width: 80%; /* Make buttons fill width on smaller screen */
    }


    /* ABout section  */

    .about-container {
      flex-direction: column; /* Stack content vertically */
    }
  
    .about-content {
      padding: 0 0 50px 0;
      order: 1;        /* Place content below the image */
      text-align:justify; /* Center the text */
  
    }
    .about-img {
      order:1; /* Place the image above content*/
      /* margin: 0 auto 20px;    */
      max-width: 100%;
    }




  
    
    .contact-container {
      padding: 20px; /* Add some padding for smaller screens */
  }

  .contact form input[type="text"],
  .contact form input[type="email"],
  .contact form textarea {
      width: calc(100% - 20px); /* Full width minus padding */
      margin-bottom: 15px; /* Add spacing between form elements */
      box-sizing: border-box; /* Include padding and border in element's total width and height */
  }

  .contact form button {
      width: 100%; /* Make button full width on mobile */

  }



}
@media (min-width: 769px) and (max-width: 1024px) { /* Tablet Styles */
  .contact-container {
      padding: 30px; /* Adjust padding for tablets */
  }

  .contact form input[type="text"],
  .contact form input[type="email"],
  .contact form textarea {
      width: calc(100% - 30px); /* Full width minus padding */
      margin-bottom: 20px; /* Add spacing between form elements */
      box-sizing: border-box; /* Include padding in width */


  }

}



/* Mobile Breakpoint */
@media (max-width: 320px) {
  /* .navbar {
  
  } */
  .hero {
    margin-top: 25px;
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: 18px;
    line-height: 28px;
  }
  .hero p {
    font-size: 8px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
    padding: 10px;
    font-size: 1em;
    /* margin-top: 30px; */
  }
}

