body {
  margin: 0;
  background-color: #f8f4ef;
}

/* header section*/
header {
  background-color: #6b4f4f;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding-left: 5px;
}
.logo img {
  width: 80px;
}
.logo h3 {
  color: black;
  font-family: inherit;
}
.links {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.link-nav {
  list-style: none;
  display: flex;
  gap: 20px;
  padding-right: 20px;
}
.link-nav a {
  text-decoration: none;
  color: black;
  font-size: 16px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.link-nav a:hover {
  transform: scale(3, 3);
  color: #ebdbc6;
}
section {
  gap: 20px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #9b7e7e;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #6b4f4f;
}
input:checked + .slider:before {
  transform: translateX(24px);
}

/* hero section */
.hero {
  background-image: url("../img/background.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #443131;
  padding: 20px;
}
.hero-content p {
  font-size: 20px;
  margin-bottom: 25px;
  background-color: #f8f4ef;
}
.btn {
  background-color: #f8f4ef;
  color: #443131;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #6b4f4f;
  color: black;
}

/* services section */
.services {
  padding: 60px 20px;
  text-align: center;
  color: #6b4f4f;
}
.service-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.card {
  background-color: #fff;
  padding: 20px;
  width: 250px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.card img {
  width: 150px;
}
.card:hover {
  transform: scale(1.05);
}

/* project section */
.projects {
  padding: 60px 20px;
  text-align: center;
  color: #6b4f4f;
}
.project-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  /*flex-wrap: wrap;*/
  margin-top: 30px;
  padding-bottom: 10px;
}
.project-item {
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background-color: white;
  transition: transform 0.3s ease;
}
.project-item img {
  width: 98%;
  height: 200px;
  border-radius: 10px;
}
.project-item h3 {
  padding: 15px;
  font-size: 18px;
}
.project-item:hover {
  transform: scale(1.1) rotate(-2deg);
}

/* Contact Us section */
.contact {
  padding: 60px 20px;
  background-color: #f6f3f0;
  text-align: center;
  color: #6b4f4f;
}
.contact-form {
  max-width: 500px;
  margin: auto;
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.form-group {
  text-align: left;
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #6b4f4f;
}
.form-group input,
.form-group textarea {
  width: 95%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #6b4f4f;
  outline: none;
}
.submit-btn {
  background-color: #6b4f4f;
  color: black;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
}
.submit-btn:hover {
  background-color: #e9dfd2;
  color: #443131;
  transform: scale(1.1);
}

/* footer section */
footer {
  background-color: #6b4f4f;
  color: #f6f3f0;
  padding: 20px;
  font-family: inherit;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}
.footer h3,
.footer h4 {
  margin-bottom: 15px;
  color: #e6cba4;
}
.footer a {
  display: inline-block;
  margin-right: 15px;
  color: #f3e9e2;
  font-size: 18px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.footer-social a:hover {
  color: #d1913e;
  transform: scale(1.2) rotate(5deg);
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid #9b7e7e;
  padding-top: 15px;
}

/*dark mode*/
body.dark-mode .services,
body.dark-mode .projects,
body.dark-mode .contact {
  background-color: #121212;
  color: #9b7e7e;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.dark-mode .service-cards .card,
.dark-mode .project-gallery .project-item,
.dark-mode .contact-form {
  background-color: #1e1e1e;
  color: #ffffff;
  transition: background-color 0.5s ease, color 0.5s ease;
}
body,
.services,
.projects,
.contact {
  transition: background-color 0.5s ease, color 0.5s ease;
}

@media (max-width: 768px) {
  .service-cards,
  .project-gallery,
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .card,
  .project-item {
    width: 80%;
  }
  body {
    font-size: 14px;
  }
  .link-nav {
    gap: 15px;
    padding-right: 15px;
  }
  .link-nav a {
    font-size: 14px;
  }
  .logo img {
    width: 50px;
  }
}
@media (max-width: 576px) {
  .service-cards,
  .project-gallery,
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .card,
  .project-item {
    width: 70%;
  }
  body {
    font-size: 10px;
  }
  .link-nav {
    gap: 10px;
    padding-right: 5%;
  }
  .link-nav a {
    font-size: 8px;
  }
  .logo img {
    width: 30px;
  }
}
@media (max-width: 330px) {
  .service-cards,
  .project-gallery,
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .card,
  .project-item {
    width: 70%;
  }
  body {
    font-size: 5px;
  }
  .link-nav {
    gap: 5px;
    padding-right: 2%;
  }
  .link-nav a {
    font-size: 5px;
  }
  .logo img {
    width: 30px;
  }
}


