/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --color-yellow: #f4dc4c;
  --color-dark: #14141c;
  --color-gray: #4d4d4d;
  --color-light: aliceblue;
  --color-bg-soft: whitesmoke;
  --color-divider-yellow: rgba(172, 172, 10, 0.832);
  --color-divider-soft: rgba(255, 255, 255, 0.399);

  --font-poppins: "Poppins", sans-serif;
  --font-roboto: "Roboto", sans-serif;

  --page-padding-x: 15%;
  --section-padding-y: 60px;

  --bp-tablet: 1525px;
  --bp-mid: 1050px;
  --bp-mobile: 600px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-roboto);
  color: var(--color-dark);
}

button,
a {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 2px;
}

/* ==========================================================================
   Section header (shared between About & Resume)
   ========================================================================== */

.section-header {
  text-align: center;
  padding: 50px 0;
  font-family: var(--font-poppins);
}

.section-header__eyebrow {
  font-weight: 500;
  text-transform: capitalize;
  font-size: 0.9em;
}

.section-header__eyebrow-text {
  background-color: var(--color-yellow);
  padding: 1px 8px;
  font-weight: 600;
}

.section-header__title {
  font-weight: 600;
  font-size: 2.6em;
  padding-top: 7px;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */

.header {
  min-height: 6dvh;
  background-color: var(--color-light);
  font-family: var(--font-poppins);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 var(--page-padding-x);
}

.header__logo {
  font-size: 1.4em;
  font-weight: 700;
}

.header__menu,
.header__social {
  display: flex;
  text-transform: uppercase;
}

.header__menu li,
.header__social li {
  padding: 0 12px;
  font-weight: bold;
}

.header__menu-link {
  padding: 1px 4px;
}

.header__menu-link:hover {
  background-color: var(--color-yellow);
}

.header__social-link:hover {
  color: var(--color-yellow);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background-color: var(--color-yellow);
  font-family: var(--font-roboto);
}

.hero__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100dvh;
  margin: 0 var(--page-padding-x);
}

.hero__content {
  width: 50%;
  font-size: 1.7em;
}

.hero__intro {
  font-size: 1em;
  font-weight: 700;
}

.hero__title-row {
  display: flex;
  align-items: center;
}

.hero__title {
  font-size: 4em;
  font-weight: 700;
  margin-left: -3px;
}

.hero__divider {
  display: inline-block;
  width: 0;
  height: 4em;
  border-left: 10px solid var(--color-divider-yellow);
  margin: 10px;
}

.hero__location {
  font-size: 0.8em;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
}

.hero__cta {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 10px 30px;
  font-size: 0.6em;
  font-weight: 700;
  border: none;
}

.hero__contact-link {
  color: black;
  font-weight: 700;
  font-size: 0.6em;
  padding-left: 10px;
}

.hero__photo {
  width: 50%;
  text-align: end;
}

.hero__photo-img {
  display: inline-block;
  height: 400px;
  border-radius: 50%;
  border: 12px solid white;
}

.hero__scroll-down {
  display: block;
  width: 100%;
  margin-top: -30px;
  text-align: center;
  color: black;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-poppins);
}

.about__intro {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: justify;
  margin: 0 var(--page-padding-x);
}

.about__bio {
  width: 70%;
  font-size: 1.45em;
  font-weight: 400;
}

.about__bio-greeting {
  font-weight: 400;
  margin-bottom: 25px;
}

.about__bio-name {
  border-bottom: 3px solid var(--color-yellow);
  padding-bottom: 3px;
  font-weight: 700;
}

.about__bio-text {
  font-size: 1em;
  margin-bottom: 10px;
}

.about__years {
  width: 30%;
  text-align: center;
}

.about__years-number {
  font-size: 8em;
  font-weight: 500;
  color: var(--color-gray);
}

.about__years-label {
  font-size: 1.7em;
}

.about__details {
  display: flex;
  flex-wrap: wrap;
  text-align: justify;
  margin: 50px var(--page-padding-x) 0;
}

.about__detail {
  flex: 1 1 0;
}

.about__detail-label {
  font-weight: 500;
}

.about__detail-value {
  font-size: 1.2em;
  font-weight: 700;
}

.about__detail-value--email {
  text-decoration: underline;
}

/* ==========================================================================
   Resume
   ========================================================================== */

.resume {
  padding-top: var(--section-padding-y);
  background-color: var(--color-bg-soft);
  font-family: var(--font-poppins);
}

.resume__columns {
  display: flex;
  flex-direction: row;
  margin: 0 var(--page-padding-x);
  padding: 20px 0 40px;
}

.resume__column {
  width: 50%;
}

.resume__column-title {
  font-size: 2em;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: capitalize;
  padding-bottom: 25px;
}

.resume__list {
  border-left: 2px solid var(--color-yellow);
  padding-left: 15px;
}

.resume__item + .resume__item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-divider-soft);
}

.resume__item-title {
  font-size: 1.4em;
  font-weight: 500;
}

.resume__item-subtitle {
  font-size: 1em;
  font-weight: 400;
}

.resume__item-tasks {
  padding-top: 8px;
  color: var(--color-gray);
  font-weight: 300;
}

.resume__item-tasks li {
  padding-top: 5px;
  text-transform: lowercase;
}

.resume__item-tasks li::first-letter {
  text-transform: uppercase;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background-color: var(--color-yellow);
  font-family: var(--font-poppins);
}

.contact__container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 var(--page-padding-x);
  padding: 80px 0;
}

.contact__info,
.contact__form {
  width: 50%;
}

.contact__form {
  display: flex;
  flex-direction: column;
}

.contact__info-title,
.contact__form-title {
  font-size: 2.2em;
  font-weight: 600;
  padding-bottom: 30px;
}

.contact__info-text {
  width: 70%;
  font-size: 1.2em;
  font-weight: 400;
  padding-bottom: 20px;
}

.contact__info-label {
  font-size: 1.2em;
  font-weight: 700;
}

.contact__form-label {
  display: block;
  padding-bottom: 30px;
  font-weight: 400;
}

.contact__form-input {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-divider-soft);
  margin-bottom: 20px;
  padding: 4px 0;
  font: inherit;
  font-size: 2em;
  color: inherit;
  outline: none;
}

.contact__form-input:focus {
  border-bottom-color: var(--color-dark);
}

.contact__form-submit {
  align-self: flex-start;
  background-color: var(--color-dark);
  color: white;
  width: 25%;
  padding: 20px 0;
  font: inherit;
  font-size: 1.2em;
  border: none;
}

.contact__form-submit i {
  padding-left: 5px;
}

.contact__social {
  display: flex;
  gap: 10px;
}

.contact__social-link {
  color: var(--color-gray);
  font-size: 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  font-family: var(--font-poppins);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright,
.footer__credit {
  margin: 80px var(--page-padding-x);
  font-weight: 700;
}

.footer__highlight {
  color: var(--color-yellow);
  text-decoration: underline solid var(--color-yellow);
}

.footer__top-link {
  color: var(--color-yellow);
  font-size: 1.5em;
}

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */

@media (max-width: 1525px) {
  .header__menu {
    display: none;
  }

  .hero {
    padding-bottom: 50px;
  }

  .hero__inner {
    flex-direction: column-reverse;
    height: auto;
    padding-top: 40px;
    text-align: center;
  }

  .hero__content,
  .hero__photo {
    width: 100%;
  }

  .hero__photo {
    padding: 40px 0;
    text-align: center;
  }

  .hero__photo-img {
    height: 300px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__intro {
    font-weight: 400;
  }

  .hero__title-row {
    justify-content: center;
    margin-top: -25px;
    font-size: 0.8em;
    clip-path: inset(40% 0 0 0);
  }
}

/* ==========================================================================
   Responsive — mid
   ========================================================================== */

@media (max-width: 1050px) {
  .about {
    height: auto;
  }

  .about__intro {
    flex-direction: column;
    text-align: center;
    margin: 0 20px;
  }

  .about__years {
    width: auto;
  }

  .about__details {
    flex-wrap: wrap;
    margin-bottom: 50px;
  }

  .about__detail {
    flex: 0 0 50%;
    padding: 20px 0;
  }

  .resume__columns {
    flex-direction: column;
    padding: 0;
  }

  .resume__column {
    width: 100%;
    padding-bottom: 20px;
  }

  .contact__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact__info {
    width: auto;
  }

  .contact__form {
    width: 100%;
    text-align: left;
  }

  .contact__form-title {
    text-align: center;
  }

  .contact__info-text {
    width: auto;
  }

  .contact__form-submit {
    align-self: center;
  }

  .contact__social {
    padding-bottom: 30px;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
  }

  .footer__copyright,
  .footer__credit {
    margin: 0;
    padding: 10px 0;
  }

  .hero__scroll-down {
    display: none;
  }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 600px) {
  .header {
    flex-direction: column;
  }

  .header__container {
    margin: 0 10px;
  }

  .header__logo {
    font-size: 1.8em;
  }

  .hero__intro {
    font-size: 1em;
  }

  .hero__title-row {
    margin: 0;
    font-size: 0.5em;
    clip-path: none;
  }

  .hero__divider {
    margin: 0;
    height: 5em;
  }

  .hero__actions {
    padding-top: 10px;
    justify-content: space-between;
  }

  .hero__cta {
    padding: 10px;
  }

  .hero__contact-link {
    padding: 0;
  }

  .about__intro {
    margin: 0;
  }

  .about__details {
    margin: 0 0 0 10px;
  }

  .section-header {
    margin: 0 10px;
  }

  .resume__columns {
    margin: 0 10px;
  }

  .contact__container {
    margin: 0 10px;
  }

  .contact__form-title {
    margin: 0 10px;
  }

  .contact__form-submit {
    width: 50%;
    background-color: var(--color-gray);
  }
}
