/* ===================================
   LARGE LAPTOPS / SMALL DESKTOPS
   =================================== */

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

  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  section {
    margin: 0 5%;
  }

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

  #profile {
    flex-direction: column;
    height: auto;
    gap: 3rem;
  }

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

  .section__pic-container img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
  }

  .about-containers {
    flex-wrap: wrap;
    justify-content: center;
  }

  .details-container {
    width: 45%;
  }

}


/* ===================================
   TABLETS
   =================================== */

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

  section {
    margin: 0 3%;
    padding: 3rem 4%;
  }

  .title {
    font-size: 2.4rem;
  }

  .section__text__p2 {
    font-size: 1.4rem;
  }

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

  .details-container {
    width: 100%;
  }

  .about-containers {
    flex-direction: column;
    align-items: center;
  }

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

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

  #about .section-container {
    flex-direction: column;
    text-align: center;
  }

  #about .section__pic-container {
    margin-bottom: 1.5rem;
  }

}


/* ===================================
   LARGE PHONES
   =================================== */

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

  nav {
    padding: 1rem 4%;
  }

  section {
    margin: 0 1rem;
    padding: 3rem 4%;
  }

  #profile {
    flex-direction: column;
    height: auto;
    gap: 2rem;
    text-align: center;
  }

  .section__pic-container {
    width: 220px;
    height: auto;
  }

  .section__pic-container img {
    width: 100%;
    height: auto;
  }

  .typing-text {
    font-size: 2rem;
    width: auto;
  }

  .title {
    font-size: 2rem;
  }

  .btn {
    width: 200px;
  }

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

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

  .contact-info-upper-container {
    flex-direction: column;
    gap: 1rem;
  }

  #contact {
    height: auto;
  }

  footer {
    height: auto;
    padding-bottom: 2rem;
  }

}

@media screen and (max-height:500px) {

  nav {
    padding: 0.7rem 4%;
  }

  .nav-links {
    gap: 1rem;
    font-size: 1rem;
  }

  #profile {
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  #contact {
    height: auto;
    padding-bottom: 2rem;
  }

  footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

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

}


/* ===================================
   SMALL PHONES
   =================================== */

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

  section {
    padding: 2.5rem 1rem;
  }

  .title {
    font-size: 1.7rem;
  }

  .section__text__p1 {
    font-size: 0.9rem;
  }

  .section__text__p2 {
    font-size: 1.1rem;
  }

  .typing-text {
    font-size: 1.6rem;
  }

  .section__pic-container {
    width: 200px;
  }

  .btn {
    width: 180px;
    font-size: 0.9rem;
  }

  .project-img {
    height: 180px;
    object-fit: cover;
  }

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

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

  #contact {
    padding-bottom: 3rem;
  }

  footer {
    padding-bottom: 2rem;
  }

  footer .nav-links{
    flex-wrap:wrap;
    justify-content:center;
    gap:0.8rem;
    font-size:0.95rem;
  }

}