/* ========================= */
/* MEDIA QUERIES FOR RESPONSIVE DESIGN */
/* ========================= */

/* Large tablets / smaller desktops */
@media screen and (max-width: 1400px) {
  /* Profile section adjustments */
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }

  /* About section layout */
  .about-containers {
    flex-wrap: wrap;
    margin-top: 0;
  }

  /* Contact and Projects sections */
  #contact,
  #projects {
    height: fit-content;
  }
}

/* Smaller laptops / tablets */
@media screen and (max-width: 1200px) {
  /* Hide desktop nav, show hamburger nav */
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex; /* show hamburger menu */
  }

  /* Skills section spacing */
  #skills,
  .skills-details-container {
    margin-top: 2rem;
  }

  /* Stack sections vertically */
  #profile,
  .section-container {
    display: block;
  }

  /* Hide arrows for smaller screens */
  .arrow {
    display: none;
  }

  /* Section sizing and margins */
  section,
  .section-container {
    height: fit-content;
  }

  section {
    margin: 0 5%;
  }

  /* Profile picture size */
  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }
}

/* Mobile screens / phones */
@media screen and (max-width: 600px) {
  /* Contact and footer height */
  #contact,
  footer {
    height: 40vh;
  }

  /* Profile adjustments */
  #profile {
    height: 83vh;
    margin-bottom: 0;
  }

  /* Article font size for small screens */
  article {
    font-size: 1rem;
  }

  /* Footer nav adjustments */
  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
  }

  /* Wrap content where needed */
  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }

  .contact-info-container {
    margin: 0;
  }

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

  .skills-sub-title {
    font-size: 1.25rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* Navigation links stacking */
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Section images */
  .section__pic-container {
    width: auto;
    height: 46vw;
    justify-content: center;
  }

  .section__text__p2 {
    font-size: 1.25rem;
  }

  .title {
    font-size: 2rem;
  }

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


/* MEDIA QUERIES: stack vertically on smaller screens */
@media screen and (max-width: 1200px) {
  .edu-container {
    flex-direction: column;
  }
  .edu-left, .edu-right {
    flex: 1;
    width: 100%;
  }
}
