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

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

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

  .hero-heading {
    width: 120rem;
  }

  .page-nav-list {
    gap: 2rem;
  }

  .page-nav-link {
    font-size: 2rem;
  }
}

/* ************************ */
/* BELOW 1200px (landscape tablets) */
/* ************************ */

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

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

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

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

  .header {
    padding: 0 3.2rem;
  }
}

/* ************************ */
/* BELOW 944px (tablets) */
/* ************************ */

@media (max-width: 59em) {
  html {
    font-size: 50%;
  }

  .logos {
    gap: 6.4rem;
  }

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

  .heading-primary {
    text-align: center;
  }

  .page-nav-list {
    justify-content: center;
  }

  .logos {
    flex-wrap: wrap;
  }

  .projects {
    grid-template-columns: 1fr;
    margin: 0 9.6rem 0 9.6rem;
  }

  .carousel-icon {
    width: 4.4rem;
    height: 4.4rem;
  }

  .btn--left,
  .btn--left-2,
  .btn--left-3,
  .btn--left-4 {
    left: 2.4rem;
    top: 26%;
  }

  .btn--right,
  .btn--right-2,
  .btn--right-3,
  .btn--right-4 {
    right: 2.4rem;
    top: 26%;
  }

  .card-content {
    padding: 50rem 6rem 6rem 6rem;
  }

  .card-title {
    font-size: 3.2rem;
    margin-bottom: 3.2rem;
  }

  .card-description {
    font-size: 2.4rem;
  }

  .card-tags {
    font-size: 1.8rem;
  }
}

/* ************************ */
/* BELOW 844px */
/* ************************ */

@media (max-width: 53em) {
  .projects {
    margin: 0 5.4rem;
  }

  .card-content {
    padding: 49rem 5rem 5rem 5rem;
  }
}

/* ************************ */
/* BELOW 790px */
/* ************************ */

@media (max-width: 49em) {
  .card-content {
    padding: 42rem 5rem 5rem 5rem;
  }
}

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

@media (max-width: 44em) {
  .social-logo-link {
    width: 4.4rem;
    height: 4.4rem;
  }

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

  .contact-form {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 40rem 5rem 5rem 5rem;
  }

  .card-title {
    font-size: 2.4rem;
    margin-bottom: 3.2rem;
  }

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

  .card-tags {
    font-size: 1.6rem;
  }

  .project-link {
    height: 4.4rem;
    width: 4.4rem;
  }
}

/* ************************ */
/* BELOW 660px */
/* ************************ */

@media (max-width: 41em) {
  .card-content {
    padding: 37rem 4rem 4rem 4rem;
  }
}

/* ************************ */
/* BELOW 610px */
/* ************************ */

@media (max-width: 38em) {
  .card-content {
    padding: 34rem 4rem 4rem 4rem;
  }
}

/* ************************ */
/* BELOW 576px */
/* ************************ */

@media (max-width: 36em) {
  .card-content {
    padding: 32rem 4rem 4rem 4rem;
  }

  .card-footer {
    flex-direction: column;
    gap: 3.2rem;
    align-items: baseline;
  }
}

/* ************************ */
/* BELOW 544px (phones) */
/* ************************ */

@media (max-width: 34em) {
  .heading-primary {
    font-size: 5.4rem;
    margin-bottom: 4rem;
  }

  .page-nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .page-nav-link {
    text-align: center;
    font-size: 3.2rem;
    width: 16rem;
  }

  .section-projects {
    padding: 8rem 0;
  }

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

  .projects {
    margin: auto;
  }

  .btn--left,
  .btn--left-2,
  .btn--left-3,
  .btn--left-4 {
    left: 2.4rem;
    top: 22%;
  }

  .btn--right,
  .btn--right-2,
  .btn--right-3,
  .btn--right-4 {
    right: 2.4rem;
    top: 22%;
  }

  .card-content {
    padding: 34rem 3rem 3rem 3rem;
  }

  .card-title {
    font-size: 2.4rem;
    margin-bottom: 2.4rem;
  }

  .card-description {
    font-size: 2rem;
    margin-bottom: 4rem;
    font-weight: 400;
  }

  .card-tags {
    font-size: 1.4rem;
  }

  .project-link {
    height: 4.4rem;
    width: 4.4rem;
  }
}

/* ************************ */
/* BELOW 496px */
/* ************************ */

@media (max-width: 31em) {
  .logos svg {
    height: 4.4rem;
  }

  .logos {
    font-size: 0.8rem;
    gap: 4.4rem;
  }

  .btn--left,
  .btn--left-2,
  .btn--left-3,
  .btn--left-4 {
    top: 20%;
  }

  .btn--right,
  .btn--right-2,
  .btn--right-3,
  .btn--right-4 {
    top: 20%;
  }
}

/* ************************ */
/* BELOW 450px */
/* ************************ */

@media (max-width: 29.75em) {
  .card-content {
    padding: 30rem 3rem 3rem 3rem;
  }
}

/* ************************ */
/* BELOW 450px */
/* ************************ */

@media (max-width: 28em) {
  .card-content {
    padding: 28rem 3rem 3rem 3rem;
  }
}

/* ************************ */
/* BELOW 400px */
/* ************************ */

@media (max-width: 25em) {
  .card-content {
    padding: 25rem 3rem 3rem 3rem;
  }

  .btn--left,
  .btn--left-2,
  .btn--left-3,
  .btn--left-4 {
    top: 15%;
  }

  .btn--right,
  .btn--right-2,
  .btn--right-3,
  .btn--right-4 {
    top: 15%;
  }
}
