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

/* 
font-family: 'Roboto Mono', monospace;

font-family: 'Roboto Slab', serif; 
*/

:root {
  /* Fonts Family*/
  --ff-primary: "Roboto Condensed", sans-serif;
  --ff-secondary: "Roboto", sans-serif;

  /* Font weights */
  --fw-reg: 400;
  --fw-bold: 900;
  --fw-light: 300;

  /* Font sizes */
  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.25rem;
  --fs-h4: 1.25rem;
  --fs-h5: 1.1rem;

  /* Background colors */
  --clr-background: #2c343c;
  --clr-b-primary: #65707b;
  --clr-b-secondary: #5f7075;

  /* text colors */
  --clr-t-primary: #aab2bb;
  --clr-t-secondary: #65707b;
  --clr-t-tertiary: #ffffff;
}

@media (min-width: 800px) {
  :root {
    /* Font sizes */
    --fs-h1: 4rem;
    --fs-h2: 3rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.5rem;
    --fs-h5: 1.25rem;
  }
}

@media (min-width: 1080px) {
  :root {
    /* Font sizes */
    --fs-h1: 6rem;
    --fs-h2: 3rem;
    --fs-h3: 2rem;
    --fs-h4: 1.5rem;
    --fs-h5: 1.25rem;
  }
}

/* General Styles */

body {
  background-color: var(--clr-background);
  color: var(--clr-t-primary);
  font-family: var(--ff-secondary);
  line-height: 1.6;
  margin-left: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-top: 0px;
}

/* Typography */

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  font-size: var(--fs-h1);
  font-family: var(--ff-primary);
  font-weight: var(--fw-reg);
}

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

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

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

h5 {
  font-size: var(--fs-h5);
}

/* INTRO SECTION */

.nav {
  background: var(--clr-b-primary);
}

button {
  background: transparent;
  border: none;
}

.fas {
  color: var(--clr-t-tertiary);
}

.nav__link {
  color: var(--clr-background);
  font-family: var(--ff-primary);
  text-decoration: none;
  font-size: var(--fs-h);
}

.nav__item {
  list-style-type: none;
}

.section__subtitle--intro {
  font-family: "Roboto Mono", monospace;
  font-size: var(--fs-h3);
  color: var(--clr-t-secondary);
}

.triangle-down {
  width: 0;
  height: 0;
  border-left: 65px solid transparent;
  border-right: 65px solid transparent;
  border-top: 50px solid var(--clr-b-secondary);
  margin: 2rem auto;
}

/* SKILLS SECTION */

.section__title--skills {
  text-align: center;
}

.skill {
  background: var(--clr-b-primary);
  color: var(--clr-t-tertiary);
  text-align: center;
  box-shadow: 10px 10px 4px rgba(0, 0, 0, 0.25);
}

.skill__title {
  font-weight: var(--fw-light);
  font-family: var(--ff-secondary);
}

.skill__text {
  font-weight: var(--fw-light);
  font-size: var(--fs-h5);
  font-family: var(--ff-secondary);
}

/* PROJECTS SECTIONS */

.project {
  background: var(--clr-b-primary);
  margin-bottom: 40px;
  box-shadow: 10px 6px 4px rgba(0, 0, 0, 0.25);
}

.section__title--projects {
  text-align: center;
  margin: 4rem auto;
}

.project__title {
  font-family: "Roboto Slab", serif;
  color: var(--clr-t-tertiary);
  font-size: var(--fs-h2);
}

.project__skills {
  color: var(--clr-t-primary);
  font-family: var(--ff-primary);
  font-weight: var(--fw-reg);
}

.project__description-title {
  color: #000000;
}

.project__description {
  color: #000000;
}

.project__link {
  background: #788386;
}

.project__link--text {
  font-family: var(--ff-primary);
  color: var(--clr-background);
  font-size: var(--fs-h5);
  text-decoration: none;
}

/* FOOTER SECTION */

footer {
  background: var(--clr-b-secondary);
}

/* 
----------------------------------------------------------
                        LAYOUT
----------------------------------------------------------
*/

section {
  padding: 2rem;
}

/* HEADER */

header {
  height: 100%;
  background-color: #65707b;
}

.nav-clicked .nav {
  transform: translateX(0%);
}

.nav-clicked .toggle-nav {
  position: fixed;
}

nav {
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 200ms cubic-bezier(0.5, 0, 0.5, 1);
}

.toggle-nav {
  cursor: pointer;
  padding: 0.5em;
  margin: 0.5em 0.75em 0.5em;
  z-index: 1000;
  position: absolute;
  right: 0px;
}

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

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

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

.nav__link {
  font-size: var(--fs-h3);
  padding: 0.5rem 1rem 0.5rem;
  margin: 0 1rem 0;
}

.nav__item {
  margin: 1rem;
}

.nav__link:hover {
  background-color: #788386;
}

.fab {
  padding: 0.25rem;
}

.fa-brands {
  padding: 0.25rem;
}

@media (min-width: 1200px) {
  nav {
    transform: none;
    position: relative;
    padding: 0rem;
  }

  .toggle-nav {
    display: none;
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem;
  }

  .nav__social-links {
    display: flex;
    flex-direction: row;
  }

  .nav__site-links {
    display: flex;
    flex-direction: row;
  }

  .nav__link {
    font-size: var(--fs-h4);
  }

  .nav__item {
    margin: 0rem;
  }
}

/* INTRO SECTION */

.my-intro {
  padding-top: 25%;
  padding-left: 12%;
  padding-bottom: 20%;
  margin: 1rem 1rem 15rem 0;
}

.section__title--intro {
  margin: 0;
}

.section__subtitle--intro {
  margin: 0;
}

@media (min-width: 800px) {
  .my-intro {
    padding-top: 20%;
    padding-left: 11%;
    padding-bottom: 20%;
    margin: 1rem 1rem 5rem 0;
  }
}

@media (min-width: 1200px) {
  .my-intro {
    padding-top: 10%;
    padding-left: 11%;
    padding-bottom: 20%;
    margin: 1rem 1rem 0rem 0;
  }

  .section__title--intro {
    margin: 0;
  }

  .section__subtitle--intro {
    margin: 0;
  }
}

/* SKILLS SECTIONS */

.section__title--skills {
  margin: 4rem;
}

i {
  margin: 1rem 0rem;
}

.skill {
  margin: 3rem auto 5rem;
  padding: 1rem 1rem 4rem;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 800px) {
  .skills {
    display: flex;
    margin-bottom: 5%;
  }

  .skill {
    padding: 1rem 1rem 3rem;
    margin: 3rem auto 5rem;
    padding: 1rem 1rem 4rem;
    max-width: 350px;
  }

  .skill+.skill {
    margin-left: 3rem;
  }
}

/* PROJECTS */

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

.project {
  margin-top: 5rem;
}

.project__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.project__video {
  max-width: 800px;
  margin: 0 auto;
}

video {
  max-width: 100%;
}

.project__title {
  margin: 0;
}

.project__skills {
  margin: 0;
}

.project__description-title {
  margin: 0;
}

.project__description {
  margin: 0;
}

.project__links {
  display: flex;
  justify-content: center;
}

.project__link {
  margin: 1rem 1rem 1rem;
  padding: 0.25rem;
}

@media (min-width: 800px) {
  .project {
    margin: 1rem 4rem 10rem;
    max-width: 1920px;
  }

  .project__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .project__video {
    max-width: 800px;
  }

  .project__links {
    justify-content: center;
  }

  .project__link {
    margin: 1rem 2.5rem 0.5rem;
  }
}

@media (min-width: 1200px) {
  .project {
    margin: 5rem 1rem 7rem;
    max-width: 1920px;
  }

  .project__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2rem;
  }

  .project__video {
    max-width: 500px;
  }

  .project__text {
    max-width: 800px;
    padding-left: 2rem;
  }

  .project__links {
    display: flex;
    justify-content: left;
  }

  .project__link {
    margin-left: 0rem;
    margin-right: 3rem;
  }
}

@media (min-width: 1600px) {
  .project {
    margin: 5rem 1rem 10rem;
    max-width: 1920px;
  }

  .project__content {
    display: flex;
    align-items: stretch;
    padding: 3rem;
  }

  .project__video {
    max-width: 550px;
  }

  .project__text {
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  .project__description {
    margin: 0;
    line-height: 1.2rem;
  }

  .project__links {
    display: flex;
    justify-content: left;
  }

  .project__link {
    margin-left: 0rem;
    margin-right: 3rem;
    margin-bottom: 1rem;
  }
}

/* FOOTER SECTION */

footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 10%;
  /* font-size: var(--fs-h5); */
  font-weight: var(--fw-light);
  color: #ffffff;
  padding: 2rem 1.5rem 2rem;
}

@media (min-width: 800px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1200px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__credit {
    margin-left: 10%;
  }

  .footer__about {
    margin-right: 10%;
  }
}