html {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  height: 300vh;
  background-color: transparent;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
}
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 50px 0;
}
.stack-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 200px;
  cursor: pointer;
}
.stack-item-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s ease;
  user-select: none;
  transform: translateY(0px) scale(1);
  z-index: 1;
}
.stack-item {
  width: 400px;
  height: 400px;
  flex-shrink: 0;
}
.text-content {
  margin-left: 33px;
  margin-top: 55px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.text-content h2 {
  margin: 0;
  color: #333;
  font-size: 17px;
  font-weight: 600;
}
.text-content ul {
  font-size: 14px;
}
.stack-item-wrapper.position-0 {
  transform: translateY(-38px) scale(1);
  z-index: 3;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.stack-item-wrapper.position-0 .text-content {
  opacity: 1;
}
.stack-item-wrapper.position-1 {
  transform: translateY(-19px) scale(1);
  z-index: 2;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.stack-item-wrapper.position-2 {
  transform: translateY(13px) scale(1);
  z-index: 1;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.stack-item-wrapper.moving-up {
  transform: translateY(-100px) scale(0.8);
  opacity: 0;
}
.stack-item-wrapper.hidden {
  transform: translateY(-120%) scale(0.9);
  opacity: 0;
  transition: transform 0.36s ease-in-out, opacity 0.25s ease-in-out;
  z-index: 4;
  pointer-events: none;
}
.dot {
  height: 7px;
  position: absolute;
  top: 13px;
  left: -1px;
  width: 5px;
  background-color: black;
  border-radius: 50%;
  display: inline-block;
  transition: opacity 0.8s ease;
}
.stack-line {
  position: absolute;
  top: 65px;
  left: 357px;
  transition: opacity 0.8s ease;
}
.heading-2 {
  font-size: 16px;
  font-weight: 600;
  margin-left: 30px;
  width: 600px;
}
.list-item {
  font-size: 14px;
  width: 500px;
}
.text-content-wrapper {
  border-left: 1px solid #000;
  width: 330px;
  top: 46px;
  left: 395px;
  position: absolute;
}
.text-content-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  border-radius: 5px;
  left: 0;
  width: 10px;
  height: 1px;
  background-color: #000;
}
.text-content-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 5px;
  left: 0;
  width: 10px;
  height: 1px;
  background-color: #000;
}
.opacity-1 {
  opacity: 1;
}
.scroll-down-heading {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}
.scroll-down-text {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 2px;
  height: 30px;
  background-color: #666;
  margin: 0 auto;
  position: relative;
  animation: scrollBounce 2s infinite;
}
.scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 8px solid #666;
}
@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Animation complete state */
.animation-complete {
  pointer-events: none;
}

@media (max-width: 1100px) {
  .stack-container {
    width: 90%;
    max-width: 400px;
  }
  .stack-item {
    margin-left: 45px;
    width: 317px;
    height: 313px;
  }
  .heading-2 {
    font-size: 14px;
  }
  .list-item {
    font-size: 10px;
  }
  .text-content-wrapper {
    border-left: 1px solid #000;
    width: 330px;
    top: 46px;
    left: 367px;
    position: absolute;
  }
  .stack-line {
    position: absolute;
    top: 65px;
    left: 330px;
    transition: opacity 0.8s ease;
  }
}
@media (max-width: 767px) {
  .stack-container {
    width: 90%;
    max-width: 400px;
  }
  .stack-item {
    margin-left: 45px;
    width: 317px;
    height: 313px;
  }
  .text-content h2 {
    font-size: 20px;
  }
  .stack-line {
    display: none;
  }
  .text-content-wrapper {
    border-left: 1px solid #fff;
    padding: 5px;
    top: 238px;
    left: 8px;
    position: absolute;
  }
  .heading-2 {
    font-size: 17px;
    font-weight: 600;
    margin-left: 50px;
    width: 600px;
  }
  .text-content ul {
    margin-left: 30px;
  }
  .scroll-down-text {
    font-size: 14px;
  }
  .scroll-arrow {
    height: 25px;
  }
  .text-content ul {
    font-size: 19px;
  }
  .text-content-wrapper::before {
    display: none;
  }
  .text-content-wrapper::after {
    display: none;
  }
}
@media (max-width: 425px) {
  .stack-container {
    width: 90%;
    max-width: 400px;
  }
  .stack-item {
    margin-left: 29px;
  }
  .text-content-wrapper {
    left: -6px;
  }
}
@media (max-width: 375px) {
  .stack-container {
    width: 90%;
    max-width: 400px;
  }
  .stack-item {
    margin-left: 13px;
  }
  .text-content-wrapper {
    left: -21px;
  }
}