@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  user-select: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

header {
  width: 100vw;
  height: fit-content;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 8rem;
}

.menu-button {
  padding-right: 1.5rem;
  width: 4rem;
}

header nav {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 0 2rem;
}

header nav a {
  color: #42446E;
  font-weight: 600;
  font-size: 2rem;
}

.home {
  margin: 7% 0 0 0;
  height: fit-content;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
}

.perfil {
  width: 20rem;
  height: 20rem;
  background: url('../assets/perfil.jpeg');
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  border: 5px solid #42446E;
}

h1 {
  font-size: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #42446E;
}

h1 span {
  display: flex;
  gap: 1.5rem;
}

h1 span a img {
  transition: .2s;
}

h1 span a img:hover {
  filter: brightness(120%);
  scale: 105%;
}

.name {
  color: #4a89a1;
}

.about {
  font-size: 1.5rem;
  color: #42446E;
  text-align: center;
  padding: 9rem 2rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.about p {
  margin-top: -2rem;
  color: #666666;
}

.about h6 {
  font-size: 1.2rem;
}

.techs {
  padding: 9rem 0 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #42446E;
  font-size: 1.5rem;
}

.techs p {
  color: #666666;
  font-size: 1.2rem;
}

.techs .more-info {
  font-size: 1rem;
  opacity: 90%;
}

.techs .icons {
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.icon {
  width: 3rem;
}

.source-code {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #42446E;
  gap: 1rem;
  padding-bottom: 1rem;
}

.source-code img {
  width: 2rem;
}

#information {
  max-width: 80%;
  text-align: center;
}

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.5rem;
  color: #42446E;
}

.projects p {
  color: #666666;
  font-size: 1.2rem;
}

.projects .cards {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.img-card {
  width: 100%;
  border-radius: 2rem 2rem 0 0;
  border-bottom: 5px solid #0000002d;
}

.card {
  max-width: 30rem;
  max-height: 40rem;
  border-radius: 2rem;
  box-shadow: 1px 1px 20px #575252;
}

.info-card {
  padding: 0 2rem;
  min-height: 20rem;
}

.title-card {
  color: #000000cb;
  text-align: center;
  margin-bottom: .5rem;
}

.description-card {
  text-align: start;
}

.stacks-card {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stacks-card img {
  width: 2rem;
}

.contact {
  padding: 7rem 2rem 0 2rem;
  font-size: 1.5rem;
  color: #42446E;
  text-align: center;
}

.contact .subtitle {
  margin-bottom: 3rem;
}

.direct-contact {
  text-align: center;
  margin: 1rem 0;
}

.direct-contact img {
  width: 2rem;
}

.social-media {
  padding: 1rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

.dialog {
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(15px);
  position: absolute;
  top: 0;
}

.dialog .container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.dialog .container a {
  color: #42446E;
  font-size: 2.5rem;
  font-weight: 800;
}

#close {
  width: 2rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.hide {
  opacity: 0%;
  transition: all 1s;
  transform: translateX(-100%);
}

.show {
  opacity: 100%;
  transition: all 1s;
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .menu-button {
    display: none;
  }

  h1 {
    font-size: 4rem;
  }

  .name {
    font-size: 4rem;
  }

  .perfil {
    width: 30rem;
    height: 30rem;
  }

  .about {
    font-size: 2.2rem;
  }

  .about p {
    font-size: 1.8rem;
  }

  .about span {
    font-size: 1.8rem;
  }

  .techs {
    font-size: 2.2rem;
  }

  .techs p {
    font-size: 1.8rem;
  }

  .techs .more-info {
    font-size: 1.5rem;
  }

  .icon {
    width: 4rem;
  }

  #information {
    max-width: 60%;
  }

  .projects {
    font-size: 2.2rem;
  }

  .projects p {
    font-size: 1.8rem;
  }

  .title-card {
    font-size: 2rem;
  }

  .description-card {
    font-size: 1.5rem !important;
  }

  .stacks-card {
    font-size: 1.5rem !important;
  }

  .contact {
    font-size: 2rem;
  }

  .direct-contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .direct-contact {
    font-size: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .direct-contact p {
    cursor: copy;
  }

  .direct-contact img {
    width: 2.5rem;
  }
}

@media (max-width: 1023px) {
  header nav {
    display: none;
  }
}