@media screen and (max-width: 1400px) {
  #profile {
    height: auto;
    padding: 8rem 4rem;
  }

  section {
    margin: 0 6rem;
  }
  
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

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

  #hamburger-nav {
    display: flex;
    padding: 1rem 4rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: var(--glass);
    backdrop-filter: var(--backdrop);
    -webkit-backdrop-filter: var(--backdrop);
    position: fixed;
    top: 0;
    z-index: 1000;
  }

  section {
    margin: 0 4rem;
    height: auto;
    padding: 8rem 0;
  }

  #profile {
    flex-direction: column;
    gap: 4rem;
    height: auto;
    padding: 12rem 4rem 6rem 4rem;
  }

  .section__pic-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .section__text {
    align-items: center;
    text-align: center;
  }

  .title {
    text-align: center;
  }

  .section__text__p2 {
    text-align: center;
  }

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

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

  .about-containers {
    flex-wrap: wrap;
  }

  #about .section-container {
    flex-direction: column;
  }

  #about .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }

  .arrow {
    display: none;
  }
  
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
  }
}

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

  #profile {
    padding: 12rem 2rem 6rem 2rem;
  }

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

  .contact-info-container {
    margin: 0;
  }

  .experience-sub-title {
    font-size: 1.25rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .title {
    font-size: 3rem;
  }

  .text-container {
    text-align: justify;
  }
  
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .project-image {
    height: 220px;
  }
}

@media screen and (max-width: 600px) {
  section {
    margin: 0 1rem;
    padding: 6rem 0;
  }

  #profile {
    padding: 12rem 1rem 6rem 1rem;
  }

  .section__pic-container {
    width: 250px;
    height: 250px;
  }

  .section__text__p1 {
    font-size: 1.25rem;
  }

  .section__text__p2 {
    font-size: 1.1rem;
  }

  .title {
    font-size: 2.5rem;
  }

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

  .btn {
    min-width: 12rem;
  }

  .about-containers {
    gap: 1rem;
  }

  .details-container {
    padding: 1rem;
  }

  .section-container {
    gap: 2.5rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  footer .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-content {
    padding: 0 1rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 2rem auto 0;
  }
  
  .project-image {
    height: 240px;
  }
  
  .tech-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .project-card .btn-container {
    flex-direction: row;
  }
}

@media screen and (max-width: 400px) {
  .section__pic-container {
    width: 200px;
    height: 200px;
  }

  .title {
    font-size: 2rem;
  }

  #socials-container {
    gap: 1rem;
  }

  .icon {
    height: 1.75rem;
  }
}