/* ========== TABLET (<= 900px / 56.25em) ========== */
@media only screen and (max-width: 56.25em) {
  /* HERO */

  .section-hero {
    padding: 3.2rem 2.8rem 5.6rem 2.8rem;
  }

  .hero {
    padding: 0;
    gap: 2.4rem;
  }

  .home-hero-image {
    margin-bottom: 2rem;
    width: 100%;
  }
  .hero__heading {
    font-size: 3.2rem;
  }
  .home-hero__description {
    font-size: 1.6rem;
    margin-bottom: 2.4rem;
  }
  .hero__text-box {
    margin-left: 0;
  }

  /* OFFER */
  .offer__item {
    width: 100%;
    height: 33.1rem;
  }

  /* CASE STUDIES */
  .case-studies__heading {
    font-size: 5.2rem;
  }

  .case-study__image-home {
    margin-bottom: -4rem;
    max-width: 80%;
  }

  /* TESTIMONIAL */
  .testimonial__carousel-wrapper {
    height: 32.2rem;
  }
  .testimonial__carousel {
    width: 80%;
    height: 75%;
    padding: 2.4rem 6.2rem;
    gap: 6rem;
  }
  .testimonial__heading {
    font-size: 3.8rem;
  }

  .testimonial__author-job {
    padding-bottom: 3.2rem;
  }

  /* FOOTER */
  .grid--footer {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* ABOUT PAGE */
  .about-details__heading {
    font-size: 2rem;
  }
  .about-hero__description {
    font-size: 1.6rem;
  }

  /* Case studies page */
  .case-studies-hero__description {
    font-size: 1.8rem;
  }

  /* case study page */
  /* .case-study__gallery-right {
    margin-left: 7rem;
    width: 72%;
  } */
  .case-study__gallery-box--1 {
    width: 100%;
  }
  .case-study__project {
    padding-left: 3.2rem;
  }

  .case-study__type {
    font-size: 1.2rem;
  }

  .case-study__date {
    font-size: 1.2rem;
  }

  .case-study__metadata-link:link,
  .case-study__metadata-link:visited {
    font-size: 1.4rem;
  }

  /* PROJECTS */

  .project-wrapper {
    gap: 2rem;
    padding: 4rem 0rem !important;
  }

  .project__img-box {
    width: 60rem;
    height: 100vh;
  }

  .project__title {
    font-size: 2rem;
    margin-bottom: 4rem;
  }

  .project__underline {
    width: 60%;
  }

  .project__heading {
    font-size: 1.8rem;
  }

  .project__text {
    font-size: 1.4rem;
  }

  /* Insights page */

  .accordion {
    padding: 3rem;
  }

  .accordion__question {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  /* metadata page */
  .metadata-slide__title {
    font-size: 2.4rem;
  }

  .metadata-slide__separator {
    width: 90%;
  }

  /* ux journey page */
  .journey-section__step {
    flex-direction: column;
  }
}

/* ========== MOBILE (<= 600px / 37.5em) ========== */
@media only screen and (max-width: 37.5em) {
  /* HERO */

  .hero {
    grid-template-columns: 1fr; /* single column */
    grid-template-columns: column-reverse;
  }

  .hero__image-box {
    display: none; /* hide image */
  }

  .hero__text-box {
    width: 100%; /* full width */
    /* grid-row: 2; */
  }
  .home-hero-image {
    display: none;
    margin-bottom: -10rem;
  }
  .hero__heading {
    font-size: 3.2rem;
  }

  /* Case study home page */
  .case-study__image-home {
    display: none;
  }

  /* TESTIMONIAL */
  .testimonial__carousel {
    flex-direction: column;
    width: 90%;
    height: 100%;
    height: auto;
    padding: 2.4rem;
    gap: 2rem;
    text-align: center;
  }

  .testimonial__text {
    font-size: 1.2rem;
    padding-top: 3.2rem;
    padding-bottom: 1.8rem;
  }
  .testimonial__author-job {
    font-size: 1rem;
  }
  .testimonial__dots {
    /* padding-bottom: 2.4rem; */
    transform: translate(-50%, -50%) !important;
  }
  .testimonial__heading {
    font-size: 2.4rem;
  }

  .testimonial-img {
    height: 70px;
  }

  .testimonial__dots {
    padding-bottom: 1.2rem;
  }

  .testimonial {
    padding: 3.2rem 2rem !important;
  }

  /* FOOTER */
  .grid--footer {
    grid-template-columns: 1fr;
  }
  .footer__copyright {
    font-size: 0.8rem;
  }
  .footer__heading {
    margin-bottom: 1.6rem;
  }

  /* ABOUT PAGE */
  .about-section__hero {
    padding-top: 8.2rem;
  }
  .about-details__description {
    font-size: 1.8rem;
    margin-bottom: 0;
  }
  .about-details__line {
    display: none;
  }
  .about-hero__description {
    font-size: 1.6rem;
  }
  .about-hero-image {
    max-width: 114%;
  }
  .hero__text-box {
    padding-bottom: 2.4rem;
  }
  .about-tagline-section {
    font-size: 2rem;
    padding: 8rem 0;
  }
  .section-hero {
    padding: 3.2rem 1.8rem 4.6rem;
  }

  /* OFFER */
  .offer {
    padding-top: 5.2rem;
  }
  .offer__heading {
    font-size: 2.4rem;
    line-height: 1.4;
    margin: 7.2rem;
  }
  .offer__title {
    font-size: 1.8rem;
  }
  .offer__text {
    padding-bottom: 2.4rem;
  }

  /* CASE STUDIES */
  .case-studies-home {
    padding-top: 12.2rem !important;
  }
  .case-studies__heading {
    font-size: 4rem;
  }

  /* Case study page */
  .case-study__gallery-heading {
    font-size: 2rem;
  }

  /* PROJECTS */
  .projects__image-box,
  .projects__item {
    flex: 0 0 100%;
  }
  .project-wrapper {
    flex-direction: column;
    padding: 2rem 1.6rem !important;
    gap: 2rem;
  }

  .project__img-box {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
  }
  .project__text-box {
    padding: 2rem 0;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .project__title {
    font-size: 2rem;
    margin-bottom: 2.4rem;
  }

  .project__meta {
    display: flex;
    gap: 1.6rem;
    /* justify-content: center; */
    align-items: center;
    font-size: 1rem;
    color: var(--color-grey-ligh-1);
    margin-bottom: 1.6rem;
  }
  .project__meta {
    font-size: 1rem;
  }

  .project__underline {
    margin-bottom: 3.6rem;
  }

  .project__section-text {
    gap: 3.2rem;
  }

  .project__heading {
    font-size: 1.8rem;
  }

  .project__text {
    font-size: 1.4rem;
  }

  /* insight page */
  .accordion__heading {
    font-size: 4rem;
  }

  .accordion__question {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .accordion__content {
    width: 100%;
  }

  .accordian__question-box {
    width: 100%;
    gap: 1rem;
  }

  .accordion__answer {
    font-size: 1.4;
  }

  .accordion__toggle:checked + .accordian__question-box + .accordion__content {
    max-height: 82rem;
  }

  /* metadata page */
  .metadata-slide__title {
    font-size: 1.8rem;
  }
  .metadata-slide__tagline {
    font-size: 1.6rem;
  }

  /* ux journey page */

  .journey__heading {
    font-size: 3.8rem;

    margin-bottom: 8.2rem;
  }

  .journey-step__title {
    font-size: 2rem;
    margin-bottom: 4.2rem;
  }

  .footer__contact-nav-box {
    margin-left: -2rem;
  }

  .footer__nav-col {
    gap: 2.4rem;
  }
}

/* ========== EXTRA SMALL (<= 375px) ========== */
@media only screen and (max-width: 375px) {
  .hero {
    padding: 0;
  }
  .about-hero-image {
    display: none;
  }
  .testimonial__carousel {
    width: 85%;
    height: 100%;
    padding: 4.2rem 1.6rem;
    /* gap: 2rem; */
  }

  .testimonial__text {
    font-size: 1rem;
  }

  .offer__item {
    max-width: 100%;
  }

  .case-study__image-home {
    display: none;
  }

  /* case study page  */
  .case-study__metadata-link:link,
  .case-study__metadata-link:visited {
    font-size: 1.2rem;
    padding: 2.4rem 2.2rem;
  }
}
/* ========== PROJECTS PAGE (<= 1024px) ========== */
@media (max-width: 1024px) {
  .projects__image-box,
  .projects__item {
    flex: 0 0 calc(50% - 0.7rem);
  }
}

@media (min-width: 1801px) {
  .testimonials__wrapper {
    width: 72%;
    margin: 0 auto;
  }
}

/* Media Queries */

/* 900px breakpoint */
@media (max-width: 900px) {
  .testimonials {
    padding: 3rem 1.6rem 6rem 3rem;
  }

  .testimonial__img--box {
    width: 100%;
    margin-left: -2rem;
  }

  .testimonials__cards--box {
    margin-left: 0;
  }

  .testimonial__cards {
    flex-direction: column;
    position: relative;
    align-items: flex-end;
    top: 0;
    gap: 2rem;
  }

  .testimonial__card {
    width: 80%;
    padding: 3rem 2rem;
  }

  /* emojis */
  .like--emoji {
    top: 18%;
    left: 70%;
  }
  .heart--emoji {
    top: 45%;
    left: 20%;
  }
  .laugh--emoji {
    top: 15%;
    left: 5%;
  }
  .hushed--emoji {
    top: 80%;
    left: 95%;
  }
  .testimonials__cta {
    position: relative;
    display: block;
    margin: 2rem auto 0;
    width: fit-content;
    padding: 2rem 3rem;
    font-size: 1.6rem;
    text-align: center;
  }
}

/* 600px breakpoint */
@media (max-width: 600px) {
  .testimonials {
    padding: 2rem 2rem 4rem 2rem;
  }

  .testimonials__wrapper {
    flex-direction: column;
    gap: 5.2rem;
  }
  .emoji {
    width: 5rem;
  }

  .like--emoji {
    top: 24%;
    left: 80%;
  }

  .heart--emoji {
    top: 50%;
    left: 27%;
  }

  .laugh--emoji {
    top: 25%;
    left: -2%;
  }

  .hushed--emoji {
    top: 77%;
    left: 98%;
  }

  .testimonial__img--box {
    width: 80%;
    margin-left: 0;
  }

  .testimonial__cards {
    gap: 3rem;
    align-items: center;
  }

  .testimonial__card {
    padding: 2.6rem 2rem;
  }

  .testimonials__cta {
    position: static;
    margin: 2rem auto 0;
    padding: 1.8rem 2.8rem;
    font-size: 1.4rem;
  }
}

/* 375px breakpoint */
@media (max-width: 375px) {
  .testimonials {
    padding: 1.5rem 1.5rem 3rem 1.5rem;
  }

  .testimonials__wrapper {
    flex-direction: column;
  }

  .testimonial__img--box {
    width: 85%;
    margin-left: 0;
  }

  .testimonial__cards {
    flex-direction: column;
    gap: 1rem;
  }

  .testimonial__client--img {
    width: 8rem;
    height: 8rem;
  }

  /* emojis */

  .emoji {
    width: 3rem;
  }
}

/* Tablet screens (≤ 992px) */
@media (max-width: 992px) {
  .projects__info-title {
    font-size: 3rem; /* smaller title */
  }

  .projects__info-tag {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* Mobile screens (≤ 600px) */
@media (max-width: 600px) {
  .projects__info-title {
    font-size: 2.2rem;
  }

  .projects__info-tag {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

@media (max-width: 400px) {
  .projects__info-title {
    font-size: 1.8rem;
  }

  .projects__info-tag {
    font-size: 0.8rem;
    padding: 0.6rem;
  }
}

/* between 1200px and 900px */
@media (max-width: 1200px) and (min-width: 901px) {
  .testimonial__cards {
    position: relative;
    top: 0;
    gap: 1.6rem;
  }

  .testimonial__card {
    width: 48%;
    padding: 3rem 2.4rem;
  }

  .testimonials__cta {
    position: relative;
    display: block;
    margin: 2rem 0rem 0rem 15rem;
    width: fit-content;
    padding: 2.2rem 3.6rem;
    font-size: 1.6rem;
    text-align: center;
  }
}
