@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Forum&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary: #536942;
  --secondary: #e9b44c;
  --white: #efefef;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--primary);
  font-size: 16px;
}
p {
  font-size: 20px;
}

#main {
  background-image: url("./img/background.png");
  min-height: 100vh;
  background-position: top center;
  background-size: cover;
}
.logo {
  max-width: 100px;
  border-radius: 5px;
}
a {
  text-decoration: none;
}
.container {
  max-width: 1200px;
  padding: 16px;
  margin: auto;
}
section {
  margin: 80px auto;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-list a {
  color: var(--white);
  font-size: 18px;
}
.buttonsWrapper {
  display: flex;
  gap: 32px;
  margin-top: 16px;
}
.btn {
  padding: 20px 40px;
  background: transparent;
  outline: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 20px;
}
.btn.small {
  padding: 16px 32px;
  font-size: 16px;
}
.btn-secondary {
  border: 4px solid var(--white);
  color: var(--white);
  font-weight: bold;
}
.btn-primary {
  border: none;
  background: var(--secondary);
  color: var(--white);
}
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  color: var(--white);
}
.flex {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.flex img {
  max-width: 300px;
  border-radius: 5px;
}
.flex img:hover {
  transform: scale(1.2);
  transition: all 0.3s ease-in-out;
}
.main-content .intro-heading {
  font-size: 10vmin;
  text-align: center;
}
.main-content .main-heading {
  font-size: 110px;
  margin-top: -20px;
}
.main-content p {
  max-width: 250px;
  margin-bottom: 10px;
}
.menu-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  display: none;
  width: 30px;
}
#ourwork p {
  font-size: 20px;
}
.section-title {
  margin: 32px 0;
}
.section-title h1 {
  font-size: 45px;
  text-align: center;
}
.section-title .line {
  width: 150px;
  height: 4px;
  border: 10px;
  background: var(--secondary);
  margin: auto;
}

#testimonial {
  background: #f1f2fa;
}
#testimonial .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  gap: 30px;
  padding: 50px 16px;
}
#testimonial h1 {
  font-size: 30px;
  font-family: "Forum", sans-serif;
  text-align: center;
}
#testimonial .profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#about-us .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 120px;
}
#about-us .container .about-content {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: start;
}
#about-us .container .about-content h1 {
  font-family: "Forum", sans-serif;
  font-size: 30px;
}
#questions {
  min-height: 500px;
  background-image: url("./img/background.png");
  background-position: top center;
  background-size: cover;
  color: var(--white);
}
#questions .container {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  height: 500px;
  text-align: center;
}
#questions h1 {
  font-size: 50px;
}
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px;
  max-width: 1200px;
  margin: 32px auto;
}

.form-container,
.info-container {
  flex: 1;
  min-width: 300px;
  margin: 10px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

form textarea {
  height: 100px;
  resize: none;
}

form button {
  width: 100%;
  padding: 10px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #4cae4c;
}

.info-container p {
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.info-container strong {
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }
}

footer {
  margin-top: -60px;
}
footer .container {
  display: flex;
  padding: 20px 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}
@media screen and (max-width: 520px) {
  .btn {
    padding: 16px 32px;
    font-size: 16px;
  }
  .menu-btn {
    display: block;
  }
  .buttonsWrapper {
    flex-direction: column;
    gap: 16px;
  }
  nav {
    position: relative;
  }
  .flex {
    flex-direction: column;
  }
  .nav-list {
    flex-direction: column;
    background: gray;
    position: absolute;
    /* top: 0; */
    top: -900px;
    width: 100%;
    height: 100vh;
    padding-top: 80px;
    transition: all 0.3s ease;
  }
  .nav-list.active {
    top: 0;
  }
  .nav-list li:not(:last-child) {
    text-align: left;
    width: 100%;
    padding: 10px 30px;
    border-bottom: 1px solid var(--white);
  }

  #about-us .container {
    flex-direction: column;
    gap: 30px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
  }
}
