@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }

  /* About section */
  .section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .section__pic-container {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
  }

  .section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .about-details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .details-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
  }

  /* Projects section */
  .project-details-container .about-containers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
  }

  .color-container {
    width: 100%;
    max-width: 300px;
  }

  .project-img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media screen and (max-width: 768px) {
  section {
    margin: 0 2rem;
    padding: 4rem 0;
  }

  .project-details-container .about-containers {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media screen and (max-width: 600px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  #profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding: 0;
  }

  .section__pic-container {
    width: 150px;
    height: 150px;
    margin: 0.5rem 0;
  }

  .section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .section__text {
    text-align: center;
    margin-top: 0.5rem;
  }

  .section__text__p1 {
    font-size: 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .section__text__p2 {
    font-size: 1.2rem;
  }

  .section-container{
    gap: 0.5rem;
  }

  .btn-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  /* about section */
  .details-container h3 {
    justify-content: center;
    flex-direction: row; 
  }
  .details-container .icon {
    order: -1; /* Move icon to the left */
  }
  .about-containers {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: auto;
  }

  .about-details-container {
    flex-direction: column;
    font-size: smaller;
    border-radius: 50%;
    gap: 0.5rem;
  }
  .about-details-container h2 .icon {
  order: 1; /* Move icon to the right */
  }
  .text-container {
    padding: 2rem;
  }

  /* experience section */
  .experience-sub-title {
    transform: scale(0.8);
    margin-bottom: 0.5rem;
  }
  .article-container {
    transform: scale(0.9);
    gap: 0.5rem
  }
  article {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    text-align: left; /* Align text to the left */
    justify-content: flex-start; /* Align content to the left */
  }

  article .icon {
    margin-right: 0.5rem; /* Add space between icon and text */
  }
  article div h3{
    align-items: flex-start; /* Ensure text inside div is aligned left */
  }
}

@media screen and (max-width: 400px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  #profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding: 0;
  }

  .section__pic-container {
    width: 150px;
    height: 150px;
    margin: 0.5rem 0;
  }

  .section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .section__text {
    text-align: center;
    margin-top: 0.5rem;
  }

  .section__text__p1 {
    font-size: 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .section__text__p2 {
    font-size: 1.2rem;
  }

  .section-container{
    gap: 0.5rem;
  }

  .btn-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  /* about section */
  .details-container h3 {
    justify-content: center;
    flex-direction: row; 
  }
  .details-container .icon {
    order: -1; /* Move icon to the left */
  }
  .about-containers {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: auto;
  }

  .about-details-container {
    flex-direction: column;
    font-size: smaller;
    border-radius: 50%;
    gap: 0.5rem;
  }
  .about-details-container h2 .icon {
  order: 1; /* Move icon to the right */
  }
  .text-container {
    padding: 2rem;
  }

  /* experience section */
  .experience-sub-title {
    transform: scale(0.8);
    margin-bottom: 0.5rem;
  }
  .article-container {
    transform: scale(0.9);
    gap: 0.5rem
  }
  article {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    text-align: left; /* Align text to the left */
    justify-content: flex-start; /* Align content to the left */
  }

  article .icon {
    margin-right: 0.5rem; /* Add space between icon and text */
  }
  article div h3{
    align-items: flex-start; /* Ensure text inside div is aligned left */
  }
}