/* rem and em NOT depend on html font-size in media queries Instead, 1rem = 1em = 16px */

/*****************************/
/* BELOW 1344px (Smaller desktops) */
/****************************/

@media (max-width: 84em) {
  .hero {
    max-width: 120rem;
  }

  /* .hero-text-box::after {
    width: 50rem;
    height: 50rem;

    background-position: calc(100% - 10px) 0;
  } */

  /* html {
     9px / 16px  
    font-size: 56.25%;
  }  */
}

/*****************************/
/* BELOW 1200px (Landscape Tablets) */
/****************************/
@media (max-width: 75em) {
  html {
    /* 9px / 16px   */
    font-size: 56.25%;
  }

  .main-nav-list {
    gap: 4rem;
  }

  .header {
    padding: 0 5rem;
  }

  .hero {
    gap: 12rem;
  }

  .grid {
    column-gap: 9rem;
    row-gap: 5rem;
  }

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

  .hero-description {
    font-size: 2.2rem;
  }

  .hero-text-box::after {
    background-position: calc(100% - 2px) 0;
    width: 40rem;
    height: 40rem;
  }

  .pro-title {
    font-size: 2.2rem;
    padding: 1.5rem;
  }

  .border {
    width: 22rem;
    height: 0.3rem;
    margin-bottom: 2rem;
    margin-left: 7rem;
  }

  .pro-description {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .section-technologies {
    padding: 7rem 0 6rem 0;
  }

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

  .additional-skills {
    font-size: 2.2rem;
  }

  .about-description {
    font-size: 3rem;
  }

  .footer-link:link,
  .footer-link:visited {
    font-size: 2.6rem;
  }

  .link {
    font-size: 2.6rem;
  }

  .social-links {
    gap: 2rem;
  }
}

/*****************************/
/* BELOW 944px (Tablets) */
/****************************/

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

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

  .hero-description {
    font-size: 2rem;
  }

  .hero-text-box::after {
    background-position: calc(100% - 2px) 0;
    width: 34rem;
    height: 34rem;
  }

  .section-project {
    padding: 5rem 0rem;
  }

  .project--h {
    padding-bottom: 6rem;
  }

  .pro-title {
    font-size: 2rem;
    padding: 1.2rem;
  }

  .border {
    width: 18rem;
    margin-left: 6rem;
  }

  .program-name {
    font-size: 2rem;
  }

  .ad--up {
    font-size: 1.6rem;
  }

  .bar-graph {
    height: 2rem;
    /* width: 76rem; */
  }

  .bar-graph-fill {
    width: 66%;
  }

  .bar-graph-half {
    width: 50%;
  }

  .bar-graph-quarter {
    width: 28%;
  }

  .grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-description {
    font-size: 2.6rem;
  }

  .social-links {
    justify-content: flex-start;
  }

  .social-links--header {
    justify-content: flex-end;
  }

  .grid-f {
    row-gap: 4rem;
  }

  /* MOBILE NAVIGATION */

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

  .main-nav {
    /* background-color: rgba(255, 255, 255, 0.6); */
    background-color: rgba(4, 10, 22, 0.019);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 98%;
    height: 99vh;
    transform: translateX(100%);

    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /* Hide navigation */
    /* Allow no transition at all */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;

    /* 2)Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* 3)Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
    z-index: 9998;
  }

  .nav-open .close-icon {
    display: block;
  }

  .nav-open .menu-icon {
    display: none;
  }

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

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}

/*****************************/
/* BELOW 704px (Smaller tablets) */
/****************************/

@media (max-width: 44em) {
  .hero-text-box::after {
    width: 30rem;
    height: 30rem;
  }

  .section-hero {
    padding: 8rem 0 4.8rem 0;
  }

  .btn:link,
  .btn:visited {
    padding: 1.5rem 3rem;
    margin-left: 5rem;
  }

  .pro-title {
    font-size: 1.8rem;
  }

  .border {
    width: 14rem;
    margin-left: 4rem;
  }

  .btn-short:link,
  .btn-short:visited {
    padding: 1.2rem 2rem;
    margin-left: 0;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .grid {
    column-gap: 6rem;
    row-gap: 4rem;
  }

  .section-technologies {
    padding: 0;
  }
  .techno {
    margin-bottom: 7rem;
  }

  .progress-content {
    padding-left: 1rem;
  }

  .program-neame {
    font-size: 2rem;
  }

  .ad--up {
    padding-right: 4rem;
  }

  .bar-graph-fill {
    width: 60%;
  }

  .bar-graph-half {
    width: 40%;
  }

  .bar-graph-quarter {
    width: 26%;
  }

  .bar-graph-content {
    margin-bottom: 3.5rem;
  }

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

  .additional-skills {
    font-size: 2rem;
  }

  .about-grid {
    column-gap: 7rem;
  }

  .section-about-me {
    padding: 8rem 0;
  }

  .footer-link:link,
  .footer-link:visited {
    font-size: 2rem;
  }
}

/*****************************/
/* BELOW 544px (Phones) */
/****************************/

@media (max-width: 34em) {
  .header {
    padding: 0 3rem;
  }

  .hero {
    padding: 0 4rem;

    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 0;
  }

  .hero-text-box::after {
    background-position: calc(100% - 2px) 0;
    right: -15rem;
  }

  .container {
    padding: 0 3rem;
  }

  .grid {
    row-gap: 9rem;
  }

  .grid--3-cols,
  .grid--2-cols {
    grid-template-columns: 1fr;
  }

  .project--startup {
    justify-self: start;
  }

  .border {
    margin-left: 9rem;
  }

  .container-t {
    padding: 0 5rem;
  }

  .program-neame {
    font-size: 1.6rem;
  }

  .ad--up {
    font-size: 1.4rem;
  }

  .bar-graph {
    height: 1.5rem;
  }

  .about-grid {
    row-gap: 9rem;
  }

  .grid-2-cols {
    grid-template-columns: 1fr;
  }

  .container-f {
    padding: 0 4rem;
  }
}
