@import url("https://fonts.cdnfonts.com/css/ica-rubrik-black");
@import url("https://fonts.cdnfonts.com/css/poppins");

.Hero-Banner {
  background-color: #d2d2d2;
  /* background-image: linear-gradient(30deg, #7cf6fd, #345475, #f1e956, #707d9d); */
  /* ក្រឡា */
  background-image: repeating-linear-gradient(
      to right,
      transparent 0 100px,
      #25283b22 100px 101px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 100px,
      #25283b22 100px 101px
    );
}

.Hero-Banner::before {
  position: absolute;
  /* width: min(1400px, 90vw); */
  width: 100%;
  top: 10%;
  left: 50%;
  height: 90%;
  transform: translateX(-50%);
  content: "";
  background-image: url(../Images/bg.gif);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  pointer-events: none;
}

.animetion {
  width: 100%;
  height: 100vh;
  text-align: center;
  overflow: hidden;
  position: relative;
}
/* animetion */
.animetion .slider {
  position: absolute;
  width: 200px;
  height: 250px;
  top: 10%;
  left: calc(50% - 100px);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  animation: autoRun 20s linear infinite;
  z-index: 2;
}
@keyframes autoRun {
  from {
    transform: perspective(1000px) rotateX(-12deg) rotateY(0deg);
  }
  to {
    transform: perspective(1000px) rotateX(-12deg) rotateY(360deg);
  }
}

.animetion .slider .item {
  position: absolute;
  inset: 0 0 0 0;
  transform: rotateY(
      calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
    )
    translateZ(550px);
}
.animetion .slider .item img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: fill;
}
.animetion .content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 100vw);
  height: max-content;
  padding-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.animetion .content h1 {
  font-family: "ICA Rubrik";
  font-size: 7em;
  line-height: 1em;
  color: white;
  position: relative;
  text-align: left;
  text-shadow: 0 0 8px #ef029a;
}
/* text on text */
.animetion .content h1::after {
  position: absolute;
  inset: 0 0 0 0;
  content: attr(data-content);
  z-index: 2;
  -webkit-text-stroke: 2px #d2d2d2;
  color: transparent;
  color: white;
}

/* comment */
.Hero-Banner .content .author {
  text-align: left;
  max-width: 400px;
  color: white;
  margin-top: 50px;
}
.Hero-Banner .content h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.Hero-Banner .content p {
  font-size: 20px;
}
.animetion .content .model {
  background-image: url(../Images/model.png);
  width: 100%;
  height: 72vh;
  position: absolute;
  bottom: 0;
  left: 0;
  /* background-size: auto 130%; */
  background-size: auto 150%;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 1;
}
@media screen and (max-width: 1023px) {
  .animetion .slider {
    width: 160px;
    height: 200px;
    left: calc(50% - 80px);
  }
  .animetion .slider .item {
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(300px);
  }
  .animetion .content h1 {
    text-align: center;
    width: 100%;
    text-shadow: 0 10px 20px #000;
    font-size: 7em;
  }
  .animetion .content .author {
    color: #fff;
    text-shadow: 0 0 8px #ef029a;
    padding: 20px;
    text-shadow: 0 10px 20px #000;
    z-index: 2;
    max-width: unset;
    width: 100%;
    text-align: center;
    padding: 0 30px;
  }
}
@media screen and (max-width: 767px) {
  .animetion .slider {
    width: 100px;
    height: 150px;
    left: calc(50% - 50px);
  }
  .animetion .slider .item {
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(180px);
  }
  .animetion .content h1 {
    font-size: 5em;
  }
}
