@media screen and (max-width: 1400px) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
}

@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;
  }
  .about-containers {
    margin-top: 0;
  }
}

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

  #profile {
    height: 83vh;
    margin-bottom: 0;
  }

  article {
    font-size: 1rem;
  }

  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
  }

  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }

  .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__text__p2 {
    font-size: 1.25rem;
  }

  .title {
    font-size: 2rem;
  }

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

  #education .about-containers,
  #education .details-container {
    flex-direction: column;
    padding: 2rem 1rem;
    margin: 0;
    width: 100%;
  }

  #education .icon-exp {
    height: 50px;
    width: 50px;
    margin: 0 auto;
  }

  #education .uab-big-title,
  #education .vrsec-big-title,
  #education h2,
  #education p {
    text-align: center;
    font-size: 1rem;
    margin: 0.5rem auto;
  }

  #education .details-container {
    padding: 2rem 1rem;
  }

  #experience .about-containers,
  #experience .details-container {
    flex-direction: column;
    padding: 2rem 1rem;
    margin: 0;
    width: 100%;
  }

  #experience .icon-exp {
    height: 50px;
    width: 50px;
    margin: 0 auto;
  }

  #experience .uab-big-title,
  #experience h2 {
    text-align: center;
    font-size: 1rem;
    margin: 0.5rem auto;
  }

  #experience .details-container {
    padding: 2rem 1rem;
  }

  #leadership-volunteering .about-containers,
  #leadership-volunteering .details-container {
    flex-direction: column;
    padding: 2rem 1rem;
    margin: 0;
    width: 100%;
  }

  #leadership-volunteering .icon-exp {
    height: 50px;
    width: 50px;
    margin: 0 auto;
  }

  #leadership-volunteering .uab-big-title,
  #leadership-volunteering .vrsec-big-title,
  #leadership-volunteering h2,
  #leadership-volunteering p {
    text-align: center;
    font-size: 1rem;
    margin: 0.5rem auto;
  }

  #leadership-volunteering .details-container {
    padding: 2rem 1rem;
  }

  #contact .contact-info-upper-container {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
    width: 100%;
    align-items: center;
  }

  #contact .contact-info-container {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0.5rem 0;
  }

  #contact .contact-info-container p,
  #contact .contact-info-container a {
    font-size: 1rem;
    text-align: center;
  }

  #projects .skill-post {
    text-align: center;
  }

  #projects .project-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
  }

  #projects .btn-container,
  #projects .btn {
    margin: 0 auto;
  }
}

/* Desktop layout for projects */
#projects .about-containers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

#projects .project-details-container {
  text-align: center;
  width: 100%;
  max-width: 350px;
  flex: 1 1 300px;
  padding: 1.5rem;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#projects .project-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem auto;
}

#projects .btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
