@media screen and (max-width: 1400px) {
  #profile {
    /* height: 80vh; */
    margin-bottom: 6rem;
  }

  /* .profile__pic-container {
    height: 45vh;
  } */
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: fit-content;
  }
  #profile{
    height: auto;
  }

  /* #profile .profile__pic-container img {
    width: 40%; 
    height: auto;
  } */
  .profile__pic-container {
    width: 100%; 
    height: auto;
    justify-content: center;
  }
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }
  #strength,
  .strength-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;
  }
  .expertise-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
#about .section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

#about .about-containers {
  flex-direction: column;
  width: 100%;
}

#about .details-container {
  width: 100%;
}
}

@media screen and (max-width: 1200px) {
  .profile__pic-container {
    height: 50vh;
  }

  #strength {
    height: 110vh;
    margin-bottom: 0;
  }
  #profile{
    height: auto;
  }

  /* #profile .profile__pic-container img {
    width: 40%; 
    height: auto;
  } */
  .profile__pic-container {
    width: 100%; 
    height: auto;
    justify-content: center;
  }
  
  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media screen and (max-width: 1100px) {
  #strength {
    height: 90vh;
    margin-bottom: 0;
  }

  #profile{
    height: auto;
  }

  /* #profile .profile__pic-container img {
    width: 40%; 
    height: auto;
  } */
  .profile__pic-container {
    width: 100%; 
    height: auto;
    justify-content: center;
  }
  .section__pic-container {
    width: auto;
    height: 60vw;
    justify-content: center;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .text-container {
    text-align: justify;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media screen and (max-width: 821px) {
  #strength {
    height: auto;
  }

  .about-cards {
    justify-content: center;
  }
  .about-card {
    flex: 0 0 48%;
    max-width: 48%;
    min-width: 260px;
  }
  
}

@media screen and (max-width: 600px) {
  #contact,
  footer {
    height: 40vh;
  }
  #strength {
    height: 370vh;
    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: 1;
  }
  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }
  .strength-sub-title {
    font-size: 1.25rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .section__pic-container {
    width: 100%;
    height: 60vw;
    justify-content: center;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .text-container {
    text-align: justify;
  }
  .expertise-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  }

  .expertise-card {
    padding: 1.5rem 1.25rem;
  }

    .about-cards {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .about-card {
    width: 100%;
    max-width: 520px;
    flex: 0 0 auto;
  }

  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
  }
  
}

@media only screen and (max-width: 770px) {
  #profile .profile__pic-container img {
    width: 60%; 
    height: auto;
  }
  #profile .profile__pic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
  }
  
  #profile{
    height: auto;
  }
  #strength{
    height: auto;
  }

  .expertise-card {
    padding-top: 1.5rem;   /* more space so title sits below the icon */
  }

  .expertise-card-icon-wrap .expertise-icon {
    width: 78px;
    height: 78px;
  }
}

#profile .profile__pic-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 1030px) {

  .modal-content {
    width: auto; /* Adjust the width for mobile screens */
    height: auto; /* Adjust the height for mobile screens */
  }
  #myModal .modal-content iframe {
    width: 800px; /* Adjust the width for mobile screens */
    height: 500px; /* Adjust the height for mobile screens */
  }

}

@media only screen and (max-width: 750px) {
  .modal-content {
    width: auto; /* Adjust the width for mobile screens */
    height: auto; /* Adjust the height for mobile screens */
  }
  #myModal .modal-content iframe {
    width: 450px; /* Adjust the width for mobile screens */
    height: 300px; /* Adjust the height for mobile screens */
  }
}

@media only screen and (max-width: 550px) {
  .modal-content {
    width: auto; /* Adjust the width for mobile screens */
    height: auto; /* Adjust the height for mobile screens */
  }
  #myModal .modal-content iframe {
    width: 350px; /* Adjust the width for mobile screens */
    height: 250px; /* Adjust the height for mobile screens */
  }

  #strength {
    height: 220vh;
    margin-bottom: 0;
  }

  #profile .profile__pic-container img {
    width: 45%;
    height: auto;
  }

  .profile__pic-container{
    height: 290px;
  }
}


@media screen and (max-width: 450px) {

  #strength {
    height: auto;
    margin-bottom: 0;
  }

  #profile .profile__pic-container img {
    width: 60%;
    height: auto;
  }

  .profile__pic-container{
    height: 50%;
  }

  #profile{
    height: 650px
  }
}

#strength {
  height: auto;
  margin-bottom: 0;
}
