/* Home */

.hero {
  display: grid;
  gap: 20px;
}

.hero-img {
  width: clamp(120px, 35vw, 375px);
  height: auto;
  border-radius: clamp(20px, 3vw, 50px);
  box-shadow: var(--shadow-lg);
  justify-self: center;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero-content__subtitle {
  font-weight: var(--weight-bold);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-green-800);
  text-transform: uppercase;
  line-height: normal;
}

.hero-content__name {
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: normal;
  text-transform: uppercase;
}

.hero-content__text {
  max-width: 80%;
}

.hero-content__dive-deeper {
  background-color: var(--color-primary);
  width: fit-content;
  height: auto;
  border-radius: 1.3em;
  margin-inline: auto;
  padding: 0.5em 1em;
  font-size: var(--fs-body);
  font-weight: var(--weight-bold);
  line-height: normal;
  margin-top: 4px;
}

.hero-content__dive-deeper .icon {
  display: inline-block;
  width: 0.8em;
  height: 0.5em;
  margin-left: 4px;
  fill: none;
}

.hero-content__dive-deeper:hover {
  background-color: var(--color-green-800);
}

.about-me {
  background-color: var(--color-primary);
  margin-top: 4.7rem;
  margin-inline: auto;
  max-width: 80%;
  padding-inline: 2rem;
  text-align: center;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-me__heading {
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  margin-top: 1.7rem;
  display: inline-block;
  line-height: normal;
  font-size: var(--fs-h2);
}

.about-me__img {
  margin-top: 1.9rem;
  border-radius: 20px;
  width: 100%;
  max-width: 825px;
  height: auto;
}

.about-me__text {
  padding-top: 1.3rem;
  padding-bottom: 2rem;
  max-width: 565px;
}

/* My Discoveries */

.discoveries-subtitle {
  width: min(80%, 350px);
}

.theory-card-container {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(2.8rem, 5vw, 7.2rem);
  gap: 3.1rem;
  width: min(85%, 500px);
  margin-inline: auto;
}

.theory-card {
  background-color: var(--color-primary);
  border-radius: var(--radius-2);
  padding: 2.3rem 2.3rem 1.6rem 2.3rem;
  text-align: center;
}

.theory-card img {
  border-radius: var(--radius-1);
}

.theory-card h2 {
  font-size: var(--fs-h3);
  font-weight: var(--weight-bold);
  margin-top: clamp(10px, 4vw, 29px);
}

.theory-card p {
  margin-top: clamp(6px, 3vw, 16px);
  width: min(68vw, 380px);
  margin-inline: auto;
  font-size: var(--fs-body-md);
}

.greatest-work {
  margin-top: 4.7rem;
  text-align: center;
}

.greatest-work h1 {
  font-size: var(--fs-h2);
  text-transform: uppercase;
  font-weight: var(--weight-bold);
}

.book-card {
  margin-top: 2.7rem;
  background-color: var(--color-primary);
  border-radius: var(--radius-2);
  padding: 2.3rem;
  width: min(85%, 500px);
  margin-inline: auto;
}

.book-card__img {
  border-radius: var(--radius-1);
}

.book-card__content h2 {
  font-size: var(--fs-h3);
  font-weight: var(--weight-bold);
  margin-top: clamp(10px, 4vw, 29px);
}

.book-card__content p {
  margin-top: clamp(6px, 3vw, 16px);
  margin-inline: auto;
  width: min(68vw, 400px);
  font-size: var(--fs-body-md);
}

/* Gallery */

.gallery-subtitle {
  width: clamp(263px, 60vw, 479px);
}

.gallery-container {
  display: flex;
  border: 1px solid var(--color-gray-500);
  flex-direction: column;
  border-radius: clamp(10px, 3vw, 30px);
  gap: clamp(14px, 5vw, 55px);
  align-items: center;
  padding-block: clamp(8px, 3vw, 60px);
  min-width: 85%;
  max-width: fit-content;
  margin-inline: auto;
  margin-top: clamp(17px, 3vw, 31px);
}

.gallery-container img {
  border-radius: clamp(10px, 2vw, 30px);
  height: clamp(50px, 20vw, 240px);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  width: auto;
  flex-shrink: 1;
  transition: transform 0.3s ease;
}

.gallery-container img:hover {
  transform: scale(1.05);
}

.first-row {
  display: flex;
  gap: clamp(13px, 6vw, 109px);
  margin-inline: clamp(8px, 1vw, 34px);
}

.second-row {
  display: flex;
  justify-content: center;
  gap: clamp(13px, 6vw, 90px);
  width: 100%;
  margin-inline: 8px;
}

/* My legacy */

.legacy-subtitle {
  width: clamp(263px, 70vw, 638px);
}

.legacy {
  text-align: center;
}

.legacy-heading {
  font-size: var(--fs-h2);
  text-transform: uppercase;
  font-weight: var(--weight-bold);
  margin-top: clamp(34px, 6vw, 77px);
  padding-inline: clamp(20px, 12vw, 50px);
}

.legacy-text {
  margin-top: 35px;
  margin-inline: auto;
  max-width: 80%;
}

.fund-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: clamp(35px, 7vw, 56px);
  gap: clamp(35px, 7vw, 166px);
}

.research-fund {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(9px, 1vw, 18px);
}

.research-fund img,
.fund-text {
  cursor: pointer;
}

.research-fund img {
  height: clamp(68px, 10vw, 102px);
  width: auto;
}

.fund-text {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.3vw, 10px);
}

.fund-text h3 {
  font-size: var(--fs-h3);
  font-weight: var(--weight-bold);
}

.fund-text p {
  width: min(75vw, 330px);
}

/* Contact Me */
.contact-form {
  border: 1px solid var(--color-gray-500);
  border-radius: clamp(20px, 3vw, 30px);
  width: min(85%, 500px);
  margin-top: 24px;
  margin-inline: auto;
  padding: clamp(13px, 4vw, 44px) clamp(14px, 4vw, 52px) clamp(20px, 4vw, 44px);
}

.contact-form p {
  text-align: center;
}

.user-data {
  margin-top: clamp(27px, 4vw, 44px);
  margin-inline: auto;
  display: grid;
  gap: clamp(16px, 2.5vw, 36px);
  grid-template-columns: 1fr;
  width: min(85%, 570px);
}

.input-field:last-of-type {
  margin-bottom: 0;
}

label {
  margin-left: 2px;
  font-size: var(--fs-body-md);
}

input,
textarea {
  margin-top: clamp(8px, 2vw, 18px);
  width: 100%;
  background-color: var(--color-primary);
  border: none;
  border-radius: 10px;
  padding-left: clamp(14px, 3vw, 17px);
  color: var(--color-gray-500);
}

input {
  height: clamp(33px, 7vw, 47px);
}

textarea {
  height: 116px;
  resize: none;
  padding-top: clamp(8px, 2.5vw, 15px);
}

input,
input::placeholder,
textarea,
textarea::placeholder {
  color: var(--color-gray-500);
  font-size: var(--fs-sm-3);
}

.submit-btn {
  background-color: var(--color-green-800);
  width: 100%;
  border-radius: 10px;
  font-size: var(--fs-body-md);
  font-weight: var(--weight-bold);
  line-height: 1.5;
  text-align: center;
  padding-block: 7px;
  margin-top: 10px;
  transition: 0.1s;
}

.submit-btn:hover {
  background-color: #181513;
  color: var(--color-gray-500);
}

.contact-links {
  text-align: center;
  margin-top: clamp(21px, 8vw, 54px);
  margin-inline: auto;
  width: 85%;
}

.contact-links p {
  width: min(90%, 685px);
  margin-inline: auto;
}

.contact-links__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 5vw, 113px);
  margin-top: clamp(21px, 6vw, 40px);
  justify-content: center;
}

.contact-links__list div {
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 2.6rem 2.6rem 2.5rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-links__list div img {
  height: clamp(63px, 8vw, 74px);
  width: auto;
}

.contact-links__list div h3 {
  font-weight: var(--weight-regular);
  font-size: var(--fs-body);
  line-height: 1.5;
}

@media (min-width: 576px) {
  .hero {
    gap: 30px;
  }

  .about-me {
    padding-inline: 3rem;
  }

  .gallery-container {
    min-width: unset;
  }

  .first-row {
    margin-inline: clamp(8px, 3vw, 34px);
  }

  .legacy-text {
    margin-top: 33px;
  }

  .contact-form {
    width: clamp(500px, 70vw, 966px);
    margin-top: 36px;
  }

  .contact-links__list div h3 {
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero-img {
    justify-self: start;
  }

  .hero-content {
    text-align: right;
    align-items: end;
  }

  .hero-content__subtitle {
    font-size: clamp(1.5rem, 2vw, 2rem);
  }

  .hero-content__name {
    font-size: clamp(3.6rem, 4vw, 6.4rem);
    margin-block: clamp(3px, 0.2vw, 42px);
  }

  .hero-content__text {
    max-width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
  }

  .hero-content__dive-deeper {
    margin-top: 12px;
    margin-inline: 0;
  }

  .about-me {
    margin-top: 207px;
    margin-inline: auto;
    max-width: 100%;
  }

  .about-me__heading {
    margin-top: 3rem;
  }

  .about-me__text {
    padding-top: 3rem;
  }

  .discoveries-subtitle {
    width: clamp(470px, 50vw, 620px);
    line-height: 1.5;
  }

  .theory-card-container {
    width: 100%;
    max-width: 825px;
    justify-content: space-between;
    row-gap: min(4vw, 55px);
    grid-template-columns: repeat(2, min(37vw, 373px));
  }

  .theory-card p {
    width: min(30vw, 290px);
  }

  .greatest-work h1 {
    --weight-bold: 700;
  }

  .gallery-container {
    max-width: 100%;
  }

  .first-row {
    margin-inline: clamp(8px, 1vw, 34px);
  }

  .fund-text p {
    width: min(35vw, 437px);
  }

  .user-data {
    grid-template-columns: repeat(2, 1fr);
  }

  .input-field:nth-child(3),
  .input-field:nth-child(4),
  .submit-btn {
    grid-column: 1 / -1;
  }

  .submit-btn {
    margin-top: -2px;
  }

  .contact-links__list div {
    padding-block: 46px 30px;
    width: 350px;
  }
}

@media (min-width: 992px) {
  .hero-content__name {
    font-size: clamp(3.6rem, 4.5vw, 6.4rem);
    margin-block: clamp(3px, 2vw, 32px);
  }

  .hero-content__dive-deeper {
    margin-top: 30px;
  }

  .about-me__img {
    margin-top: 2.5rem;
  }

  .about-me__text {
    padding-top: 4rem;
  }

  .book-card {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
    gap: min(4vw, 69px);
    align-items: center;
  }

  .book-card__img {
    width: clamp(300px, 30vw, 471px);
    height: auto;
  }

  .book-card__content {
    text-align: left;
  }

  .book-card__content h2 {
    margin-top: 0;
  }

  .book-card__content p {
    --fs-body-md: clamp(1.5rem, 1.5vw, 2rem);
    margin-top: 15px;
    margin-inline: 0;
    width: 412px;
  }

  .legacy-text {
    max-width: 994px;
  }

  .fund-wrapper {
    flex-direction: row;
    justify-content: center;
  }

  .contact-links__list {
    flex-direction: row;
    min-width: 350px;
  }
}

@media (min-width: 1200px) {
  .legacy-heading {
    font-weight: var(--weight-bolder);
  }
}
