@media screen and (max-width: 3000px) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
    max-height: 100vh; /* Set the maximum height */
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: fit-content;
    margin-top: 6rem; /* Add margin to separate from the previous section */
  }
  .details-container {
    height: auto; /* Adjust height for smaller screens */
  }
}

@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;
  }
  .about-containers {
    margin-top: 0;
  }
  .details-container {
    height: auto; /* Adjust height for smaller screens */
  }
}

@media screen and (max-width: 600px) {
  #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-sub-title {
    font-size: 1.25rem;
  }
  .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__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .text-container {
    text-align: justify;
  }
  .details-container {
    flex: 1 1 100%;
    max-width: 100%;
    height: auto; /* Adjust height for smaller screens */
  }
  .article-container {
    width: 100%;
  }
}

/* Base styles for the experience section */
.experience-details-container-xp {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.details-container-xp, .details-container-sk {
  flex: 1 1 45%;
  margin: 10px;
  padding: 1.5rem;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.article-container-xp {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-around;
}

.article-container-xp article {
  display: flex;
  align-items: center;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
  flex-direction: row; /* Ensure icon and description are side by side */
}

.article-container-xp article img {
  margin-right: 10px; /* Adjust margin to keep icon and text together */
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* Media queries for responsiveness */
@media screen and (max-width: 2000px) {
  .experience-details-container-xp {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 1200px) {
  #experience,
  .experience-details-container-xp {
    margin-top: 2rem;
  }
  .details-container-xp, .details-container-sk {
    flex: 1 1 100%;
  }
  .article-container-xp article {
    flex: 1 1 45%; /* Ensure articles take up half the width */
  }
}

@media screen and (max-width: 600px) {
  .experience-sub-title {
    font-size: 1.25rem;
  }
  .article-container-xp article {
    width: 100%;
  }
  article {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  #robot, #contact {
    flex: 1 1 100%;
  }
}

/* Base styles for the project container */
.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Styles for individual project cards */
.project-card {
  flex: 1 1 22%; /* Adjust the width to fit four cards in one row */
  margin: 1rem;
  box-sizing: border-box;
}

/* Media queries for responsiveness */
@media screen and (max-width: 3000px) {
  .project-container {
    flex-wrap: nowrap; /* Ensure all projects are in one row */
  }
  .project-card {
    flex: 1 1 22%; /* Adjust the width to fit four cards in one row */
  }
}

@media screen and (max-width: 1600px) {
  .project-container {
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
  }
  .project-card {
    flex: 1 1 45%; /* Adjust the width to fit two cards in one row */
  }
}

@media screen and (max-width: 600px) {
  .project-card {
    flex: 1 1 100%; /* Adjust the width to fit one card in one row */
  }
}