@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;

}

body {
  background: #fff;
  color: #000;
  transition: 0.3s;
}

.dark {
  background: #1b191b;
  color: #fff;

  header {
    background-color: #000;
  }

  .projects {
    background-color: #137547;
  }

  .project-card {
    background-color: #4e4b4b;
    border: 1px solid #4e4b4b;
  }

  .card {
    background-color: #4e4b4b;
  }
}

svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sun {
  display: none;
}

.dark .sun {
  display: inline;
}

.dark .moon {
  display: none;
}

.moon {
  align-content: center;
}

/*    header    */
header {
  box-shadow: 0 5px 25px rgba(1 1 1 / 30%);
  background-color: #f0f0f0;
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 200px;
  border-radius: 0 0 1rem 1rem;

}

.logo {
  text-decoration: none;
  color:#054A29;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.8em;
}

.navigation a {
  color: #3FA34D;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  padding-left: 30px;
}

.navigation a:hover {
  color: #137547;
}

section {
  padding: 100px 200px;
}

#toggle {
  background-color: #054A29;
  color: #ffffff;
  margin-left: 20px;
  border-style: none;
  border-top: 20px;
  border-radius: 9px;
  height: 2.5rem;
  width: 2.5rem;
}

/* main */
main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url(images/background.jpeg) no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: slideInUp 2s ease forwards 0.2s;
  opacity: 0;
}

.mmm {
    display: inline;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
  margin-top: 2rem;
  animation: glow 1s ease forwards 0.2s;
}

.main h2 {
  display: inline;
  color: black;
  font-size: 1.4em;
  font-weight: 500;
  animation: slideInUp 1s ease forwards 0.2s;
}

.main span {
  font-size: 3em;
  font-weight: 600;
  color: #137547;
}

.main h3 {
  color: #137547;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline;
}

.main-btn {
  margin-top: 20px;
  color: #fff;
  background-color: #054A29;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  display: inline-block;
  padding: 0.9375em 2.1875em;
  letter-spacing: 1px;
  border-radius: 15px;
  margin-bottom: 40px;
  transition: 0.7s ease;
}

.main-btn:hover {
    box-shadow: 0 5px 25px rgba(1 1 1 / 40%);
  background-color: #5bba6f;
  transform: scale(1.1);
}



/* About Section */
.about-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.about-stats {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.stat-item {
  background-color: #5BBA6F;
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(1 1 1 / 25%);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-item h3 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-weight: 500;
}
/* Services */
.title {
  display: flex;
  justify-content: center;
  color: #054A29;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
}

.content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  width: 21.25em;
  box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
  border-radius: 15px;
  padding: 25px;
  margin: 15px;
  transition: 0.7s ease;
}

.card:hover {
  transform: scale(1.1);
}

.card .icon {
  color: #5BBA6F;
  font-size: 8em;
  text-align: center;
}

.info {
  text-align: center;
}

.info h3 {
  color: #137547;
  font-size: 1.2em;
  font-weight: 700;
  margin: 10px;
}
/* projects */
.projects {
  border-radius: 1rem 1rem 1rem 1rem;
  background-color: #137547;
}

.projects .content {
  margin-top: 30px;
}

.project-card {
  background-color: #fff;
  border: 1px solid #fff;
  min-height: 3em;
  width: 23em;
  overflow: hidden;
  border-radius: 10px;
  margin: 20px;
  transition: 0.7s ease;
}

.project-card:hover {
  transform: scale(1.1);
}

.project-card:hover .project-image {
  opacity: 0.9;
}

.project-image img {
  width: 100%;
}

.project-info {
  padding: 1em;
}

.project-category {
  font-size: 0.8em;
  color: #000;
}

.project-title {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-weight: 800;
  margin-top: 10px;
}

.more-details {
  text-decoration: none;
  color: #137547;
}

.more-details:hover {
  color: #137547;
}

.contact .icon {
  font-size: 4.5em;
}

.contact .info h3 {
  color: #000;
}

.contact .info p {
  font-size: 1.5em;
}

/*footer*/
.footer {
  border-radius: 1rem 1rem 0 0;
  background-color: #137547;
  color: #fff;
  padding: 2em;
  display: flex;
  justify-content: space-between;
}

.footer-title {
  font-size: 1.3em;
  font-weight: 600;
}

.footer-title span {
  color: #054A29;
}

.footer .social-icons a {
  font-size: 1.9em;
  padding: 0 12px 0 0;
  color: aliceblue;
}

/*inimations*/
@media (max-width: 641px) {
  body {
    font-size: 12px;
  }

  .main-content h2 {
    font-size: 0.8em;
  }

  .main-content h3 {
    font-size: 1.4em;
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(15rem);
    line-height: 13rem;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    line-height: 3rem;
  }
}

@keyframes glow {
  50% {
    box-shadow: 0px 0px 50px yellow;
  }
}

@media (max-width: 1023px) {
  header {
    padding: 12px 20px;
  }

  .navigation a {
    padding-left: 10px;
  }

  .title {
    font-size: 1.8em;
  }

  section {
    padding: 80px 20px;
  }

  .main-content h2 {
    font-size: 1em;
  }

  .main-content h3 {
    font-size: 1.6em;
  }

  .content {
    flex-direction: column;
    align-items: center;
  }
}