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

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

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  .experience-details-container {
    margin-top: 2rem;
  }

  #profile,
  .section-container {
    display: block;
  }

  .arrow {
    display: none;
  }

  section,
  .section-container {
    height: fit-content;
  }

  section {
    margin: 0 5%;
  }

  .skills-container {
    margin: 2rem 0;
  }

  .section__pic-container {
    margin: 0 auto 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 275px;
    height: 275px;
  }
}

@media screen and (max-width: 768px) {
  .about-containers {
    flex-direction: column;
  }

  .section-container {
    flex-direction: column;
    gap: 2rem;
  }

  .details-container {
    margin-bottom: 1rem;
  }

  .text-container {
    margin-bottom: 2rem;
  }

  .text-container p {
    font-size: 1rem;
  }

  #profile,
  .section-container {
    display: block;
  }

  .section__text {
    margin: 0 auto;
    text-align: center;
  }

  .skill-popup {
    width: 280px;
  }

  .popup-content {
    padding: 20px;
  }

  .popup-content h3 {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 600px) {
  #contact,
  #profile,
  footer {
    height: 20vh;
    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.5rem;
  }

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

  .logo {
    font-size: 1.5rem;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  .title {
    font-size: 2rem;
  }

  .text-container {
    text-align: justify;
  }

  .skills-track {
    gap: 0;
  }

  @keyframes slideLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-33.3%); /* More precise calculation */
    }
  }

  .skill-icon {
    height: 2rem;
    width: 2rem;
  }

  .skill-star {
    position: absolute;
    top: -5px;
    right: 30px;
    font-size: 0.75rem;
    z-index: 10;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
}

@media screen and (max-width: 480px) {
  .skill-popup {
    width: 260px;
  }

  .popup-content {
    padding: 16px;
  }
}
