* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

body {
  background-color: #fff;
  color: #000;
}

body.dark-mode {
  background-color: #121212;
  color: #fff;
}

.hero {
  width: 100%;
  height: 100vh;
  padding: 20px 10%;
}
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  width: 150px;
  cursor: pointer;
}
nav .menu-img {
  width: 50px;
  cursor: pointer;
}

nav ul {
  flex: 1;
  text-align: right;
  margin-right: 150px;
}

nav ul li {
  list-style: none;
  display: inline-block;
  margin: 10px 30px;
}

nav ul li a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  position: relative;
  padding: 10px;
}

nav ul li a::before {
  content: "";
  width: 100%;
  height: 0px;
  background: #d9f688;
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: -5px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: height 0.5s;
}
nav ul li a:hover::before {
  height: 85px;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.col {
  flex-basis: 50%;
  position: relative;
}
.feature-img {
  width: 100%;
  margin-top: 10px;
}

.thumbnail-img {
  width: 280px;
  position: absolute;
  bottom: 10px;
  left: 0;
  border-radius: 8px;
  box-shadow: 5px 8px 10px rgba(0, 0, 0, 0.1);
}
.col h1 {
  margin-top: 180px;
  font-size: 40px;
  font-weight: 600;
}
.col a {
  text-decoration: none;
  padding: 18px 50px;
  border-radius: 30px;
  background: #d9f688;
  display: inline-block;
  color: #000;
  font-weight: 700;
  margin-top: 70px;
  box-shadow: 5px 8px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.col a:hover {
  transform: translateY(-5px);
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-left: 20px;
}

.section {
  padding: 80px 10%;
  text-align: center;
}

.about,
.services,
.testimonials,
.footer {
  background-color: #f9f9f9;
}

body.dark-mode .about,
body.dark-mode .services,
body.dark-mode .testimonials,
body.dark-mode .footer {
  background-color: #1e1e1e;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.service-cards,
.testimonial-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  transition: transform 0.3s;
}

body.dark-mode .card {
  background: #333;
  color: #fff;
}

.card:hover {
  transform: translateY(-10px);
}

.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 40px 10%;
}

body.dark-mode .footer {
  background-color: #000;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s, transform 1s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 20px 5%;
  }
  nav ul {
    margin-right: 0;
  }
  nav ul li {
    margin: 10px 15px;
  }
  .row {
    flex-direction: column;
  }
  .col {
    flex-basis: 100%;
  }
  .col h1 {
    margin-top: 50px;
    font-size: 30px;
  }
  .feature-img {
    width: 100%;
  }
  .thumbnail-img {
    width: 200px;
    position: static;
    margin-top: 20px;
  }
  .service-cards,
  .testimonial-cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 100%;
    max-width: 300px;
  }
}
