/* Define the font families */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap"); /* Montserrat */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"); /* Poppins */

html {
  scroll-behavior: smooth;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Apply fonts to different elements */
body {
  font-family: "Poppins", sans-serif; /* Use Poppins as the body font */
  margin: 0;
  padding: 0;
}

/* Hover effect for buttons */

/* header styles  */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: white;
  color: #006400;
  font-family: 'Montserrat', sans-serif;
}

.logo img {
  width: 150px;
  height: 150px;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #006400;
  text-decoration: none;
  font-size: 18px;
}

.contact button {
  background-color: #E7B10A;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact button:hover{
  background-color: #006400;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.line {
  width: 30px;
  height: 3px;
  background-color: #006400;
  margin: 5px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px; /* Limit the maximum width of the modal */
  width: 90%; /* Take 90% of the available width */
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}

/* Form styles */
form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}



/* Styles for the intro section */
.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  height: 90vh;
  width: 100%;
  background-color: #E7B10A;
}

.intro-details {
  width: 60%;
  padding-right: 20px;
}

.intro h1 {
    font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  color: #006400;
  margin-bottom: 10px; /* Add some spacing below the heading */
}

.intro span {
  font-size: 18px;
  color: #333;
  display: block;
  margin-bottom: 20px; /* Add some spacing below the span */
}

.intro p{
    width: 50%;
    font-size: 16px;
    color: white;
}


.intro  button {
  margin-top: 20px;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background-color: #006400;
  color: #E7B10A;
}

.intro button:hover{
  background-color: white;
  color: #006400;
}
.intro-illustration {
  width: 40%;
  text-align: center;
  padding-top: 30px 20px;
}

.intro-illustration img {
  width: 100%;
}

/* Styles for the services section */
.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background-color: #f7f7f7; /* Example background color, you can change it as needed */
    color: #333; /* Example text color, you can change it as needed */
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px; /* Adjust the maximum width as needed */
}

.service {
    width: 30%; /* Adjust the width of each service item for different screen sizes */
    text-align: center;
    margin-bottom: 30px;
}

.service img {
    width: 100px; /* Adjust the icon size as needed */
    height: 100px;
}

.services-image img {
    max-width: 100%; /* Make sure the image does not exceed its container */
    height: auto; /* Maintain aspect ratio */
}

.another {
  background-color: #E7B10A;
  border-radius: 10px;
  padding: 30px;
  width: 80%;
}

/* Styles for the Why Choose Us section */
.why-choose-us {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-image: url('./images/chooose-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 40px;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.why-choose-us h2 {
  font-size: 36px;
  color: #006400; /* Primary color */
  text-align: center;
  margin-bottom: 30px;
}

.choose-us-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.choose-us-item {
  width: 30%; /* Adjust the width of each item for different screen sizes */
  text-align: center;
  margin-bottom: 30px;
  transition: transform 0.2s ease-in-out;
}

.choose-us-item img {
  width: 80px; /* Adjust the icon size as needed */
  height: 80px;
}

/* Footer Styles */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #006400; /* Primary color */
  color: #fff; /* Text color */
  padding: 30px;
  font-family: 'Poppins', sans-serif; /* Use Poppins as the font for the footer */
}

.footer h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.footer p {
  font-size: 16px;
  margin-bottom: 5px;
}

.footer button {
  background-color: #BC871B; /* Button color */
  color: white; /* Button text color */
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-details {
  width: 70%;

}
/* Styles for the address div */
.address {
  width: 30%;
  margin-top: 20px;
  font-size: 16px;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1200px) {
    .services-container {
        justify-content: center;
    }

    .service {
        width: 45%;
    }

    .choose-us-item {
      width: 45%;
    }
}

/* Media Query for Mobile Devices */
@media screen and (max-width: 768px) {
  .header{
    height: 10vh;
  }

  .logo img{
    width: 80px;
    height: 80px;
  }
  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 10vh; /* Adjust this value to set the distance from the top */
    width: 100%;
    left: -100%; /* Initially hide the navigation off the screen */
    background-color: #006400;
    color: white;
    padding: 20px;
    z-index: 1;
    height: 90vh;
    transition: left 0.3s ease-in-out; /* Add a smooth sliding transition */
  }

  .nav.show {
    left: 0; /* Show the navigation by setting left to 0 */
  }

  .nav a {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
  }

  .contact button {
    margin: 0 auto; /* Center the button horizontally */
    display: block;
    font-size: 36px;
     /* Set button display to block so it takes full width */
  }

  .hamburger {
    display: flex;
  }

  /* Hide the hamburger menu by default on mobile */
  #mainNav.show {
    display: flex;
  }

  /*intro styles*/
  .intro {
    text-align: center;
    align-items: center;
    flex-direction: column-reverse;
    padding: 20px;
  }

  .intro-details {
    padding: 0;
    width: 100%;
    margin-bottom: 60px;
  }

  .intro-illustration {
    margin-top: 15vh;
    padding: 0;
    width: 100%;
  }
  .intro h1 {
   
    font-size: 24px; /* Adjust the font size for smaller screens */
  }

  .intro span {
    font-size: 16px; /* Adjust the font size for smaller screens */
  }

  .intro p{
    width: 100%;
  }

  .choose-us-container {
    flex-direction: column;
    align-items: center;
  }

  .choose-us-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer {
    padding: 20px;
    flex-direction: column-reverse;
  }

  .contact-details {
    width: 100%;
  }

  .address {
    width: 100%;
  }

  .footer h3 {
    font-size: 20px;
  }

  .footer p {
    font-size: 16px;
  }
}


/* Mobile view - modal takes full width and centers vertically */
@media screen and (max-width: 600px) {
  .modal-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
  }
}

/* Tablet view - modal takes 70% width and centers vertically */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .modal-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
  }
}


/* Larger desktop view - modal takes 50% width and centers vertically */
@media screen and (min-width: 1025px) {
  .modal-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
  }
}

@media screen and (max-width: 480px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 100%;
        margin-bottom: 20px;
    }

    .why-choose-us h2 {
      font-size: 24px;
    }
  
    .choose-us-item {
      width: 100%;
    }
}