@media screen and (max-width: 1400px) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: fit-content;
  }
  #projects .about-containers {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
    justify-content: center;
  }
}

@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;
  }
  .text-container {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1rem;
  }
  #projects .about-containers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  #profile {
    height: auto;
    padding: 2rem 0;
    margin-bottom: 2rem;
  }
  .section__pic-container {
    width: 200px;
    height: 200px;
  }
  .section__text__p1 {
    font-size: 1rem;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .btn-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  #socials-container {
    gap: 0.75rem;
  }
  .icon {
    height: 1.5rem;
  }
  .about-containers {
    flex-direction: column;
    gap: 1rem;
  }
  .details-container {
    padding: 1rem;
  }
  .text-container {
    margin: 0;
    padding: 1rem;
    font-size: 0.9rem;
  }
  #experience .article-container {
    gap: 1.5rem;
  }
  article {
    width: 45%;
    font-size: 0.9rem;
  }
  .experience-sub-title {
    font-size: 1.5rem;
  }
  #projects .about-containers {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .project-img {
    height: 120px; 
  }
  .project-title {
    font-size: 1.1rem;
  }
  .project-btn {
    width: 100%;
    max-width: 140px;
  }
  .contact-info-upper-container {
    flex-direction: column;
    padding: 1rem;
  }
  .contact-info-container {
    margin: 0.5rem 0;
  }
  .contact-info-container p {
    font-size: 1rem;
  }
  .email-icon {
    height: 2rem;
  }
  footer {
    height: auto;
    padding: 2rem 0;
  }
  footer .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  section {
    margin: 0 3%;
    padding-top: 2rem;
  }
  .logo {
    font-size: 1.25rem;
  }
  .hamburger-icon {
    width: 25px;
    height: 20px;
  }
  .menu-links a {
    font-size: 1.25rem;
    padding: 0.5rem;
  }
  .section__pic-container {
    width: 150px;
    height: 150px;
  }
  .section__text__p1 {
    font-size: 0.9rem;
  }
  .section__text__p2 {
    font-size: 1rem;
  }
  .title {
    font-size: 1.75rem;
  }
  .btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  #socials-container .icon {
    height: 1.25rem;
  }
  article {
    width: 100%;
    font-size: 0.85rem;
  }
  .experience-sub-title {
    font-size: 1.25rem;
  }
  #projects .about-containers {
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.8rem;
  }
  .project-img {
    height: 100px; 
  }
  .project-title {
    font-size: 1rem;
  }
  .project-btn {
    max-width: 120px;
    padding: 0.6rem;
    font-size: 0.85rem;
  }
  .contact-info-container p {
    font-size: 0.9rem;
  }
  footer p {
    font-size: 0.85rem;
  }
}
