/* CSS Reset: Remove default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  font-family: 'caribrium', sans-serif;
  color: #333;
  background-color: #f4f7f6; /* Light greenish background */
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/*updated hero*/

/* Hero Section Styles */
/* Hero Layout */
.hero1,
.hero {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0;
}
.hero {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  padding: 40px;
  padding-left: 0px;
  font-family: 'caribrium', sans-serif;
  margin-left: 0px;
}

/* Background settings */
.hero1 {
  background-image: url('./images/image13.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Overlay on Hero Image */
.hero1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Inner content */
.hero1-inner,
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

/* Title and Subtitle Styles */
.hero1 h1,
.hero-content h1 {
  font-size: 4em;
  color: #2e8b57;
  margin: 0 0 0.5em 0;
}

.hero1 h2,
.hero-content h2 {
  font-size: 1.5em;
  color: #4caf50;
  margin-bottom: 1em;
}

.hero-content p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
}

/* Call-to-action buttons */
.cta-btn1,
.hero-content .cta,
.Find-Us-button {
  display: inline-block;
  padding: 1em;
  font-size: 1.5em;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background-color: #388e3c;
  color: white;
  border: 3px solid #388e3c;
  transition: background 0.3s, border-color 0.3s;
}

.cta-btn1:hover,
.hero-content .cta:hover,
.Find-Us-button:hover {
  background-color: #66bb6a;
  border-color: #66bb6a;
}

/* Hero image */
.hero-image {
  width: 50%;
  height: auto;
  min-height: 629px;
  object-fit: cover;
  border-top-left-radius: 360px;
  border-bottom-left-radius: 360px;
  margin-right: 0px;
  padding-right: 0px;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .hero1 h1,
  .hero-content h1 {
    font-size: 2.5em; /* Adjust title size for smaller screens */
  }

  .hero1 h2,
  .hero-content p {
    font-size: 1.2em; /* Adjust subtitle and paragraph font size */
  }

  /* Adjust the call-to-action buttons for mobile */
  .cta-btn1,
  .hero-content .cta {
    width: 100%;
    font-size: 1.2em;
    padding: 15px;
  }

  /* Adjust the hero image for smaller screens */
  .hero-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-top-left-radius: 360px;
    border-bottom-left-radius: 360px;
  }

  /* Adjust hero layout for mobile */
  .hero {
    flex-direction: column;
    text-align: center;
    height: auto;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 20px;
    padding: 20px;
  }

  /* Adjust padding and margins to improve mobile layout */
  .hero1 h1,
  .hero-content h2 {
    margin-bottom: 10px;
  }

  .hero-content p {
    margin-bottom: 20px;
  }
}

/* Grid-based layout for sections */
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 2em 1em;
  text-align: center;
}

/* Header styles */
.row h1 {
  width: 100%;
  font-size: 3.5em;
  color: #1f003b;
}

/* Card styles */
.card {
  box-shadow: 0 0 2.4em rgba(25, 0, 58, 0.1);
  padding: 3.5em 1em;
  border-radius: 0.6em;
  color: #2d6a4f;
  cursor: pointer;
  transition: 0.3s;
  background-color: #ffffff;
}

.card .img-container {
  width: 8em;
  height: 8em;
  background-color: #4c9a2a;
  padding: 0.5em;
  border-radius: 50%;
  margin: 0 auto 2em;
}

.card img {
  width: 100%;
  border-radius: 50%;
}

.card h3 {
  font-weight: 500;
}

.card p {
  font-weight: 300;
  text-transform: lowercase;
  margin: 0.5em 0 2em 0;
  letter-spacing: 2px;
}

.card:hover {
  background: linear-gradient(#2d6a4f, #4c9a2a);
  color: #ffffff;
}

.card:hover .img-container {
  transform: scale(1.15);
}

/* Column layout */
.column {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  padding: 0 1em;
}

/* Make columns stack on smaller screens */
@media screen and (max-width: 1024px) {
  .column {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 768px) {
  .column {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .row h1 {
    font-size: 2.5em;
  }
}

/* Testimonial styles */
.testimonial-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin: 2em auto;
  width: 80%;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

/* Text and image container adjustments */
.testimonial-text,
.testimonial-image {
  flex: 1;
  padding: 2em;
  min-width: 250px; /* Ensure there's space for smaller screens */
}

/* Text styling */
.testimonial-text h2 {
  font-size: 2.5em;
  color: #2d6a4f;
  margin-bottom: 1em;
}

.testimonial-text p {
  font-size: 1.2em;
  color: #555;
  line-height: 1.6;
}

/* Image box adjustments */
.testimonial-image .image-box {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 0 auto; /* Center the image */
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Information box inside the image */
.testimonial-image .info-box {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 1.2em;
  display: none;
}

/* Show info-box on hover */
.testimonial-image .image-box:hover .info-box {
  display: block;
}

/* Image hover effect */
.testimonial-image .image-box:hover img {
  transform: scale(1.1);
}

/* Testimonial card styling */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
  background-color: #4c9a2a;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  width: 100%;
  text-align: center;
}

.testimonial-card h3 {
  font-size: 1.5em;
  margin: 1em 0;
}

.testimonial-card p {
  font-size: 1em;
  margin: 0.5em 0;
}

/* Image box hover effect */
.testimonial-image .image-box:hover {
  transform: scale(1.05);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .testimonial-container {
    flex-direction: column;
    width: 100%; /* Ensure the container takes full width */
    padding: 1.5em; /* Reduce padding for smaller screens */
  }

  .testimonial-text,
  .testimonial-image {
    padding: 1em;
    min-width: 100%; /* Allow text and image to take full width on mobile */
  }

  .testimonial-text h2 {
    font-size: 2em; /* Smaller title font for mobile */
  }

  .testimonial-text p {
    font-size: 1.1em; /* Smaller text for better readability on mobile */
  }

  .testimonial-image .image-box {
    width: 250px; /* Adjust image size for mobile */
    height: 250px;
  }

  .testimonial-card h3 {
    font-size: 1.3em; /* Smaller subtitle font on mobile */
  }

  .testimonial-card p {
    font-size: 0.9em; /* Smaller paragraph text */
  }
}

/* Services section */
.the-services-we-provide1 {
  padding: 50px 15px;
  background: whitesmoke;
  animation: fadeIn 1s ease-in-out;
}
.the-services-we-provide {
  padding: 50px 15px;
  background: #e8f5e9;
  animation: fadeIn 1s ease-in-out;
}

.container__heading {
  text-align: center;
  color: ;
  font-size: 2.5rem;
  font-weight: 600;
  animation: slideInFromLeft 1s ease-in-out;
}

.container__box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 15px;
}

.box {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 1.5s ease-in-out;
}

.box img {
  width: 60px;
  height: 60px;
}

.box h3 {
  color: #2e7d32;
  font-size: 1.25rem;
  margin: 15px 0;
}

.box p {
  font-size: 0.9rem;
  color: #4caf50;
  margin-bottom: 15px;
}

.box a {
  background: #66bb6a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

.box a:hover {
  background: #43a047;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.section1 {
  background: #c8e6c9 url('./images/cool-background.png') no-repeat center;
  background-size: cover;
  padding: 20px;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

.section1 p {
  font-size: 1rem;
  color: whitesmoke;
  margin-bottom: 15px;
}
/* Contact Us Section */
.contact-us-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  padding-left: 0px;
  flex-wrap: wrap;
  font-family: 'caribrium', sans-serif;
}

/* Contact Image */
.contact-image {
  flex: 1.5; /* Increase flex to allocate more space */
  max-width: 60%; /* Increase max-width to make the image larger */
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-top-right-radius: 300px;
  border-bottom-right-radius: 300px;
}

/* Contact Form */
.contact-form {
  flex: 1; /* Keep form size balanced */
  max-width: 40%; /* Adjust form width to compensate for larger image */
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Heading */
.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #388e3c;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

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

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

.form-group textarea {
  resize: vertical;
}

/* Submit Button */
button {
  width: 100%;
  padding: 12px;
  background-color: #388e3c;
  color: white;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #66bb6a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-us-section {
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    padding: 20px;
  }

  .contact-image,
  .contact-form {
    max-width: 100%; /* Full width for both */
  }

  .contact-image {
    margin-bottom: 20px; /* Add space between the image and form */
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form h2 {
    font-size: 1.8rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }

  button {
    font-size: 1.1rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .contact-form h2 {
    font-size: 1.5rem;
  }

  button {
    font-size: 1rem;
  }
}
/* MCard Section */
.mcard-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px;
  background-color: #f4f4f4;
  font-family: 'caribrium', sans-serif;
}

/* Individual MCard */
.mcard {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
  transform: translateY(50px);
  opacity: 0; /* Hidden by default for scroll animation */
}

.mcard h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333333;
}

.mcard p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

.mcard a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #388e3c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.mcard a:hover {
  background-color: #66bb6a;
}

.mcard:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Active state for scroll animation */
.mcard.active {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .mcard-section {
    padding: 20px;
  }

  .mcard h3 {
    font-size: 1.3rem;
  }

  .mcard p {
    font-size: 0.9rem;
  }

  .mcard a {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .mcard {
    padding: 15px;
  }

  .mcard h3 {
    font-size: 1.2rem;
  }

  .mcard p {
    font-size: 0.8rem;
  }

  .mcard a {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

.input-invalid {
  border: 1px solid red;
}

.error-message {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
}
.success-message {
  color: green;
  font-size: 0.8rem;
  margin-top: 5px;
}