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

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex !important; /* Force display on smaller screens */
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #b9d9eb; /* Columbia blue */
  }

  .hamburger-menu {
    margin-left: auto; /* Push to the right */
  }
  #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%;
    padding-top: 6rem;
  }
  .section__pic-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

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

  .section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .about-containers {
    margin-top: 0;
  }
  .details-container {
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  .project-img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  /* Skills carousel responsive */
  .skills-carousel-container {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .skills-carousel {
    max-width: 90%;
    height: 550px;
  }

  .skill-item {
    padding: 1.8rem 2rem;
    margin-bottom: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding-top: 5rem;
    margin: 0 3%;
  }
  .title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .btn {
    padding: 0.8rem;
    width: 7rem;
  }
  .details-container {
    padding: 1.2rem;
  }
  .contact-info-upper-container {
    flex-direction: column;
    width: 90%;
    max-width: 500px;
  }
}

@media screen and (max-width: 600px) {
  #contact,
  footer {
    height: auto;
    padding-bottom: 3rem;
  }
  #profile {
    height: auto;
    margin-bottom: 3rem;
    padding-top: 5rem;
  }
  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.5rem 0;
  }
  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }
  .skills-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: 250px;
    height: 250px;
    justify-content: center;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .text-container {
    text-align: justify;
    padding: 0 0.5rem;
  }
  .menu-links {
    width: 100%;
    right: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .btn-container {
    justify-content: center;
    gap: 0.5rem;
  }
  .btn {
    margin: 0.5rem;
  }

  /* Skills carousel mobile */
  .skills-carousel {
    max-width: 100%;
    height: 450px;
    width: 100%;
  }

  .skills-carousel-title {
    font-size: 1.5rem;
    padding: 1.2rem;
  }

  .skill-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .skill-item-content h3 {
    font-size: 1.5rem;
  }

  .skill-item-content p {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 400px) {
  .section__pic-container {
    width: 200px;
    height: 200px;
  }

  #about .section__pic-container {
    width: 200px;
    height: 200px;
  }

  .btn {
    padding: 0.7rem;
    width: 6.5rem;
  }
  .title {
    font-size: 1.8rem;
  }
  .section__text__p2 {
    font-size: 1.1rem;
  }
}
