/* ================= DESKTOP ================= */

@media screen and (max-width: 1400px) {
  #profile {
    height: 50vh;
    margin-bottom: 6rem;
  }

  #contact,
  #projects {
    height: fit-content;
  }
}

/* ================= TABLET / IPAD ================= */

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }

  #profile,
  .section-container {
    display: block;
  }

  .arrow {
    display: none;
  }

  section,
  .section-container {
    height: fit-content;
  }

  section {
    margin: 0 5%;
  }

  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }

  /* GRID DOS CARDS */

  .about-containers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
  }

  .details-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;
    height: 100%;

    padding: 1.5rem;
    box-sizing: border-box;
  }
}

/* ================= SMARTPHONES ================= */

@media screen and (max-width: 600px) {
  #contact,
  footer {
    height: fit-content;
  }

  #profile {
    height: auto;
    margin-bottom: 2rem;
  }

  article {
    font-size: 1rem;
  }

  footer nav {
    margin-bottom: 2rem;
  }

  /* GRID MOBILE */

  .about-containers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .details-container {
    width: 100%;
  }

  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-info-container {
    margin: 0;
  }

  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }

  .experience-sub-title {
    font-size: 1.25rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section__pic-container {
    width: auto;
    height: 46vw;
    justify-content: center;
    display: flex;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  .title {
    font-size: 2rem;
  }

  .text-container {
    text-align: justify;
  }
}

/* --- Responsividade para as Abas --- */

/* Ativa quando a tela for menor ou igual a 600px (celulares) */
@media screen and (max-width: 600px) {
  .tabs-container {
    flex-direction: column; /* Muda de horizontal para vertical */
    align-items: stretch; /* Faz os botões ocuparem a largura total disponível */
    gap: 10px !important; /* Diminui um pouco o espaço entre eles no celular */
    padding: 0 20px; /* Adiciona uma folga nas laterais para não colar na tela */
  }

  .tab-btn {
    width: 100%; /* Garante que o botão use todo o espaço */
    text-align: center;
    padding: 12px 0; /* Deixa o botão ligeiramente mais alto para facilitar o toque */
  }

  /* Opcional: Ajusta a linha decorativa do botão ativo para o modo vertical */
  .tab-btn.active::after {
    bottom: 2px;
    left: 5%;
    width: 90%;
  }
}
