@media screen and (max-width: 1400px) {
  #profile {
    height: 100vh;
    padding-top: 150px;
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: fit-content;
  }
  #contact {
    padding-top: 6rem;
  }
.details-container-1 {
    margin-top: 50px;
  }
}

@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;
  }
  #about .section__pic-container {
    display: flex;
    margin: 0 auto;
    width: fit-content;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
  }
  #experience .title {
    margin-bottom: 2rem;
  }

  .exp-icon {
    padding-left: 30px !important;
    padding-right: 0 !important;
  }

  .text-container {
    text-align: center;
    align-self: justify;
    margin-top: -2rem;
    padding-left: 30px;
    padding-bottom: 5rem;
    }

  .section__pic-container {
      display: flex;
      justify-content: center;
    }

  .about-details-container {
        padding: 0;
    }

}

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

  #profile {
    height: 100vh;
    margin-bottom: 0;
    padding-top: 200px;
  }
  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-top: 0;
    margin-bottom: 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;
  }

  .details-container-1 {
    margin-top: -1rem;
  }

  .subhead {
    margin-top: -.5rem;
  }

  .subhead-2 {
    margin-top: 1rem;
  }

  .icon-1 {
    margin-top: -1.5rem;
  }

  .about-pic {
    margin-top: -0.5rem !important;
  }

  .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;
    padding: 0;
  }
  #about .section__pic-container {
    margin-top: 2rem;
  }
  #experience .title {
    margin-bottom: 2rem;
  }
  .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .prev, .next {
    display: none; /* Hide buttons on mobile */
  }

  .slides-container {
    position: relative;
    min-height: 200px;
  }

  .slide {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .slider {
    max-width: 100%;
  }

  .slide img {
    width: auto;
    height: 200px;
    border-radius: 0;
  }

  .caption {
    font-size: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .experience-prev, .experience-next {
    display: none;
  }

  .experience-slide {
    min-height: 200px;
    transform: scale(0.8);
    transform-origin: top center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .experience-slides-container {
    position: relative;
    min-height: 200px;
  }

  .exp-icon {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #experience .text-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
    padding-top: 5rem;
    margin-bottom: -5rem;
    }

  .section__pic-container {
      display: flex;
      justify-content: center;
      padding: 0;
    }

  #experience .about-details-container {
        padding: 0;
    }
    
    @media screen and (max-width: 900px) and (orientation: landscape) {
        
    #experience .text-container {
        margin-left: 60px !important;
  }
  
}