@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
  margin: 0;
  background-color: #000;
  color: #eee;
  font-family: Poppins;
  font-size: 12px;
}
a {
  text-decoration: none;
}
header {
  width: 1140px;
  max-width: 80%;
  margin: auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
  font-size: 18px;
  font-weight: bold;
}
header a {
  color: #eee;
  margin-right: 40px;
}
header img {
  height: 80px;
  margin-top: 15px;
}
/* carousel */
.carousel {
  height: 100vh;
  margin-top: -50px;
  width: 100vw;
  overflow: hidden;
  position: relative;
}
.carousel .list .item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}
.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel .list .item .content {
  position: absolute;
  top: 20%;
  width: 1140px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 5px 10px #0004;
}
/* testing nambahin element img */
/* .carousel .list .item .content figure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.carousel .list .item .content figure img {
  width: 3.5rem;
} */
/* akhir testing = ada bug utk animationnya */
.carousel .list .item .author {
  font-weight: bold;
  letter-spacing: 10px;
  font-size: 14px;
}
.carousel .list .item .title,
.carousel .list .item .topic {
  display: flex;
  align-items: center;
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3em;
  font-family: Lora;
}
.carousel .list .item .topic img {
  width: 3.5rem;
  margin-right: 20px;
}
.carousel .list .item .topic .hydro {
  margin-right: 1px;
}
/* Eksperimen archon name */
.venti {
  background: linear-gradient(#3a89f1, #00ff87);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.zhongli {
  background: linear-gradient(#e9d022, #e60b09);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.raiden {
  background: linear-gradient(#0c0e8f, #e81cff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nahida {
  background: linear-gradient(#f3f520, #59d102);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.furina {
  background: linear-gradient(#4dc9e6, #210cae);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
/* Akhir Eksperimen archon name */

/* Main Button */
.carousel .list .item .buttons {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  gap: 5px;
  margin-top: 20px;
}
.carousel .list .item .buttons button {
  border: none;
  background-color: #eee;
  letter-spacing: 3px;
  font-family: Poppins;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px; /* Tetap sederhana untuk efek glow */
  padding: 0; /* Menghindari konflik ukuran */
}
.carousel .list .item .buttons button:nth-child(2) {
  background-color: transparent;
  border: 1px solid #fff;
  color: #eee;
}
/* glow effect */
.carousel .list .item .buttons button::before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 600%;
  z-index: -1;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  filter: blur(8px);
  animation: glowing 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
  opacity: 0;
}
.carousel .list .item .buttons button::after {
  content: '';
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: transparent;
  left: 0;
  top: 0;
  border-radius: 10px;
}
/* hover effect */
.carousel .list .item .buttons button:hover::before {
  opacity: 1;
}
.carousel .list .item .buttons button:active:after {
  background: transparent;
}
.carousel .list .item .buttons button:active {
  color: #000;
  font-weight: bold;
}
@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}
/* Akhir Main Button */

/* Pop-up video */
.video-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none; /* Default disembunyikan */
  z-index: 1001;
}
.video-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 10px;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* Default disembunyikan */
  z-index: 1000;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}
/* Akhir Pop-up video */

/* thumbail */
.thumbnail {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}
.thumbnail .item {
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}
.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.thumbnail .item .content {
  color: white;
  mix-blend-mode: difference;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-family: Lora;
}
.thumbnail .item .content .title {
  font-weight: 500;
}
.thumbnail .item .content .description {
  font-weight: 300;
}
/* arrows */
.arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee4;
  border: none;
  color: #fff;
  font-family: monospace;
  font-weight: bold;
  transition: 0.5s;
}
.arrows button:hover {
  background-color: #fff;
  color: #000;
}

/* animation */
.carousel .list .item:nth-child(1) {
  z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}
.carousel .list .item:nth-child(1) .content .title {
  animation-delay: 1.2s !important;
}
.carousel .list .item:nth-child(1) .content .topic {
  animation-delay: 1.4s !important;
}
.carousel .list .item:nth-child(1) .content .des {
  animation-delay: 1.6s !important;
}
.carousel .list .item:nth-child(1) .content .buttons {
  animation-delay: 1.8s !important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.prev .list .item img {
  z-index: 100;
}
@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}
.carousel.next .thumbnail {
  animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

/* running time */

.carousel .time {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: #f1683a;
  left: 0;
  top: 0;
}

.carousel.next .time,
.carousel.prev .time {
  animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}

/* prev click */

.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}
@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button {
  pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons {
  animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

/* end animation */

/* Mobile Responsive Styles */
@media screen and (max-width: 678px) {
  header {
    height: 50px;  
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
  }

  header a {
    font-size: 16px !important; 
    margin-right: 20px !important;
    font-weight: 500;
  }

  header img {
    height: 60px;
    margin-top: 0;
  }
  
  /* Main content adjustments */
  .carousel .list .item .content {
    top: 15%;
    padding-right: 0;
    width: 90%;
    height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .carousel .list .item .author {
    font-size: 12px;
    letter-spacing: 5px;
  }
  
  .carousel .list .item .title,
  .carousel .list .item .topic {
    font-size: 2.5em;
    line-height: 1.2em;
  }

  .carousel .list .item img {
    object-position: top center; 
    object-fit: cover;
  }

  .carousel .list .item .topic img {
    width: 2rem;
    margin-right: 10px;
  }
  
  .carousel .list .item .des {
    font-size: 14px;
    max-height: 100px;
    overflow-y: auto;
  }
  
  .carousel .list .item .buttons {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 35px;
  }

  .thumbnail {
    bottom: 35px !important; /* Fixed 24px from bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 12px;
    scrollbar-width: none; /* Hide scrollbar */
  }

  .thumbnail::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Webkit */
  }

  .thumbnail .item {
    width: 120px;
    height: 180px;
    flex-shrink: 0;
  }

  /* Ensure images fill thumbnails proportionally */
  .thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio */
    border-radius: 12px;
  }
  
  .arrows {
    display: none;
  }
  
  .video-container {
    width: 95%;
    max-width: none;
  }
  
  .video-container iframe {
    height: 250px;
  }
}
@media screen and (max-width: 480px) {
  header a {
    font-size: 14px !important;
    margin-right: 12px !important;
  }

  .thumbnail .item {
    width: 100px;
    height: 150px;
  }

  .carousel .list .item .content .title,
  .carousel .list .item .topic {
    font-size: 1.8em;
  }
}