/** @format */

html,
body {
  min-height: 100dvh !important;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Main Content */
canvas {
  position: absolute;
  top: 0;
  left: 0;
  outline: none;
}

.experience {
/* Subtract the height of the navbar to prevent text overflow */
  height: calc(100dvh - 160px) !important;
  min-width: 200px;
  min-height: 500px;
  top: 0px;
  margin: 0px;
  padding: 0px;
  background-color: rgb(54, 84, 99);
}

.experience-wrapper {
  position: relative;
  height: 100dvh !important;
  width: 100%;
}

.text-overlay {
  position: relative;
/* Subtract the height of the navbar to prevent text overflow */
  height: calc(100dvh - 160px) !important;  
  min-width: 200px;
  min-height: 500px;
}

.wrapper h1 {
  font-weight: 700;
  /* font-size: 72px ; */
  font-size: clamp(36px, 6vw, 72px);
  text-transform: uppercase;
  text-align: center;
  color: white;
}

.wrapper h2 {
  font-weight: 700;
  /* font-size: 48px; */
  font-size: clamp(24px, 6vw, 48px);
  text-transform: uppercase;
  text-align: center;
  line-height: 110%;
  letter-spacing: -0.48px;
  width: 100% !important;
  color: white;
}

.offer h2 {
  font-weight: 700;
  /* font-size: 48px; */
  font-size: clamp(24px, 6vw, 48px);
  text-transform: uppercase;
  text-align: center;
  line-height: 110%;
  letter-spacing: -0.48px;
  width: 100% !important;
  color: white;
}

.wrapper p {
  margin: 0px;
  font-weight: 400;
  /* font-size: 20px; */
  font-size: clamp(16px, 6vw, 20px) !important;
  line-height: 140%;
  color: white;
}

.offer p {
  font-weight: 400;
  /* font-size: 20px; */
  font-size: clamp(16px, 6vw, 20px);
  line-height: 140%;
  color: white;
}

.title-container {
  width: min(80vw, 900px);
}

.left1 {
  top: 40%;
  left: 5%;
  position: absolute;
}

.left2 {
  top: 60%;
  left: 5%;
  position: absolute;
}

.right2 {
  top: 50%;
  left: auto;
  right: 5%;
  position: absolute;
}

/* FEATURES CARD */

.offer {
  display: flex;
  justify-content: start;
  align-items: start;
  width: fit-content;
  max-width: 632px;
  flex-direction: column;
  text-align: start;
  height: fit-content;
  min-height: 200px;
  max-height: fit-content;
  gap: 50px;
}

.offer h2 {
  text-align: start;
}

.grid-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.item {
  flex: 1 1 calc(40% - 16px); 
  min-width: 200px;
  max-width: 100%;
  min-height: fit-content;
  background-color: rgba(255, 255, 255, 0.192);
  padding: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.feature-image {
  border-radius: 100%;
  background-color: #a9d0e0;
  height: 64px;
  width: 64px;
  padding: 20px;
}

.experience-wrapper {
  margin-top: 160px;
  background-color: rgb(54, 84, 99);
  z-index: 20;
  height: fit-content;
}

/* LINE ANIMATION */

/* TEXT CONTAINER */
.animation-left {
  text-align: start;
  height: fit-content;
  width: fit-content;
  width: min(30vw, 360px);
}

.animation-right {
  text-align: end;
  align-items: end;
  height: fit-content;
  width: fit-content;
  width: min(30vw, 360px);
}

/* LINE CONTAINER */

.bottom-animation {
  width: 0%;
  margin-top: 12px;
  position: relative;
}

.right {
  width: 0%;
  margin-top: 12px;
  right: 0;
  position: absolute;
  left: auto;
}

.line,
.dot {
  background-color: #18d8c7;
}

.dot {
  width: 8px;
  height: 8px;
  top: 50%;
  border-radius: 100%;
  position: absolute;
  left: 0px;
  transform: translateY(-50%);
}

.line {
  width: 99%;
  height: 2px;
  position: absolute;
}

.reverse {
  left: auto;
  right: 0px;
}

/* Keyframes for Left to Right animation */
@keyframes leftToRight {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

/* Keyframes for Right to Left animation */
@keyframes rightToLeft {
  0% {
    width: 0%;

    right: 0;
  }

  100% {
    width: 100%;

    right: 0;
  }
}

/* Left to right animation */
.leftToRightAnimation {
  animation: leftToRight 2s forwards;
}

/* Right to left animation */
.rightToLeftAnimation {
  animation: rightToLeft 2s forwards;
}

/* Media Queries */

/* Phone and Tablet */
@media screen and (max-width: 1023.99px) {
  .bottom-animation {
    margin-top: 5px;
  }

  .experience,
  .text-overlay {
    /* Subtract the height of the navbar to prevent text overflow */
    height: calc(100dvh - 76px) !important;
  }

  .wrapper h1 {
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -0.72px;
  }

  .wrapper h2 {
    font-weight: 700;
    /* font-size: 24px ; */
    text-transform: uppercase;
    text-align: center;
    line-height: 110%;
    letter-spacing: -0.26px;
  }

  .wrapper p {
    font-weight: 400;
    /* font-size: 16px; */
    line-height: 110%;
  }

  .offer p {
    font-weight: 400;
    /* font-size: 16px; */
    line-height: 110%;
  }

  /* FEATURES CARD*/

  .offer {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 90%;
    top: auto !important;
    bottom: 5dvh;
  }

  .item {
    flex: 1 1 100%;
    padding: 10px;
    min-width: 100%;
  }

  /* LINE ANIMATIONS */
  .animation-left {
    width: min(60vw, 360px);
  }

  .animation-right {
    width: min(60vw, 360px);
  }

  .left1 {
    top: 60%;
    left: 5%;
    transform: translate(-60%, 0, 0, -5%);
    position: absolute;
  }

  .left2 {
    top: 80%;
    left: 5%;
    transform: translate(-80%, 0, 0, -5%);
    position: absolute;
  }

  .right2 {
    top: 70%;
    left: auto;
    right: 5%;
    transform: translate(-70%, -5%, 0, 0);
    position: absolute;
  }

  main > *:first-child {
    margin-top: 76px;
    background-color: rgb(54, 84, 99);
    height: fit-content;
  }
}

@media (max-width: 540px) {
    .animation-left {
        width: min(75vw, 360px);
    }
    .animation-right {
        width: min(75vw, 360px);
    }
}