@font-face {
  font-family: 'D-DIN';
  src: url('/assets/fonts/D-DIN.otf') format('opentype');
}

body {
  font-family: 'D-DIN', sans-serif;
}

::-webkit-scrollbar {
  width: 5px;
  background-color: rgba(10, 10, 10, 0.53);
}

::-webkit-scrollbar-thumb {
  width: 5px;
  background-color: rgb(40, 40, 40);
  border-radius: 10px;
}

.text-upper {
  text-transform: uppercase;
}

.home-page {
  background-color: #060606;
  color: white;
  background-image: linear-gradient(to right, rgb(6 6 6), rgb(6 6 6 / 93%), rgb(6 6 6 / 91%)), url(/assets/img/black-hole.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.btn_ {
  position: relative;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
  padding: 7px 15px;
  border: 1px solid #dcdcdc69;
  color: #ffffffc2;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 15px;
  font-size: 12px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn_::before {
  content: "";
  position: absolute;
  inset: 0;

  background: gainsboro;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;

  z-index: -1;
}

.btn_:hover::before {
  transform: scaleX(1);
}

.btn_:hover {
  color: #000;
  border-color: gainsboro;
}


.home-page h1 {
  font-weight: bold;
  max-width: 400px;
}

.home-page .lead {
  font-size: large;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
}

.scroll-indicator::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;

  border-left: 2px solid gainsboro;
  border-bottom: 2px solid gainsboro;

  transform: rotate(-45deg);
  opacity: 0.2;

  animation: fadeArrow 3s infinite ease-in-out;
}

/* Animação de opacidade */
@keyframes fadeArrow {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0.2;
  }
}


@media screen and (max-width: 768px) {
  .home-page h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .home-page .lead {
    font-size: medium;
  }

  .home-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .habilidades .container {
    flex-direction: column;
    gap: 2rem;
  }

  .sobre-mim .btn_ {
    align-self: center;
  }

  .projetos .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projetos {
    padding-bottom: 2rem;
  }

  .contato .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contato .lead {
    text-align: center;
  }
}

.sobre-mim {
  background-color: #070709f2;
  color: gainsboro;
  background-image: linear-gradient(to right, rgb(6 6 6 / 82%), rgb(6 6 6 / 92%), rgb(6 6 6 / 96%)), url(/assets/img/bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.habilidades {
  background-color: #070709f2;
  color: gainsboro;
  background-image: linear-gradient(to right, rgb(6 6 6 / 82%), rgb(6 6 6 / 92%), rgb(6 6 6 / 96%)), url(/assets/img/bg3.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.font-larger {
  font-size: medium;
  margin-top: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


.btn_.active {
  background: gainsboro;
  color: #000;
  border-color: gainsboro;
}

.description {
  animation: fadeIn 0.3s ease;
  animation: fadeIn 0.3s ease;
  max-width: 570px;
  padding: 1rem;
  border: 1px solid #ffffff7a;
  border-radius: 3px;
}

.tech_ {
  position: relative;
  transition: transform 0.6s ease, opacity 0.4s ease;
  transform: translateX(0);
  opacity: 1;
}



.tech_.out {
  position: absolute;
  left: -180px;
  opacity: 0;
  transition: all 0.5s ease;
  animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    transform: translateX(-40px);
  }
}

.projetos {
  background-color: #070709f2;
  color: gainsboro;
  background-image: linear-gradient(to right, rgb(6 6 6 / 97%), rgb(6 6 6 / 92%), rgb(6 6 6 / 96%)), url(/assets/img/21620.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.projetos .card-project {
  width: 100%;
  max-width: 400px;
  border-radius: 3px;
  border: 1px solid #dcdcdc54;
  padding: 10px;
}

.opacity {
  opacity: 0.5;
}

.card-project img {
  width: 100%;
  opacity: 0.5;
  border-radius: 3px;
  margin-bottom: 10px;
  transition: .30s all;
}

.card-project:hover {
  img {
    opacity: 1;
  }
}

@media screen and (min-width: 768px) {
  .projetos {
    padding: 6rem 0;
  }
}

.contato {
  padding: 10rem 0;
  background-color: #070709f2;
  color: gainsboro;
  background-image: linear-gradient(to right, rgb(6 6 6 / 97%), rgb(6 6 6 / 92%), rgb(6 6 6 / 96%)), url(/assets/img/contato.jpg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}