@import "./globals.css";
@import "./header.css";
@import "./footer.css";

body {
  background-color: #f6f1e9;
  width: 100%;
}

/* Hero Banner */
.hero-banner__section {
  width: 100%;
  position: relative;
  background-color: var(--white);
}

.hero-banner__img {
  width: 100%;
  aspect-ratio: 19.2/9;
  object-fit: cover;
}

/* Case Site */
.case-site__section {
  position: relative;
  padding-top: 5.8vw;
  background-color: var(--white);
}

.case-site__container--base {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.case-site__content:first-child {
  padding-left: 5vw;
  width: 20vw;
  place-self: left;
}

.logo-case__img {
  width: 100%;
}

.case-site__content:last-child {
  padding-left: 1vw;
  width: 100%;
  padding-top: 1.5vw;
}

.case-site__content:last-child > p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--black);
  font-weight: var(--font-light);
}

/* Tablet */
.tablet__section {
  position: relative;
  padding-top: 11.4vw;
  background-color: var(--white);
}

.tablet__container--base {
  display: grid;
}

.tablet__container--base > img {
  justify-self: center;
  width: 80%;
}

/* Show Case */
.show-case-nz__section {
  display: grid;
  position: relative;
  padding-top: 10.4vw;
  background-color: var(--white);
}
.show-case-nz__section > video {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  justify-self: center;
  width: 50%;
}
.show-case__container--base {
  display: grid;
  grid-template-columns: 21.9% 1fr 26.5%;
  gap: 1vw;
}

.show-case__content:first-child > video {
  border-radius: 20px;
  width: 100%;
  height: 33vw;
  object-fit: cover;
}

.show-case__content:nth-child(2) > video {
  border-radius: 20px;
  width: 100%;
  height: 33vw;
  object-fit: cover;
}

.show-case__content:last-child > video {
  border-radius: 20px;
  width: 100%;
  height: 33vw;
  object-fit: cover;
}

.show-case__title {
  font-size: var(--text-base);
  font-weight: var(--light);
  color: var(--gray);
  padding-top: 1vw;
}

.show-case__sub-title {
  font-size: var(--text-lg);
  font-weight: var(--regular);
  color: var(--black);
  padding-top: 0.5vw;
}

/* Mockup */
.mockup__section {
  position: relative;
  padding-top: 5.1vw;
  background-color: var(--white);
}

.mockup__section-sec {
  position: relative;
  padding-top: 7.6vw;
}
.mockup__section-sec > img,
.mockup__container--base > img {
  width: 100%;
}

.mockup__container--base {
  padding-top: 7.8vw;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.mockup-description:last-child {
  width: 100%;
  padding-top: 0.5vw;
}
.mockup-description:last-child > h6 {
  margin-bottom: 5%;
  color: var(--black);
  line-height: 1.3;
  font-weight: var(--font-semibold);
  font-size: var(--text-2xl);
}
.mockup-description:last-child > img {
  width: 100%;
  height: 35.4vw;
}

.mockup-description:first-child {
  width: 80%;
  align-self: center;
}

.mockup-description:first-child > p {
  color: var(--black);
  line-height: 1.9;
  font-size: var(--text-base);
  font-weight: var(--font-light);
}

.mockup__container--base:last-child {
  padding-top: 6.5vw;
}

.mockup__background {
  background-color: var(--white);
  width: 100%;
  max-height: 41vw;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: -1;
}

/* image section */

.image__section {
  position: relative;
  padding-top: 0;
  background-color: var(--white);
}

.image-right__section {
  display: grid;
  padding: 6vw 6vw 6vw 6vw;
}

.image-left__section {
  width: 70vw;
  padding: 0 6vw;
}
.image-right__section > img,
.image-left__section > video {
  width: 100%;
}

#img-right-2 {
  width: 72vw;
}

#img-left-2 {
  width: 70vw;
}

/* carousel projects */

.our-works__swiper-container {
  margin-top: 3%;
  width: 100%;
  overflow: hidden;
}

.our-works__top-content {
  margin-top: 8%;
  display: flex;
  align-items: center;
}

.our-works__top-content > h2 {
  font-size: var(--text-2xl);
  color: var(--black);
  font-weight: var(--font-bold);
}

.our-works__top-content > p {
  font-size: var(--text-lg);
  color: var(--orange);
  margin-left: 1vw;
}

.our-works__carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1vw;
  overflow: hidden;
  aspect-ratio: 5.5/3.8;
}

.our-works__carousel-container--base {
  margin-bottom: 4%;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.swiper-pagination-bullet {
  width: 15px !important;
  height: 10px !important;
  display: inline-block !important;
  border-radius: 210px !important;
  background: #2a2b30 !important;
  opacity: 1 !important;
  margin-right: 0.5vw;
}
.swiper-pagination-bullet-active {
  width: 50px !important;
  height: 10px !important;
  background: #e73700 !important;
}

.our-works__carousel-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.our-works__carousel-title {
  font-size: clamp(16px, 1.5vw, 30px);
  color: var(--black);
  margin: 1.5625vw 0 auto;
  padding-bottom: 1vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.our-works__carousel-description {
  font-size: var(--text-base);
  font-weight: var(--font-light);
}

.our-works__carousel-outer-container--base {
  margin: 1.125vw auto 4.125vw auto;
  overflow: hidden;
}
.our-works__carousel-pagination-number > p > span:first-child {
  font-weight: var(--font-medium);
  color: var(--orange);
}

@media (max-width: 1024px) {
  .case-site__content:last-child > p {
    font-size: var(--text-sm);
  }
  .mockup-description:last-child > h6 {
    font-size: var(--text-xl);
  }
  .mockup-description:last-child > p {
    font-size: var(--text-sm);
  }

  /* carousel project */

  .swiper-pagination-bullet {
    width: 9px !important;
    height: 4px !important;
  }
  .swiper-pagination-bullet-active {
    width: 25px !important;
  }
  .our-works__carousel-title {
    font-size: var(--text-base);
  }
  .our-works__top-content > p {
    font-size: var(--text-lg);
    color: var(--orange);
    margin-left: 1vw;
  }
  .our-works__top-content > h2 {
    font-size: var(--text-xl);
  }
}

/* Mobile */
@media (max-width: 640px) {
  /* font-size */

  .mockup-description:last-child > h6 {
    font-size: clamp(16px, 4.4vw, 28px);
  }

  .case-site__content:first-child {
    padding-left: 0;
    width: 50vw;
    justify-self: center;
  }

  .show-case-newzealand__section {
    padding-top: 9vw;
  }
  .case-site__section {
    position: relative;
    padding-top: 18.8vw;
    background-color: var(--white);
  }

  /* Case Site */
  .case-site__container--base {
    grid-template-columns: auto;
  }

  .case-site__content:last-child {
    padding-left: 0;
    padding-top: 5.5vw;
    width: 100%;
  }

  .case-site__content:last-child > p,
  .mockup-description:first-child > p {
    font-size: var(--text-base);
  }

  /* Tablet */
  .tablet__section {
    padding-top: 19.4vw;
  }

  /* Show Case */
  .show-case__section {
    padding-top: 16.6vw;
  }

  /* Mockup */
  .mockup__section {
    padding-top: 0;
  }

  .mockup__container--full,
  .mockup__container--base {
    padding-top: 19.4vw;
    width: 83.3%;
    display: flex;
    flex-direction: column-reverse;
    margin: 0 auto;
  }

  .mockup-description:last-child {
    padding-left: 0;
    align-self: self-end;
    width: 80%;
    padding-top: 5.5vw;
  }

  .mockup-description:first-child > img {
    height: 86%;
    width: 80%;
    padding-top: 8vw;
  }

  .mockup-description:last-child > p {
    width: 93%;
  }

  .mockup__container--base:last-child {
    padding-top: 0;
  }

  .mockup__background {
    max-height: 48vw;
  }

  /* Icons */
  .icons__section {
    padding-top: 19.4vw;
  }
  .image-right__section {
    width: 90%;
    z-index: 1;
    padding-bottom: 10.4vw;
  }
  .image-left__section {
    width: 80%;
    padding: 0;
  }
  .image__section {
    padding-top: 5vw;
  }

  /* carousel project */

  .our-works__top-content {
    margin-top: 20%;
  }

  .our-works__top-content > h2,
  .our-works__top-content > p {
    font-size: var(--text-md);
  }
  .our-works__carousel-title {
    font-size: var(--text-md);
    margin-bottom: 2.7vw;
  }
  .our-works__carousel-outer-container--base {
    margin: 6.125vw auto 11.125vw auto;
    overflow: hidden;
    width: 100%;
  }
  .swiper-pagination-bullet {
    width: 7.5px !important;
    height: 5px !important;
    display: inline-block !important;
    border-radius: 210px !important;
    opacity: 1 !important;
  }
  .swiper-pagination-bullet-active {
    width: 25px !important;
    height: 5px !important;
    background: #e73700 !important;
  }

  .mockup-description:last-child > img {
    width: 100%;
    height: unset;
  }
  .mockup-description:first-child {
    padding-top: 8vw;
    padding-left: 0;
    width: 100%;
  }
  .tablet__container--base > img {
    justify-self: center;
    width: 100%;
  }
  .show-case-nz__section > video {
    justify-self: center;
    width: 95%;
  }
}
