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

body{
    font-family: 'Poppins', sans-serif;
    background-color: rgb(255, 255, 255);
}
/*****************Header*****************/

#header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: #d9f5bb;
    position: sticky;
    z-index: 900;
    top: 0;
    left: 0;
}

#header img{
    width: 50px;
    height: 50px;
    background: transparent;
    transform: translateX(30px);
    border-radius: 50%;

}

#navbar{
    display: flex;
    justify-content: right;
    align-items: center; 
}
#navbar li{
    position: relative;
    padding: 0px 10px;
}
#navbar li a{
    text-decoration: none;
    color: rgb(1, 63, 1);
    font-size: 1.3rem;
    font-weight: 600;
    
}

#navbar li a:hover,
#navbar li a.active{
    color: rgb(1, 63, 1);
    transform: translateY(-12px);
}
#navbar li a:hover::after,
#navbar li a.active:after{
    content:" ";
    width: 25%;
    height: 2px;
    background-color: rgb(1, 63, 1);
    position: absolute;
    bottom: -5px;
    left: 30px;
}

#login-user a{
    text-decoration: none;
    color: rgb(1, 63, 1);
    font-size: 30px;
    margin-right: 10px;
    margin-left: 50px;
}

/*************************Login Button****************/
.login-container {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.login-btn {
  outline: none;
  background-color: #d9f5bb;
  color: rgb(1, 63, 1);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 2px;
  position: relative;
  z-index: 10;
}
.login-btn span {
  margin-left: 5px;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 5;
  border-radius: 4px;
  padding: 10px ;
}

.dropdown p {
  margin: 0;
  padding-left: 10px;
  padding-bottom: 10px;
}

.dropdown p:hover {
  background-color: #f0f0f0;
}

.dropdown a {
  color: rgb(1, 63, 1);
  text-decoration: none;
  font-weight: 500;
}


/*****************************************/

#intro{
    background-image: url('./New_bg2.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    justify-content: center;
    padding: 0px 80px;
}

#intro h1{
    color: rgb(1, 63, 1);
    font-size: 50px;
    margin-bottom: 15px;
}
#intro h4{
    color: rgb(1, 63, 1);
    font-size: 25px;
    margin-bottom: 15px;
}
#intro p{
    color: rgb(0, 0, 0);
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600;
}

button{
    width: 300px;
    height: 50px;
    background-color: rgb(1, 63, 1);
    color: white;
    font-size: 20px;
    border: none;
    padding: 10px 15px;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
}

button:hover{
    color: rgb(1, 63, 1);
    background-color: white;
    box-shadow: 0px 0px 20px rgb(1, 63, 1);
}

.logo i{
    margin-left: 40px;
    margin-top: 50px;
    color: rgb(1, 63, 1);
    font-size: 30px;
    transform: translateX(-40px);
}
/***************About Us*****************/


#about-section {
  padding: 50px 20px;
  background: #bfdba3;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

#about-section h1 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #2e7d32;
}

.info-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.info-box {
  background-color: #fff;
  width: 250px;
  height: 200px; /* increased height */
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  /* Center content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around; /* key change! */
  text-align: center;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon {
  font-size: 36px;
  color: #388e3c;
  margin: 0;          /* remove margin-bottom */
  padding: 0;         /* ensure no extra space */
  line-height: 1;
}


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

.info-box h3 {
  font-size: 20px;
  margin: 5px 0;
  color: #2e7d32;
}

.info-box p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.stat-box h3.counter {
  font-size: 26px;
  font-weight: bold;
  color: #1b5e20;
}


/***************Services*****************/

#services-section {
  padding: 50px 20px;
  background: #b0ca96;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

#services-section h1 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #1b5e20;
}

#services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Always 4 per row */
  gap: 25px;
  justify-items: center;
}


.service-card {
  background-color: #ffffff;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  padding: 0 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical center */
  align-items: center;      /* horizontal center */
  text-align: center;
  gap: 10px;                /* spacing between icon and text */

  transition: transform 0.3s ease;
}


.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 36px;
  color: #2e7d32;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.service-card p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

@keyframes move {
    0%{
        transform: translateX(0);
    }
    50%{
        transform: translateX(20px);
    }
    100%{
        transform: translateX(0);
    }
}
.animate-move {
    animation: move 2s ease-in-out infinite;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }   
}
.animate-spin {
    animation: spin 3s linear infinite;
}

/***************Contact Us*****************/
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #a6be8d;
}

.contact-box {
  background-color: #f1fdf3;
  border-radius: 10px;
  padding: 40px;
  display: flex;
  gap: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 800px;
  max-width: 95%;
}

.form-section {
  flex: 1;
}

.form-section h2 {
  color: #2e7d32;
  font-size: 28px;
  margin-bottom: 10px;
}

.form-section p {
  color: #4caf50;
  margin-bottom: 20px;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #a5d6a7;
  border-radius: 5px;
  background-color: #ffffff;
  font-size: 16px;
}

form button {
  background-color: #388e3c;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

form button:hover {
  background-color: #2e7d32;
}

.info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-section p {
  font-size: 16px;
  color: #388e3c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.info-section i {
  margin-right: 10px;
  font-size: 18px;
}

/***************Footer*****************/

.footer {
  background-color: #d1edc7;
  padding: 30px 50px;
  font-family: 'Poppins', sans-serif;
  color: #2d5c2d;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
  margin: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
}

.footer-left h2 {
  font-size: 22px;
}

.contact-info h4 {
  margin-top: 15px;
  margin-bottom: 5px;
}

.footer-center {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.footer-center a {
  text-decoration: none;
  color: #2d5c2d;
  font-weight: 500;
}

.footer-right {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  font-size: 20px;
}

.footer-right a {
  color: #2d5c2d;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 500;
}

/************Hamburger*******************/
#hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #2e7d32;
}

/***************Media Queries*****************/

@media (max-width: 1024px) {
  #navbar {
    flex-direction: column;
    align-items: center;
  }

  .info-row {
    flex-direction: column;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left, .footer-center, .footer-right {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  #navbar {
    display: none;
    flex-direction: column;
    background: #d9f5bb;
    position: absolute;
    top: 80px;
    right: 20px;
    width: 200px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  #navbar.show {
    display: flex;
  }

  #hamburger {
    display: block;
  }

  #header {
    justify-content: space-between;
    padding: 10px 20px;
  }

  .login-container {
    margin-top: 10px;
  }

  #intro h1 {
    font-size: 2rem;
  }

  #intro h4, #intro p {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .contact-box {
    flex-direction: column;
  }

  .form-section, .info-section {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #intro button {
    width: 100%;
    padding: 12px;
  }

  .logo i {
    font-size: 1.5rem;
    margin: 0 8px;
  }

  .info-box, .service-card {
    padding: 10px;
    font-size: 0.9rem;
  }

  .footer-container {
    padding: 10px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}
