/* ==========================================================
   BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family:
    "Poppins", sans-serif; /* fallback corrigido: monospace -> sans-serif */
}

html,
body {
  max-width: 100%;
  overflow-x: hidden; /* evita rolagem lateral causada pela imagem rotacionada */
}

img {
  max-width: 100%;
  height: auto;
}

:root {
  --amarelo: #ffc43d;
  --vermelho: #ef476f;
  --azul: #1b9aaa;
}

/* ==========================================================
   ANIMAÇÕES
   ========================================================== */
@keyframes fade_in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade_in_img {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ==========================================================
   NAVEGAÇÃO
   ========================================================== */
.nav-item {
  font-size: 17px;
  font-weight: normal;
}

.nav-item-1 {
  margin-left: 45%;
}

.active {
  text-decoration: underline;
}

.nav-1 .item-1::marker {
  content: "/ ";
}

li {
  cursor: pointer;
}

/* ==========================================================
   TIPOGRAFIA
   (clamp = mínimo no celular, valor original no desktop)
   ========================================================== */
h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2;
  animation: fade_in 1s linear forwards;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(24px, 5vw, 35px);
  line-height: 1.25;
  overflow-wrap: break-word;
}

p {
  font-size: 16px;
  opacity: 0;
  line-height: 1.8em;
  animation: fade_in 1s linear forwards;
  animation-delay: 0.5s;
}

.enfase {
  color: rgb(255, 208, 0);
  border-radius: 10px;
}

/* ==========================================================
   COMPONENTES
   ========================================================== */
.about {
  width: 40%;
  border-radius: 10px;
}

.btn {
  border-radius: 30px;
  background-color: black;
  color: white;
  width: fit-content;
  max-width: 100%;
  padding: 15px;
  font-size: 17px;
  font-weight: 500;
  opacity: 0;
  animation: fade_in 1s linear forwards;
  animation-delay: 0.5s;
}

.btn:hover {
  background-color: rgb(255, 213, 0);
}

.display-6 {
  opacity: 0;
  animation: fade_in 1s linear forwards;
  animation-delay: 0.5s;
}

.email {
  opacity: 0;
  animation: fade_in 1s linear forwards;
  animation-delay: 0.5s;
  overflow-wrap: anywhere; /* e-mails longos não estouram a tela */
}

.img {
  opacity: 0;
  animation: fade_in_img 1s linear forwards;
  animation-delay: 0.5s;
  z-index: 3;
  left: 30%;
  filter: drop-shadow(3px 3px 1px rgba(0, 0, 0, 0.375));
  rotate: 10deg;
}

.fade-text {
  transition: opacity 0.5s ease;
  opacity: 1;
}

.fade-text.fade-out {
  opacity: 0;
}

/* ==========================================================
   CONTATO (círculos)
   ========================================================== */
.contato-1,
.contato-2,
.contato-3 {
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0; /* não deixa o círculo virar oval em telas estreitas */
  display: flex;
  justify-content: center;
  align-items: center;
}

.contato-1 {
  background-color: var(--amarelo);
}

.contato-2 {
  background-color: var(--vermelho);
}

.contato-3 {
  background-color: var(--azul);
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

/* Tablets e celulares grandes (até 991px) */
@media (max-width: 991.98px) {
  .about {
    width: 60%;
  }

  .img {
    left: 15%;
  }
}

/* Celulares (até 767px) */
@media (max-width: 767.98px) {
  .about {
    width: 100%;
  }

  p {
    font-size: 15px;
    line-height: 1.7em;
  }

  .btn {
    padding: 14px 22px;
    font-size: 16px;
    min-height: 44px; /* área de toque confortável */
  }

  .img {
    left: 0;
    width: 70%;
    max-width: 320px;
    margin-inline: auto;
    rotate: 6deg; /* rotação mais leve para não cortar nas bordas */
  }
}

/* Celulares pequenos (até 480px) */
@media (max-width: 480px) {
  .btn {
    width: 100%; /* botão ocupa a largura toda */
    text-align: center;
  }

  .img {
    width: 80%;
    rotate: 4deg;
    display: none;
  }

  .contato-1,
  .contato-2,
  .contato-3 {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
}

/* Telas muito baixas em modo paisagem (celular deitado) */
@media (max-height: 480px) and (orientation: landscape) {
  .img {
    display: none;
  }
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
  .img {
    display: none;
  }

  h1,
  p,
  .btn,
  .display-6,
  .email,
  .img {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }
}

@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;
  }
}

@media screen and (max-width: 415px) {
  .nav-item-1 {
    margin-left: 40%;
  }
}
