@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Salsa&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #232328;
  font-family: "Quicksand", sans-serif;
  overflow-x: hidden;
}

.swiper-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* content */

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 14%;
  width: 100%;
  height: max-content;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  opacity: 0;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0); /* Latar belakang transparan */
  backdrop-filter: blur(5px); /* Efek blur */
  border-radius: 15px; /* Sudut yang lebih lembut */
}

.content h1 {
  font-family: "Salsa", cursive;
  font-size: clamp(2rem, 3vw, 6rem);
  margin-bottom: 20px;
  opacity: 0;
}

.content p {
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 500;
  opacity: 0;
}

.swiper-slide-active .content {
  opacity: 1;
}

.swiper-slide-active .content h1 {
  animation: moveDown 0.8s ease-in forwards;
}

.swiper-slide-active .content p {
  animation: moveDown 1s ease-in forwards;
  animation-delay: 1s;
}

@keyframes moveDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* background */

.background[data-item="one"] {
  background-image: url(bg1.jpg);
  background-size: cover;
  background-position: 50% 40%;
}

.background[data-item="two"] {
  background-image: url(bg3.jpg);
  background-size: cover;
  background-position: 50% 50%;
}

.background[data-item="three"] {
  background: url(bg2.jpg);
  background-size: cover;
  background-position: 50% 40%;
}

.background[data-item="four"] {
  background: url(bg4.jpg);
  background-size: cover;
  background-position: 50% 60%;
}

.background[data-item="five"] {
  background: url(bg5.jpg);
  background-size: cover;
  background-position: 50% 40%;
}

.background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: circle(5%);
  filter: brightness(90%);
  overflow: hidden;
  opacity: 0;
  z-index: 1;
}

.animation {
  animation: resizeClipPath 3s ease-in-out forwards;
}

@keyframes resizeClipPath {
  0% {
    clip-path: circle(5%);
    opacity: 0;
  }
  100% {
    clip-path: circle(71%);
    opacity: 1;
  }
}

/* pagination bullet */

.swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  background-color: #a3a6a3;
  border-radius: 50%;
  transition: all 0.6s ease-in-out;
}

.swiper-pagination-bullet-active {
  height: 32px;
  background-image: linear-gradient(180deg, #f09819 0%, #ff512f 100%);
  border-radius: 14px;
}

/* footer */

.footer {
  position: absolute;
  display: flex;
  justify-content: space-between;
  column-gap: 20px;
  bottom: 0;
  left: 50%;
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  width: max-content;
  padding: 20px;
  color: #f2f2f2;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 2;
}

.feature {
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.feature i {
  font-size: 1.4rem;
}

.feature p {
  font-weight: 700;
}

.btn {
  display: block;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  padding: 15px 20px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0px 0px 14px -7px #f09819;
  background-image: linear-gradient(
    45deg,
    #ff512f 0%,
    #f09819 51%,
    #ff512f 100%
  );
  background-size: 200% auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: 0.5s;
}

.btn a{
  text-decoration: none;
  color: white;
}

.btn:hover {
  background-position: right center;
}

.btn:active {
  transform: scale(0.95);
}

/* media queries */

@media (max-width: 1200px) {
  .content {
    top: 18%;
    width: 50%;
  }

  /* .content[data-content="two"],
  .content[data-content="three"] {
    top: 5%;
    width: 50%;
  } */
}

@media (max-width: 900px) {
  .content{
  /* .content[data-content="three"] { */
    top: 55%;
    /* left: 2%; */
    width: 60%;
  }

  /* .content[data-content="two"] {
    top: 10%;
  } */

  .content h1 {
    margin-bottom: 14px;
  }

  .content p {
    font-size: 1rem;
    line-height: 1.4;
  }

  .feature i {
    font-size: 1.3rem;
  }

  .feature p {
    font-size: 1rem;
  }

  .btn {
    padding: 8px 16px;
  }
}


@media (max-width: 768px) {
  .content{
    /* .content[data-content="two"],
    .content[data-content="three"] { */
      top: 30%;
      /* left: 7%;
      bottom: 3%; */
      width: 80%;
    } 
  .footer {
    column-gap: 10px;
    padding: 10px;
    left: unset;
    bottom: unset;
    top: 20px;
    right: -30px;
    border-radius: 0;
    background-color: transparent;
    box-shadow: unset;
  }


  .feature,
  hr {
    display: none;
  }

  .feature i {
    font-size: 1.1rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  .feature small {
    font-size: 0.8rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

@media (max-width: 660px) {
  .content{
  /* .content[data-content="two"],
  .content[data-content="three"] { */
    top: 30%;
    /* left: 7%;
    bottom: 3%; */
    width: 80%;
  }

  .content p {
    font-size: 0.9rem;
    /* line-height: 1.2; */
  }

  .background[data-item="two"] {
    background-position: 40% 50%;
  }

  .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
  }

  .swiper-pagination-bullet-active {
    height: 24px;
  }

  .footer {
    column-gap: 0;
    top: 20px;
    right: unset;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
  }

  
  .feature i {
    font-size: 1.1rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

