/* ============================= */
/* LARGE SCREENS (≤ 1400px) */
/* ============================= */

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

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

  .experience-details-container .details-container {
    max-width: 100%;
    margin-bottom: 0;
  }
}

/* ============================= */
/* TABLETS & SMALL LAPTOPS (≤ 1200px) */
/* ============================= */

@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;
    display: flex;
    justify-content: center;
  }

  .about-containers {
    margin-top: 0;
  }
}

/* ============================= */
/* MOBILE DEVICES (≤ 600px) */
/* ============================= */

@media screen and (max-width: 600px) {

  #contact,
  footer {
    height: fit-content;
  }

  #profile {
    height: auto;
    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;
    justify-content: center;
  }

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

  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
    text-align: center;
  }

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

  .experience-details-container,
  .project-details-container,
  .about-containers,
  .experience-details-container .about-containers,
  .project-details-container .about-containers {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 1.5rem !important;
    border-left: none !important;
    /* Remove timeline line on very small screens for center look */
  }

  .experience-timeline .details-container::before {
    display: none;
    /* Hide timeline nodes on mobile to save space and center cards */
  }

  .details-container,
  .color-container {
    width: 80% !important;
    margin: 0 auto !important;
    padding: 1.5rem !important;
  }

  .experience-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.5rem !important;
  } 

  .experience-right p {
    white-space: normal !important;
  }
   
  .skill-tags {
    justify-content: center !important;
  }

  .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__p1,
  .section__text__p2 {
    font-size: 1.25rem;
    text-align: center;
  }

  .title {
    font-size: 2rem;
    text-align: center;
    width: 100%;
  }

  .experience-sub-title {
    font-size: 1.2rem !important;
    text-align: center !important;
  }
}