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

:root {
  font-size: 62.5%;

  --primary-color: #c29472;
  --primary-color-alt: #d4b49c;
  --secondary-color: #27658b;
  --secondary-color-alt: #1b4761;
  --tertiary-color: #802f2e;
  --tertiary-color-alt: #4d1c1c;
}

body {
  font-family: sans-serif;
  line-height: 1.8;
  display: flex;
}

li {
  list-style: none;
}

a:link,
a:visited {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
}

aside#side-nav {
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
}

div.side-nav__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--primary-color);
}

div.side-nav__content--logo img {
  width: calc(3vw + 3vh);
  object-fit: cover;
}

ul.side-nav__content--social {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

ul.side-nav__content--social a i {
  font-size: calc(1rem + 0.66667vw);
  color: white;
  padding-bottom: calc(2rem + 0.6667vw);
  transition: color 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

ul.side-nav__content--social a i:hover,
ul.side-nav__content--social a i:active {
  color: var(--tertiary-color-alt);
}

main {
  flex: 1;
}

header#header {
  background-color: var(--secondary-color);
  height: calc(3vw + 3vh);
  z-index: 2;
}

nav#header__main-nav {
  height: 100%;
}

ul.header__main-nav--links {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

ul.header__main-nav--links li {
  padding-right: 3vw;
}

ul.header__main-nav--links li a {
  position: relative;
  padding: 0.2rem 0.6rem;
  font-size: calc(1rem + 00.6667vw);
}

ul.header__main-nav--links li a:link::before,
ul.header__main-nav--links li a:visited::before,
ul.header__main-nav--links li a:link::after,
ul.header__main-nav--links li a:visited::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background-color: white;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(1, 0, 0, 1);
}

ul.header__main-nav--links li a:link::before,
ul.header__main-nav--links li a:visited::before {
  top: 0;
  transform-origin: left;
}

.about-me__content-p {
  font-size: 16px;
}

ul.header__main-nav--links li a:link::after,
ul.header__main-nav--links li a:visited::after {
  bottom: 0;
  transform-origin: right;
}

ul.header__main-nav--links li a:hover::before,
ul.header__main-nav--links li a:active::before,
ul.header__main-nav--links li a:hover::after,
ul.header__main-nav--links li a:active::after {
  transform: scaleX(1);
}

section#intro {
  height: 100vh;
  background-image: url('./pexels-pixabay-210243\ \(1\).jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

div.intro__content {
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  background: radial-gradient(
    at 50% 0%,
    rgba(0, 0, 0, 0),
    rgba(255, 255, 255, 0.3)
  );
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0, 0.5);
  padding: calc(1rem + 2vw);
  height: calc(5rem + 20vmax);
  display: flex;
  border-radius: 1rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* animation: divAnimation 2s cubic-bezier(0.68, -0.55, 0.27, 1.55); */
  opacity: 0;
}

div.intro__content.active {
  opacity: 1;
  animation: divAnimation 2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transition: opacity 0s ease-in-out;
}

@keyframes divAnimation {
  0% {
    transform: translateX(100rem) rotate(360deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.intro__content--title {
  font-size: calc(2rem + 3vw);
  color: var(--tertiary-color-alt);
}

.intro__content--p,
.intro__content--p1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: calc(1.5rem + 1vw);
  color: var(--tertiary-color-alt);
  position: relative;
}
.intro__content--p:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.4rem;
  width: 100%;
  background-color: var(--tertiary-color);
}
section#about-me {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
  background-color: var(--primary-color-alt);
}

.about-me__img,
.about-me__content {
  flex-basis: 40rem;
  padding: 2rem;
  flex-grow: 1;
}

.about-me__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-me__content--title {
  font-size: 4rem;
  padding: 1rem 0;
  color: var(--tertiary-color);
  text-transform: uppercase;
  position: relative;
}

.about-me__content--title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.4rem;
  width: 10%;
  background-color: var(--primary-color);
}

.about-me__content--title,
.about-me__content--p {
  margin-bottom: 4rem;
  letter-spacing: 0.2rem;
}

.about-me__content--p {
  font-size: 1.8rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

section#skills {
  padding: calc(1rem + 2vw);
  background-color: var(--tertiary-color);
}

.skills__coding {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: calc(1rem + 2vw);
  text-transform: uppercase;
  flex-basis: 40rem;
  flex-grow: 1;
}

.skills__coding--title {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.skills__coding h4 {
  font-size: 2rem;
  color: var(--primary-color);
}

.skills__coding--progress {
  position: relative;
  display: block;
  padding: 0.5rem;
  border-radius: 3rem;
  background-color: var(--tertiary-color-alt);
  width: 50%;
  margin-bottom: 2rem;
}

.skills__coding--progress span {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  height: 2rem;
  border-radius: 3rem;
  background-color: var(--primary-color);
}

.skills__coding--progress__1 {
  animation: coding-1 4s infinite cubic-bezier(1, 0, 0, 1);
}
.skills__coding--progress__2 {
  animation: coding-2 4s infinite cubic-bezier(1, 0, 0, 1);
}
.skills__coding--progress__3 {
  animation: coding-3 4s infinite cubic-bezier(1, 0, 0, 1);
}
.skills__coding--progress__4 {
  animation: coding-4 4s infinite cubic-bezier(1, 0, 0, 1);
}

@keyframes coding-1 {
  0% {
    width: 0;
  }
  100% {
    width: 85%;
  }
}

@keyframes coding-2 {
  0% {
    width: 0;
  }
  100% {
    width: 60%;
  }
}

@keyframes coding-3 {
  0% {
    width: 0;
  }
  100% {
    width: 70%;
  }
}

@keyframes coding-4 {
  0% {
    width: 0;
  }
  100% {
    width: 77%;
  }
}

section#contact {
  height: 100vh;
  background-image: url('./img/pexels-pixabay-210243\ \(1\).jpg');
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact__form {
  flex-basis: 40rem;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color-alt);
  border-radius: 15px;
  opacity: 0;
}

.contact__form.active {
  opacity: 1;
  transition: opacity 0s ease-in;
  animation: divAnimation 2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.contact__form input,
.contact__form textarea {
  color: var(--tertiary-color);
  font-weight: bolder;
  font-size: 1.5rem;
  letter-spacing: 0.2rem;
  padding: 2rem;
  background: transparent;
  border: none;

  border-bottom: var(--secondary-color) solid 0.1rem;
}

.contact__form textarea {
  height: 30vh;
}

input[type='submit'] {
  border: none;
  cursor: pointer;
}

@media screen and (min-width: 1501px) {
  body {
    width: 1501px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 900px) {
  section#intro {
    background-position: 100%;
  }
}

@media screen and (max-width: 610px) {
  header#header {
    position: absolute;
  }
  nav#header__main-nav {
    width: 30rem;
    height: 100%;
    position: fixed;
    top: 0;
    right: -30rem;
    background-color: var(--secondary-color);
    text-align: center;
  }

  .clicked {
    left: 55%;
  }

  .header__main-nav--hamburger {
    width: 5rem;
    height: 5rem;
    position: fixed;
    top: 2rem;
    right: 3rem;
    cursor: pointer;
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  .line {
    width: 100%;
    height: 0.3rem;
    background-color: white;
    border-radius: 0.2rem;
    transition: all 0.4s ease-in-out;
  }
  ul.header__main-nav--links {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  ul.header__main-nav--links li {
    margin-bottom: 4vh;
    margin-left: 6vw;
  }

  .clicked .line-1 {
    transform: rotateZ(-45deg) translate(-0.8rem, 0.6rem);
  }
  .clicked .line-2 {
    opacity: 0;
  }
  .clicked .line-3 {
    transform: rotateZ(45deg) translate(-0.8rem, -0.6rem);
  }

  ul.header__main-nav--links li {
    opacity: 0;
  }

  ul.header__main-nav--links li:nth-child(1) {
    transition: all 0.5s ease-in-out 0.2s;
  }
  ul.header__main-nav--links li:nth-child(2) {
    transition: all 0.5s ease-in-out 0.4s;
  }
  ul.header__main-nav--links li:nth-child(3) {
    transition: all 0.5s ease-in-out 0.6s;
  }
  ul.header__main-nav--links li:nth-child(4) {
    transition: all 0.5s ease-in-out 0.8s;
  }
  ul.header__main-nav--links li:nth-child(5) {
    transition: all 0.5s ease-in-out 1s;
  }

  ul.header__main-nav--links li.fade {
    opacity: 1;
  }

  .skills__coding--title {
    font-size: calc(1.2rem + 2vw);
  }

  .skills__coding h4 {
    font-size: calc(0.8rem + 1.5vw);
  }
}
