/**********************/
/*/BELOW 1344 PX (1344/16 PX = 84)*/
/* DESKTOPS */
/**********************/

@media (max-width: 84em) {
  .hero {
    padding: 0 4.8rem;
    gap: 8rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  .container {
    padding: 0 4.8rem;
  }

  .skills {
    list-style: none;
    display: flex;
    gap: 3rem;
  }
}

/**********************/
/*/BELOW 1200 PX (1200/16 PX = 75)*/
/* LANDSCAPE TABLETS */
/**********************/

@media (max-width: 75em) {
  html {
    /* 9px divided by 16 px = 0.5625 */
    font-size: 56.25%;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  .header {
    padding: 0 8rem;
  }

  .hero {
    gap: 6.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 3rem;
  }

  .step-number {
    font-size: 7.4rem;
  }
}

/**********************/
/*/BELOW 960 PX (960/16 PX = 60)*/
/* TABLETS */
/**********************/

@media (max-width: 60em) {
  html {
    /* 8PX / 16 PX = 0.5 */
    font-size: 50%;
  }

  .grid {
    column-gap: 6.4rem;
  }

  .container {
    padding: 0 8rem;
  }

  .section-hero {
    padding-top: 8rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-description {
    padding: 0 16rem;
    margin-bottom: 3.2rem;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }

  .hero-img {
    width: 60%;
  }

  .about-me-img {
    width: 100%;
  }
}

/**********************/
/*/BELOW 544 PX (544/16 PX = 34)*/
/* PHONES */
/**********************/

@media (max-width: 34em) {
  /* .grid--2-cols {
    grid-template-columns: 1fr;

  } */

  .grid--2-cols {
    display: flex;
    flex-direction: column;
  }

  .header {
    padding: 0 8rem;
  }

  /* ******** */
  /* MOBILE "HAMBURGER"  */

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .nav {
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    /* out of view - to the right exactly by its own width */
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.5s ease-in;

    /* NOTE: animation will not work if display set to none */
    /* 1) opacity not enough hide to hide nav. Still exists in the flow. Opacity is to hide it visually */
    opacity: 0;
    /* 2) make is inaccessible to mouse and keyboard (remove from flow) */
    pointer-events: none;
    /* hide it from screen readers */
    visibility: hidden;
  }

  .nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .nav-link:link,
  .nav-link:visited {
    /* increasing the font size */
    font-size: 3rem;
  }

  /* nav-open cannot apply if not on the page */
  .nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    /* back into view */
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    /* don't need animation for this, so display block works here */
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    /* don't need animation for this */
    display: none;
  }

  /* ****MOBILE NAV END**** */

  .grid {
    row-gap: 4.8rem;
  }

  .header {
    padding: 0 2.4rem;
  }

  .heading-secondary {
    margin-bottom: 4.8rem;
  }

  .hero-description {
    padding: 0 3.2rem;
  }

  .hero-img {
    width: 90%;
  }

  .step-number {
    font-size: 6.2rem;
  }

  .step-description {
    font-size: 2rem;
    margin-right: 0;
  }

  .step-img-box:nth-child(2) {
    grid-row: 1;
  }

  .step-img-box:nth-child(6) {
    grid-row: 5;
  }

  .step-img-box {
    transform: translateY(2.4rem);
  }

  .step-text-box,
  .step-img-box {
    width: 100%;
  }

  .quizzical {
    order: 1;
  }
  .quizzical-text {
    order: 2;
  }

  .tindog {
    order: 3;
  }
  .tindog-text {
    order: 4;
  }

  .retreat {
    order: 5;
  }
  .retreat-text {
    order: 6;
  }

  .color {
    order: 7;
  }
  .color-text {
    order: 8;
  }

  .word {
    order: 9;
  }
  .word-text {
    order: 10;
  }

  .section-contact {
    text-align: center;
  }

  .about-me-img {
    margin-bottom: 1.6rem;
    width: 100%;
  }

  .social-links {
    margin-top: 6.4rem;
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }

  /* helper class to left-align about-me-img */
  .align-left {
    justify-content: start;
  }

  /* center align cta text and email */
  .container-center {
    padding: 0;
  }

  .name {
    display: none;
  }
}

/* - Font size (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 */

/* - Spacing (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 /160  */
