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

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 1200px ── */
@media screen and (max-width: 1200px) {
  body {
    overflow-x: hidden;
  }

  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  section {
    margin: 0 5%;
    height: fit-content;
  }

  .section-container {
    display: block;
    height: fit-content;
  }

  #profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding-bottom: 3rem;
    gap: 2rem;
  }

  #profile .section__pic-container {
    width: 250px !important;
    height: 250px !important;
    min-width: 250px !important;
    min-height: 250px !important;
    border-radius: 50%;
    overflow: hidden;
    display: flex !important;
    flex-shrink: 0;
    margin: 0 auto;
  }

  #profile .section__pic-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    display: block !important;
  }

  .arrow {
    display: none;
  }

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

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }

  .modal-content {
    margin: 1.75% auto;
    padding: 1.5rem;
    width: 85%;
    max-height: 90vh;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-project-image {
    height: 200px;
  }

  .modal-btn-container {
    flex-direction: column;
  }

  .modal-close {
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
  }
}

/* ── 900px ── */
@media screen and (max-width: 900px) {
  section {
    margin: 0 1.5rem;
    height: fit-content;
  }

  #profile {
    height: auto;
    padding-bottom: 3rem;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  #profile .section__pic-container {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    border-radius: 50%;
    overflow: hidden;
    display: flex !important;
    flex-shrink: 0;
    margin: 0 auto !important;
  }

  #profile .section__pic-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    display: block !important;
  }

  .section-container {
    flex-direction: column !important;
    display: flex !important;
  }

  .about-containers {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 1.5rem !important;
  }

  #about-containers {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  #about .section__pic-container {
    width: 220px !important;
    height: 260px !important;
    margin: 0 auto 1.5rem auto;
    border-radius: 2rem;
    overflow: hidden;
    display: flex !important;
  }

  .about-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

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

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

  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
  }
}

/* ── 600px ── */
@media screen and (max-width: 600px) {
  body {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
  }

  section {
    margin: 0 1rem;
    width: auto;
    box-sizing: border-box;
    height: fit-content;
  }

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

  .title {
    font-size: 2rem;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  #profile .section__pic-container {
    width: 180px !important;
    height: 180px !important;
    min-width: 180px !important;
    min-height: 180px !important;
    border-radius: 50%;
    overflow: hidden;
    display: flex !important;
    margin: 0 auto !important;
  }

  #profile .section__pic-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    display: block !important;
  }

  #about .section__pic-container {
    width: 180px;
    height: 210px;
    margin: 0 auto 1.5rem auto;
  }

  article {
    font-size: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

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

  .text-container {
    text-align: justify;
  }

  #contact,
  footer {
    height: auto;
  }

  .modal-content {
    margin: 2% auto;
    padding: 1.5rem;
    width: 88%;
    max-height: 92vh;
    border-radius: 12px;
  }

  .modal-title {
    font-size: 1.6rem;
    padding-right: 2.5rem;
  }

  .modal-project-image {
    height: 160px;
  }

  .modal-close {
    right: 1rem;
    top: 1rem;
    font-size: 1.4rem;
    width: 35px;
    height: 35px;
  }
}

/* ── 480px ── */
@media screen and (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  section {
    margin: 0 0.75rem;
  }

  .btn {
    width: 6.5rem;
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .modal-content {
    margin: auto;
    padding: 1rem;
    width: 88%;
    max-height: 94vh;
    border-radius: 8px;
  }

  .modal-title {
    font-size: 1.4rem;
    padding-right: 2.5rem;
  }

  .modal-project-image {
    height: 140px;
  }

  .modal-tech-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .modal-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .modal-btn {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }

  .modal-close {
    right: 0.8rem;
    top: 0.8rem;
    width: 30px;
    height: 30px;
  }
}
