@import url("https://fonts.googleapis.com/css2?family=Manrope&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --transition-stroke-1: #d8d9d7;
  --transition-stroke-2: #00b7b2;
}

.transition-svg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  visibility: hidden;
}

.transition-svg svg {
  width: 100%;
  height: 100%;
}

.transition-svg path {
  stroke-dashoffset: 99999;
  stroke-dasharray: 99999;
}

html.transition-pending .transition-svg {
  visibility: visible !important;
}

html.transition-pending .transition-svg path {
  stroke-dashoffset: 0 !important;
  stroke-width: 700 !important;
}

/* Navbar*/
#main-nav.scrolled {
  background: #2b2b2b;
  backdrop-filter: blur(5px);
}
#main-nav.scrolled .nav-link {
  color: white;
}
#main-nav.scrolled .nav-link:hover {
  color: #00b7b2;
}

.nav-link.active-link {
  color: #00b7b2;
}

#main-nav.scrolled .nav-link.active-link {
  color: #00b7b2;
}

ion-icon#menu-icon {
  transition: all 0.3s ease;
  transform-origin: center;
}

ion-icon#menu-icon.active {
  transform: rotate(180deg);
}
.mobile-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-100%);
  opacity: 0;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* Hero Section */

/* Case Study */

#main {
  position: relative;
  /* width: 100%;
  height: 100%; */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.slider-wrapper {
  position: relative;
  height: 800px;
  /* Adjust height as needed */
  overflow: hidden;
}

.SmallOverlay {
  opacity: 0;
  border-radius: 5px;
}

/*button*/
.button {
  isolation: isolate;
  mix-blend-mode: normal !important;
}

.subtext {
  opacity: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: white;
  text-align: center;
  font-family: "Manrope", sans-serif;
}

.item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 45%;
  transform: translateY(-10%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 5px;
  /* box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset; */
  transition: transform 0.9s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;

  &:nth-child(1),
  &:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;

    .overlay {
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
    }
  }

  &:nth-child(3) {
    left: 50%;

    .SmallOverlay {
      width: 100%;
      height: 100%;

      opacity: 1;
      background: #ffffff;
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0.758) 90%
      );
    }

    .subtext {
      opacity: 1;
      margin-top: -35px;
    }
  }

  &:nth-child(4) {
    left: calc(50% + 220px);

    .SmallOverlay {
      width: 100%;
      height: 100%;

      opacity: 1;
      background: #ffffff;
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0.758) 90%
      );
    }

    .subtext {
      opacity: 1;
      margin-top: -35px;
    }
  }

  &:nth-child(5) {
    left: calc(50% + 440px);

    .SmallOverlay {
      width: 100%;
      height: 100%;

      opacity: 1;
      background: #ffffff;
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0.758) 90%
      );
    }

    .subtext {
      opacity: 1;
      margin-top: -35px;
    }
  }

  &:nth-child(6) {
    left: calc(50% + 660px);
    opacity: 0;
  }
}

.content {
  width: min(50vw, 500px);
  position: absolute;
  top: 57%;
  left: 8%;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica, sans-serif;
  color: white;
  /* text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5); */
  opacity: 0;
  display: none;
  font-family: "Manrope", sans-serif;

  & .title {
    font-weight: 900;
    font-size: 3.5rem;
    font-family: "Manrope", sans-serif;
  }

  & .description {
    line-height: 1.5;
    margin: 1rem 0 1.5rem;
    font-size: 1rem;
    font-weight: normal;
    font-family: "Manrope", sans-serif;
  }

  & button {
    width: fit-content;
    background-color: #00b7b2;
    color: white;

    border-radius: 0.25rem;
    padding: 0.9rem 2rem;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 2rem;
  }
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 1s ease-in-out 0.5s forwards;
  /* related to content ha */
}

@keyframes show {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav {
  position: absolute;
  bottom: 2rem;
  left: 71%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;

  display: flex;
  flex-direction: row;
  align-items: center;

  & .btn {
    background-color: rgba(255, 255, 255, 0);
    color: rgba(255, 255, 255, 1);
    border: 1.5px solid white;
    margin: 0 0.1rem;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;

    &:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }
  }
}

.line {
  width: 30rem;
  height: 0.8px;

  background: #00b7b2;
  margin-inline: 10px;
}

#countStatus {
  font-weight: 600;
  font-size: 3.5rem;
  color: white;
}

@media (width > 900px) and (width < 1170px) {
  .content {
    width: 40%;
  }
  .line {
    width: 19rem;
  }
  .nav {
    left: 74%;
  }
}

@media (width > 640px) and (width < 900px) {
  .content {
    width: 40%;

    & .title {
      font-size: 2rem;
    }

    & .description {
      font-size: 1rem;
    }

    & button {
      font-size: 0.7rem;
    }
  }

  .item {
    width: 145px;
    height: 200px;

    &:nth-child(3) {
      left: 50%;
    }

    &:nth-child(4) {
      left: calc(50% + 170px);
    }

    &:nth-child(5) {
      left: calc(50% + 340px);
    }

    &:nth-child(6) {
      left: calc(50% + 510px);
      opacity: 0;
    }
  }
  .nav {
    left: 50%;

    & .btn {
      padding: 0.8rem;
    }
  }
  .line {
    margin-inline: 10px;
  }
  #countStatus {
    font-size: 2rem;
  }
  .subtext {
    font-size: 0.85rem;
  }
}

@media (width < 640px) {
  .slider-wrapper {
    height: 650px;
  }
  .content {
    top: 45%;
    width: 80%;
    left: 7%;
    & .title {
      font-size: 2rem;
    }

    & .description {
      font-size: 1rem;
    }

    & button {
      font-size: 0.7rem;
      padding: 0.6rem 1.5rem;
    }
  }

  .item {
    width: 120px;
    height: 100px;
    top: 80%;
    bottom: 0;
    transform: translateX(-20%);
    /* Optional, can be omitted */

    &:nth-child(2) {
      .overlay {
        background-color: rgba(0, 0, 0, 0.6);
      }
    }

    &:nth-child(3) {
      left: 50%;
      .subtext {
        margin-top: -20px;
      }
    }

    &:nth-child(4) {
      left: calc(50% + 140px);
      .subtext {
        margin-top: -20px;
      }
    }

    &:nth-child(5) {
      left: calc(50% + 280px);
      .subtext {
        margin-top: -20px;
      }
    }

    &:nth-child(6) {
      left: calc(50% + 420px);
      opacity: 0;
    }
  }

  .nav {
    left: 7%;
    transform: translateX(0%);
    justify-content: center;
    z-index: 5;
    padding: 2px;

    & .btn {
      padding: 0.9rem;
    }
  }

  .line {
    display: none;
    width: 58%;

    margin-inline: 10px;
  }

  #countStatus {
    display: none;
    font-size: 2rem;
  }
  .subtext {
    font-size: 0.75rem;
  }
}

/* Parllax */

.container {
  width: 1250px !important;
  margin: 0 auto;
}

.list {
  padding: 200px 50px 50px;
  /* background: #fff; */
}
/* .list__item:nth-child(even) .card__aside {
  background: #ddd;
} */

.card {
  overflow: hidden;
  height: 70vh;
  position: relative;
  width: 100%;
  /* border:2px solid blue; */
}
.card__content {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 70vh;
  /* border:2px solid green; */
}
.card__inner {
  /* display: flex;
  flex-direction: column;
  justify-content: center; */
  /* transform: translateY(-35vh); */
  /* border:2px solid red; */
  height: 70vh;
}
.card__aside {
  /* float: left; */
  position: absolute;
  right: 0;
  top: 0;
  width: 49%;
  padding: 10px;
  height: 70vh;
  display: flex;
  align-items: center;
  /* border:2px solid orange; */
}
.card__aside img {
  display: block;
  max-width: 100%;
  margin-top: -10px;
}
.card__title {
  font-size: 36px;
  margin-bottom: 20px;
}
.card__text {
  color: #ccc;
}
