* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;

  background-color: #000000;
  overflow-x: hidden;
  color: #ffffff;
}

@font-face {
  font-family: "Wavacorp";
  src: url("asset/Wavacorp.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}


.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(0, 255, 238, 0.49) 0%,
      rgb(10, 10, 10) 30%,
      rgb(0, 0, 0) 50%
  );
  position: relative;
}

/* ======================================================= */
/* NAVIGATION */
/* ======================================================= */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(80% - 40px);
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 20px;
  border-radius: 10px;
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(72, 72, 72, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: fixed;
  top: 0;
  z-index: 1000;
}

.nav img {
  height: 30px;
  animation: rotate3dNeon 4s linear infinite;
    filter: 
        drop-shadow(0 0 3px #fff)
        drop-shadow(0 0 6px #00f7ff)
        drop-shadow(0 0 9px #00f7ff);
    transform-style: preserve-3d;
    transform-origin: center;
}

@keyframes rotate3dNeon {
    0% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: perspective(1000px) rotateY(90deg) rotateX(10deg);
    }
    50% {
        transform: perspective(1000px) rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: perspective(1000px) rotateY(270deg) rotateX(-10deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) rotateX(0deg);
    }
}
.logo {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
}

.logo h2 {
  font-family: wavacorp;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 2px;
}
/* Menu Desktop */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  text-decoration: none;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 0.9em;
  padding: 20px 15px;
  transition: all 0.3s ease;
}


.nav-menu li a:hover {
  text-shadow: 0 0 5px #03e9f4, 
              0 0 25px #03e9f4, 
              0 0 50px #03e9f4,
              0 0 200px #03e9f4;
  border-bottom: 5px solid #03e9f4;
  font-weight: 600;
  transform: scale(1.1);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* ======================================================= */
/* SPLASH SCREEN / PRELOADER */
/* ======================================================= */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0a;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ======================================================= */
/* MAIN CONTENT - HOME MARQUEE */
/* ======================================================= */
.home-marquee {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.marquee-content {
  display: flex;
  width: max-content;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  animation: marquee-seamless 20s linear infinite;
}

.home-marquee h1 {
  margin: 0;
  font-size: 10vw;
  margin-top: -10rem;
  font-family: "Wavacorp", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff5f;
  flex-shrink: 0;
  padding-right: 0.5em;
}

@keyframes marquee-seamless {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-50%);
  }
}

.marquee-container h2 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-family: "Poppins", sans-serif;
  width: 90%;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #848484;
  z-index: 10;
  text-align: center;
  margin-bottom: 1.5rem;
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-div {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  align-items: center;
  position: absolute;
  top: 77%;
  left: 50%;
  transform: translate(-50%, -50%)
}

.btn-div button {
  margin-top: 20px;
  padding: 20px 40px;
  border-radius: 20px;
  font-weight: bold;
  background: #000;
  color: #00f7ff;
  border: 1px solid #00f7ff;
  cursor: pointer;
}

.btn-div button:hover {
  background: #00f7ff;
  color: #000;
  transition: 0.2s ease-in-out;
}

.keterangan {
  width: 100%;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  text-align: center;
  margin-top: 10rem;
  
}

.marquee-container video {
  /* KUNCI 1: Posisikan absolut dan letakkan di tengah */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* KUNCI 2: Pastikan video menutupi seluruh container */
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  
  /* Memastikan rasio aspek video tetap terjaga */
  object-fit: cover; 
  
  /* KUNCI 3: Posisikan di lapisan paling belakang */
  z-index: 0; 
  
  /* Opsional: Beri sedikit kegelapan agar teks H1 lebih mudah dibaca */
  opacity: 0.6; 
}

.keterangan h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-family: "Wavacorp", sans-serif;
  text-align: justify;
  color: #ffffff;
  line-height: 1.5;
  max-width: 80%;
  font-weight: 600;
  text-transform: capitalize;

  /* KUNCI: Posisikan di lapisan depan */
  position: relative; 
  z-index: 1; /* Harus lebih tinggi dari z-index video (0) */
}

.keterangan p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-family: "Poppins", sans-serif;
  text-align: center;
  color: #848484;
  line-height: 1.5;
  max-width: 80%;
  font-weight: 400;
}

/* ======================================================= */
/* CARDS SECTION */
/* ======================================================= */
.container-card {
  position: relative;
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 20px;
  gap: 3rem;
  width: 100%;
}

.box {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a1a1f;
  transition: all 0.5s ease;
  overflow: hidden;
}

.box:hover {
  
  transform: translateY(-10px);
}

.content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #03e9f4;
  text-align: center;
  z-index: 2;
}

.box:hover .content {
  color: #ffffff;
}

.container-card .content h2 {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 600;
}

.container-card .content p {
  font-size: 0.9em;
  line-height: 1.6;
  width: 100%;
}



/* Animated Borders */
.container-card .box span {
  position: absolute;
  display: block;
}

.container-card .box span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent, #03e9f4);
  animation: animate1 2s linear infinite;
  animation-delay: 0s;
}

@keyframes animate1 {
  0% {
      left: -100%;
  }
  50%,
  100% {
      left: 100%;
  }
}

.container-card .box span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 5px;
  background: linear-gradient(270deg, transparent, #03e9f4);
  animation: animate3 2s linear infinite;
  animation-delay: 1s;
}

@keyframes animate3 {
  0% {
      right: -100%;
  }
  50%,
  100% {
      right: 100%;
  }
}

.container-card .box span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #03e9f4);
  animation: animate2 2s linear infinite;
  animation-delay: 0.5s;
}

@keyframes animate2 {
  0% {
      top: -100%;
  }
  50%,
  100% {
      top: 100%;
  }
}

.container-card .box span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #03e9f4);
  animation: animate4 2s linear infinite;
  animation-delay: 1.5s;
}

@keyframes animate4 {
  0% {
      bottom: -100%;
  }
  50%,
  100% {
      bottom: 100%;
  }
}



.container-chain {
  display: flex;
  background-color: #fff;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin-top: 5rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* OVAL ATAS */
.container-chain::before {
  content: "";
  position: absolute;
  top: -40vh;          /* responsive: geser berdasarkan tinggi layar */
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;        /* responsive: oval selalu lebih lebar dari layar */
  height: 70vh;        /* responsive smooth curve */
  background: #000;
  border-radius: 50%;
  z-index: 0;
}

/* OVAL BAWAH */
.container-chain::after {
  content: "";
  position: absolute;
  bottom: -40vh;       /* responsive */
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;        /* responsive */
  height: 70vh;        /* responsive */
  background: #000;
  border-radius: 50%;
  z-index: 0;
}

/* Konten tetap di atas oval */
.container-chain > * {
  position: relative;
  z-index: 2;
}

.container-chain h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: "Wavacorp", sans-serif;
}

.container-chain h4 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 20px;
  max-width: 70%;
  text-align: center;
  color: #848484;
}

.chain-div {
  align-items: center;
  padding: 20px;
  display: flex;
  max-width: 90vw;
  margin-top: 30px;
  flex-direction: column;
}

.chain-grid {
  display: flex;
  justify-content: center;
  flex-direction:row;
  width: 100%;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}


.card-chain {
  
  width: 600px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.26);
  padding: 10px;
  background: #f5f5f5;
  color: #848484;
  overflow: hidden;
  border-radius: 20px;
}

.card-chain::before {
 content: '';
 position: absolute;
 width: 400px;
 background: linear-gradient(#00f7ff, #d400d4);
 animation: animate 4s linear infinite;
}

@keyframes animate {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}





.card-chain h3 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #6F6F6F;
  margin-bottom: 10px;
  text-align: center;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-inner {
  display: inline-block;
  animation: scroll 12s linear infinite;
}

.marquee-inner span {
  display: inline-block;
  padding-right: 2rem;
  font-size: 1rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.chain-div button {
  margin-top: 20px;
  padding: 20px 40px;
  border-radius: 20px;
  background: #000;
  color: #00f7ff;
  border: 1px solid #00f7ff;
  cursor: pointer;
}

.chain-div button:hover {
  background: #00f7ff;
  color: #000;
  transition: 0.2s ease-in-out;
}


.container-game {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  min-height: 100vh;
  margin-top: 8rem;
  gap: 2rem;
  width: 80vw;
  top: -10rem;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.left-game {
  width: 40%;
}

.left-game h2 {
  font-size: 2rem;
  line-height: 2.5rem;
  margin-bottom: 20px;
  font-family: "Wavacorp", sans-serif;
}

.left-game p {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 20px;
  color: #848484;

}

.left-game button {
  margin-top: 20px;
  padding: 20px 40px;
  border-radius: 20px;
  background: #000;
  color: #00f7ff;
  border: 1px solid #00f7ff;
  cursor: pointer;
}

.left-game button:hover {
  background: #00f7ff;
  color: #000;
  transition: 0.2s ease-in-out;
}

.right-game {
  width: 60%;
}

.right-game video {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.26);
}

.image-marquee {
  width: 100%;
  top: -10rem;
  position: relative;
  overflow: hidden;
  background: black; /* opsional */
}

.image-track {
  display: flex;
  width: 200%; /* karena ada 2 gambar */
}

.image-track img {
  width: 100%;
  object-fit: cover;
}

/* BAWAH KE KIRI */
.image-track.left {
  animation: scrollLeft 20s linear infinite;
  margin-bottom: 3rem;
}

/* BAWAH KE KANAN */
.image-track.right {
  animation: scrollRight 20s linear infinite;
}

.image-track:hover {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.container-project {
  display: flex;
  min-height: 100vh;
  top: -10rem;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-block  : 8rem;
  gap: 2rem;
  width: 80%;
}

.container-project h2 {
  font-size: 2rem;
  line-height: 2.5rem;
  margin-bottom: 20px;
  font-family: "Wavacorp", sans-serif;
}

.card-accordion {
  width: 100%;
  background: #1d1d1d;
  border-radius: 12px;
  padding: 30px 40px;
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
  transition: all .3s ease;
}

.card-accordion:hover {
  background: #222;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header */
.card-header h3 {
  margin: 0;
  width: 40%;
  font-size: 20px;
}

/* Hidden content */
.card-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease;
}

.card-content button {
  margin-top: 20px;
  padding: 15px 30px;
  border-radius: 20px;
  background: #000;
  color: #00f7ff;
  border: 1px solid #00f7ff;
  cursor: pointer;
  
}

/* Active state (open) */
.card-accordion.active .card-content {
  max-height: 200px;
  opacity: 1;
  margin-top: 15px;
}

/* Progress Bar Container */
.progress-bar {
  flex: 1;
  height: 8px;
  background: #444;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 20px;
}

/* Progress Fill */
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #006366, #03e9f4);
  border-radius: 10px;
  transition: width .3s ease;
}

.container-footer { 
  display: flex;
  flex-direction: column;
  min-height: 30vh;
  width: 100%;
  background-image: url("asset/footer.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer {
  display: flex;
  width: 80%;
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
}

.right-footer {
  text-align: end;
}


.left-footer p {
  cursor: pointer;
}

.left-footer p:hover {
  color: #00f7ff;
  transition: 0.2s ease-in-out;
}

.logo-sosmed {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 20px;
  justify-content: end;
}

.logo-sosmed img {
  width: 30px;
  cursor: pointer;
}

.logo-sosmed img:hover {
  transform: scale(1.2);
  transition: 0.2s ease-in-out;
}

.line {
  width: 80%;
  height: 1px;
  background-color: #fff;
  margin-top: 20px;
}








/* ======================================================= */
/* MEDIA QUERIES - MOBILE RESPONSIVE */
/* ======================================================= */
@media (max-width: 768px) {
  /* Navigation Mobile */
  .nav {
      width: calc(100% - 20px);
      margin: 10px;
      padding: 15px 20px;
  }

  .logo h2 {
      display: none;
  }

  /* Show Hamburger */
  .hamburger {
      display: flex;
      z-index: 1001;
  }

  /* Hide and Position Main Menu on Mobile */
  .nav-menu {
      position: fixed;
      right: -120%;
      top: 0;
      flex-direction: column;
      border-radius: 0;
      background-color: rgba(10, 10, 10, 0.736);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 80px 30px 30px;
      width: 100%;
      height: 100vh;
      text-align: center;
      justify-content: flex-start;
      align-items: center;
      transition: all 0.3s ease-in-out;
      gap: 20px;
  }

  .nav-menu li {
      margin: 10px 0;
  }

  .nav-menu li a {
      font-size: 1.5em;
      padding: 15px 30px;
      display: block;
  }

  /* Active Class for Toggle */
  .nav-menu.active {
      right: 0;
  }

  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(2) {
      opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
  }
  .marquee-container { 
    min-height: 100vh;
  }

  .marquee-container h2 { 
    width: 90%;
    top: 60%;
    
  }

  .btn-div {
    flex-direction: column;
    width: 90%;
    top:80%;
  }

  .btn-div button {
    width: 100%;
  }

  
  .home-marquee h1 {
      font-size: 18vw;
  }

  .keterangan {
    min-height: 100vh;
    margin-top: 7rem;
  }

  .keterangan h1 {
      font-size: 1rem;
      max-width: 95%;
  }

  .container-card {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      padding: 20px 10px;
      min-height: 100vh;
      gap: 25px;
  }

  .box {
      width: 90%;
      max-width: 100%;
      height: 250px;
  }

  .content {
      padding: 30px 20px;
  }

  .container-chain h1 {
    font-size: 1rem;
  }
  
  .card-chan {
    width: 90%;
  }
  
  .card-chan h2 {
    text-align: center;
  }
  
  .chain-div {
    max-width: 90vw;
  }
  .container-chain h4 {
    max-width: 90%;
    font-size: 1rem;
  }
  .container-chain::before {
    height: 50vh;
    top: -30vh;
    width: 150vw;
  }
  
  .container-chain::after {
    height: 50vh;
    bottom: -30vh;
    width: 150vw;
  }
  
  .container-chain h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  
  
  .container-chain p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  .card-chain h2 {
    font-size: 1rem;
  }
  
  .container-game {
    flex-direction: column-reverse;
    width: 90%;
    
  }
  
  .right-game {
    width: 100%;
  }
  
  .left-game {
    width: 100%;
  }
  
  .left-game h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .left-game p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: justify;
  }
  
  
  
  .right-game video {
    width: 100%;
    height: auto;
  }

  .container-project {
    width: 90%;
    min-height: 80vh;
    margin-top: 0;
  }

  .card-accordion {
    width: 100%;
    padding: 20px 10px;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .image-track img {
    width: 100%;
    height: 100px;
  }

  .container-footer {
    width: 100%;
    gap: 1rem;
    margin-top: 2rem;
  }

  .footer {
    flex-direction: column;
    align-items: baseline;
    width: 90%;
    gap: 2rem;
  }

  .left-footer { 
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .right-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }
  
  .line {
    width: 90%;
  }

  .keterangan p {
    max-width: 90%;
  }

  .marquee-inner span {
    font-size: 12px;
  }







}








@media (max-width: 480px) {
  .nav {
      padding: 12px 15px;
  }

  .nav img {
      height: 25px;
  }

  .keterangan h1 {
      font-size: 1.2rem;
  }

  .box {
      height: 320px;
  }

  .content {
      padding: 25px 15px;
  }

  .container-card .content h2 {
      font-size: 1.2em;
  }

  .container-card .content p {
      font-size: 0.85em;
  }
}

/* Additional Media Query for Very Small Screens */
@media (max-width: 360px) {
  .home-marquee h1 {
      font-size: 20vw;
  }

  .keterangan h1 {
      font-size: 1.1rem;
  }

  .box {
      height: 300px;
  }
}