/* Common Styles */
#profile {
  margin-bottom: 1rem;
  min-height: 35vh;    /* Changed from fixed height */
  height: auto;        /* Allow height to grow naturally */
  outline: none;       /* Remove outline after testing */
}

.about-containers {
  display: flex;       /* Added display flex */
  flex-wrap: wrap;
}

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

/* Media Query for max-width: 1400px */
@media screen and (max-width: 1400px) {
  #profile {
    /* Removed height: 35vh to avoid jump issues */
    min-height: 35vh;
    height: auto;
  }
}

/* Media Query for max-width: 1200px */
@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }
  #profile {
    height: auto;
    margin-bottom: 4rem;  /* keep bottom margin */
    min-height: auto;     /* reset min-height to auto */
  }
  #experience, .experience-details-container {
    margin-top: 2rem;
  }
  #profile, .section-container {
    display: block;
  }
  .arrow {
    display: none;
  }
  section, .section-container {
    height: fit-content;
    margin: 0 5%;
  }
  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }
}

/* Media Query for max-width: 600px */
@media screen and (max-width: 600px) {
  #profile {
    height: auto;
    margin-bottom: 1.5rem;  /* Changed from 0 to keep spacing */
    min-height: auto;
  }
  article, .contact-info-container p, .nav-links li a, .text_icon {
    font-size: 1rem;
  }
  .experience-sub-title, .section__text__p2 {
    font-size: 1.25rem;
  }
  .logo, .title {
    font-size: 2rem;
  }
  .section__pic-container {
    width: auto;
    height: 46vw;
  }
  footer p {
    text-align: center;
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }
}
