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

/* Variables */
:root {
  --primary-color: #2e7d32;
  --secondary-color: #ffffff;
  --background-color: #f9f9f9;
  --text-color: #333333;
  --accent-color: #81c784;
  --font-family: 'Poppins', sans-serif;
}

/* Global Styles */
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

/* Header */
header {
  background: var(--secondary-color);
  position: relative;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Styling */
.logo {
  height: 60px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  transition: all 0.3s ease;
  background: transparent;
}

.nav-links a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Header */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Can implement a mobile menu toggle here */
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh; /* Reduced height slightly to take less screen space */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slider Container */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slides */
.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slider .slide.active {
  opacity: 1; /* Fully visible when active */
  z-index: 2; /* Bring the active slide to the front */
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Adjust the opacity here */
}




/* Content Overlay */
.hero-slider .slide .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3; /* Ensure content is above images */
  color: var(--secondary-color);
}

.hero-slider .slide .content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-slider .slide .content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-slider .slide .content .btn-learn-more {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-slider .slide .content .btn-learn-more:hover {
  background-color: var(--primary-color);
}

/* Arrow Styles */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 4;
  width: 30px; /* Ensure arrows maintain a clean size */
  height: auto; /* Maintain aspect ratio */
  transition: transform 0.3s ease;
}

.arrow-left {
  left: 20px;
}

.arrow-right {
  right: 20px;
}

.arrow:hover {
  transform: translateY(-55%); /* Move up slightly on hover */
}



.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  z-index: 2; /* Ensures text is above the background */
  color: var(--primary-color); /* Green text */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  z-index: 2;
  color: var(--primary-color); /* Green text */
}

.btn-learn-more {
  z-index: 2;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-learn-more:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}


/* Gradient Background */
.gradient-background {
  background: linear-gradient(to bottom, #f0f4f0, var(--background-color));
  padding: 60px 20px;
}

/* About Section */
.about {
  text-align: center;
}

.about h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--primary-color);
  position: relative; /* Necessary for positioning the line */
}

.about h2::after {
  content: '';
  display: block;
  width: 100px; /* Adjust the width of the line */
  height: 4px; /* Thickness of the line */
  background-color: var(--accent-color); /* Line color */
  margin: 10px auto 0; /* Center the line below the title */
  border-radius: 2px; /* Optional: Adds rounded edges to the line */
}

.about-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.about-image img {
  max-width: 250px;
  display: block;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  max-width: 400px;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 1.2rem;
  line-height: 1.8;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
}

.about-text ul li {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.about-text ul li span {
  margin-right: 10px;
  font-size: 1.5rem;
}

/* Services Section */
.services {
  padding: 60px 20px;
}

.services h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--primary-color);
  position: relative; /* Necessary for positioning the line */
}

.services h2::after {
  content: '';
  display: block;
  width: 100px; /* Adjust the width of the line */
  height: 4px; /* Thickness of the line */
  background-color: var(--accent-color); /* Line color */
  margin: 10px auto 0; /* Center the line below the title */
  border-radius: 2px; /* Optional: Adds rounded edges to the line */
}


.service-list {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch; /* Ensures all items stretch to the same height */
}

.service-item {
  flex: 1;
  max-width: 300px;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column; /* Aligns content vertically */
  justify-content: space-between; /* Distributes content evenly */
}

/* Images */
.service-item img {
  width: 100%;
  height: 150px; /* Fixed height for images */
  object-fit: cover; /* Ensures images are properly contained */
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Titles */
.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  min-height: 50px; /* Ensures all titles have the same height */
  display: flex;
  align-items: center; /* Center the title vertically */
  justify-content: center;
}

/* Paragraphs */
.service-item p {
  font-size: 1rem;
  margin-bottom: 20px;
  min-height: 80px; /* Ensures all descriptions have the same height */
  display: flex;
  align-items: center; /* Center the text vertically */
  justify-content: center;
  text-align: left;
}

/* Buttons */
.service-item .btn-learn-more {
  background-color: var(--accent-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Pushes the button to the bottom */
}

.service-item .btn-learn-more:hover {
  background-color: var(--primary-color);
}


/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.popup-content h3 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.popup-content p {
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: left;
}

.popup-content .btn-close {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-content .btn-close:hover {
  background-color: var(--accent-color);
}


.image-carousel {
  position: relative;
  max-width: 800px;
  height: 400px;
  margin: 40px auto;
  overflow: hidden;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Hide inactive images */
  transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

.carousel-image.active {
  opacity: 1; /* Show the active image */
  z-index: 1; /* Ensure the active image is on top */
}




/* Contact Section */
.contact {
  padding: 60px 20px;
  background: var(--background-color);
  text-align: center;
}

.contact h2 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
}

.contact h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #2e7d32, #81c784); /* Green gradient */
  margin: 10px auto 0;
  border-radius: 2px;
}


.contact p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-color);
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: var(--text-color);
}

.detail img {
  width: 25px;
  height: auto;
}

/* Social Media */
.social-media {
  margin-bottom: 40px;
}

.icon-insta {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Map */
.map {
  margin: 40px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
  margin-top: 40px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 12px 30px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}


/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 20px;
  font-size: 1rem;
}


/* Popup Overlay */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Popup Content */
.popup-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.popup-content h2 {
  margin-bottom: 20px;
  color: #2e7d32;
}

#popup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#popup-form label {
  font-weight: bold;
  text-align: left;
}

#popup-form input {
  padding: 10px;
  border: 1px solid #2e7d32;
  border-radius: 5px;
  font-size: 1rem;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.btn-submit, .btn-close {
  background-color: #2e7d32;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-close {
  background-color: #ccc;
  color: #333;
}

.btn-submit:hover {
  background-color: #81c784;
}

.btn-close:hover {
  background-color: #bbb;
}



/* Header Base Styles */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 10px 20px;
}

/* Logo */
.logo {
  height: 50px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}



@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--secondary-color);
    width: 80%; /* Adjusted width for better balance */
    max-width: 300px; /* Prevent the menu from being too large */
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0; /* Add padding for spacing */
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    padding: 15px 20px; /* Increased padding for better clickability */
    text-align: left;
    font-size: 1rem; /* Slightly larger font size for readability */
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle span {
    background-color: var(--primary-color);
    height: 4px; /* Slightly thicker lines */
    width: 25px; /* Consistent width */
  }
}

/* Overlay for Mobile Menu */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  z-index: 999; /* Ensure it covers other content */
}

.menu-overlay.active {
  display: block;
}



/* Responsive Design for Phones */
@media (max-width: 768px) {
  /* Header */
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  /* Hero Section */
  .hero {
    height: 50vh; /* Adjust height for smaller screens */
  }

  .hero-slider .slide img {
    object-fit: cover; /* Maintain image proportion */
  }

  .hero-slider .slide .content h1 {
    font-size: 1.8rem; /* Smaller font size */
  }

  .hero-slider .slide .content p {
    font-size: 1rem; /* Adjust paragraph size */
  }

  .arrow {
    width: 20px; /* Smaller arrows */
  }

  /* About Section */
  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 80%; /* Smaller image size */
  }

  .about-text {
    max-width: 90%; /* Allow text to stretch */
  }

  .service-list {
    flex-direction: column; /* Stack boxes vertically */
    align-items: center; /* Center-align the boxes */
  }

  .service-item {
    max-width: 90%; /* Limit width for smaller screens */
    margin-bottom: 20px; /* Add spacing between boxes */
  }

  /* Contact Section */
.contact-details {
    flex-direction: column; /* Stack contact details vertically */
    gap: 15px;
  }

  .detail {
    justify-content: center; /* Center align contact details */
  }

  .map iframe {
    height: 200px; /* Adjust map height */
  }

  .contact-form input, .contact-form textarea {
    font-size: 1rem; /* Ensure inputs are readable */
  }

  .contact-form button {
    width: 100%; /* Make button full width */
  }

  /* Footer */
  footer {
    font-size: 0.9rem; /* Reduce footer text size */
  }

  /* Popup */
  .popup-content {
    width: 95%; /* Use almost full screen */
    font-size: 1rem; /* Adjust text size */
  }
  /* Navigation Menu */
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 10px;
  background-color: var(--secondary-color);
  width: 260px; /* Increase width for larger menu */
  padding: 20px; /* Add padding for space inside the menu */
  border: 1px solid var(--primary-color);
  border-radius: 10px; /* Smooth rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  z-index: 1000;
}

.nav-menu.active {
  display: flex;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Add spacing between buttons */
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.2rem; /* Slightly larger font */
  font-weight: 600;
  padding: 12px 15px; /* Add padding for larger click area */
  border-radius: 5px; /* Rounded edges for buttons */
  background-color: var(--background-color);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Hamburger Menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001; /* Keep above the menu */
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

}


/* Responsive Styling for Image Carousel */
@media (max-width: 768px) {
  .image-carousel {
    max-width: 94%; /* Make the carousel take full width of the screen */
    height: 250px; /* Reduce height for smaller screens */
  }

  .carousel-image {
    object-fit: cover; /* Ensure images scale well */
  }
}
