@media screen and (max-width: 1400px) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: fit-content;
  }
}

@media screen and (max-width: 1200px) {
  #profile {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .section__pic-container {
    max-width: 400px;
  }

  .section__text {
    text-align: center;
  }

  .btn-container {
    justify-content: center;
  }

  #socials-container {
    justify-content: center;
  }

  #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;
  }
}

@media screen and (max-width: 992px) {
  .section__pic-container {
    max-width: 400px;
    margin: 0 auto;
  }
}

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

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  .hamburger-menu {
    position: relative;
  }

  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
  }

  .hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
  }

  .menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--background);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .menu-links.open {
    max-height: 300px;
  }

  .menu-links li {
    list-style: none;
    padding: 1rem;
    text-align: center;
  }

  .menu-links li a {
    display: block;
    width: 100%;
  }

  .hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(8px, 6px);
  }

  .hamburger-icon.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(7px, -5px);
  }

  section {
    padding: 4rem 1rem;
  }

  .title {
    font-size: 2.5rem;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  .about-details-container,
  .experience2-details-container,
  .article-container {
    grid-template-columns: 1fr;
  }

  .contact-info-upper-container {
    flex-direction: column;
  }

  .contact-info-container {
    width: 100%;
  }

  .section__text {
    text-align: center;
  }
  
  .btn-container {
    justify-content: center;
  }
  
  #socials-container {
    justify-content: center;
  }
  
  .details-container,
  .job-container,
  article {
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .title {
    font-size: 2rem;
  }
  
  .section__text__p2 {
    font-size: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-container {
    flex-direction: column;
  }
  
  .contact-info-container {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .title {
    font-size: 2rem;
  }

  .section__text__p2 {
    font-size: 1.125rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .details-container,
  .job-container,
  article {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 600px) {
  #contact,
  footer {
    height: 40vh;
  }
  #profile {
    height: 83vh;
    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: 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;
  }
  .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;
  }
}
