@media screen and (max-width: 1400px) {
  #profile {
    height: auto;
    padding-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
    gap: 1rem;
  }
  #contact,
  #projects {
    height: auto;
    padding: 4rem 0;
  }
  .section__pic-container {
    height: 350px;
    width: 350px;
  }
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    width: 100%;
  }
  #profile,
  .section-container {
    display: block;
    height: auto;
  }
  .arrow {
    display: none;
  }
  section,
  .section-container {
    margin: 0 5%;
    padding: 2rem 0;
  }
  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }
  .about-containers {
    flex-direction: column;
    align-items: center;
  }
  .about-details-container {
    margin-top: 2rem;
    text-align: center;
  }
  .details-container {
    width: 100%;
    margin-bottom: 1rem;
  }
  .projects-sub-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 900px) {
  .projects-sub-container {
    grid-template-columns: 1fr;
  }
  .color-container {
    max-width: 400px;
    margin: 0 auto;
  }
  .contact-info-upper-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-info-container {
    justify-content: center;
    width: 90%;
  }
  .title {
    font-size: 2.5rem;
  }
  .section__text__p2 {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 600px) {
  #contact {
    padding: 2rem 0;
    height: auto;
  }
  #profile {
    height: auto;
    padding: 4rem 0 2rem;
  }
  footer {
    padding: 2rem 0 1rem;
  }
  .section__text__p1 {
    font-size: 1.1rem;
  }
  .title {
    font-size: 2.2rem;
  }
  .section__text__p2 {
    font-size: 1.2rem;
  }
  .section__pic-container {
    width: 200px;
    height: 200px;
  }
  .btn {
    padding: 0.8rem;
    width: 7rem;
    font-size: 0.9rem;
  }
  .about-pic {
    width: 100%;
    height: auto;
  }
  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }
  .project-img {
    height: 150px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .social-icons {
    justify-content: center;
  }
}

@media screen and (max-width: 400px) {
  section {
    margin: 0 3%;
  }
  .section__text__p1 {
    font-size: 1rem;
  }
  .title {
    font-size: 1.8rem;
  }
  .btn-container {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .contact-info-container {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  .contact-icon {
    margin-bottom: 0.5rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  footer {
    padding: 1.5rem 0 0.5rem;
  }
}