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

:root {
  --ff-primary: 'Roboto Mono', monospace;
  --ff-secondary: 'Roboto Slab', serif;
  --fw-regular: 200;
  --fw-bold: 600;

  --color-light: #cfcfcf;
  --color-light2: #747474;
  --color-light3: #696969;
  --color-dark: #131313;
  --color-dark2: #222222;
  --color-dark3: #353535;
  --color-accent-light: #369399;
  --color-accent-dark: #04393d;
  --color-accent-dark2: #052b2e;
  --color-accent-light2: #1a5558;

  --fs-h1: 2.5rem;
  --fs-h2: 2rem;
  --fs-h3: 1.2rem;
  --fs-body: 0.8rem;
  --fs-body-small: 0.7rem;
}

.parent_container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  /* scroll-snap-type: y proximity; */
}

@media (min-width: 880px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 3rem;
    --fs-h3: 1.2rem;
    --fs-body: 1rem;
    --fs-body-small: 0.8rem;
  }
}

/* =================================== */
/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--color-dark);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #555;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  
  background: var(--color-accent-dark);
}

/* =================================== */
body {
  background: var(--color-dark);
  color: var(--color-light);
  margin: 0;
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}

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

strong {
  font-weight: var(--fw-bold);
}

/* Fonts */
h1,
h2,
h3,
h4 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

section {
  padding: 4em 1em;
  scroll-snap-align: start;
}
footer {
  scroll-snap-align: end;
}

.section__title {
  margin-bottom: 0.25em;
}

.section__title--greet,
.section__title--intro {
  font-weight: var(--fw-regular);
}
.section__title--intro {
  margin-bottom: 0.6em;
}

.section__subtitle {
  margin: 0;
  font-size: var(--fs-h3);
}

.section__subtitle--intro {
  background: var(--color-accent-dark);
  font-family: var(--ff-secondary);
  font-family: 'Source Code Pro', monospace;
  font-size: var(--fs-h3);
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  width: max-content;
  border-radius: 0.2rem;
}

/* HEADER & NAV-BAR */
header {
  background-color: var(--color-dark);
}

.nav {
  min-height: 10vh;
  position: fixed;
  top: 0;
  z-index: 1;
  height: 10vh;
  width: 100%;
  background-color: rgb(19, 19, 19, 0.95);
}

.nav__list {
  list-style: none;
}

@media screen and (min-width: 600px) {
  .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 10vh;
  }
  .nav__list {
    display: flex;
    justify-content: space-around;
    width: 30%;
    list-style: none;
  }
}

.nav__item {
  margin: 0 1.2rem;
}

.nav__link {
  color: var(--color-light2);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  text-decoration: none;
}
.nav__link:hover {
  color: var(--color-accent-light);
}

.nav__burger {
  display: none;
}
.nav__burger div {
  width: 20px;
  height: 2px;
  background-color: var(--color-light);
  margin: 5px;
}

@media screen and (max-width: 650px) {
  .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 10vh;
  }

  .nav__list {
    position: fixed;
    right: 0px;
    height: 100vh;
    top: 8vh;
    background-color: var(--color-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
    width: 50%;
    transform: translate(100%);
    transition: transform 0.5s ease-in;
  }

  /* .nav__list li {
      opacity: 0;
   } */

  .nav__item {
    margin: 1.5rem 1rem;
  }

  .nav__link {
    color: var(--color-light);
    font-weight: var(--fw-bold);
  }

  .nav__burger {
    display: block;
    cursor: pointer;
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 5px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -5px);
  }
  /* header {
      display: flex;
      justify-content: space-between;
      padding: 1em;
   }

   .nav {
      position: fixed;
      background: var(--color-dark2);
      color: var(--color-light);
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 100;

      transform: translateX(100%);
      transition: transform 250ms cubic-bezier(0.5, 0, 0.5, 1);
   }

   .nav__list {
      list-style: none;
      display: flex;
      height: 100%;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin: 0;
      padding: 0;
   }

   .nav__item {
      margin: 1.5rem;
   }

   .nav__link {
      color: var(--color-light);
      font-weight: var(--fw-bold);
      font-size: var(--fs-h3);
      text-decoration: none;
   }

   .nav__link:hover {
      color: var(--color-accent-light);
   } */

  .nav-active {
    transform: translate(0%);
  }
}

/* INTRO */
.intro {
  padding: 0rem;
  padding-top: 10vh;
  position: relative;
  height: 100vh;
}

.intro-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(rgba(2, 2, 2, 0.5), rgba(0, 0, 0, 0.5)),
    url('/images/backdrop-wide.JPG');
  background-size: cover;
  height: 85vh;
}

.intro-container__info {
  text-align: center;
  margin-bottom: 1rem;
}

.intro-container__links {
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
}

.intro-links {
  text-decoration: none;
  font-size: var(--fs-body);
  font-family: var(--ff-primary);
  color: var(--color-light2);
  margin-bottom: 0.5rem;
}

.intro__down {
  width: 100%;
  text-align: center;
}
.fas {
  color: var(--color-light2);
}
/* .fab {
   color: var(--color-light2);
}
.fab:hover {
    color: var(--color-light)
} */

a.intro-links:hover {
  color: var(--color-accent-light2);
  transform: scale(1.1);
}

@media (min-width: 600px) {
  .intro {
    position: relative;
  }

  .intro-container {
    height: 85vh;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .intro-container__info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-right: 3rem;
  }

  .intro-container__links {
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
  }
  .intro-links {
    text-decoration: none;
    font-size: 1.4rem;
    font-family: var(--ff-primary);
    color: var(--color-light2);
  }
}

/* SKILLS */
.my-skills {
  scroll-snap-align: start;
  /* height: 100vh; */
  text-align: center;
  background-color: var(--color-dark2);
  padding-top: 15vh;
}

.section__title--skills {
  margin-bottom: 1.5rem;
}

.section__subtitle--skills {
  color: var(--color-accent-light);
  font-size: var(--fs-body-small);
  max-width: 950px;
  margin: auto;
  margin-bottom: 1.5rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding: 0;
  margin-top: 0;
}

.skill-list__item-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.8rem;
  margin: 1rem;
  color: var(--color-accent-light);
}

.skill-list__item {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
}

.skill-list__item-logo {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 600px) {
  .skill-groups {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: auto;
  }

  .skill-group {
    width: 100%;
  }

  .my-skills {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .section__title--skills {
    margin-bottom: 2.5rem;
  }

  .section__subtitle--skills {
    margin-bottom: 2.5rem;
    font-size: var(--fs-body);
  }

  .skill-list__item-logo {
    height: 3.5rem;
    width: auto;
  }
}

/* Portfolio */

.my-projects {
  background-color: var(--color-dark);
  color: var(--color-light);
  text-align: center;
  padding: 4rem 2rem;
  padding-top: 15vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 3rem;
  overflow: auto;
  text-align: center;
}

.section__subtitle--projects {
  color: var(--color-accent-light);
  max-width: 950px;
  margin: auto;
  margin-bottom: 2rem;
  font-size: var(--fs-body);
}

.portfolio {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(350px, 1fr)
  ); /* each card has to have min width of 200px or wrap */
  max-width: 900px;
  margin-top: 0;
  margin: auto;
}

.portfolio-card {
  margin: 0.5rem 0.2rem;
  background-color: var(--color-dark3);
  padding: 0.5rem 0.5rem;
  box-shadow: 0 2px 8px #303030;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  transition: transform 100ms cubic-bezier(0.5, 0, 0.5, 1), opacity 250ms linear;
}
.portfolio-card:hover {
  transform: scale(1.05);
  opacity: 0.75;
}

.portfolio-card__title {
  font-size: var(--fs-h3);
}

.portfolio-card__image-container {
  margin: 0.5rem 0rem;
  box-shadow: 0 2px 8px #2c2c2c;
}

.portfolio-card__description {
  list-style: none;
  color: var(--color-light3);
  font-family: 'Roboto', sans-serif;
  margin: 0;
}

.portfolio-card__links-link {
  text-decoration: none;
  font-size: 1.1rem;
  font-family: var(--ff-primary);
  color: var(--color-light2);
  text-decoration: none;
  width: 100%;
  height: 100%;
}

a.portfolio-card__links-link:hover {
  color: var(--color-light);
  transform: scale(1.1);
  background-color: var(--color-dark);
}

.portfolio-card__links {
  padding: 0.5rem 0;
  margin-top: 0.3rem;
  display: flex;
  justify-content: space-evenly;
}

@media (max-width: 500px) {
  .section__subtitle--projects {
    font-size: var(--fs-body-small);
  }

  .portfolio-card__links-link {
    font-size: var(--fs-body);
  }
}

/* Footer */
/* footer */

footer {
  background: black;
  color: var(--clr-accent);
  text-align: center;
  padding: 2.5em 0;
  font-size: var(--fs-h3);
}

.footer a {
  color: var(--color-accent-light);
  text-decoration: none;
}

.footer__link {
  font-weight: var(--fw-bold);
  opacity: 0.7;
}

.social-list__link {
  opacity: 0.7;
}

.footer__link:hover,
.social-list__link:hover {
  opacity: 1;
}

.footer__link:hover {
  text-decoration: underline;
}

.social-list {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 2em 0 0;
  padding: 0;
}

.social-list__item {
  margin: 0 0.5em;
}

.social-list__link {
  padding: 0.5em;
}
