/* General Media Query Consolidation */

/* Large screens up to 1400px */

@media screen and (max-width: 1600px) {
  #profile {
    /* height: 83vh; */
    margin-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: auto; /* Use 'auto' for better flexibility */
  }
}

/* Medium screens up to 1200px */
@media screen and (max-width: 1140px) {
  #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: auto;
    margin: 0 5%;
  }
  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }
  .about-containers {
    margin-top: 0;
  }
}

/* Small screens up to 700px */
@media screen and (max-width: 700px) {
  .contact-info-upper-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

/* Small screens up to 600px */
@media screen and (max-width: 600px) {
  #contact,
  footer {
    height: 40vh;
  }
  #profile {
    height: 13vh;
    margin-bottom: 0;
  }
  article {
    font-size: 1rem;
  }
  footer nav {
    height: auto;
    margin-bottom: 2rem;
  }

  .contact-info-container {
    margin: 0;
    padding: 10px;
  }
  .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 {
    gap: 1rem;
    text-align: center;
    margin-bottom: 60px;
  }
  .section__pic-container {
    width: auto;
    height: 46vw;
    justify-content: center;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .text-container {
    text-align: justify;
  }
}

/* Extra small screens up to 500px */
@media screen and (max-width: 500px) {
  .nav-links {
    display: flex;
    flex-direction: column;
  }
  .details-container {
    width: 200px;
  }
}
