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

html {
  font-size: 62.5%;
}

:root {
  --primary-text: #2f3a44;
  --primary-color: #164e7d;
  --primary-color-50: rgba(22, 79, 126, 0.5);
  --primary-color-20: rgba(148, 197, 238, 0.2);
  --primary-color-10: rgba(148, 197, 238, 0.1);
  --secondary-color: #61b8b3;
  --thirtiary-color: #1d0bbc;
  --accent-color: #c9a45c;
  --accent-color-10: rgba(233, 198, 129, 0.1);
  --accent-supporting-color: #8db394;
  --color-white: #fcfcfc;
}

/* 37.5em (600px), 56.25em(900px), 75em (1200px), 112.5em(1800px) */

body {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-color: #faf9f6;
}

@media screen and (min-width: 112.5em) {
  /* body {
    margin: 0 auto;
    max-width: 112.5rem;
  } */
}
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.1rem;
  color: var(--primary-text);
  margin: 5rem 0;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 3.6rem;
  color: var(--primary-text);
  margin-top: 3cm;
  margin-bottom: 3rem;
}

h3 {
  font-family: 'DM Mono', monospace;
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.1rem;
}

h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--primary-text);
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.1rem;
}

p {
  font-size: 1.6rem;
  /* color: var(--primary-color); */
  color: var(--primary-text);
  font-weight: 300;
}

@media screen and (max-width: 75em) {
  h1 {
    font-size: 4.6rem;
  }
}

@media screen and (max-width: 37.5em) {
  h1 {
    font-size: 3.8rem;
  }
  h2 {
    font-size: 3rem;
  }
}

/* Nav bar */
.logo {
  width: 7rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 8rem;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #faf9f6;
  width: 100%;
  z-index: 1000;
}

.nav__list {
  display: flex;
  gap: 1.2rem;
}

.nav__item {
  list-style: none;
  font-size: 1.6rem;
  padding-right: 1rem;
}

.nav__item:last-child {
  padding-right: 0;
}

.nav__link {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease-in;
  cursor: pointer;
  display: inline-block;
}

.nav__link:visited,
.nav__link:link {
}

.nav__link:hover {
  color: var(--thirtiary-color);
  transform: scale(1.1);
}

@media screen and (max-width: 75em) {
  .nav {
    padding-right: 6rem;
    padding-left: 6rem;
  }
}

@media screen and (max-width: 56.25em) {
  .nav {
    padding-right: 4rem;
    padding-left: 4rem;
  }
}

@media screen and (max-width: 56.25em) {
  .nav {
    padding-right: 3rem;
    padding-left: 3rem;
  }
}

/* Main box */
.main {
  margin: 0 auto;
}

.hero,
#about,
#portfolio {
  margin-top: 10rem;
  margin-right: 8rem;
  margin-left: 8rem;
}

@media screen and (max-width: 75em) {
  .hero,
  #about,
  #portfolio {
    margin-right: 6rem;
    margin-left: 6rem;
  }
}

@media screen and (max-width: 56.25em) {
  .hero,
  #about,
  #portfolio {
    margin-right: 4rem;
    margin-left: 4rem;
  }
}

@media screen and (max-width: 37.5em) {
  .hero,
  #about,
  #portfolio {
    margin-right: 3rem;
    margin-left: 3rem;
  }
}

/* Hero */
.hero {
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#box {
  width: 400px;
  height: 200px;
}

.hero__primary-title {
}

.hero__secondary-title {
  color: var(--primary-color);
}

.hero__text {
  width: 60%;
  margin-bottom: 3rem;
}

.hero__icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  margin-top: 3rem;
}

.hero__icon {
  font-size: 2rem;
  color: var(--primary-color-50);
}

.icons__text {
  color: var(--primary-color-50);
  text-transform: uppercase;
  font-size: 1.2rem;
}

.scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10rem;
}

.scroll__text {
  font-size: 1.4rem;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--primary-color-50);
}

.icon__scroll {
  color: var(--primary-color-50);
  font-size: 1.6rem;
}

.btn__short-dark,
.btn__short-light {
  text-decoration: none;
  font-size: 1.4rem;
  padding: 1.5rem 2.5rem;
  border-radius: 0.5rem;
  display: inline-block;
  box-shadow: 5px 5px 10px 0px var(--primary-color-20);
  transition: all 0.4s;
}

.btn__short-dark {
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--color-white);
}

.btn__short-light {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn__short-dark:hover,
.btn__short-light:hover {
  transform: translateY(-3px);
}

.btn__short-dark:hover {
  border: 1px solid var(--accent-color);
  background-color: var(--accent-color);
}

.btn__short-light:hover {
  border: 1px solid var(--accent-color);
  background-color: var(--accent-color);
  color: var(--color-white);
}

.btn__short-dark:active,
.btn__short-light:active {
  transform: translateY(3px);
}

.btn__icon {
  text-decoration: none;
  transition: all 0.3s ease-in;
}

.btn__icon:hover {
  transform: scale(1.2);
}

/* 37.5em (600px), 56.25em(900px), 75em (1200px), 112.5em(1800px) */
@media screen and (max-width: 75em) {
  .hero {
    height: auto;
  }

  .hero__text {
    width: 100%;
  }
}

@media screen and (max-width: 56.25em) {
  .hero__wrapper {
    justify-content: center;
  }
  #box {
    display: none;
  }
  .hero__icons {
    margin-top: 5rem;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5rem;
    margin-bottom: 5rem;
  }
  .btn-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
  }
}

/* About section */
.about__content {
  margin-bottom: 5rem;
}

.about__details {
  color: var(--primary-color);
}

.ph.ph-blue {
  background-color: var(--primary-color-20);
  color: var(--primary-color);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 2rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
  margin-top: 5rem;
}

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

@media screen and (max-width: 56.25em) {
  .grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .grid--2-cols {
    grid-template-columns: none;
  }
}

.grid__2-item {
  padding: 4rem 3rem;
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid__3-item {
  padding: 2rem 4rem;
}

@media screen and (max-width: 75em) {
  .grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bg-blue {
  background-color: var(--primary-color-10);
  box-shadow: 2px 2px 3px 0px rgba(104, 104, 104, 0.1);
  /* border: 1px solid var(--primary-color-20);
  border-radius: 9px;
  */
}

.bg-gold {
  background-color: var(--accent-color-10);
  box-shadow: 2px 2px 3px 0px rgba(104, 104, 104, 0.1);
}

.honest {
  display: flex;
  justify-content: space-between;
  background-color: var(--primary-color);
  border-radius: 8px;
  margin-top: 8rem;
  padding: 4rem;
}

.honest__left {
  flex-basis: 70%;
}

.honest p {
  color: var(--color-white);
}

.honest__left p:first-child {
  opacity: 50%;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  margin-bottom: 2rem;
}

.honest__left p:nth-child(2) {
  letter-spacing: 0.15rem;
  font-weight: 200;
}

.honest__right-wrapper {
  margin-bottom: 1rem;
}

.honest__right-wrapper :last-child {
  margin-bottom: 0;
}

.text__emphasis {
  color: var(--secondary-color);
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
  display: block;
}

.text__light {
  font-size: 1.4rem;
}

.honest__right p {
  opacity: 50%;
}

.vertical-line {
  width: 1px;
  background-color: var(--color-white);
  opacity: 50%;
}

@media screen and (max-width: 56.25em) {
  .honest {
    flex-direction: column;
  }

  .honest__right {
    margin-top: 3rem;
  }
}

/* Skills */
#skills {
  margin-top: 10rem;
  width: 100%;
  background-color: var(--primary-color-10);
  padding: 10rem 8rem;
}

.skills__subtitle {
  color: var(--accent-color);
}

.skills__list {
}

.skills__item {
  color: var(--primary-color);
  font-size: 1.4rem;
  line-height: 2.4rem;
}

.skills__item::marker {
  color: var(--secondary-color);
}

@media screen and (max-width: 75em) {
  #skills {
    padding-right: 6rem;
    padding-left: 6rem;
  }
}

@media screen and (max-width: 56.25em) {
  #skills {
    padding-right: 4rem;
    padding-left: 4rem;
  }
}

@media screen and (max-width: 56.25em) {
  #skills {
    padding-right: 3rem;
    padding-left: 3rem;
  }
}

/* portfolio */
.portfolio__box {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.portfolio__box:first-child {
  border-top: 3px solid var(--primary-color);
}

.portfolio__box:nth-child(2) {
  border-top: 3px solid var(--secondary-color);
}

.portfolio__box:nth-child(3) {
  border-top: 3px solid var(--accent-color);
}

.portfolio__box:last-child {
  border-top: 3px solid var(--accent-supporting-color);
}

.portfolio__details {
  color: var(--primary-color);
}

.tag__header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Mono', monospace;
}

.tag__category {
  font-size: 1.2rem;
  background-color: var(--primary-color-20);
  padding: 0.5rem 1rem;
  border-radius: 50rem;
}

.tag__year {
  font-size: 1.2rem;
}

.title__header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio__links {
  margin-right: 1rem;
  text-decoration: none;
}

.portfolio__link {
  font-size: 1.8rem;
  color: var(--primary-text);
}

.portfolio__link:hover {
  color: var(--accent-color);
}

.portfolio__list {
  display: flex;
  list-style: none;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 2rem;
}

.portfolio__item {
  /* background-color: var(--thirtiary-color); */
  /* color: var(--color-white); */
  border: 1px solid var(--thirtiary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50rem;
  color: var(--thirtiary-color);
  font-family: 'DM Mono', monospace;
}

.portfolio__github {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 5rem;
}

.portfolio__github p {
  color: var(--primary-color-50);
}

.github__link-long {
  text-decoration: none;
  font-size: 1.4rem;
  color: var(--primary-color-50);
}
.github__link-long:hover {
  color: var(--accent-color);
}

@media screen and (max-width: 75em) {
  .portfolio__list {
    flex-wrap: wrap;
  }
  .portfolio__github {
    flex-direction: column;
  }
}

@media screen and (max-width: 37.5em) {
}

/* footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10rem;
  margin-bottom: 5rem;
}

.icon__copyright {
  font-size: 1.8rem;
  padding-right: 1rem;
  color: var(--primary-text);
}

.icon__heart {
  color: #fb2626;
}

.footer__text {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary-text);
}

/* 
// 37.5em (600px), 56.25em(900px), 75em (1200px), 112.5em(1800px)
@media screeen and (max-width: 112.5em) {
  
} 
*/
