/* --- MEDIA QUERIES --- */
@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  section {
    margin: 0 5%;
  }

  #profile {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    height: auto;
    margin-top: 2rem;
    padding-bottom: 2rem;
    justify-content: center;
  }

  .section__pic-container {
    height: 280px;
    width: 280px;
    margin: 0 auto;
  }

  .section__text {
    width: 100%;
  }
}

@media screen and (max-width: 992px) {
  /* Tablet Optimization */
  .about-containers {
    flex-direction: column;
    gap: 2rem;
  }
  .details-container {
    width: 100%;
    max-width: 600px;
  }
}

@media screen and (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  .contact-info-upper-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .contact-card {
    width: 100%;
    max-width: 500px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .boot-log {
    font-size: 0.8rem;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 0 1rem;
  }
  section {
    margin: 0 1rem;
  } /* Maximize width usage */

  .section__pic-container {
    height: 220px;
    width: 220px;
  }
  .title {
    font-size: 1.5rem;
    word-break: break-word;
  }
  .section__text__p1 {
    font-size: 0.9rem;
  }

  .btn {
    width: 100%;
  }
  .btn-container {
    gap: 1rem;
    width: 100%;
  }

  /* Stack skills on very small screens for better readability */
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .text-container {
    font-size: 0.9rem;
    border-left: none;
    padding: 1rem;
    text-align: left;
  }

  .btn-group {
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .cert-card {
    padding: 1.5rem;
  }

  /* Contact adjustments */
  .contact-card {
    padding: 1rem;
  }
  .contact-card i {
    font-size: 1.2rem;
  }
  .contact-card a {
    font-size: 0.9rem;
  }
}
