*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Nunito", sans-serif;
  font-size: 10px;
  box-sizing: border-box;
  color: #faf9f2;
}

a {
  text-decoration: none;
  color: #faf9f2;
}

ul {
  list-style: none;
}

p {
  font-size: 1.6rem;
}

img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

section {
  padding: 5rem 0;
}

/* header */
header {
  width: 100%;
  height: 5rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 98rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-brand {
  width: 2rem;
}

.menu-icons i {
  font-size: 3.5rem;
  color: #faf9f2;
  cursor: pointer;
}

.menu-icons i:hover {
  color: #f2473e;
}

.close i {
  color: #faf9f2;
}

.close i:hover {
  color: #f2473e;
}

.nav-list {
  width: 25rem;
  height: 100vh;
  background: #191818;
  position: fixed;
  top: 0;
  right: -26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  transition: all 650ms ease-in-out;
}

.nav-list.active {
  right: 0;
}

.close {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.nav-item {
  margin: 1.5rem 0;
}

.nav-link {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.7rem;
  color: #faf9f2;
  /* color: rgba(0, 0, 0, 0.7); */
}

.nav-link:hover {
  /* color: #faf9f2; */
  color: #f2473e;
}

.parallax {
  min-height: 50rem;
  background: transparent;
}

.about-parallax {
  height: 50rem;
  background: transparent;
}

.building-parallax {
  height: 50rem;
  background: transparent;
}

/* hero */
.hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.9) 100%
    ),
    url("images/background-img.jfif") center no-repeat;
  background-size: cover;
  position: relative;
}

.hero h3 {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 150%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  font-size: 3em;
  text-transform: uppercase;
  letter-spacing: 1rem;
  z-index: 1;
}

.main-message {
  width: 100%;
  max-width: 50rem;
  color: #faf9f2;
  text-transform: uppercase;
  transform: translateY(20%);
}

.box {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20em;
  height: 20em;
  box-sizing: border-box;
}

.box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-top: 7px solid #fafafa;
  border-bottom: 7px solid #fafafa;

  box-sizing: border-box;
  transform: scaleX(0);
  transition: 0.5s;
}

.box:hover:before {
  transform: scaleX(1);
}

.box:hover:after {
  transform: scaleY(1);
}

.box:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-right: 7px solid #fafafa;
  border-left: 7px solid #fafafa;
  box-sizing: border-box;
  transform: scaleY(0);
  transition: 0.5s;
}

.box h1 {
  color: #faf9f2;
  margin: 0;
  padding: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  font-size: 2.5em;
  text-transform: uppercase;
  letter-spacing: 1rem;
  z-index: 1;
}

/* about section */

.about {
  /* background: #faf9f2; */
  background: #fafafa;
  color: #191818;
  /* width: 100%; */
}
.about h2 {
  color: #f2473e;
  font-size: 3em;
  text-transform: uppercase;
  letter-spacing: 1.7rem;
  text-align: center;
  margin-bottom: 5rem;
  margin-top: 1rem;
}

#about-p {
  font-size: 2em;
  letter-spacing: 0.1rem;
  /* padding: 0.5em; */
  margin: 1rem 2rem;
  font-weight: 50;
}

#about-p a {
  text-decoration: none;
  color: #f2473e;
}

#about-portfolio {
  font-size: 2em;
  text-align: justify;
  letter-spacing: 0.3rem;
  /* padding-top: 1em; */
  margin: 0 2rem;
  margin-top: 2rem;
  font-weight: 600;
  color: #f2473e;
}

/* */

.personal-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* projects section */
.projects {
  background: #191818;
  color: #faf9f2;
  width: 100%;
}

.projects h2 {
  /* color: #f2473e; */
  color: #faf9f2;
  font-size: 3em;
  text-transform: uppercase;
  letter-spacing: 1.5rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2em;
}

.project-div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.projects-title {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-title a {
  color: #f2473e;
}

.projects-title h3,
.projects-description h3 {
  font-size: 2.7rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.7rem;
  margin-bottom: 1em;
  color: #f2473e;
}

#projects-p {
  font-size: 2em;
  letter-spacing: 0.1rem;
  padding: 0.5em;
  font-weight: 20;
  margin: 0 2rem;
  margin-top: 2rem;
  color: #faf9f2;
}

#project-img {
  padding: 2rem;
}

#project-img:hover {
  width: 120%;
  height: 120%;
}

#technologies-red {
  color: #f2473e;
  font-size: 2em;
  letter-spacing: 0.1rem;
  padding: 0.5em;
  margin: 0 2rem;
  font-weight: 50;
}

/* skills section */
.skills {
  background: #fafafa;
  color: #191818;
  width: 100%;
}

.skills h2 {
  color: #f2473e;
  font-size: 3em;
  text-transform: uppercase;
  letter-spacing: 2rem;
  text-align: center;
  margin-bottom: 5rem;
  margin-top: 1rem;
}

.skills-grid {
  display: grid;
  justify-content: center;
}

.skills-grid-item {
  height: 15rem;
  margin-left: 5rem;
  color: #191818;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.skills-grid-item h3 {
  position: relative;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  margin: 2rem 0;
}

.skills-grid-item p {
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
  margin: 2rem 0;
}

/* contact section */
.contact {
  background: #191818;
  color: #f2473e;
  /* position: relative; */
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.contact h2 {
  color: #f2473e;
  font-size: 3em;
  text-transform: uppercase;
  letter-spacing: 1rem;
  text-align: center;
  margin-bottom: 6rem;
}

article {
  text-align: center;
  width: 50%;
}

.icons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon {
  color: #f2473e;
  font-size: 4rem;
  padding: 2.5rem;
  flex-direction: column;
  align-self: center;
  justify-content: center;
}

.icon:hover {
  color: #faf9f2;
}

#git-logo {
  color: #f2473e;
  font-size: 2.5rem;
  padding: 1rem;
}

/* MEDIA QUERIES */
@media screen and (min-width: 350px) {
  .container {
    width: 100%;
    margin: 0 auto;
  }

  .project-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
  }

  .projects-title {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (min-width: 470px) {
}

@media screen and (min-width: 700px) {
  header {
    height: 8rem;
  }

  .nav-brand {
    width: 100rem;
  }
}

@media screen and (min-width: 950px) {
  .container {
    width: 100%;
    max-width: 150rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  nav {
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
  }

  .menu-icons i {
    font-size: 5rem;
    color: #faf9f2;
    cursor: pointer;
  }

  .box {
    width: 30em;
    height: 30em;
  }
  .box:before {
    border-top: 1rem solid #fafafa;
    border-bottom: 1rem solid #fafafa;
  }

  .box:after {
    border-right: 1rem solid #fafafa;
    border-left: 1rem solid #fafafa;
  }

  .box h1 {
    font-size: 5em;
  }

  /* about section */

  .about {
    /* background: #faf9f2; */
    background: #fafafa;
    color: #191818;
    /* width: 100%; */
  }
  .about h2 {
    color: #f2473e;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 1rem;
    text-align: center;
    margin-bottom: 10rem;
    margin-top: 2rem;
  }

  #about-p {
    font-size: 2em;
    /* text-align: left; */
    letter-spacing: 0.1rem;
    padding: 0.5em;
    margin: 0 10rem;
    font-weight: 50;
  }

  #about-p a {
    text-decoration: none;
    color: #f2473e;
  }

  #about-portfolio {
    font-size: 2em;
    text-align: justify;
    letter-spacing: 0.3rem;
    padding-top: 1em;
    margin: 0 10rem;
    font-weight: 600;
    color: #f2473e;
  }

  /* projects section */
  .projects {
    background: #191818;
    color: #faf9f2;
    width: 100%;
  }

  .projects h2 {
    color: #f2473e;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 1rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 10rem;
  }

  .project-div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .projects-title {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projects-title a {
    color: #f2473e;
  }

  .projects-description h3,
  .projects-title h3 {
    font-size: 2.5em;
    padding: 0.5em;
    margin: 0 10rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    margin: 2rem 0;
    color: #f2473e;
  }

  #projects-p {
    font-size: 1.8em;
    text-align: left;
    letter-spacing: 0.1rem;
    padding: 0.5em;
    margin: 0 7rem;
    font-weight: 50;
  }

  #project-img {
    padding: 3rem;
  }

  #project-img-lebowski {
    width: 80%;
    height: 80%;
  }

  #technologies-red {
    color: #f2473e;
    font-size: 1.5em;
    /* text-align: justify; */
    letter-spacing: 0.1rem;
    padding: 0.5em;
    margin: 0 7rem;
    font-weight: 50;
  }

  /* skills section */
  .skills {
    background: #fafafa;
    color: #191818;
    width: 100%;
  }

  .skills h2 {
    color: #f2473e;
    font-size: 3.2em;
    text-transform: uppercase;
    letter-spacing: 1rem;
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 1rem;
  }

  .skills-grid {
    display: grid;
    justify-content: center;
  }

  .skills-grid-item {
    height: 15rem;
    margin-left: 5rem;
    color: #191818;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
  }

  .skills-grid-item h3 {
    position: relative;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    margin: 2rem 0;
  }

  .skills-grid-item p {
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    margin: 2rem 0;
  }

  .icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}

@media screen and (min-width: 1700px) {
  .container {
    width: 100%;
    max-width: 200rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  nav {
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
  }

  .menu-icons i {
    font-size: 7rem;
    color: #faf9f2;
    cursor: pointer;
  }

  .nav-link {
    font-size: 2.7rem;
    padding: 1rem;
  }

  .nav-list {
    width: 40rem;
    right: -41rem;
  }

  .box {
    width: 40em;
    height: 40em;
  }
  .box:before {
    border-top: 1.3rem solid #fafafa;
    border-bottom: 1.3rem solid #fafafa;
  }

  .box:after {
    border-right: 1.3rem solid #fafafa;
    border-left: 1.3rem solid #fafafa;
  }

  .box h1 {
    font-size: 7em;
  }

  .personal-info {
    padding-left: 20rem;
    padding-right: 20rem;
    /* align-items: center; */
  }

  .projects {
    padding-left: 20rem;
    padding-right: 20rem;
  }

  .icons {
    flex-direction: row;
    justify-content: center;
  }
}
