@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%;
  object-fit: cover;
  aspect-ratio: 19.2 / 9;
}

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

.case-site__container--base {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
}

.case-site__content:first-child {
  width: 24.8vw;
  place-self: center;
}

.case-site__img {
  width: 100%;
}

.case-site__content:last-child {
  align-self: center;
  width: 100%;
}

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

/* Environment */
.environment__section {
  position: relative;
  padding-top: 14.3vw;
  background-color: var(--white);
}

.environment__container--base {
  display: grid;
}

.environment__img {
  place-self: center;
  width: 45.9vw;
}

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

.tablet__container--base {
  display: grid;
}

.tablet__container--base > img {
  justify-self: center;
  width: 59.6vw;
}

/* Branding */
.branding__section {
  position: relative;
  padding-top: 7.8vw;
  background-color: var(--white);
}

.branding__container--base {
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 1.5vw;
}

.branding__content > img {
  width: 100%;
  height: 35.8vw;
}

/* Identity */
.identity__section {
  position: relative;
  padding-top: 5.2vw;
  background-color: var(--white);
}

.identity__container--base {
  display: grid;
  grid-template-columns: 1fr 56.6%;
  gap: 0.8vw;
}

.identity__content:first-child {
  width: 34.4vw;
  place-self: center;
}

.identity__content:first-child > p:first-child {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--black);
  width: 80%;
  line-height: 1;
}

.identity__content:first-child > p:last-child {
  font-size: var(--text-base);
  font-weight: var(--light);
  color: var(--gray);
  line-height: 1.5;
  padding-top: 1.5vw;
}

.identity__content:last-child {
  width: 100%;
}

.identity__content:last-child > img {
  width: 100%;
}

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

.mockup__container--base > img {
  width: 100%;
}

.mockup__contents {
  display: grid;
  grid-template-columns: 24% 1fr 26.5%;
  gap: 1vw;
  padding-top: 7.8vw;
}

.mockup__content > img {
  width: 100%;
  height: 32vw;
}

.mockup__container--base > img:last-child {
  padding-top: 7.8vw;
}

.mockup__container--full {
  margin-top: 7.8vw;
  display: flex;
  position: relative;
  cursor: pointer;
}

.mockup__container--full > img {
  width: 100%;
  object-fit: cover;
}
.mockup__container--full .mockup__slider-front {
  width: 100vw;
  height: 100%;
  animation: infinite alternate 1s breath;
}
.mockup__slider-container {
  position: relative;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  /* border-right: 2px solid white; */
  /* transition: width 200ms ease-in-out; */
}
.mockup__slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.mockup__slider-control-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transform: translateX(-50%);
}

.mockup__slider-control {
  width: 4.5vw;
  aspect-ratio: 1/1;
}
.mockup__slider-line {
  height: 100%;
  width: 2px;
  background-color: white;
}

@keyframes breath {
  0% {
    opacity: 70%;
  }
  100% {
    opacity: 100%;
  }
}

/* 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);
}

/* Tablet */
@media (max-width: 1024px) {
  /* Case Studies */
  .case-site__content:last-child > p {
    font-size: var(--text-sm);
  }

  /* Identity */
  .identity__content:first-child > p:first-child {
    font-size: var(--text-xl);
    line-height: 1.5;
  }

  .identity__content:first-child > p:last-child {
    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) {
  /* Case Site */
  .case-site__section {
    padding-top: 19.4vw;
  }

  .case-site__container--base {
    grid-template-columns: auto;
    padding-left: 0;
  }

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

  .case-site__content:first-child {
    width: 53vw;
    place-self: center;
  }

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

  /* Environment */
  .environment__section {
    padding-top: 19.4vw;
  }
  .environment__img {
    width: 100%;
  }

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

  .tablet__container--base > img {
    width: 100%;
  }

  /* Branding */

  .branding__section {
    padding-top: 19.4vw;
  }

  .branding__container--base {
    width: 100%;
    grid-template-columns: auto;
    gap: 0;
  }

  .branding__content > img {
    height: 100%;
  }

  .branding__content:first-child {
    width: 91.6vw;
  }

  .branding__content:last-child {
    width: 62.5vw;
    place-self: end;
    padding-top: 5.5vw;
  }

  /* Identity */
  .identity__section {
    padding-top: 19.4vw;
  }

  .identity__container--base {
    grid-template-columns: auto;
    gap: 0;
  }

  .identity__content:first-child {
    padding-left: 0;
    width: 100%;
    margin: 0 auto;
  }

  .identity__content:first-child > p:first-child {
    width: 100%;
    font-size: var(--text-lg);
    line-height: 1.5;
  }

  .identity__content:first-child > p:last-child {
    font-size: var(--text-base);
    padding-top: 5.5vw;
  }

  .identity__content:last-child {
    width: 100%;
    padding-top: 11.1vw;
  }

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

  .mockup__container--base {
    width: 100%;
  }

  .mockup__contents {
    padding-top: 11.1vw;
    grid-template-columns: auto;
    gap: 5.5vw;
  }

  .mockup__content > img {
    height: 100%;
  }

  .mockup__content:first-child > img {
    width: 62.5vw;
  }

  .mockup__content:nth-child(2) {
    display: grid;
  }

  .mockup__content:nth-child(2) > img {
    width: 85.5vw;
    place-self: end;
  }

  .mockup__content:last-child > img {
    width: 62.5vw;
  }

  .mockup__container--base > img:last-child {
    padding-top: 19.4vw;
  }

  .mockup__container--full {
    margin-top: 19.4vw;
  }

  /* 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;
  }
}
