/* ========= RESPONSIVIDADE ========= */

/* Telas até 1024px */
@media (max-width: 1024px) {
  section {
    padding: 0 2rem;
  }

  .hero__container,
  .sobre__container {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 2rem;
  }

  .hero__image,
  .sobre__container .hero__image {
    order: -1;
    margin-bottom: 2rem;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.3rem;
  }
}

/* Telas até 768px */
@media (max-width: 768px) {
  .nav__container {
    height: auto;
    gap: 1rem;
    padding: 1rem;
  }

  .nav__menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  section {
    padding: 2rem 1rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .projetos__container {
    grid-template-columns: 1fr;
  }

  .habilidade__card {
    width: 100%;
  }
  .sobre__container{
    padding: 0 1rem;
  }
  .sobre__image{
    display: none;
  }
  .disponibilidade p{
    font-size: 1em;
  }
  .disponibilidade h4 {
    font-size: 1.2em;
  }
  .form__field input, .form__field textarea, .btnContact {
    font-size: 1em;
  }
  .contact__info {
    font-size: 0.9em;
  }
}

/* Telas até 480px */
@media (max-width: 480px) {
  .section__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .image__blob {
    width: 200px;
    height: 200px;
  }

  .contact__form {
    gap: 1rem;
  }

  .form__group {
    flex-direction: column;
    gap: 1rem;
  }

  .contact__info-items {
    gap: 1rem;
  }

  .footer__socials {
    font-size: 1.2em;
  }
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-white);
  cursor: pointer;
}


@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: 4rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #262626;
    border-radius: 10px;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    display: none;
  }

  .nav__menu.show-menu {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
