/*****Below 1344px sm laptops *****/
@media (max-width: 84em) {
  .hero.container {
    max-width: 120rem;
  }
  .heading-primary,
  .heading-primary-info {
    font-size: 7rem;
  }
  .hero-description {
    font-size: 1.6rem;
  }
  .hero.intro {
    font-size: 1.4rem;
  }
  .btn-cta:link,
  .btn-cta:visited {
    font-size: 1.4rem;
    padding: 1.6rem 3.4rem;
  }
}
/*****Below 1200px landscape tab *****/
@media (max-width: 75em) {
  .heading-primary,
  .heading-primary-info {
    font-size: 6rem;
  }
  .heading-primary {
    margin-bottom: 0;
  }
}
/*****Below 1024px  tablet *****/
@media (max-width: 64em) {
  .about-me-img {
    width: 100%;
  }
  .about-box {
    column-gap: 4rem;
  }
  .nav-list {
    gap: 5rem;
  }
  .project-number {
    font-size: 6rem;
  }
  .project-title {
    font-size: 3rem;
  }
}
/*****Below 913px tablet *****/
@media (max-width: 57em) {
  section:not(:first-child) {
    margin: 3rem 0;
  }
  .container {
    padding: 4rem 7rem;
  }
  .logo {
    width: 4rem;
    margin: 0.8rem 0;
  }
  .hero.container {
    align-items: center;
  }
  .hero-text-box {
    align-items: center;
    text-align: center;
  }
  .heading-primary-info {
    font-size: 5.6rem;
  }
  .hero-description {
    width: 100%;
    color: #111;
  }
  .about-box {
    grid-template-columns: 1fr;
    row-gap: 5.6rem;
  }
  .about-me-text {
    justify-self: center;
  }
  .hero-intro {
    margin-top: 2.8rem;
  }
  .secondary-heading {
    text-align: center;
    padding-bottom: 2.3rem;
    border-bottom: 1px solid #ddd;
  }
  .about-me-img {
    width: 70%;
    justify-self: center;
  }
  header {
    padding: 0 3.2rem;
  }
  .btn-mobile-nav {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    background-color: #e2e2e28a;
    opacity: 0;
    backdrop-filter: blur(4px);
    pointer-events: none;
    visibility: hidden;
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
  }
  .nav-list {
    text-align: right;
    flex-direction: column;
    background-color: #f6f2ffe8;
    height: 100vh;
    justify-content: center;
    padding: 0 3rem 0 6rem;
    box-shadow: -1px 0 10px #dddddd;
    border-radius: 2rem 0 0 2rem;
    -webkit-border-radius: 2rem 0 0 2rem;
    -moz-border-radius: 2rem 0 0 2rem;
    -ms-border-radius: 2rem 0 0 2rem;
    -o-border-radius: 2rem 0 0 2rem;
  }
  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0%);
    -webkit-transform: translateX(0%);
    -moz-transform: translateX(0%);
    -ms-transform: translateX(0%);
    -o-transform: translateX(0%);
  }

  .nav-link:link,
  .nav-link:visited {
    font-size: 2.5rem;
  }
  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }
  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }
  .project-number {
    font-size: 5rem;
  }
  .project-title {
    font-size: 2.5rem;
  }
  .project-description {
    line-height: 2.8rem;
  }
  .project-title {
    margin-bottom: 2.2rem;
  }
  .projects-box {
    gap: 4rem;
  }
}
/*****Below 788px tablet *****/
@media (max-width: 50em) {
  html {
    font-size: 60%;
  }
  .hero-stack-logo {
    width: 3rem;
  }
  .hero-stack div {
    gap: 4rem;
  }
  .copyright {
    text-align: left;
  }
}
/*****Below 760px tablet *****/
@media (max-width: 48em) {
  html {
    font-size: 50%;
  }
  .hero-text-box {
    align-items: flex-start;
    text-align: left;
  }
  .projects-box {
    grid-template-columns: 1fr;
    justify-content: center;
    row-gap: 1rem;
  }
  .project-img-box:nth-child(4) {
    grid-row: 3;
  }
  .project-content {
    margin-bottom: 7rem;
  }
  .contact-me-box {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .contact-me-img {
    height: 25rem;
    background-position: center;
    grid-row: 1;
    background-size: 55%;
  }
  .hero-intro {
    margin-left: 0.6rem;
    margin-bottom: 4rem;
  }
  footer .container {
    flex-direction: column;
    row-gap: 3rem;
  }
}
/*****Below 480px tablet *****/
@media (max-width: 30em) {
  .hero-text-box {
    align-items: center;
    text-align: center;
  }
  .hero-intro {
    margin-bottom: 4rem;
    text-decoration: underline;
  }
  .heading-primary {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 500;
  }
  .heading-primary-info {
    font-size: 3.4rem;
    font-weight: 400;
  }
  .hero-description {
    font-size: 1.8rem;
    margin-bottom: 5rem;
  }
  .hero.container {
    padding: 7rem 2rem 0;
    row-gap: 2rem;
  }
  .section-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .hero-img {
    display: flex;
    justify-content: center;
  }
  .hero-img img {
    width: 85%;
    align-content: center;
  }
  section {
    margin-top: 0 !important ;
    margin-bottom: 0 !important;
  }
  .container {
    padding: 7rem 3rem 0;
  }
  .secondary-heading {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 4rem;
  }

  footer p {
    width: 70%;
  }
  .socials {
    align-items: flex-start;
  }
  .socials ul {
    grid-template-columns: 1fr;
  }
  .socials li:last-child {
    margin-bottom: 2rem;
  }

  .project-content:last-child {
    margin-bottom: 2rem;
  }
  footer {
    padding: 3rem 0;
  }
  /* .perspective {
    perspective: 100px;
  } */
  .btn-cta:link,
  .btn-cta:visited {
    /* display: block; */
    font-size: 1.4rem;
    padding: 1.2rem 1.8rem;
    margin-bottom: 5rem;
  }
  .form {
    margin-bottom: 8rem;
  }
}
