/* ==================================================
   TABLET / SMALL DESKTOP
================================================== */

@media screen and (max-width: 1400px) {

  #profile {
    margin-bottom: 6rem;
  }

  .about-containers {
    flex-wrap: wrap;
  }

  #contact,
  #projects {
    height: fit-content;
  }

}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1200px) {

  /* NAVIGATION */

  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }


  /* GENERAL */

  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }

  #profile,
  .section-container {
    display: block;
  }

  .arrow {
    display: none;
  }

  section,
  .section-container {
    height: fit-content;
  }

  section {
    margin: 0 5%;
  }


  /* PROFILE IMAGE */

  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }


  /* ABOUT */

  .about-containers {
    margin-top: 0;
  }


  /* PROJECTS */

  #projects .about-containers {
    grid-template-columns: repeat(2, 1fr);
  }


  /* ==================================================
     PROJECT PAGES
  ================================================== */

  .project-page section {
    height: auto;
    min-height: 0;

    margin: 0 5%;

    padding-top: 5rem;
    padding-bottom: 5rem;
  }


  .project-page #profile {
    display: flex;

    height: auto;
    min-height: 80vh;

    margin: 0 5%;

    padding-top: 5rem;
    padding-bottom: 5rem;
  }


  .project-page .section-container {
    display: block;
    height: auto;
  }


  .project-page .arrow {
    display: block;

    right: 1rem;
    bottom: 1.5rem;
  }


  /* PROJECT SHOWCASE */

  .project-page .project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }


  .project-page video {
    width: 100%;
    max-height: 500px;
  }

}


/* ==================================================
   MOBILE
================================================== */

@media screen and (max-width: 600px) {

  /* GENERAL */

  #contact,
  footer {
    height: auto;
  }

  #profile {
    margin-bottom: 0;
  }

  article {
    font-size: 1rem;
  }


  /* FOOTER */

  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
  }


  /* CONTAINERS */

  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }

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


  /* TEXT */

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

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

  .logo {
    font-size: 1.5rem;
  }


  /* NAVIGATION */

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


  /* PROFILE IMAGE */

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


  /* PROFILE TEXT */

  #profile .section__text__p1 {
    font-size: 1rem;
  }

  #profile .section__text__p2 {
    font-size: 1.3rem;
  }

  #profile .title {
    font-size: 2.5rem;
  }


  /* TEXT CONTAINERS */

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


  /* PROJECTS */

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


  /* ==================================================
     PROJECT PAGES
  ================================================== */

  .project-page section {
    height: auto;
    min-height: 0;

    margin: 0 5%;

    padding-top: 4rem;
    padding-bottom: 5rem;
  }


  .project-page #profile {
    display: flex;
    flex-direction: column;

    height: auto;
    min-height: 80vh;

    margin: 0 5%;

    padding-top: 4rem;
    padding-bottom: 5rem;

    gap: 2rem;
  }


  .project-page .section-container {
    display: block;
    height: auto;
  }


  /* PROJECT PAGE TITLE */

  .project-page .title {
    font-size: 2.5rem;
  }


  /* PROJECT PAGE NAVIGATION */

  .project-page .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }


  /* PROJECT PAGE CARDS */

  .project-page .about-containers {
    flex-direction: column;
    gap: 1.5rem;
  }


  .project-page .details-container {
    width: 100%;
    box-sizing: border-box;
  }


  /* PROJECT IMAGES */

  .project-page .project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }


  /* PROJECT VIDEO */

  .project-page video {
    width: 100%;
    max-height: 300px;
  }


  /* PROJECT PAGE ARROWS */

  .project-page .arrow {
    display: block;

    position: absolute;

    right: 0.5rem;
    bottom: 1rem;

    height: 1.75rem;
  }


  /* BACK BUTTON */

  .project-page .project-back {
    min-height: 0;

    padding-top: 2rem;
    padding-bottom: 2rem;
  }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media screen and (max-width: 400px) {

  #profile .section__text__p1 {
    font-size: 0.9rem;
  }

  #profile .section__text__p2 {
    font-size: 1.2rem;
  }

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


  .project-page .title {
    font-size: 2.2rem;
  }


  .project-page section {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }


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


  .project-page video {
    max-height: 250px;
  }

}