/* ===========================
   GENERAL STYLES
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f5f7f5;
  color: #333;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===========================
   HEADER WITH ANIMATION
=========================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #73b03a, #4c8c2b);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: linear-gradient(90deg, #5a8e2c, #3a6b1e);
  padding: 6px 6%;
}

header .logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

header .logo img {
  width: 75px;
  height: 75px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

header .logo img:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Navigation links */
nav {
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

/* Underline hover animation */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #d3ffb3;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #d3ffb3;
}

/* Hamburger menu icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1100;
}

.menu-toggle div {
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.4s ease;
}


/* Animate burger to X */
.menu-toggle.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open div:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open div:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu dropdown */
nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
  background: #4c8c2b;
  text-align: center;
  padding: 25px 0;
  animation: slideDown 0.4s ease forwards;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

nav.active a {
  margin: 14px 0;
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

nav.active a:nth-child(1) { animation-delay: 0.1s; }
nav.active a:nth-child(2) { animation-delay: 0.2s; }
nav.active a:nth-child(3) { animation-delay: 0.3s; }
nav.active a:nth-child(4) { animation-delay: 0.4s; }
nav.active a:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ===========================
   SECTIONS (Home, Front, etc.)
=========================== */
.home {
  min-height: 100vh;
  padding: 120px 10%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #e6f7f4, #ffffff);
}

.home-content {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
}

.home-content h1 {
  font-size: 5rem;
  margin-bottom: 15px;
  color: #2e5c25;
}

.home-content h3 {
  font-size: 2rem;
  color: #6aa84f;
  margin-bottom: 20px;
}

.home-content .highlight {
  color: #73b03a;
}

.home-content p {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: #73b03a;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-right: 10px;
    font-size: 1.2rem;

}

.btn:hover {
  background: #4c8c2b;
  transform: translateY(-3px);
}

.home-img img {
  width: 360px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* FRONT SECTION */
#front {
  background: #f9f9f9;
  padding: 6rem 9%;
  text-align: center;
}

#front h2 {
  font-size: 2rem;
  color: #006d5b;
  margin-bottom: 40px;
}

.front-img img {
  width: 750px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.front-img img:hover {
  transform: scale(1.03);
}

/* SERVICES */
#services {
  background: #fff;
  padding: 100px 10%;
  text-align: center;
}

#services h2 {
  color: #006d5b;
  font-size: 2rem;
  margin-bottom: 50px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-box {
  background: #f2fdfb;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-box i {
  font-size: 2.5rem;
  color: #73b03a;
  margin-bottom: 15px;
}

/* VISION & MISSION */ 

#vision-mission { 
  background: linear-gradient(135deg, #e8fce9, #ffffff); 
  padding: 100px 10%; 
  text-align: center; 
} 

#vision-mission h2 { 
  font-size: 2rem; 
  color: #006d5b; 
  margin-bottom: 40px; 
} 

.vm-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 40px; 
  justify-content: center; 
} 

.vm-container p {
    font-size: 1.3rem;
}

.vision, .mission { 
  flex: 1 1 400px; 
  background: #f2fdfb; 
  border-radius: 15px; 
  padding: 40px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
} 

.vision:hover, .mission:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}

/* CONTACT */
#contact {
  background: #73b03a;
  color: #fff;
  padding: 60px 10%;
  text-align: center;
}

#contact h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

#contact p {
  font-size: 1rem;
  color: #f2f2f2;
}

/* ===========================
   RESPONSIVE DESIGN (Mobile)
=========================== */
@media screen and (max-width: 900px) {

  body {
    overflow-x: hidden;
  }

  /* HEADER */
  header {
    padding: 10px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
  }

  nav.active {
    display: flex;
  }

  header .logo img {
    width: 50px;
    height: 50px;
    margin-right: 8px;
  }

  header .logo {
    font-size: 1.1rem;
  }

  /* HOME SECTION */
  .home {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 130px 8% 70px;
    text-align: center;
    background: linear-gradient(135deg, #e6f7f4, #ffffff);
  }

  .home-content {
    width: 100%;
    max-width: 380px;
    padding: 0;
    margin: 0 auto;
  }

  .home-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .home-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .home-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .btn {
    width: 80%;
    max-width: 260px;
    margin: 8px auto;
    display: block;
  }

  .home-img {
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }

  .home-img img {
    width: 70%;
    max-width: 280px;
    border-radius: 20px;
  }

  /* OTHER SECTIONS */
  #front,
  #services,
  #vision-mission,
  #contact {
    padding: 60px 6%;
  }

  #services h2,
  #front h2,
  #vision-mission h2 {
    font-size: 1.7rem;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .vm-container {
    flex-direction: column;
  }
}
