/* Tablet and below */
@media screen and (max-width: 1200px) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }

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

  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

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

  /* removed display:block; (it was breaking centering on mobile) */
  .arrow {
    display: none;
  }

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

  section {
    margin: 0 5%;
  }

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

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

/* Mobile only */
@media screen and (max-width: 600px) {
   .section__pic-container, 
  .profile-img {
    display: none;
  }

  #contact,
  footer {
    height: 40vh;
  }

  #profile {
    display: flex;  
       /* force flex to override tablet rules */
    flex-direction: column;
    justify-content: center;       /* vertical center */
    align-items: center;           /* horizontal center */
    text-align: center;
     height: 80vh;   
  }

  article {
    font-size: 1rem;
  }

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

  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    margin-top: 2rem;
  }

  .section__pic-container2 {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
  }

  .section__pic-container2 img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
  }

  .about-details-container {
    width: 90%;
    margin: 0 auto;
  }
  .details-container p{
    font-size: 16px;
  }
  .about-container,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }

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

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

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

  .logo {
    font-size: 1.5rem;
  }

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

  .section__text {
    margin-top: 0;
    font-size: 50px; 
  }

  .section__text__p1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
  }

  .section__text__p2 {
    font-size: 1.2rem;
    font-weight: 500;
  }

  .title {
    font-size: 1.8rem;
    margin: 0.3rem 0;
  }

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

  .profile-img {
    width: 200px;
    margin-bottom: 1rem;
  }

  .section__text h1 {
    font-size: 1.8rem;
  }

  .section__text p {
    font-size: 1.5rem;
  }

  .section__text__p2 {
    font-size: 1.5rem;
  }

}
