* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --scroll: 0;
  --scrollZ: 40;
  --background-opacity: calc(100% - 1% * min(var(--scroll), 30) * 100 / 30);
}

.img-container > * {
  width: 400px;
  /* position: relative; */
}

.home {
  position: sticky;
  top: 0;
  /* transform: translate(0, calc(1% * var(--scroll))); */
  opacity: calc((100% - 1% * (max(var(--scroll), 30) - 30) * 100 / 30));
  translate: 0 calc(-1% * (max(var(--scroll), 25) - 25) * 100 / 75);
  /* transition: translate 0.5s ease; */
}
/* .home {
  transform: translateX(50px);
} */
/* .visual {
  padding-top: 10vh;
} */
h1 {
  font-size: 6.3rem;
}
p {
  font-size: 1.8rem;
}
section {
  display: flex;
  flex-direction: row;
  height: 100vh;
}
.left {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2rem;
  gap: 1rem;
  flex: 1;
  background-color: rgb(38, 237, 221, var(--background-opacity));
  /* --background-opacity: calc(100% - 1% * min(var(--scroll), 30) * 100 / 30); */

  height: 100%;
}
.right {
  padding: 2rem;
  display: flex;
  flex: 1;
  background-color: rgb(162, 167, 167, var(--background-opacity));
  /* --background-opacity: calc(100% - 1% * min(var(--scroll), 30) * 100 / 30); */
  height: 100%;
}
.visual,
.stack,
.faster {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.imgs-list > * {
  position: fixed;
  width: 100vw;
  z-index: 10;
  bottom: 0;
  translate: 0 100%;
  transition: translate 0.3s ease;
}

img[alt="img-1"] {
  /* translate: 0; */
  width: calc(50vw + 1vw * min(var(--scroll), 30) * 50 / 30);
  transform: translateY(calc(50% - 1% * (min(var(--scroll), 25)) * 50 / 25));
}
.show {
  translate: 0;
  z-index: 100;
}
img[alt="deploy"] {
  position: fixed;
  width: 400px;
  z-index: 100;
  /* bottom: 150%; */
  right: 0;
  /* top: 10%; */
  /* translate: calc(-1% * var(--scrollZ)) calc(1% * var(--scrollZ)); */
  translate: 0 calc(1% * var(--scrollZ));
  transition: all 0.2s ease;
  /* rotate: calc(1 * var(--scrollZ) deg); */
  /* transform: rotate(calc(1deg * var(--scrollZ))); */
  /* opacity: calc(1% * var(--scroll)); */
}
img[alt="card"] {
  position: fixed;
  width: 400px;
  z-index: 100;
  right: 0;
  translate: 0 calc(1% * var(--scrollZ));
  transition: all 0.2s ease;
}
img[alt="modal"] {
  position: fixed;
  width: 400px;
  z-index: 100;
  right: 0;
  bottom: 100%;
  translate: 0 calc(1% * var(--scrollZ));
  transition: all 0.2s ease;
}
img[alt="type"] {
  position: fixed;
  width: 400px;
  bottom: 2100px;
  z-index: 100;
  right: 0;
  translate: 0 calc(1% * var(--scrollZ));
  transition: all 0.2s ease;
}

.background-check1 {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: purple;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  /* width: calc(1vw * var(--scroll)); */
  /* height: calc(1vh * var(--scroll)); */
  filter: blur(10px);
  box-shadow: 0 0 10px purple;
  /* transform-origin: center; */
  /* opacity: calc(0.9% * var(--scroll)); */
  animation: autoFill 1s ease-out forwards;
}

@keyframes autoFill1 {
  from {
    /* width: 0; */
    height: 100vh;
    background-color: purple;
  }
  to {
    width: 0vw;
    height: 100vh;
    background-color: red;
  }
}

.background-check {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: 110;
  /* top: 0;
  left: 0; */
  /* transform-origin: center; */
  filter: blur(10px);
  box-shadow: 0 0 110px black;
  clip-path: circle(0% at 50% 50%);
  animation: autoFill 2s ease-in-out forwards;
}

@keyframes autoFill {
  from {
    clip-path: circle(0% at 50% 50%);
    background-color: black;
    opacity: 1;
  }
  to {
    clip-path: circle(150% at 50% 50%);
    background-color: transparent;
    opacity: 0;
    /* display: none; */
  }
}

.container > img {
  /* translate: 100% 0; */
  transform: translate(100%, 0);
}

.active-slide {
  transform: translate(0) !important;
}
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: 1000; /* Ensures it covers the page */
  clip-path: circle(
    150% at 50% 50%
  ); /* Start with a circle that covers the entire screen */
  animation: fadeOut 2s ease-out forwards; /* Shrink and fade out the overlay */
}

/* Keyframes for shrinking and fading */
@keyframes fadeOut {
  0% {
    opacity: 1;
    clip-path: circle(0% at 50% 50%); /* Circle shrinks to the center */
  }
  100% {
    opacity: 0;
    clip-path: circle(
      150% at 50% 50%
    ); /* Full circle, covering the whole screen */
  }
}

.left1,
.right1 {
  position: fixed;
  background-color: rgb(210, 209, 173);
  height: 100vh;
  z-index: 100;
}
.left1 {
  width: 50vw;
  animation: fadeOutfromLeft 1s ease forwards;
  animation-delay: 1s;
}
.right1 {
  width: 53vw;
  left: 50%;
  translate: -3% 0;
  animation: fadeOutfromRight 1s ease forwards;
  animation-delay: 1s;
  /* transform-origin: left; */
}
@keyframes fadeOutfromLeft {
  0% {
    width: 50vw;
  }
  100% {
    width: 0;
  }
}
@keyframes fadeOutfromRight {
  0% {
    width: 55vw;
    left: 50%; /* Start the right side from the center */
  }
  100% {
    width: 0;
    left: 100%; /* Start the right side from the center */
  }
}
@media screen and (max-width: 1200px) {
  .right {
    flex: 0;
    padding: 0;
  }
  h1 {
    font-size: 4.3rem;
  }
  p {
    font-size: 1.2rem;
  }
  /* section {
    padding: 1rem;
  } */
  .container > img {
    width: 300px;
    /* position: relative; */
  }
}
