:root {
  --primary: #38bdf8;
  --secondary: #0f172a;
  --bg: #020617;
  --text: #ffffff;
}

.reveal,
.reveal-timeline,
.hero-reveal,
.hero-buttons{
  will-change: transform, opacity;
}

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

html, body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

/* ================= FIRST LOAD ANIMATION ================= */

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(120,160,255,0.25), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(120,160,255,0.15), transparent 40%),
    linear-gradient(
      135deg,
      #0f1f4b 0%,
      #1f3f8a 40%,
      #2f5fc2 70%,
      #1a3a7a 100%
    );
}

/* Saat loading → website disembunyikan */
body.preload main,
body.preload section,
body.preload footer,
body.preload .hero {
  opacity: 0;
}

/* HERO TIDAK BOLEH ANIMASI SAAT LOADING */
body.preload .hero-reveal,
body.preload .hero-buttons {
  opacity: 0;
  animation: none !important;
}

body.preload {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: none !important;
  transition: none !important;
}

#preloader {
  pointer-events: none;
}

/* kalau sudah pernah masuk → preloader gak pernah muncul */
.no-loader #preloader{
  display:none !important;
}

@keyframes firstReveal{
  from{
    opacity:0;
    transform:translateY(60px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.no-anim * {
  animation: none !important;
  transition: none !important;
}

/*class umum container box*/
.container-box {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
}

/* LOGO */
.top-left {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.top-left img {
  height: 65px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

@media (max-width: 600px) {
  .top-left img {
    height: 50px; /* 🔥 lebih kecil di HP biar gak ganggu */
  }
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 120px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* BACKGROUND */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/img/bg.webp') center/cover no-repeat;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: 1;
  animation: bgMove 25s ease-in-out infinite alternate;
}

@keyframes bgMove{
  from{ transform:scale(1.1); }
  to{ transform:scale(1.2); }
}

/* OVERLAY */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.85),   /* biru atas */
    rgba(37, 99, 235, 0.75),   /* biru tengah */
    rgba(15, 23, 42, 0.9)      /* gelap bawah */
  );

  z-index: 2;
}

/* CONTENT HERO */
.hero * {
  position: relative;
  z-index: 3;
}

.main-logo {
  width: clamp(400px, 40vw, 400px);
  margin-bottom: -30px;

  filter: drop-shadow(0 0 20px rgba(255,215,0,0.45));
  transition: transform 0.4s ease;
  animation: logoGlow 4s ease-in-out infinite alternate;
}

@media (max-width: 600px) {
  .main-logo {
    width: 325px;
  }
}

@keyframes logoGlow {
  from {
    filter: drop-shadow(0 0 15px rgba(255,215,0,0.3));
  }
  to {
    filter: drop-shadow(0 0 35px rgba(255,215,0,0.6));
  }
}

.main-logo:hover {
  transform: scale(1.03);
}

.hero-melt {
  position: absolute;
  bottom: -1px;
  left: 0;

  width: 100%;
  height: 120px;

  background: linear-gradient(
    to bottom,
    transparent,
    #1f3f8a
  );

  z-index: 4;
}

/* BUTTON */
.buttons {
  display: flex;
  gap: 20px;
}

.btn {
  font-family: 'Montserrat', sans-serif;

  padding: 14px 28px;
  border-radius: 10px;
  border: none;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  cursor: pointer;
  transition: all 0.3s ease;

  white-space: nowrap;   /* 🔥 biar tidak turun */
  display: inline-flex;  /* 🔥 penting */
  align-items: center;
  justify-content: center;
}

.kolektif {
  background: #111;
  color: #facc15;
  border: 2px solid #facc15;

  min-width: 260px; /* 🔥 kasih ruang biar muat */
}

@media (max-width: 400px) {
  .btn {
    font-size: 14px;
    padding: 12px 20px;
  }
}

/* ================= HERO BUTTON PREMIUM ================= */

.hero .btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;

  padding: 18px 38px;
  border-radius: 12px;

  letter-spacing: 0.5px;
  text-transform: uppercase;

  transition: all 0.35s ease;
}

/* ukuran lebih besar */
.hero .buttons {
  gap: 30px;
  margin-top: 10px;
}

/* efek hover premium */
.hero .btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);

  background: linear-gradient(
    135deg,
    #ffffff,
    #f3e5c5,
    #e5d0a0,
    #cbb07f
  );

  box-shadow:
    0 10px 30px rgba(0,0,0,0.3);
}

/* PENDAFTARAN UMUM (PRIMARY) */
.umum {
  background: linear-gradient(
    135deg,
    #fdf6e3,  /* sangat terang (cream) */
    #f5e6c8,  /* beige */
    #e8d3a3,  /* soft gold */
    #d6bd8a   /* gold agak dalam */
  );

  color: #fff !important;
  border: none;
  
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  box-shadow:
    0 4px 15px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.6);
}

/* PENDAFTARAN SISWA */
.kolektif {
  background: linear-gradient(
    135deg,
    #f8efd9,
    #e9d7b0,
    #d9c093,
    #bfa374
  );

  color: #fff;
  border: none;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);

  box-shadow:
    0 4px 15px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.5);
}


@media (max-width: 600px) {
  .buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
  }
}

/* RACE INFO MODERN */
.race-info {
  position: relative;
  background: white;
  max-width: 950px;
  margin: 20px auto 40px;
  padding: 30px 35px;
  border-radius: 20px;

  /* shadow utama */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  overflow: hidden;
}

/* AKSEN GOLD (GRADIENT TIPIS DI ATAS) */
.race-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;

  background: linear-gradient(
    90deg,
    #f5e6c8,
    #e8d4aa,
    #d9c08f,
    #e8d4aa,
    #f5e6c8
  );

  background-size: 200% 100%;
  animation: goldFlow 6s linear infinite;
}

@keyframes goldFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* GLOW KUNING HALUS */
.race-info::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;

  box-shadow: 0 0 40px rgba(250, 204, 21, 0.15);
  pointer-events: none;
}

.race-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1e293b;
}

/* BOX */
.race-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

/* ITEM */
.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

/* ICON STYLE */
.info-item .icon {
  background: linear-gradient(
    90deg,
    #f5e6c8,
    #e8d4aa,
    #d9c08f,
    #e8d4aa,
    #f5e6c8
  );
  color: white;
  font-size: 18px;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.15);
}

.info-item .icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59,130,246,0.6);
}

.info-item:not(:last-child) {
  border-right: 1px solid rgba(0,0,0,0.08);
  padding-right: 20px;
}

@media (max-width: 600px) {
  .race-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-item {
    border: none !important;
    padding: 0;
  }
}

@media (max-width: 600px) {

  .race-info {
    margin: 20px 15px 10px; /* kasih jarak kiri kanan */
    padding: 20px; /* sedikit diperkecil */
    border-radius: 16px;
  }

  .race-box {
    flex-direction: column;
    gap: 15px;
  }

  .info-item {
    width: 100%;
    padding: 0px 0;
  }

  .info-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

}

/* TEXT */
.label {
  font-size: 13px;
  color: #64748b;
}

.value {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

/* CONTENT */
.content {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  line-height: 1.6;
}

.content h2 {
  margin-bottom: 15px;
  color: #ffffff;
}
.content p {
  color: #e2e8f0;
}


/* SECTION FASILITAS */
.fasilitas {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.fasilitas h2 {
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 700;
  color: #fff;
}

.fasilitas h3 {
  color: #fff !important;
}

/* CONTAINER GAMBAR */
.jersey-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* GAMBAR */
.jersey {
  width: 100%;
  max-width: 350px;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER EFFECT */
.jersey:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  .jersey-container {
    flex-direction: column;
    gap: 20px;
  }

  .jersey {
    max-width: 100%;
  }
}

/* JUDUL KECIL */
.fasilitas h3 {
  margin: 25px 0 15px;
  font-size: 18px;
  color: #444;
}

/* ROW FLEX */
.fasilitas-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* GAMBAR */
.fasilitas-row img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* HOVER */
.fasilitas-row img:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  .fasilitas-row {
    flex-direction: column;
    align-items: center;
  }
}

/* POPUP BACKGROUND */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

/* GAMBAR BESAR */
.popup-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
}

/* TOMBOL CLOSE */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
  z-index: 1000000;
}

/* SECTION BOX */
.kategori {
  position: relative;
  background: white;
  max-width: 950px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 20px;

  box-shadow: 
  0 10px 30px rgba(0,0,0,0.1),
  0 20px 40px rgba(250, 204, 21, 0.25);
  overflow: hidden;
  
}

/* AKSEN GOLD ATAS */
.kategori::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;

  background-size: 200% 100%;
  animation: goldFlow 6s linear infinite;
background: linear-gradient(
    90deg,
    #f5e6c8,
    #e8d4aa,
    #d9c08f,
    #e8d4aa,
    #f5e6c8
  );
}
@keyframes goldFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* JUDUL */
.kategori h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 25px;
}

/* CONTAINER GAMBAR */
.kategori-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* GAMBAR */
.kategori-container img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* HOVER HALUS */
.kategori-container img:hover {
  transform: translateY(-5px);
}

@media (max-width: 600px) {
  .kategori {
    margin: 20px 15px;
    padding: 20px;
  }

  .kategori-container {
    flex-direction: column;
    align-items: center;
  }

  .kategori-container img {
    max-width: 100%;
  }
}

/* SECTION */
.sponsor {
  max-width: 950px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
  background: #fafafa;
  border-radius: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 40px;
}

.sponsor h2 {
  font-size: 24px;
  margin-bottom: 25px;
}

/* CONTAINER LOGO */
.sponsor-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* LOGO */
.sponsor-container img {
  max-width: 120px;
  width: 100%;
  object-fit: contain;

  /* biar keliatan rapi */
  filter: grayscale(100%);
  opacity: 0.8;

  transition: all 0.3s ease;
}

/* HOVER (hidup dikit) */
.sponsor-container img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .sponsor-container {
    gap: 20px;
  }

  .sponsor-container img {
    max-width: 90px;
  }
}

@media (max-width: 600px) {
  .sponsor {
    margin: 20px 15px;
    padding: 20px;
    border-radius: 16px;
  }
}

.section-divider {
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    #f5e6c8,
    #e8d4aa,
    #d9c08f,
    #e8d4aa,
    #f5e6c8
  );
  margin: 0px 0;
}


/* ================= CTA SECTION ================= */
.cta {
  position: relative;
  width: 100%;
  padding: 90px 20px;
  text-align: center;
  color: white;
  overflow: hidden;

 background: radial-gradient(circle at 20% 10%, rgba(120,160,255,0.25), transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(120,160,255,0.15), transparent 40%),
              linear-gradient(
                135deg,
                #0f1f4b 0%,   /* biru gelap */
                #1f3f8a 40%,  /* biru utama */
                #2f5fc2 70%,  /* biru terang */
                #1a3a7a 100%  /* balik agak gelap */
              );
}

/* background glow gold */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
   width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(130,170,255,0.3), transparent 70%);
  top: -100px;
  left: -100px;
  filter: blur(80px);
  z-index: 1;
}

/* garis gold atas */
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
inset: 0;

  background: url("https://www.transparenttextures.com/patterns/noise.png");
  opacity: 0.15;
  pointer-events: none;
}

.cta-content {
  max-width: 900px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 18px;
  font-weight: 700;
}

.cta p {
  color: #e2e8f0;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* tombol tetap pakai style website */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


/* ================= FOOTER ================= */
.footer {
  margin-top: 0;
  background: #0a1535;
  color: white;
  padding: 60px 20px 20px;
  position: relative;
}

/* glow gold atas */
.footer::before {
  content: "";
  position: center;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    #f5e6c8,
    #e8d4aa,
    #d9c08f,
    #e8d4aa,
    #f5e6c8
  );
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-col p {
  margin-bottom: 8px;
  color: #cbd5e1;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #cbd5e1;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: #94a3b8;
}

/* WA BUTTON */
.wa-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;

  z-index: 999999; /* 🔥 tambahin ini */
}

body.preload .wa-button {
  opacity: 0;
  visibility: hidden;
  animation: waBounceIn 0.8s ease;
}

.wa-button:hover {
  transform: scale(1.1);
}

@keyframes waPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.wa-button:hover {
  animation: waPulse 0.6s infinite;
}

@keyframes waBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(80px);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) translateY(-10px);
  }
  70% {
    transform: scale(0.95) translateY(5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}



/* ================= SCROLL REVEAL ================= */

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ROUTE SAME SIZE AS RACE INFO */
.route {
  position: relative;
  background: white;
  padding: 30px 35px;
  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* garis emas atas */
.route::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-size: 200% 100%;
  animation: goldFlow 6s linear infinite;

background: linear-gradient(
    90deg,
    #f5e6c8,
    #e8d4aa,
    #d9c08f,
    #e8d4aa,
    #f5e6c8
  );
}
@keyframes goldFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.route h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #1e293b;
}

.route-desc {
  text-align: center;
  margin-bottom: 25px;
  color: #64748b;
}

.route-container {
  display: flex;
  justify-content: center;
  max-width: 900px;
}

.route-container img {
  max-width: 800px; /* samakan feel dengan race-info */
  width: 100%;
  height: auto;

  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s;
}

@media (max-width: 600px) {}
    .route-container {
      max-width: 800px;
    }

@media (max-width: 600px) {
  .route {
    margin: 20px 15px;
    padding: 20px;
    border-radius: 16px;
  }
}
    

/* ================= HERO ANIMATION ================= */

/* LOGO */
.hero-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.9);
}

/* animasi mulai setelah loading */
body.hero-start .hero-reveal {
  animation: logoReveal 1.2s ease forwards;
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* BUTTONS */
.hero-buttons {
  opacity: 0;
  transform: translateY(40px);
}

body.hero-start .hero-buttons {
  animation: buttonReveal 1s ease forwards;
  animation-delay: 0.6s;
}

@keyframes buttonReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   COUNTDOWN HERO
======================= */

.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 35px 0;

  flex-wrap: nowrap; /* 🔥 PENTING: jangan boleh turun */
}

.time-box{
  text-align:center;
  padding:17px 15px;
  min-width: 60px;
  border-radius:14px;
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(10px);
}

.countdown div {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);

  padding: 14px 18px;
  border-radius: 12px;

  min-width: 80px;
  text-align: center;
}

.time-box span{
  font-size:42px;
  font-weight:800;
  font-family:'Montserrat', sans-serif;
  color:#ffffff; /* 🔥 jadi putih */
   text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.time-box span.update{
  transform: scale(1.15);
}

.time-box p{
  font-size:14px;
  margin-top:6px;
  letter-spacing:1px;
  opacity:.85;
  color:#ffffff; /* 🔥 tulisan Days, Hours dll jadi putih */
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
}

@keyframes pulseTick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* efek pulse */
.pulse {
  animation: pulseTick 0.3s ease;
}


@media (max-width: 600px) {
  .time-box span {
    font-size: 28px; /* dari 42 → biar muat */
  }

  .time-box p {
    font-size: 12px;
  }
}

.timeline {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
}

.timeline h2 {
  margin-bottom: 10px;
  color: #fff;
}

.timeline h3 {
  color: #000;
}

.timeline > p {
  color: #fff !important;
}

.timeline p {
  color: #000;
}

.timeline-container {
  margin-top: 40px;
  position: relative;
  padding-left: 20px;
}

/* garis tengah */
.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #ccc;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.timeline-item .time {
  width: 45%;
  text-align: right;
  font-weight: bold;
  font-size: 18px;
  color:#fff;
}

.timeline-item .content {
  width: 45%;
  text-align: left;
  background: #f5e6c8;
  padding: 15px;
  border-radius: 10px;
}

/* ================= PRELOADER ================= */

#preloader{
  position: fixed;
  inset: 0;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:99999;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader::before{
  content: "";
  position: absolute;
  inset: 0;

  background: url('../assets/img/bg-loader.webp') center/cover no-repeat;

  filter: blur(3px);
  transform: scale(1.1);
  z-index: -2;
}

#preloader::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: -1;
}

#preloader.hide{
  opacity:0;
  visibility:hidden;
}

/* LOGO LOADING */
.loader-logo{
  width: clamp(140px,18vw,220px);

  animation: logoLoading 1.8s ease-in-out infinite;
}

/* efek mati nyala premium */
@keyframes logoLoading{
  0%{
    opacity:0.35;
    transform:scale(0.95);
    filter: drop-shadow(0 0 5px rgba(250,204,21,0.2));
  }

  50%{
    opacity:1;
    transform:scale(1.05);
    filter: drop-shadow(0 0 35px rgba(250,204,21,0.9));
  }

  100%{
    opacity:0.35;
    transform:scale(0.95);
    filter: drop-shadow(0 0 5px rgba(250,204,21,0.2));
  }
}

/* hide loader */
#preloader.hide{
  opacity:0;
  visibility:hidden;
}

.back-circle {
  position: fixed;
  top: 30px;
  left: 30px;

  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  color: white;
  font-size: 20px;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.back-circle:hover {
  background: #38bdf8;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(56,189,248,0.4);
}

.hero::before,
.hero::after {
  pointer-events: none;
}

.hero .buttons {
  position: relative;
  z-index: 10;
}

a.btn {
  text-decoration: none;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  color: inherit;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* TIMELINE ANIMATION */
.reveal-timeline {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal-timeline.active {
  opacity: 1;
  transform: translateY(0);
}

/* biar muncul satu-satu (delay bertahap) */
.timeline-item:nth-child(1).active { transition-delay: 0.1s; }
.timeline-item:nth-child(2).active { transition-delay: 0.3s; }
.timeline-item:nth-child(3).active { transition-delay: 0.5s; }
.timeline-item:nth-child(4).active { transition-delay: 0.7s; }

/* ===== DISABLE ANIMATION SAAT BACK ===== */
.no-anim *,
.no-anim *::before,
.no-anim *::after {
  animation: none !important;
  transition: none !important;
}

.no-anim .hero-reveal,
.no-anim .hero-buttons,
.no-anim .reveal,
.no-anim .reveal-timeline {
  opacity: 1 !important;
  transform: none !important;
}

/* 🔥 HARD KILL ANIMATION SAAT BACK */
.no-anim *,
.no-anim *::before,
.no-anim *::after {
  animation: none !important;
  transition: none !important;
}

/* semua langsung muncul */
.no-anim .reveal,
.no-anim .reveal-timeline,
.no-anim .hero-reveal,
.no-anim .hero-buttons {
  opacity: 1 !important;
  transform: none !important;
}

.no-anim .hero::before {
  animation: none !important;
}

/* ================= NAVBAR SCROLL ================= */

.navbar {
  position: fixed;
  top: -100px; /* 🔥 awalnya disembunyiin */
  left: 0;
  width: 100%;
  height: 70px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);

  padding: 0 20px;

  background: rgba(10, 21, 53, 0.85);
  backdrop-filter: blur(10px);

  z-index: 9999;

  transition: top 0.4s ease;
}

/* muncul */
.navbar.show {
  top: 0;
}

/* kiri (logo) */
.nav-left {
  display: flex;
  gap: 10px;
}

.nav-left img {
  height: 45px;
}

/* kanan (hamburger) */
.hamburger {
  width: 28px;
  height: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.7);

  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

/* muncul */
#navbar.show {
  transform: translateY(0);
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

/* animasi hamburger jadi X (optional keren) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: #0a1535;

  padding: 80px 20px;
  padding-top: 0px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  transition: right 0.35s ease;
  z-index: 99999;
}

.sidebar.show {
  right: 0;
}

/* HEADER SIDEBAR */
.sidebar-header {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;

  padding: 12px 20px;
  margin: 8px 10px 10px; /* 🔥 jarak atas dikit (sweet spot) */

  text-align: center;
  color: #fff;

  border-radius: 12px;

  background: linear-gradient(
    135deg,
    rgba(255,215,0,0.2),
    rgba(255,255,255,0.05)
  );

  backdrop-filter: blur(10px);
  text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

.sidebar a {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  margin: 0px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s;
}

.sidebar a:first-of-type {
  margin-top: -5px; /* 🔥 naik sedikit */
}

.sidebar a:last-child {
  border-bottom: none;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.08);
  padding-left: 25px; /* geser dikit pas hover */
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;

  z-index: 9998;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ================= FIX HERO DESKTOP ================= */
@media (min-width: 768px) {

  .hero {
    padding-top: 0;
    padding-bottom: 0;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* wrapper biar rapi tengah */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 25px; /* 🔥 jarak antar logo, countdown, tombol */
    text-align: center;
  }

  /* logo jangan pakai margin negatif */
  .main-logo {
    margin-bottom: 0;
  }

  /* countdown kasih jarak enak */
  .countdown {
    margin: 20px 0;
  }

  /* tombol */
  .hero .buttons {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {

.hero {
    padding-bottom: -50px; /* 🔥 dari 120 → diperkecil */
  }

  .countdown {
    margin-top: 65px; /* 🔥 ini yang bikin turun */
  }

}