/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
  font-family: "roboto", tahoma, sans-serif;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  /* margin: 0 1.5rem; */
  overflow-x: hidden;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

/* HEADER STYLING */
.nav-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(5px); 
  -webkit-backdrop-filter: blur(5px); 
  position: fixed;
  width: 100%;
  height: auto; /* Changed from fixed height to auto */
  min-height: 80px; /* Minimum height instead of fixed percentage */
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 10px 30px;
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); 
}

/* add scrolled class styles */
.nav-bar.scrolled {
  background-color: rgba(255, 255, 255, 0.8); /* More opaque when scrolled */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Stronger shadow when scrolled */
}

.nav-bar.scrolled .nav-items li a {
  color: #333;

}

.nav-bar.scrolled .nav-items li a:hover {
  color: #418e28;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-bar a {
  color: #222; /* Dark text color */
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Text shadow for readability */
}

.nav-items {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  width: 50%;
  /* height: 100%; */
}


.nav-items.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: fit-content;
  background-color: rgba(255, 255, 255, 0.9); /* Solid background for visibility */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.nav-items.active li {
  text-align: center;
  padding: 10px 0;
}

.nav-items.active a {
  color: #222;
  font-size: 1.2rem;
}

.nav-items > li a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
}

.nav-items > li a:hover {
  color: #418e28;
}

.logo {
  width: 50%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.7rem;
  padding-top: 1rem;
}

.nav-bar .logo img {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.coco {
  color: #5ca202;
}

.fert {
  color: rgb(213, 128, 64);
}

/* styles for the hamburger menu */
.menu-toggle,
.close-btn {
  display: none;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #1A3A1A;
  transition: all 0.3s ease-in-out;
}

/* HOME STYLING*/

#home {
  width: 100vw;
  height: 100vh;
  background-attachment: fixed;
  background-image: url(./assets/images/pexels-1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3rem;
}

.hero-btn {
  background-color: #418e28;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  width: auto;
  max-width: 12.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
  text-decoration: none;
  color: white;
}

.hero-btn:hover {
  color: #418e28;
  background-color: white;
}

/* ABOUT PRODUCT STYLING */

.about-product {
  min-height: 100vh;
  width: 100%;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.about-product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,10 Q50,0 70,10 T90,30 T70,50 T30,70 T10,50 T30,30 Z" fill="none" stroke="%23418e2822" stroke-width="2"/></svg>') repeat;
  opacity: 0.3;
  z-index: 0;
}

.about-product h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.about-product h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #418e28;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.about-product h2 {
  color: #418e28;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  position: relative;
  text-align: center;
  font-weight: 600;
}

.about-product p {
  width: 70%;
  max-width: 800px;
  color: #5f5f5f;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.product-btn {
  background-color: #418e28;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  width: auto;
  max-width: 12.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  text-align: center;
  box-shadow: 0 4px 15px rgba(65, 142, 40, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  display: inline-block;
}

.product-btn:hover {
  background-color: #306b1e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(65, 142, 40, 0.4);
}

.product-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(65, 142, 40, 0.3);
}

/* ABOUT INNOVATOR STYLING */

#innovator {
  width: 100%;
  height: fit-content;
  color: white;
}

.innovate {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 100%;
  margin: 0 auto;
  /* height: 100%; */
  background-color: #4e6a46;
  opacity: 1;
  border-radius: 10px; 
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white;
}

.innovate:hover {
    box-shadow: 0 8px 16px #4e6a46; 
    transition: box-shadow 0.3s ease; 
}

.innovate-img {
  background-image: url(./assets/images/innovator.jpg);
  background-size: cover;
  width: 20rem;
  height: 25rem;
  border: 3px;
  margin: 1.5rem;
  border-radius: 1rem;
}

.innovate-content {
  height: 80%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: auto;
}

.innovate-content h3 {
  margin-bottom: 10px; 
  font-size: 2rem; 
}

.innovate-content p {
  font-size: 16px; 
  line-height: 1.6; /* Improve readability */
  padding-right: 1rem;
}

/* PRODUCT STYLING*/
.product-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem 5rem;
  gap: 20px;
}

#product > h1 {
  margin-top: 2rem;
  text-align: center;
  font-size: 2rem;
}

.product-items {
  border: 1px solid rgb(213, 128, 64);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.product-img {
  width: 40%;
  height: 70%;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

/* TESTIMONIAL STYLING */

.testimonials {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9; 
}

.testimonial-container {
  display: flex; 
  align-items: center; 
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px; 
}

.testimonial-header {
  flex: 1; /* Takes 50% of the width */
  text-align: left;
}

.testimonial-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333; 
}

.testimonial-header p {
  font-size: 1.5rem;
  color: #666; 
  margin-bottom: 20px;
}

/* Star rating styling */
.rating {
  margin-bottom: 10px;
}

.rating span {
  color: rgb(230, 158, 103); /* Gold color for stars */
  font-size: 1.5rem;
}

/* Testimonial card styling */
.testimonial-card {
  flex: 1; 
  display: none; /* Hide all cards by default */
  background-color: #fff; 
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  text-align: left;
}

.testimonial-card.active {
  display: block; 
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: #555; 
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-card .author {
  font-size: 0.9rem;
  color: #777; 
  font-weight: bold;
}

/* Navigation Arrows */
.navigation-arrows {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start; 
  gap: 20px; 
}

.arrow {
  background-color: transparent;
  border: 1px;
  border-radius: 50%;
  font-size: 2rem;
  color: rgb(230, 158, 103); 
  cursor: pointer;
  transition: color 0.3s ease;
  height: 3rem;
  width: 3rem;
}

.arrow:hover {
  color: white; 
  background-color: rgb(230, 158, 103);
  border: none;
}

/* CONTACT SECTION */
#contact {
  padding: 40px 20px;
  background-image: url(./assets/images/contact-background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  overflow-x: hidden;
  background-position: center;
}

.contact-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 1.7rem; 
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Contact Information */
.contact-info {
  flex: 1;
  min-width: 300px; 
  box-sizing: border-box; 
  background-color: transparent;
  backdrop-filter: blur(10px); 
  border-radius: 10px; 
  padding: 20px; 
  border: 1px solid rgba(255, 255, 255, 0.2); 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: hsl(0deg 0% 37.25%); 
}

.contact-details {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #333;
}

.contact-details i {
  font-size: 1.5rem;
  margin-right: 1.2rem;
  color: rgb(230, 158, 103);
}

.contact-form {
  flex: 1;
  min-width: 300px; 
  box-sizing: border-box; 
  background-color: transparent; 
  backdrop-filter: blur(10px); 
  border-radius: 10px; 
  padding: 20px; 
  border: 1px solid rgba(255, 255, 255, 0.2); 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: hsl(0deg 0% 37.25%); 
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc; 
  border-radius: 5px; 
  box-sizing: border-box; 
}

.form-group textarea {
  width: 100%;
  height: 150px; /* Fixed height for textarea */
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc; 
  border-radius: 5px; 
  resize: vertical;
  box-sizing: border-box; 
}

.submit-btn {
  background-color: rgb(230, 158, 103); 
  color: #fff; 
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px; 
  cursor: pointer;
}

.submit-btn:hover {
  background-color: transparent; 
  color: rgb(230, 158, 103);
}

/* Map Container */
.map-container {
  margin-top: 2.4rem;
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  width: 100%; 
  height: 150px; 
  box-sizing: border-box; 
}

.map-container iframe {
  width: 100%;
  height: 100%; 
  border: 0; 
}

.social-links {
  margin-top: 3rem;
}

.social-links span {
  font-size: 1.5rem;
}

.social-links li {
  list-style: none;
  font-size: 1.5rem;
}

.social-links ul {
  text-decoration: none;
  display: flex;
  gap: 1rem;
  padding: 0;
}

.social-links li a {
  color: rgb(230, 158, 103);
}

.social-links li a:hover {
  color: #23241e;
}

/* FOOTER SECTION */
footer {
  background-color: #1a3a1a; /* Darker green background */
  color: white;
  padding: 60px 40px 30px;
  font-family: Arial, sans-serif;
  position: relative;
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Subtle leaf pattern overlay */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-color:#1A3A1A;
  pointer-events: none;
}

.footer-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.logo {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.logo-img {
  margin-right: 8px;
  height: 40px;
  filter: brightness(1.1); /* Makes logo slightly brighter against dark bg */
}

.coco {
  color: #5ca202;
  font-size: 24px;
  font-weight: 700;
}

.fert {
  color: rgb(213, 128, 64); /* Light green accent */
  font-size: 24px;
  font-weight: 700;
}

.quick-links,
.contact-links {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.quick-links span,
.contact-links > span {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.quick-links span::after,
.contact-links > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #66b347; /* Medium green for accent */
  border-radius: 2px;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 0.8rem;
  transition: transform 0.3s ease;
}

.contact-detail:hover {
  transform: translateX(5px);
}

.contact-detail i {
  color: #8fca7b; /* Light green for icons */
  font-size: 18px;
}

.footer-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-items li {
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.footer-items li:hover {
  transform: translateX(5px);
}

.footer-items a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.footer-items a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #8fca7b;
  transition: width 0.3s ease;
}

.footer-items a:hover {
  color: #8fca7b; /* Light green on hover */
}

.footer-items a:hover::after {
  width: 100%;
}

/* Horizontal line styling */
.footer-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 40px auto;
  max-width: 1200px;
}

/* Copyright section styling */
.copyright {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

/* Responsive Design */
/* nav bar */
@media screen and (max-width: 768px) {
  header {
    width: 100%;
  }

  .nav-bar {
    padding: 10px 15px;
  }

  .logo {
    width: auto;
    font-size: 1.5rem;
  }

  .logo-img {
    max-width: 40px;
  }

  .nav-items {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    /* background-color: wheat; */
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    padding-top: 60px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

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

  .nav-items li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
  }

  ul li a {
    display: block;
    padding: 10px;
  }

  .menu-toggle {
    display: block;
    z-index: 101;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    z-index: 102;
  }

  /* .close-btn.active {
    display: block;
    color: #418E28;
  } */
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }

  .logo-img {
    max-width: 30px;
  }

  .nav-items {
    width: 80%;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

/* HERO SECTION */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-btn {
    width: 50%;
    font-size: 1rem;
    padding: 10px 15px;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-btn {
    width: 70%;
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* ABOUT SECTION */
@media (max-width: 1024px) {
  /* Adjust for tablets and smaller desktops */
  .about-product p {
    width: 70%; /* Increase width for better readability */
  }

  .innovate {
    width: 90%; /* Increase width for smaller screens */
  }

  .innovate img {
    width: 45%; /* Slightly reduce image width */
  }

  .innovate-content p {
    text-align: left;
  }
}

@media (max-width: 768px) {
  /* Adjust for tablets and larger mobile devices */
 
  .about-product h1 {
    font-size: 2rem;
  }
  
  .about-product h2 {
    font-size: 1.5rem;
  }
  
  .about-product p {
    width: 90%;
    font-size: 1rem;
  }


  .innovate {
    flex-direction: column; /* Stack image and content vertically */
    width: 90%;
    padding: 1rem; /* Add padding for spacing */
  }

  .innovate img {
    width: 80%; /* Increase image width for better visibility */
    height: auto; /* Allow height to adjust automatically */
    margin: 1rem 0;
  }

  .innovate-content {
    gap: 1rem; /* Reduce gap between elements */
    text-align: center; /* Center-align text */
  }
}

@media (max-width: 480px) {
  /* Adjust for mobile devices */
  .about-product {
    padding: 3rem 1rem;
  }
  
  .about-product h1 {
    font-size: 1.8rem;
  }
  
  .about-product p {
    width: 100%;
  }


  .innovate {
    width: 95%; /* Increase width for smaller screens */
  }

  .innovate img {
    width: 90%; /* Increase image width for better visibility */
    height: auto;
    margin: 1rem 0;
  }

  .innovate-content {
    gap: 0.5rem; /* Further reduce gap between elements */
  }
}

/* PRODUCT SECTION */
/* Responsive design for smaller screens */
@media (max-width: 1024px) {
  .product-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    margin: 2rem 3rem; /* Reduce margin for smaller screens */
  }

  .product-items p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .product-container {
    grid-template-columns: repeat(1, 1fr); /* 1 column for mobile */
    margin: 2rem 1rem; /* Further reduce margin for mobile */
    gap: 10px;
  }

  .product-img {
    width: 50%; /* Adjust image size for mobile */
  }
}

@media (max-width: 480px) {
  .product-container {
    margin: 2rem 0.5rem; /* Minimal margin for very small screens */
  }

  .product-img {
    width: 60%; /* Larger image size for very small screens */
  }

  #product > h1 {
    font-size: 1.5rem; /* Smaller heading size for very small screens */
  }
}

/* TESTIMONIAL SECTION */
/* Responsive Design */
@media (max-width: 768px) {
  .testimonial-container {
    flex-direction: column; /* Stack header and card vertically */
    gap: 10px; /* Reduce gap for smaller screens */
  }

  .testimonial-header {
    text-align: center; /* Center-align text on smaller screens */
  }

  .testimonial-header h2 {
    font-size: 1.5rem; /* Smaller font size for headings */
  }

  .testimonial-header p {
    font-size: 0.9rem; /* Smaller font size for descriptions */
  }

  .testimonial-card {
    width: 100%; /* Full width for cards on smaller screens */
    padding: 15px; /* Adjust padding for smaller screens */
  }

  .navigation-arrows {
    justify-content: center; /* Center arrows on smaller screens */
  }
}

/* CONTACT SECTION */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column; /* Stack contact info and form vertically */
    gap: 20px; /* Reduce gap for smaller screens */
    padding: 0 10px; /* Reduce padding for smaller screens */
  }

  .contact-info,
  .contact-form {
    min-width: 100%; /* Full width on smaller screens */
  }

  .map-container,
  .form-group textarea {
    height: 150px; /* Adjust height for smaller screens */
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 0 5px; /* Minimal padding for very small screens */
  }

  .contact-info,
  .contact-form {
    width: 100%; /* Full width on smaller screens */
    margin-right: 0;
    padding: 0 10px;
  }

  .map-container,
  .form-group textarea {
    height: 120px; /* Further reduce height for very small screens */
  }

  .contact-info h2,
  .contact-form h2 {
    font-size: 1.5rem; /* Smaller heading size for very small screens */
  }

  .contact-details {
    font-size: 1.1rem;
  }
}

/* FOOTER SECTION */
/* Responsive design for smaller screens */
@media (max-width: 768px) {
  footer {
    padding: 40px 20px 20px;
  }
  
  .footer-details {
    flex-direction: column;
    gap: 30px;
  }
  
  .quick-links, .contact-links {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .quick-links span::after,
  .contact-links > span::after {
    width: 30px;
  }
}
