body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background-color: #f5f0ec;
  color: #173b45;
}

h2,
h3 {
  color: #174f55;
}

section {
  scroll-margin-top: 230px;
  margin-bottom: 3rem;
  margin-top: 3rem;
}

/*nav area*/
.navbar {
  background-color: #f5f0ec;
  display: flex;
  align-items: center;

  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;

  padding: 10px 30px;

  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  z-index: 9999;
}

.logo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 800;
  font-size: 20px;
}

.nav-logo {
  width: 210px;
  height: auto;

  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;

  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: black;
  text-decoration: none;
}

.nav-links a:hover {
  color: orange;
  text-decoration: underline;
}

.qualifications {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 0rem;
  margin-top: 0rem;
}

.portrait {
  width: 200px;
  max-width: 30%;
  height: auto;
  border-radius: 19px;
}

.quote {
  width: 230px;
  min-height: 120px;

  padding: 25px 30px;
  box-sizing: border-box;

  background-color: white;
  border-radius: 18px;

  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
  font-style: italic;

  margin-top: 10px;
}
.details {
  flex: 1;
  min-width: 0;
}
.details h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.details h3 {
  margin: 0.6rem 0;
}

.details ul {
  line-height: 1.5;
}

.aboutMe p,
.areas p,
.areas li {
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 240px 2rem 0;
  box-sizing: border-box;
}

.mainText {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 2rem auto 0;
}

.aboutMe,
.areas {
  flex: 1;
  padding: 1.5rem;
  border: 1px solid #d8d1c8;
}

.aboutMe {
  border-radius: 18px 0 0 18px;
}

.areas {
  border-radius: 0 18px 18px 0;
  border-left: none;
}

.additionalInfo {
  max-width: 1000px;
  margin: 1rem auto;

  display: flex;
  align-items: stretch;

  background-color: #f1ece6;
  border-radius: 18px;
  overflow: hidden;
}

.additionalInfo img {
  width: 260px;
  max-width: 30%;
  height: auto;
  background-color: #f1ece6;
}

.info {
  flex: 1;

  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 1rem 1rem;
}

.info img {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}

.info + .info {
  border-left: 1px solid #cfc7bd;
}

.contact {
  position: relative;
  background-color: #f1ece6;
  padding: 3rem;
  display: flex;
  align-items: center;
}

.contact-heading {
  position: absolute;
  font-size: 40px;

  top: 40px;
  left: 50%;

  transform: translateX(-50%);

  margin: 0;
}

.building {
  width: 250px;
  height: 250px;
  flex-shrink: 0;
  border-radius: 18px;
}

.contact-details {
  display: flex;
  gap: 4rem;

  margin-top: 3rem;
}
.phone,
.email {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.phone img,
.email img,
.location img {
  width: 50px;
  height: 50px;
  margin: 0;
}

.contact-details + .contact-details {
  border-left: 1px solid #cfc7bd;
}

.location {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  padding: 1rem;
}

.contact-me {
  width: 100%;
  max-width: 1000px;
  height: 500px;
  margin: 0 auto;
  background-color: #f1ece6;
}

.contact-me h2 {
  padding-top: 20px;
  text-align: center;
  font-size: 2em;
}

input,
textarea {
  background-color: white;
  display: block;
  width: 70%;
  margin: 0 auto 20px;
  font-size: 10px;
  padding: 16px 16px;
  border-radius: 10px;
  border: 1px solid #cfc7bd;
  margin-bottom: 20px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #d6ba97;
  border-width: 3px;
}

button {
  border-radius: 20px;
  border-color: black;
  font-size: 10px;
  padding: 10px 19px;
  text-align: center;
  display: flex;
  margin: auto;
}

.contact-me button:hover {
  opacity: 80%;
  cursor: pointer;
}

.footer-items {
  list-style: none;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10px;
  position: relative;
  right: 20px;
}

.footer {
  margin-bottom: 0rem;
  margin-top: 0rem;
}
hr {
  margin-top: 0;
}

.show-modal {
  background-color: #174f55;
  color: #f5f0ec;

  border: none;
  border-radius: 999px;

  padding: 10px 18px;

  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.show-modal:hover {
  background-color: #216a72;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.show-modal:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 5rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;

  background-color: #f1ece6;
  padding: 6rem;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10001;
}
.overlay {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  z-index: 10000;
}

@media (max-width: 950px) {
  .nav-logo {
    width: 150px;
  }

  .nav-links {
    gap: 16px;
    font-size: 16px;
  }

  .qualifications {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
  }

  .portrait {
    width: 180px;
    max-width: 100%;
  }

  .right-images {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
  }

  .quote {
    width: 280px;
  }
}

@media (max-width: 750px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 180px 20px 0;
    box-sizing: border-box;
  }

  .navbar {
    width: 100%;
    max-width: 100%;
    padding: 8px 15px;
    left: 0;
    transform: none;
    box-sizing: border-box;
  }

  .logo {
    width: 100%;
    flex-direction: column;
    gap: 5px;
  }

  .nav-logo {
    width: 120px;
    height: auto;
    max-height: none;
    margin: 0;
    transform: none;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
    font-size: 14px;
  }

  /* TOP / QUALIFICATIONS */

  .qualifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .portrait {
    width: 220px;
    max-width: 80%;
  }

  .details {
    width: 100%;
  }

  .details ul {
    text-align: left;
    padding-left: 25px;
  }

  .right-images {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .quote {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
  }

  /* ABOUT + HOW I WORK */

  .mainText {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 0;
  }

  .aboutMe,
  .areas {
    width: 100%;
    box-sizing: border-box;
  }

  .aboutMe {
    border-radius: 18px 18px 0 0;
  }

  .areas {
    border-left: 1px solid #d8d1c8;
    border-top: none;
    border-radius: 0 0 18px 18px;
  }

  #work {
    border-top: 1px solid #d8d3cc;
  }

  /* SERVICES */

  .additionalInfo {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .info {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .info + .info {
    border-left: none;
    border-top: 1px solid #cfc7bd;
  }

  .info img {
    width: 50px;
    height: 50px;
  }

  /* CONTACT */

  .contact {
    flex-direction: column;
    padding: 2rem 1rem;
    box-sizing: border-box;
  }

  .contact-heading {
    position: static;
    transform: none;
    font-size: 32px;
    margin-bottom: 1rem;
  }

  .contact-details {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .contact-details + .contact-details {
    border-left: none;
    border-top: 1px solid #cfc7bd;
    padding-top: 1.5rem;
  }

  .building {
    width: 220px;
    height: 220px;
    max-width: 90%;
  }

  .location {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }

  .phone,
  .email {
    padding: 0.5rem;
  }

  /* EMAIL FORM */

  .contact-me {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
  }

  input,
  textarea {
    width: 90%;
    max-width: 100%;
    margin: 0 auto 20px;
    box-sizing: border-box;
    font-size: 14px;
  }

  /* MODAL */

  .modal {
    width: 85%;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
  }

  .close-modal {
    top: 0.5rem;
    right: 1rem;
    font-size: 3rem;
  }

  /* FOOTER */

  .footer-items {
    padding: 0;
    right: 0;
    text-align: center;
  }

  .footer-items li {
    padding: 0;
  }

  .footer-items ul {
    padding: 0;
  }
}
html {
  scroll-behavior: smooth;
}
