/* Media Query para telas de tablet e desktop (a partir de 768px de largura) */
@media (min-width: 768px) {
  /* Header */
  header {
    justify-content: space-between;
    gap: 5rem;
    padding: 0.5rem 1.5rem;
    width: auto;
  }

  .header .logo {
    font-size: 1.3rem;
  }

  /* REVERTENDO O COMPORTAMENTO DO MENU PARA DESKTOP */
  .nav-links {
    display: flex;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    flex-direction: row;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    gap: 2rem;
    width: auto;

    /* REVERTENDO ESTILOS DO MOBILE PARA OS LINKS DO MENU EM DESKTOP */
    align-items: center; /* Volta a alinhar ao centro */
    text-align: left; /* Alinha o texto à esquerda, como em desktop */
  }

  /* Estilos específicos dos links em desktop */
  .nav-links li a {
    color: var(--branco); /* Cor dos links em desktop (você já tinha isso) */
    font-weight: 300;
    font-family: var(--font-secundaria);
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    padding: 0; /* Remove padding extra do mobile */
    width: auto; /* Volta à largura automática */
    display: inline-block; /* Ou inline, para que eles se comportem como links normais */
  }

  .nav-links li a:hover {
    color: #929292;
  }

  li a::before {
    height: 5px;
    top: 20px;
  }

  /* Esconde o botão de menu (hambúrguer) em telas maiores */
  .menu-button {
    display: none;
  }

  /* Mostra o botão 'Visit Github' em telas maiores */
  .visit-btn {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .theme-switch {
    height: 50px;
    width: 50px;
  }

  .theme-switch i {
    font-size: 20px;
  }

  /* Seções */
  section {
    padding: 8rem 12%;
  }

  /* Seção "About" */
  .about .about-container {
    flex-direction: row;
    gap: 10rem;
    text-align: left;
  }

  .about img {
    width: 30vw;
    max-width: none;
  }

  .info-box {
    text-align: left;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .info-box h3 {
    font-size: 1.8rem;
  }

  .info-box h1 {
    font-size: 4rem;
  }

  .info-box span {
    font-size: 2rem;
  }

  .info-box p {
    padding: 0;
    font-size: 1rem;
  }

  .btn-group {
    flex-direction: row;
  }

  .btn,
  .btn-navigation {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }

  .socials {
    gap: 2rem;
  }

  .socials i {
    font-size: 2.5rem;
  }

  /* Título das seções */
  .section-title {
    font-size: 4rem;
    margin-bottom: 3rem;
  }

  /* Seção "Skills" */
  .skills-info {
    flex-direction: row;
    gap: 5rem;
  }

  .skills img {
    width: 24vw;
    max-width: none;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: none;
  }

  .grid-card {
    padding: 3rem;
    border-radius: 3rem;
  }

  .grid-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .grid-card span {
    font-size: 1.5rem;
  }

  .grid-card p {
    font-size: 1rem;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 20px;
  }

  /* Projetos */
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: none;
  }

  .projects-card {
    padding: 3rem 2rem;
    gap: 1.5rem;
    border-radius: 3rem;
  }

  .projects-card img {
    width: 20vw;
    max-width: none;
  }

  .projects-card h3 {
    font-size: 2rem;
  }

  .projects-card p {
    font-size: 1rem;
  }

  /* Formulário de contato */
  form {
    gap: 2em;
    max-width: 600px;
  }

  form .input-box {
    gap: 1em;
  }

  .input-box label {
    font-size: 1.5em;
  }

  form input {
    font-size: 1.2em;
    padding: 1em 2em;
    max-width: none;
  }

  form input:focus {
    transform: scale(1.05);
  }

  form textarea {
    font-size: 1.3em;
    padding: 1em 2.5em;
    max-width: none;
    height: 150px;
  }

  .btn-submit {
    max-width: 200px;
    height: 50px;
    font-size: 1.1rem;
  }

  .btn-submit:hover {
    transform: scale(1.1);
  }

  /* Footer */
  footer {
    background-color: var(--branco);
    color: var(--preto);
    flex-direction: row;
    gap: 4em;
    padding: 3em 10%;
  }

  .col-left {
    gap: 1.2em;
    align-items: flex-start;
    text-align: left;
  }

  .col-box {
    gap: 0.8em;
  }

  .col-box i {
    font-size: 1.8em;
    color: var(--preto);
  }

  .col-box span {
    font-size: 1.1rem;
    color: var(--preto);
  }

  .col-right {
    gap: 1em;
    text-align: left;
  }

  .col-right span {
    font-weight: 600;
    font-size: 1.2em;
    color: var(--preto);
  }

  .col-right .socials-icons {
    justify-content: flex-start;
  }

  .col-right .socials-icons i {
    font-size: 1.5em;
    color: var(--preto);
  }
}