:root {
  --primaryColor: #25499b;
  --secondaryColor: #aa192c;
  --lightColor: #ffffff;
  --bgColor-1: #171a1c;
  --bgColor-2: #22282a;
  --padding: 8%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  color: var(--lightColor);
}

main {
  width: 100%;
  height: 100vh;
  display: flex;
}

.home {
  width: 100%;
  height: 100vh;
  background-color: var(--bgColor-1);
  display: flex;
  flex-direction: column;
}

span {
  color: var(--primaryColor);
}

p {
  letter-spacing: 1px;
  line-height: 1.8rem;
  font-size: 1rem;
}

h5 {
  font-size: 1.37rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

nav {
  padding-top: 2.2rem;
  padding-left: var(--padding);
  padding-right: var(--padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h2 img {
  width: 6rem;
  height: 6rem;
}

nav ul li {
  display: inline-block;
  list-style-type: none;
  margin: 0.8rem 1.5rem;
}

nav ul li a {
  color: var(--lightColor);
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--primaryColor);
}

.btn-dcv,
.btn-dcv1 {
  padding: 0.8rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background-color: var(--primaryColor);
  border-radius: 4rem;
  transition: 0.4s;
  color: var(--lightColor);
  text-decoration: none;
}

.btn-dcv:hover,
.btn-dcv1:hover {
  background-color: var(--lightColor);
  color: var(--primaryColor);
}

.btn-dcv1 {
  display: inline-block;
  margin-top: 3rem;
  display: none;
  font-size: 1.2rem;
}

.content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
  padding: 0 var(--padding);
}

.container-texts {
  position: relative;
  bottom: 40px;
}

h1 {
  font-size: 4rem;
  margin: 1.7rem 0;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  letter-spacing: 0.25rem;
}

.about {
  padding: var(--padding);
  background-color: var(--bgColor-2);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.about .container-image {
  width: 35%;
}

.about .container-image img {
  width: 90%;
}

.about .container-texts {
  width: 35%;
}

.skills {
  padding: var(--padding);
  background-color: var(--bgColor-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skills .container-image {
  width: 35%;
}

.skills .container-image img {
  width: 90%;
}

.skills .container-skills {
  width: 50%;
}

.content-skills {
  display: flex;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.skill {
  width: 100px;
  height: 100px;
  background-color: var(--lightColor);
  border-radius: 50%;
  margin: 0 2rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill img {
  width: 70%;
  height: 70%;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem var(--padding);
  background-color: var(--bgColor-2);
}

footer .content-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer .content-footer .copyright {
  margin-top: 1rem;
  font-size: 1.2rem;
}

footer .contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

footer .contact-links i {
  margin-right: 0.8rem;
  color: var(--primaryColor);
  font-size: 1.2rem;
}

footer .contact-links .contact-link {
  width: 100%;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--lightColor);
  transition: 0.4s;
  display: flex;
  align-items: center;
}

footer .contact-links .contact-link:hover {
  color: var(--primaryColor);
}

#menu {
  display: none;
  position: relative;
  appearance: none;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  user-select: none;
}

#menu span {
  display: block;
  width: 33px;
  height: 4px;
  background-color: var(--lightColor);
  border-radius: 6px;
  transform-origin: 0 0;
  transition: 0.4s;
  margin-bottom: 5px;
}

#menu.active span:nth-child(1) {
  transform: translate(0px, -2px) rotate(45deg);
}

#menu.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(15px);
}

#menu.active span:nth-child(3) {
  transform: translate(-3px, 3px) rotate(-45deg);
}

#menu.active span {
  background-color: var(--secondaryColor);
}

@media screen and (max-width: 575px) {
  :root {
    --padding: 1.5rem;
  }

  html {
    font-size: 13px;
  }

  h1 {
    font-size: 3rem;
    margin: 2rem 0;
    line-height: 4rem;
  }

  .btn-dcv {
    display: none;
  }

  .btn-dcv1 {
    display: inline-block;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    padding-top: 0.5rem;
    background-color: var(--bgColor-1);
    border-bottom: 1px solid var(--bgColor-2);
    z-index: 10000;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 60vw;
    height: 100vh;
    background-color: var(--bgColor-2);
  }

  nav ul.active {
    display: block;
  }

  nav ul li {
    display: block;
    text-align: center;
    margin: 60px;
    font-size: 1.5rem;
  }

  .container-texts {
    bottom: 0;
  }

  #menu {
    display: block;
  }

  .about {
    flex-wrap: wrap;
  }

  .about .container-image {
    width: 100%;
  }

  .about .container-texts {
    width: 100%;
    margin-bottom: 15px;
  }

  .skills {
    flex-wrap: wrap;
  }

  .skills .container-skills {
    width: 100%;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .skills .container-skills .content-skills {
    justify-content: center;
    margin-bottom: 20px;
  }

  .skills .container-skills .content-skills .skill {
    width: 80px;
    height: 80px;
  }

  .skills .container-image {
    width: 100%;
    order: 1;
  }

  footer {
    flex-direction: column;
  }

  footer .content-footer {
    order: 2;
  }

  footer .contact-links {
    width: 100%;
    order: 1;
    flex-direction: row;
    justify-content: space-evenly;
  }

  footer .contact-links .contact-link {
    width: auto;
  }

  /* footer .contact-links .contact-link:nth-child(1) {
    order: 2;
  }

  footer .contact-links .contact-link:nth-child(2) {
    order: 1;
  } */
}

@media screen and (min-width: 576px) and (max-width: 767px) {
  :root {
    --padding: 1.5rem;
  }

  html {
    font-size: 13px;
  }

  h1 {
    font-size: 3.5rem;
    margin: 2rem 0;
    line-height: 4rem;
  }

  .btn-dcv {
    display: none;
  }

  .btn-dcv1 {
    display: inline-block;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    padding-top: 0;
    background-color: var(--bgColor-1);
    border-bottom: 1px solid var(--bgColor-2);
    z-index: 10000;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background-color: var(--bgColor-2);
  }

  nav ul.active {
    display: block;
  }

  nav ul li {
    display: block;
    text-align: center;
    margin: 60px;
    font-size: 1.5rem;
  }

  .content {
    padding-top: 82px;
  }

  .container-texts {
    bottom: 0;
  }

  #menu {
    display: block;
  }

  .about {
    flex-wrap: wrap;
  }

  .about .container-image {
    width: 50%;
  }

  .about .container-texts {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
  }

  .about .container-texts p {
    width: 70%;
    text-align: center;
    margin: auto;
  }

  .skills {
    flex-wrap: wrap;
    justify-content: center;
  }

  .skills .container-skills {
    width: 100%;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .skills .container-skills .content-skills {
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 1rem;
  }

  .skills .container-skills .content-skills .skill {
    width: 80px;
    height: 80px;
  }

  .skills .container-image {
    width: 50%;
    order: 1;
  }

  footer {
    flex-direction: column;
  }

  footer .content-footer {
    order: 2;
  }

  footer .contact-links {
    width: 100%;
    order: 1;
    flex-direction: row;
    justify-content: space-evenly;
  }

  footer .contact-links .contact-link {
    width: auto;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  :root {
    --padding: 1.5rem;
  }

  html {
    font-size: 13px;
  }

  h1 {
    font-size: 3rem;
    margin: 2rem 0;
    line-height: 4rem;
  }

  .btn-dcv {
    display: none;
  }

  .btn-dcv1 {
    display: inline-block;
    font-size: 1.8rem;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    padding-top: 0;
    background-color: var(--bgColor-1);
    border-bottom: 1px solid var(--bgColor-2);
    z-index: 10000;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background-color: var(--bgColor-2);
  }

  nav ul.active {
    display: block;
  }

  nav ul li {
    display: block;
    text-align: center;
    margin: 60px;
    font-size: 1.5rem;
  }

  .content {
    padding-top: 82px;
  }

  .container-texts {
    bottom: 0;
  }

  .container-texts h4 {
    font-size: 1.5rem;
  }

  .container-texts h1 {
    font-size: 4rem;
  }

  .container-texts h3 {
    font-size: 2rem;
  }

  #menu {
    display: block;
  }

  .about {
    flex-wrap: wrap;
  }

  .about .container-image {
    width: 60%;
  }

  .about .container-texts {
    width: 100%;
    margin-bottom: 15px;
  }

  .skills {
    flex-wrap: wrap;
    justify-content: center;
  }

  .skills .container-skills {
    width: 100%;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .skills .container-skills .content-skills {
    justify-content: center;
    margin-bottom: 20px;
  }

  .skills .container-skills .content-skills .skill {
    width: 80px;
    height: 80px;
  }

  .skills .container-image {
    width: 50%;
    order: 1;
  }

  footer {
    flex-direction: column;
  }

  footer .content-footer {
    order: 2;
  }

  footer .contact-links {
    width: 100%;
    order: 1;
    flex-direction: row;
    justify-content: space-evenly;
  }

  footer .contact-links .contact-link {
    width: auto;
  }
}
