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

@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,
    .profile-pic,
    .about-pic {
        width: 275px;
        max-width: 90%;
        height: auto;
        margin: 0 auto 2rem;
    }
  .about-pic{
    margin-bottom: 0rem;
  }
    .experience-details-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0; /* keeps it aligned with other sections */
  box-sizing: border-box;
}

.experience-containers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.details-containers {
  padding: 1rem;
  margin-left: 2rem;
  margin-right: 2rem;
  border: 1px solid #ccc; /* if you’re using borders */
  border-radius: 8px;
  background: #fff; /* optional */
}

.experience-subtitle {
    margin-bottom: 1rem;
}
.article-containers article {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal halves */
  align-items: center;           /* vertically center */
  text-align: center;
}

.article-containers article img {
  justify-self: center;          /* center checkmark in left half */
}

.article-containers article div {
  justify-self: center;          /* center skill text in right half */
}
.about-containers > div {
    flex: 1 1 300px;
    box-sizing: border-box;
}
.section__text__p2 {
    font-size: 1.25rem;
}
.title {
    font-size: 2rem;
}
.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 288px;
    object-fit: cover;
    overflow: hidden;
    display: block;
}
}

@media screen and (max-width: 1200px) {
    #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-subtitle {
        font-size: 1.25rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    @media (max-width: 600px) {
  .contact-info-upper-container {
    flex-direction: column;
    align-items: center;
  }
  #contact {
    margin: 2rem 0;
    padding: 1rem, 0;
  }
}

@media (max-width: 600px) {
  .article-containers article {
    flex: 1 1 100%;
    min-width: unset;
  }
}
