/* ==========================================================================
   Responsive Media Queries — Cristián Torres Castro
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1200px) */
@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  #profile {
    gap: 3rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .title {
    font-size: 2.3rem;
  }
}

/* Tablets (<= 992px) */
@media screen and (max-width: 992px) {
  #profile {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding-top: 2rem;
    gap: 2.5rem;
  }

  .section__text {
    max-width: 100%;
    text-align: center;
  }

  .section__text .title,
  .section__text__p1 {
    text-align: center;
  }

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

  #socials-container {
    justify-content: center;
  }

  .about-containers {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Mobile Devices (<= 600px) */
@media screen and (max-width: 600px) {
  html {
    font-size: 15px;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .title {
    font-size: 1.95rem;
  }

  .avatar-card {
    width: 270px;
    height: 270px;
  }

  .avatar-initials {
    width: 105px;
    height: 105px;
    font-size: 2.2rem;
  }

  .section__text .title {
    font-size: 2rem;
  }

  .section__text__p2 {
    font-size: 1.15rem;
  }

  .btn-container {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  #socials-container {
    flex-wrap: wrap;
  }

  .social-link {
    width: 100%;
    justify-content: center;
  }

  .article-container {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-date {
    align-self: flex-start;
  }

  .contact-info-container {
    width: 100%;
  }
}
