/* **************************************** */
/*  Below 1344px screen (smaller desktop)*/
/* **************************************** */

@media (max-width: 84em) {
}

/* **************************************** */
/*  Below 1200x screen (landscape Tablets)*/
/* **************************************** */

@media (max-width: 75em) {
  html {
    /* 9px/16px = 0.5625 */
    font-size: 56.25%;
  }

  .grid-projects {
    grid-template-columns: 1fr;
    row-gap: 6.4rem;
  }
  .odd-project {
    order: -1;
  }
}

/* **************************************** */
/*  Below 1040px screen (Tablets)*/
/* **************************************** */
@media (max-width: 65em) {
  .contact-grid {
    grid-template-columns: 1fr;
    row-gap: 6.4rem;
  }
  .home-grid {
    grid-template-columns: 1fr;
    row-gap: 8rem;
  }
  .profile-img {
    max-width: 50%;
  }
  .hero-heading {
    text-align: center;
  }
  .home-content {
    text-align: center;
    max-width: 60rem;
    align-self: center;
    margin: 6.4rem auto;
  }
  /* .hero-text-box {
    align-items: center;
  } */
  .social-links {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    row-gap: 6.4rem;
  }
  .hero-text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-text-box .content,
  .hero-text-box .hero-subtitle {
    text-align: center;
  }
}

/* **************************************** */
/*  Below 944px screen (Tablets)*/
/* **************************************** */
@media (max-width: 59em) {
  .btn-mobile-nav {
    display: block;
    z-index: 999;
    background-color: none;
  }

  .main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.97);

    transform: translateX(100%);
    transition: all 0.5s ease-in;

    opacity: 0;
    /* pointer-events: none; */
    visibility: hidden;
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;

    color: #333;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;

    color: #333;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
  }
  .links {
    flex-direction: column;
    align-items: center;
    gap: 4.8rem;
  }

  /* .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  } */
  .nav-link {
    font-size: 2.5rem;
  }

  .about-box {
    grid-template-columns: 1fr 1fr;
    row-gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* **************************************** */
/*  Below 704px screen (smaller Tablets)*/
/* **************************************** */

@media (max-width: 44em) {
  .hero-heading {
    font-size: 5.2rem;
  }
  /* .skill-icon {
    height: 4.4rem;
    width: 4.4rem;
    opacity: 0.6;
  } */
  .skill-wrap {
    flex: 1 1 calc(30% - 10px);
  }
  .footer-wrap {
    display: flex;
    flex-direction: column;
    row-gap: 3.2rem;
    align-items: center;
  }

  .about-box {
    grid-template-columns: 1fr;
  }
  .about-card {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .about-card .content {
    text-align: center;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .projects-nav-box {
    grid-template-columns: repeat(2, 16rem);
    row-gap: 2rem;
  }
}
/* **************************************** */
/*  Below 544px screen (phones)*/
/* **************************************** */
@media (max-width: 34em) {
  .profile-img {
    max-width: 60%;
  }
  .skills {
    display: flex;
    justify-content: space-around;
  }
  .modal img {
    width: 35rem;
  }

  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
    z-index: 10000;
  }
}
