@media screen and (max-width: 1400px) {
    #profile {
      height: 83vh;
      margin-bottom: 6rem;
    }
    .about-container {
      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-container {
    margin-top: 0;
  }
}

@media screen and (max-width: 600px) {
  body {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }
  #contact, footer {
      height: 40vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }
  #about {
    margin-top: 5rem;
    flex-direction: column;
  }
  #skills {
    margin-top: 5rem;
  }
  #experience {
    margin-top: 5rem;
  }
  #projects {
    margin-top: 5rem;
  }
  #contact {
    margin-top: 5rem;
  }
  #profile {
      height: 83vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 0;
  }
  div.hamburger-icon{
    margin-left: 5rem;
  }
  div.section__pic-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  div.section__pic-container img {
      width: 200px;
      height: 200px;
      object-fit: cover; /* Ensures the image maintains its aspect ratio */
      margin-left: 0rem;
  }
    div.section__text {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    article {
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    footer nav {
        height: fit-content;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .about-container, .contact-info-upper-container, .btn-container {
        flex-wrap: wrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }
   
    div.about-details-container{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 15rem;
      margin-right: 17rem;
      width:0vh;
  }
  #about .section__pic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure the container takes full width */
    margin-left: 20rem;
  }

  #about .section__pic-container img.about-pic {
      width: 200px;
      height: 200px;
      object-fit: cover; /* Ensures the image maintains its aspect ratio */
      margin: 0; /* Remove any unnecessary margins */
  }
    .about-details-container{
        margin:0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    #about .about-container div {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      width: 70%; /* Ensure the container takes full width */
      margin-top: 1rem; /* Add some margin for spacing */
      margin-right: 11rem;
  }
  #about .text-container p{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 70%; /* Ensure the container takes full width */
    margin-top: 1rem; /* Add some margin for spacing */
    margin-right: 9rem;
}
    .contact-info-container {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .contact-info-container p, .nav-links li a {
        font-size: 1rem;
        text-align: center;
    }
    .skills-sub-title {
        font-size: 1.25rem;
        text-align: center;
    }
    .logo {
        font-size: 1.5rem;
        text-align: center;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .section__pic-container {
        width: 200px;
        height: 200px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 0rem;
    }
    .section__pic-container img {
      width: 100px;
      height: 100px;
      object-fit: cover; /* Ensures the image maintains its aspect ratio */
  }
  .about-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }
  .experience, .education {
      width: 45%; /* Ensure boxes take nearly half width each */
      margin: 10px 5%; /* Add some margin for spacing */
  }
  .experience-education-container {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      width: 100%;
  }
  .section__text {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      
  }
}
