@media (max-width: 768px) {
  nav {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  #hamburger-nav {
    display: block;
  }

  section {
    margin: 0 1rem;
    padding-top: 2vh;
    padding-bottom: 2vh;
    height: auto;
  }

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

  .section__pic-container {
    height: 250px;
    width: 250px;
  }

  .title {
    font-size: 1.5rem;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  #socials-container {
    gap: 0.5rem;
  }

  .btn {
    width: 6rem;
    padding: 0.75rem;
  }

  #about {
    padding-top: 0.5rem;
  }

  .about-containers {
    gap: 1rem;
  }

  .details-container {
    padding: 1rem;
  }

  .experience-sub-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .article-container {
    gap: 1.5rem;
  }

  article {
    width: 8rem;
  }

  .card-content {
    padding: 10px;
  }

  .contact-info-upper-container {
    margin: 1rem auto;
  }

  .contact-info-container {
    margin: 0.5rem;
  }

  .email-icon {
    height: 2rem;
  }

  footer {
    height: auto;
    margin: 1rem;
  }

  /* Profile section adjustments */
  .profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-section .section__pic-container {
    margin-bottom: 1rem;
  }

  .profile-section .section__text__p2 {
    text-align: center;
    margin: 0 1rem;
  }
}

/* MEDIA QUERIES FOR MEDIUM DEVICES */

@media (max-width: 1024px) {
  nav {
    justify-content: space-between;
    padding: 0 2rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 1.25rem;
  }

  section {
    margin: 0 2rem;
    padding-top: 2vh;
    padding-bottom: 2vh;
    height: auto;
  }

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

  .section__pic-container {
    height: 300px;
    width: 300px;
  }

  .title {
    font-size: 1.75rem;
  }

  .section__text__p2 {
    font-size: 1.4rem;
  }

  .btn {
    width: 7rem;
    padding: 0.9rem;
  }

  .experience-sub-title {
    font-size: 1.6rem;
  }

  article {
    width: 9rem;
  }

  .card-title {
    font-size: var(--fs-16);
  }

  .card-text {
    font-size: 12px;
  }

  footer {
    height: auto;
    margin: 0 2rem;
  }

  /* Profile section adjustments */
  .profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-section .section__pic-container {
    margin-bottom: 1.5rem;
  }

  .profile-section .section__text__p2 {
    text-align: center;
    margin: 0 1.5rem;
  }
}