/* Base styles for all screen sizes */
html {
  font-size: 16px;
}

/* Extra large screens */
@media screen and (min-width: 1401px) {
  html {
    font-size: 18px;
  }

  section {
    padding: 4rem 10%;
  }
}

/* Large screens (desktops) */
@media screen and (max-width: 1400px) {
  html {
    font-size: 16px;
  }

  section {
    padding: 3rem 5%;
  }

  .title {
    font-size: 2.5rem;
  }

  .details-container {
    padding: 1.5rem;
  }
}

/* Medium screens (tablets and small desktops) */
@media screen and (max-width: 1200px) {
  html {
    font-size: 15px;
  }

  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    height: auto;
  }

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

  #profile {
    flex-direction: column;
    text-align: center;
    padding-top: 3rem;
  }

  .section-container {
    flex-direction: column;
    align-items: center;
  }

  article {
    min-width: 140px;
  }

  #projects .about-containers {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Small screens (tablets and large phones) */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 2rem 5%;
  }

  .title {
    font-size: 2.2rem;
  }

  .about-containers {
    gap: 1rem;
  }

  .article-container {
    justify-content: center;
  }

  article {
    min-width: 120px;
  }

  .project-img {
    height: 180px;
  }

  .details-container {
    min-width: 100%;
  }

  #projects .about-containers {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Extra small screens (phones) */
@media screen and (max-width: 480px) {
  html {
    font-size: 13px;
  }

  section {
    padding: 1.5rem 4%;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

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

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .btn-container {
    flex-direction: column;
    gap: 0.8rem;
    width: 80%;
    margin: 0 auto;
    margin-top: 1rem;
  }

  .article-container {
    gap: 1rem;
  }

  article {
    min-width: 100%;
    justify-content: flex-start;
  }

  .about-containers {
    margin-bottom: 1rem;
  }

  .details-container {
    padding: 1rem;
  }

  #projects .about-containers {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .project-img {
    height: 200px;
  }

  .contact-info-upper-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info-container {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-social {
    gap: 1.5rem;
  }

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

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

/* Very small screens (small phones) */
@media screen and (max-width: 320px) {
  html {
    font-size: 12px;
  }

  section {
    padding: 1rem 3%;
  }

  .title {
    font-size: 1.8rem;
  }

  .section__pic-container {
    max-width: 200px;
  }

  .project-img {
    height: 180px;
  }
}
