* {
  font-family: "Poppins", monospace;
}

:root {
  --amarelo: #ffc43d;
  --vermelho: #ef476f;
  --azul: #1b9aaa;
}

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: black;
  overflow-x: hidden; /* evita rolagem lateral no celular */
}

.nav-item {
  font-size: 17px;
  font-weight: normal;
}

.nav-item-1 {
  margin-left: 45%;
}

.nav-item,
.nav-item-1 {
  color: white;
}

header {
  background-color: black;
}

.thumbnail {
  width: min(300px, 70vw); /* 300px no desktop, encolhe em telas pequenas */
  height: auto;
  aspect-ratio: 1 / 1; /* continua um círculo perfeito */
  background-color: white;
  border-radius: 50%;
}

article {
  animation: slide-in 0.3s linear forwards;
}

article:last-child {
  animation-delay: 0.2s;
  opacity: 0;
}

article {
  transition: 300ms all ease-in-out;
  cursor: pointer;
}

/* Hover só onde existe mouse (evita "hover preso" no toque) */
@media (hover: hover) {
  article:hover {
    scale: 1.01;
  }
}

.thumbnail-1 {
  background: url(img/dither-1.png);
  background-size: 150%;
}

.thumbnail-2 {
  background: url(img/dither-2.png);
  background-size: 200%;
}

.thumbnail-3 {
  background: url(img/dither-3.png);
  background-size: 100%;
}

.display-1 {
  color: white;
  font-size: 30px;
  font-weight: 500;
  text-align: center;
}

main {
  min-height: 83vh; /* era height fixo: cortava conteúdo em telas baixas */
  min-height: 83dvh; /* considera a barra do navegador no celular */
  display: flex;
  flex-direction: row; /* desktop: lado a lado */
  flex-wrap: wrap; /* se faltar espaço, quebra linha em vez de estourar */
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 24px 16px;
}

.active {
  text-decoration: underline;
}

li {
  cursor: pointer;
}

.contato-1 {
  background-color: var(--amarelo);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-2 {
  background-color: var(--vermelho);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-3 {
  background-color: var(--azul);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-1,
.contato-2,
.contato-3 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* o círculo não amassa em telas estreitas */
}

.nav-1 .item-1::marker {
  content: "/ ";
}

footer {
  background-color: black;
}

/* Respeita quem desativou animações no sistema */
@media (prefers-reduced-motion: reduce) {
  article {
    animation: none;
    transition: none;
  }

  article:last-child {
    opacity: 1;
  }
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

/* Tablets e notebooks pequenos (até 1024px) */
@media (max-width: 1024px) {
  .display-1 {
    font-size: 28px;
  }
}

/* Tablets em retrato e celulares grandes (até 768px) */
@media (max-width: 768px) {
  .display-1 {
    font-size: 24px;
    line-height: 1.25;
  }

  main,
  main > *:not(article) {
    /* cobre um wrapper (div/section) entre o main e os article */
    display: flex;
    flex-direction: column; /* móvel: um embaixo do outro */
    flex-wrap: nowrap;
    align-items: center;
    gap: 32px;
    width: 100%;
  }
}

/* Celulares (até 480px) */
@media (max-width: 480px) {
  .display-1 {
    font-size: 21px;
  }

  .thumbnail {
    width: min(240px, 65vw);
  }

  .contato-1,
  .contato-2,
  .contato-3 {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
}

/* Celulares muito pequenos (até 360px) */
@media (max-width: 360px) {
  .display-1 {
    font-size: 19px;
  }
}

/* Celulares deitados (paisagem com pouca altura) */
@media (max-height: 500px) and (orientation: landscape) {
  main {
    min-height: auto;
    padding-block: 32px;
  }

  .thumbnail {
    width: min(180px, 40vh);
  }
}

@media screen and (max-width: 415px) {
  .navbar-footer {
    display: none;
  }

  footer span {
    display: none;
  }

  nav {
    margin: 0;
  }

  footer {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .contato-1,
  .contato-2,
  .contato-3 {
    width: 60px;
    height: 60px;
  }

  footer img {
    width: 30px;
  }
}

li {
  cursor: pointer;
}

@media screen and (max-width: 415px) {
  .nav-item-1 {
    margin-left: 40%;
  }
}
