:root {
  --main-color1: #fff2e7;
  --main-color2: #01fefd;
  --main-color2b: #039aa6;
  --main-color3: #4b4d52;
  --main-color4: #0a0f1e;
}
html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}
body {
  font-size: 1.8rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.4;
  color: var(--main-color1);
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: var(--main-color1);
}
img {
  display: block;
  width: 100%;
}
/* --NAVBAR-- */
.navbar {
  display: flex;
  position: fixed;
  justify-content: flex-end;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--main-color2), var(--main-color2b));
  border-bottom: 4px solid rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
#devmafra-logo {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 20rem;
  object-fit: contain;
  padding: 1.5rem 0 0 3rem;
}
.nav-list {
  display: flex;
  margin: 0 1rem;
}
.navbar a {
  display: block;
  font-size: 2.2rem;
  padding: 2rem;
  transition: background 0.3s ease-out;
}
.navbar a:hover {
  background: var(--main-color3);
}
/* ------ */
/* WELCOME SECTION */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: 4rem 2rem;
  background-color: #000;
  background-image: linear-gradient(60deg, #3a3d40 0%, #000 100%);
  box-shadow: 0 5px 5px var(--main-color4);
  position: relative;
  z-index: 1;
}
.welcome-section h1 {
  font-size: clamp(2.5rem, 6vw, 6rem);
}
.welcome-section p {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--main-color2);
  font-style: italic;
}
#name-hover {
  display: inline-block;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: transform 0.3s ease-out, color 0.3s ease-out;
}
#name-hover:hover {
  color: red;
  cursor: pointer;
  transform: translateY(-15px);
}
/* ------ */
/* PROJECT SECTION */
.projects {
  text-align: center;
  width: 100%;
  background-color: var(--main-color3);
  padding: 8rem 2rem;
}
.projects-section-header {
  margin: 0 auto 4rem auto;
  border-bottom: 1px solid var(--main-color1);
  max-width: 550px;
}
.project-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  margin-bottom: 3em;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  max-width: 1280px;
}
.project-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: calc(100% / 3 - 2rem);
  min-width: 33rem;
  margin: auto 0;
  box-shadow: 5px 5px 5px var(--main-color4);
  overflow: hidden;
}
@media (max-width: 68rem) {
  .project-tile {
    width: calc(50% - 2rem);
  }
}
@media (max-width: 48rem) {
  .project-tile {
    width: 100%;
  }
}
.project-tile:hover .code {
  color: var(--main-color2);
  transition: color 0.3s ease-out;
}
.project-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: left top;
  display: block;
}
.project-title {
  background-color: var(--main-color4);
  line-height: 3em;
  border-radius: 0 0 2px 2px;
}
.code {
  color: rgba(0, 0, 0, 0);
  font-weight: bold;
  font-size: 1.2em;
  padding: 0 0.5em;
  font-family: Tahoma, sans-serif;
}
.btn {
  font-size: 1.8rem;
  display: inline-block;
  min-width: 100px;
  padding: 1rem 2rem;
  border-radius: 2px;
  background-color: var(--main-color4);
  box-shadow: 5px 5px 5px var(--main-color4);
}
.btn:hover {
  padding: 1rem 2rem;
  border-radius: 2px;
  background-color: var(--main-color2);
}
.btn-show-all {
  font-size: 2rem;
  transition: background 0.3s ease-out;
}
#arrow {
  font-weight: bold;
  display: inline-block;
}
.btn:hover #arrow {
  padding-left: 1rem;
  transition: padding 0.3s ease-out;
}
/* ------ */
/* CONTACT SECTION */
.contact-section {
  display: flex;
  width: 100%;
  min-height: 80vh;
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--main-color4);
}
.contact-section a {
  padding: 1rem 0;
  font-size: 2rem;
}
.contact-left {
  margin: auto;
}
#contact-title {
  font-size: 5rem;
  cursor: pointer;
}
#contact-title > span:hover {
  color: var(--main-color2);
}
#contact-subtitle {
  font-size: 2rem;
  font-style: italic;
  font-weight: 200;
}
.contact-right {
  margin: auto;
  margin-left: 0;
  text-align: left;
  border-left: 2px solid var(--main-color2);
  padding-left: 2em;
}
.contact-right a {
  min-width: 200px;
  display: inline-block;
}
.profile-link {
  font-size: 2.5rem;
  margin: 3rem;
  display: inline-block;
  position: relative;
}
.profile-link:hover {
  background-color: var(--main-color3);
  padding-left: 10px;
  transform: translateX(5px);
  transition: padding 0.3s ease-out;
}
i {
  padding: 0.5em;
  font-size: 3rem !important;
  vertical-align: middle;
}
footer {
  display: flex;
  justify-content: space-evenly;
  border-top: 5px solid var(--main-color2);
  background-color: var(--main-color3);
  padding: 2rem;
}
footer p {
  margin: 2rem;
}
/* ------ */
@media (max-width: 768px) {
  html {
    font-size: 55%; /* Reduz um pouco o tamanho base */
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  #devmafra-logo {
    max-width: 15rem;
    padding: 1rem 0 0 1.5rem;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: flex-end;
    margin: 0;
  }

  .navbar a {
    padding: 1.5rem 2rem;
    font-size: 1.8rem;
  }

  .welcome-section h1 {
    font-size: 4rem;
    text-align: center;
  }

  .welcome-section p {
    font-size: 2rem;
    padding: 0 1rem;
    text-align: center;
  }

  .contact-section {
    flex-direction: column;
    height: auto;
    padding: 4rem 2rem;
    align-items: center;
  }

  .contact-right {
    border: none;
    margin: auto;
  }
  #contact-title {
    font-size: 3.5rem;
  }

  #contact-subtitle {
    font-size: 1.6rem;
  }

  .profile-link {
    font-size: 2rem;
    margin: 1.5rem 0;
    text-align: center;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer p {
    margin: 1rem 0;
  }
}
.container {
  width: 100%;
  max-width: 1280px;
  padding: 0 2rem;
  margin: 0 auto;
}
@media (max-width: 480px) {
  #devmafra-logo {
    max-width: 12rem;
    padding: 1rem;
  }
}
