* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  outline: 0;
}

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

html {
  scroll-behavior: smooth;
  /* deixa a navegação mais suave */
}

header {
  position: sticky;
  top: 0px;
  z-index: 9;
}

.nav {
  height: 80px;
  background-color: #181818;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin-right: 28px;
}

.nav-list a {
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: #DDD;
  padding: 20px;
  position: relative;
  transition: 0.5s;
  /* text-transform: uppercase; */
  letter-spacing: 0.15em;
  font-size: 14px;
}

.nav-list a:hover {
  color: #3C3CE1;
}

.nav-list a::after {
  content: "";
  display: block;
  background: none repeat scroll 0 0 transparent;
  bottom: 10px;
  height: 2px;
  position: absolute;
  background: #fff;
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}

.nav-list a:hover::after {
  width: 25%;
}

.main {
  width: 100%;
  height: calc(100vh - 80px);
  background: -webkit-linear-gradient(left, #3c3ce1, #37d860);
  background: -moz-linear-gradient(left, #3c3ce1, #37d860);
  background: -ms-linear-gradient(left, #3c3ce1, #37d860);
  background: -o-linear-gradient(left, #3c3ce1, #37d860);
  background: linear-gradient(to right, #3c3ce1, #37d860);
  background-size: 500% 500%;
  animation: gradient 15s ease infinite;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
}

.main img {
  width: 520px;
}

.main h1 {
  color: #FFFFFF;
  font-weight: 400;
  font-size: 54px;
}

.main p {
  font-size: 24px;
  font-style: italic;
  color: white;
  margin-top: 10px;
  margin-bottom: 35px;
}

.typing-animation {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #3C3CE1;
  animation: typing 1.1s steps(20, end), blink-caret .5s step-end infinite alternate;
}

.typing-animation::after {
  content: "";
  margin-left: 10px;
  animation: blink-caret-hide 1s 2s forwards;
}

.call-to-action {
  cursor: pointer;
  background-color: transparent;
  border: 1px solid white;
  padding: 14px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  transition: .9s;
}

.call-to-action:hover {
  transform: scale(1.1);
  /* 110% */
  background-color: white;
  color: #181818;
}

.main a {
  text-decoration: none;
  color: #181818;
}

.about {
  background-color: #FFFFFF;
  width: 100%;
  padding: 80px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about div {
  max-width: 50%;
  padding-right: 40px;
}

.about p {
  text-align: justify;
}

.about img {
  width: 450px;
  max-width: 50%;
  border-radius: 8px;
}

.about div h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.projects h2 {
  font-size: 32px;
  margin-bottom: 8px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.project-list {
  width: 100%;
  padding: 8px 10%;
  display: flex;
  flex-direction: column;
}

.project-card {
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #18181818;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.075);
  transition: .6s;
  margin-bottom: 1rem;
}

.project-card img {
  border: 1px solid #18181818;
  width: 50%;
  max-width: 720px;
  border-radius: 8px;
  object-fit: contain;
  padding: 10px;
  margin-right: 18px;
  border-radius: 4px;
}

.project-inf {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 3%;
  min-height: 375px;
}

.project-inf h3 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
}

.project-inf p {
  font-size: 14px;
  color: #666666;
  text-align: justify;
  margin-bottom: 10px;
}

.project-inf h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.project-inf ul {
  margin-bottom: 10px;
}

.project-inf span {
  font-size: 14px;
  color: black;
  text-align: justify;
  margin-bottom: 10px;
}

.tecnologies {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style-type: none; 
}

.tecnologies li {
  font-size: 12px;
  border-radius: 4px;
  background-color: #52525c;
  color: #FFF;
  padding: 4px 10px;
}

.project-buttons {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  gap: 20px;
}

.project-buttons a {
  text-decoration: none;
  font-size: 16px;
  color: black;
  padding: 5px 10px;
  border-radius: 3px;
  background-color: transparent;
  border: 1px solid black;
  transition: 0.5s;
}

.project-buttons a:hover {
  text-decoration: underline;
  color: white;
  background-color: black;
}

.projeto-1:hover {
  box-shadow: 0 1px 4px #310F48;
}

.projeto-1 a {
  border: 1px solid #310F48;
  color: #310F48;
}

.projeto-1 a:hover {
  background-color: #310F48;
}

.projeto-2:hover {
  box-shadow: 0 1px 4px #FF3f4b;
}

.projeto-2 a {
  border: 1px solid #FF3f4b;
  color: #FF3f4b;
}

.projeto-2 a:hover {
  background-color: #FF3f4b;
}

.projeto-3:hover {
  box-shadow: 0 1px 4px #809ddd;
}

.projeto-3 a {
  border: 1px solid #809ddd;
  color: #809ddd;
}

.projeto-3 a:hover {
  background-color: #809ddd;
}

.projeto-4:hover {
  box-shadow: 0 1px 4px #ff3131;
}

.projeto-4 a {
  border: 1px solid #ff3131;
  color: #ff3131;
}

.projeto-4 a:hover {
  background-color: #ff3131;
}

.external-link {
  border: 0 !important;
  text-decoration: none !important;
  color: black !important;
}

.external-link:hover {
  text-decoration: underline !important;
  background-color: transparent !important;
}

.contact {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 8px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.icons-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.social-icon {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 0.5rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 2.5rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.icon-github {
  background-color: #4284c0;
}

.icon-instagram {
  background: linear-gradient(to right, #F9CE34, #EE2A7B, #6228D7)
}

.icon-linkedin {
  background-color: #006599;
}

.icon-whatsapp {
  background-color: #25d366;
}

.icon-email {
  background-color: #666666;
}

footer {
  width: 100%;
  background-color: #181818;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
}

footer a {
  text-decoration: none;
  color: #FFFFFF;
}

footer p {
  margin-left: 12px;
}

@media (max-width: 1366px) {
  .project-card {
    flex-direction: column;
  }

  .project-card img {
    margin: auto;
    width: 90%;
    padding: 26px 0 0 0;
  }

  .project-buttons {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 1050px) {

  .nav-list {
    margin-right: 0;
  }

  .nav-list a {
    font-size: 12px;
  }

  .main h1 {
    font-size: 45px;
  }

  .main p {
    font-size: 18px;
  }

  .main {
    flex-direction: column;
    justify-content: space-around;
    padding: 20% 0;
  }

  .main img {
    margin-top: 3rem;
    width: 320px;
  }

  .icons-container {
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    flex-direction: column;
    gap: 32px;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
  }

  .about div {
    max-width: 80%;
    padding-right: 0px;
  }

  .about div h2 {
    font-size: 38px;
  }

  .about img {
    margin-top: 30px;
  }

  footer {
    flex-direction: column;
  }

  footer h3 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  footer p {
    margin-left: 0px;
  }
}

@media (max-width: 360px) {
  .main img {
    margin-top: 3rem;
    width: 240px;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: white;
  }
}

@keyframes blink-caret-hide {

  from,
  to {
    opacity: 1;
    /* Define a opacidade inicial e final */
  }

  50% {
    opacity: 0;
    /* Define a opacidade na metade da animação */
  }
}