/* =========================================================
   1) VARIABLES (Theme & Tokens)
   ---------------------------------------------------------
   - Palet terang, soft shadow & rounded untuk feel modern
   - Gunakan var(...) agar mudah di-branding ulang
========================================================= */
:root {
  /* Colors */
  --bg: #FFFEEB;
  --surface: #f8fafc;       /* latar lembut untuk blok */
  --surface-2: #eef2f7;     /* latar variasi */
  --text: #1f2937;          /* slate-800 */
  --muted: #667085;         /* abu teks sekunder */
  --heading: #0f172a;       /* slate-900 */
  --border: #e5e7eb;        /* abu garis */
  --primary: #00A2E8;       /* biru elegan */
  --primary-600: #1f65c0;   /* hover lebih gelap */
  --accent: #FFD700;        /* ungu lembut */
  --success: #00E600;       /* cyan aksen opsional */

  /* Gradient Accent */
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  /* Shadows & Radius */
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-bold: 0 15px 40px rgba(0, 0, 0, 0.16);
  --shadow-hover: 0 6px 14px rgba(0, 0, 0, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 18px;

  /* Spacing scale */
  --container-x: clamp(16px, 5vw, 80px);
  --font-size-base: clamp(1.5rem, 4vw, 3rem);

  /* z-index */
  --z-base: 1;
  --z-loop: 50;
  --z-navbar: 100;
  --z-loader: 1000;

  --tape-yellow: #f2c300;
  --tape-black: #111;
  --stripe-width: 40px;
  --tape-height: 40px;
  --speed: 16s;
  --font-size: 1.3rem;
}

@font-face {
    font-family: 'hauser'; /* nama font bebas, nanti dipakai di font-family */
    src: url('/ARESTA-21/frontend/asset/FONT/hauser/Hauser Bold.otf') format('opentype');
    font-weight: normal; /* bisa juga bold */
    font-style: normal;  /* bisa italic */
}

/* =========================================================
   2) RESET & BASE
   ---------------------------------------------------------
   - Reset ringan + tipografi nyaman
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* ============================================
   FIX: Loader responsiveness issue on mobile
============================================ */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family:"Segoe UI", Roboto;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--accent);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}

ul,
ol {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 12px;
  font-family: 'hauser', sans-serif;
  overflow: visible !important;
}

/* Utility: kontainer & section spacing */
section {
  padding: clamp(56px, 8vw, 120px) var(--container-x);
  position: relative;
}
/* Pastikan tidak ada area putih di sekeliling layout */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--shine-color);
}

/* Semua elemen utama full lebar tanpa celah */
section, header, footer, .loader-wrapper, .hero {
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100%;
}
/* =========================================================
   LOADING SCREEN (responsive, centered, smooth)
========================================================= */
.loader-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(180deg, var(--primary-700, #0a0a0f), var(--primary-600, #1a1a24));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Saat loading selesai (JS akan tambahkan class 'hidden') */
.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Konten di tengah */
.loader-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Logo ARESTA */
.loader-logo {
  width: clamp(120px, 25vw, 220px);
  height: auto;
  user-select: none;
  animation: float 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

/* Animasi ringan biar terasa hidup */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsif tambahan (untuk device kecil banget) */
@media (max-width: 480px) {
  .loader-logo {
    width: 140px;
  }
}

/* From Uiverse.io by andrew-manzyk */ 
.loader {
  --main-size: 4em;
  --text-color: #ffffff;
  --shine-color: #ffffff40;
  --shadow-color: #aaaaaa;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
  position: relative;
  font-size: var(--main-size);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-color);
  width: 7.3em;
  height: 1em;
  font-family: 'hauser', sans-serif;
  filter: drop-shadow(0 0 0.05em var(--shine-color));
}

.loader .text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
}

.loader .text:nth-child(1) {
  clip-path: polygon(0% 0%, 11.11% 0%, 11.11% 100%, 0% 100%);
  font-size: calc(var(--main-size) / 20);
  margin-left: -2.1em;
  opacity: 0.6;
}

.loader .text:nth-child(2) {
  clip-path: polygon(11.11% 0%, 22.22% 0%, 22.22% 100%, 11.11% 100%);
  font-size: calc(var(--main-size) / 16);
  margin-left: -0.98em;
  opacity: 0.7;
}

.loader .text:nth-child(3) {
  clip-path: polygon(22.22% 0%, 33.33% 0%, 33.33% 100%, 22.22% 100%);
  font-size: calc(var(--main-size) / 13);
  margin-left: -0.33em;
  opacity: 0.8;
}

.loader .text:nth-child(4) {
  clip-path: polygon(33.33% 0%, 44.44% 0%, 44.44% 100%, 33.33% 100%);
  font-size: calc(var(--main-size) / 11);
  margin-left: -0.05em;
  opacity: 0.9;
}

.loader .text:nth-child(5) {
  clip-path: polygon(44.44% 0%, 55.55% 0%, 55.55% 100%, 44.44% 100%);
  font-size: calc(var(--main-size) / 10);
  margin-left: 0em;
  opacity: 1;
}

.loader .text:nth-child(6) {
  clip-path: polygon(55.55% 0%, 66.66% 0%, 66.66% 100%, 55.55% 100%);
  font-size: calc(var(--main-size) / 11);
  margin-left: 0.05em;
  opacity: 0.9;
}

.loader .text:nth-child(7) {
  clip-path: polygon(66.66% 0%, 77.77% 0%, 77.77% 100%, 66.66% 100%);
  font-size: calc(var(--main-size) / 13);
  margin-left: 0.33em;
  opacity: 0.8;
}

.loader .text:nth-child(8) {
  clip-path: polygon(77.77% 0%, 88.88% 0%, 88.88% 100%, 77.77% 100%);
  font-size: calc(var(--main-size) / 16);
  margin-left: 0.98em;
  opacity: 0.7;
}

.loader .text:nth-child(9) {
  clip-path: polygon(88.88% 0%, 100% 0%, 100% 100%, 88.88% 100%);
  font-size: calc(var(--main-size) / 20);
  margin-left: 2.1em;
  opacity: 0.6;
}

.loader .text span {
  animation:
    scrolling 2s cubic-bezier(0.1, 0.6, 0.9, 0.4) infinite,
    shadow 2s cubic-bezier(0.1, 0.6, 0.9, 0.4) infinite;
}

.loader .text:nth-child(1) span {
  background: linear-gradient(
    to right,
    var(--text-color) 4%,
    var(--shadow-color) 7%
  );
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
}

.loader .text:nth-child(2) span {
  background: linear-gradient(
    to right,
    var(--text-color) 9%,
    var(--shadow-color) 13%
  );
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
}

.loader .text:nth-child(3) span {
  background: linear-gradient(
    to right,
    var(--text-color) 15%,
    var(--shadow-color) 18%
  );
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
}

.loader .text:nth-child(4) span {
  background: linear-gradient(
    to right,
    var(--text-color) 20%,
    var(--shadow-color) 23%
  );
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
}

.loader .text:nth-child(6) span {
  background: linear-gradient(
    to right,
    var(--shadow-color) 29%,
    var(--text-color) 32%
  );
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
}

.loader .text:nth-child(7) span {
  background: linear-gradient(
    to right,
    var(--shadow-color) 34%,
    var(--text-color) 37%
  );
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
}

.loader .text:nth-child(8) span {
  background: linear-gradient(
    to right,
    var(--shadow-color) 39%,
    var(--text-color) 42%
  );
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
}

.loader .text:nth-child(9) span {
  background: linear-gradient(
    to right,
    var(--shadow-color) 45%,
    var(--text-color) 48%
  );
  background-size: 200% auto;
  background-clip: text;
  color: transparent;
}

.loader .line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 0.05em;
  width: calc(var(--main-size) / 2);
  margin-top: 0.9em;
  border-radius: 0.05em;
}

.loader .line::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--text-color);
  opacity: 0.3;
}

.loader .line::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 0.05em;
  transform: translateX(-90%);
  animation: wobble 2s cubic-bezier(0.5, 0.8, 0.5, 0.2) infinite;
}

@keyframes wobble {
  0% {
    transform: translateX(-90%);
  }
  50% {
    transform: translateX(90%);
  }
  100% {
    transform: translateX(-90%);
  }
}

@keyframes scrolling {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes shadow {
  0% {
    background-position: -98% 0;
  }
  100% {
    background-position: 102% 0;
  }
}

/* Layer popup */
.popup {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 99999;
  animation: fadeIn 0.3s ease forwards;
}

/* Konten popup */
.popup-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;

  /* Tambahan untuk centering */
  display: flex;
  flex-direction: column; /* supaya isi stack vertikal */
  align-items: center;    /* horizontal center */
  justify-content: center; /* vertical center */
  
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.5s ease;
}

.popup-content p{
  font-family: 'hauser', sans-serif;
}

.popup-content img {
  height: 200px;
  width: auto;

  /* Hapus properti flex yg salah */
  display: block;  /* cukup block biar fleksibel */
  margin: 0 auto;  /* pastikan horizontal center */
}


/* Saat popup aktif muncul */
.popup.show .popup-content {
  opacity: 1;
  transform: translateY(0);
}

/* Tombol close */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
}


/* =========================================================
   4) NAVBAR (sticky, translucent, accessible)
   ---------------------------------------------------------
   - Desktop: inline menu
   - Mobile: dropdown elegan dengan animasi lembut
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: 72px;
  padding: 0 var(--container-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 15, 20, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--border);
  display: flex;
  align-items: center;
  font-family: "hauser", sans-serif;
}

.logonav {
  width: 50px;
  height: auto;
  margin-right: 8px;
}

/* Hamburger (mobile-first) */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.hamburger:hover {
  transform: scale(1.05);
}

.hamburger span {
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background-image: var(--gradient);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Icon jadi X saat aktif */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =====================
   NAV LINKS (Mobile)
===================== */
  .nav-links {
    position: absolute;
    top: 72px;
    right: var(--container-x);
    width: 260px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.35s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li a {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    font-family: 'hauser', sans-serif;
    letter-spacing: 1px;
  }

  .nav-links li a:hover {
    background: rgba(42, 123, 228, 0.08);
    color: var(--primary-600);
  }
/* =====================
   NAV LINKS (Desktop)
===================== */
@media (min-width: 992px) {
  .hamburger {
    display: none;
  }

  .navbar {
    height: 80px;
  }

  nav {
    margin-left: auto;
  }

  .nav-links {
    position: static;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    gap: 28px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links li a {
    color: var(--border);
    padding: 8px 4px;
    border-radius: 6px;
    position: relative;
    transition: color 0.25s ease;
  }

  .nav-links li a:hover {
    color: var(--primary);
  }

  /* Underline halus */
  .nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 100%;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .nav-links li a:hover::after {
    transform: scaleX(1);
  }
}

@media (min-width: 992px) {
  .navbar {
    position: sticky;
  }
}
/* =========================================================
5) HERO SECTION
---------------------------------------------------------
- Light, airy, subtle gradient & dots pattern
========================================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  min-height: 100vh;
  padding: 100px 20px 80px;
  text-align: center;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
    url("/ARESTA-21/frontend/asset/Element/BGWEB.webp") center/cover no-repeat;
  overflow: hidden;
  z-index: 1;
}

/* Layer kuning biru */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(170deg, 
      rgba(255, 215, 0, 0.8) 0%, 
      rgba(255, 215, 0, 0.6) 35%, 
      rgba(0, 80, 255, 0.6) 65%, 
      rgba(0, 80, 255, 0.8) 100%);
  mix-blend-mode: multiply;
  z-index: 0;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  animation: fadeInUp 1.2s ease forwards;
}

/* Logo ARESTA */
.hero-logo {
  width: clamp(240px, 55vw, 700px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s ease, filter 0.3s ease;
  z-index: 5px;
  padding-top: 80px;
  margin-bottom: -30px;
}




.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.3));
}

/* Subheadline */
.hero-sub {
  font-family: 'Hauser', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  color: #fff;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(255, 255, 255, 0.2);
  margin-top: 0px;
  z-index: 1px;
}

/* Countdown Box */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  min-width: 90px;
  transition: transform 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-5px);
}

.countdown-item strong {
  font-size: 2rem;
  color: #000;
}

.countdown-item span {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-top: 6px;
}

/* Animasi Muncul */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsif */
@media (max-width: 768px) {
  .hero {
    padding: 80px 16px;
    gap: 20px;
  }

  .hero-sub {
    font-size: clamp(22px, 6vw, 32px);
    letter-spacing: 2px;
  }

  .countdown-item {
    padding: 16px 20px;
    min-width: 70px;
  }
}


/* ===== WARNING LINE SCROLL EFFECT ===== */
.warning-divider {
  position: relative;
  height: 130px;
  background: linear-gradient(to bottom,  #213145 , #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
}

/* === PITA UTAMA === */
.warning-line {
  position: absolute;
  width: 120%;
  height: 75px;
  background: #f7e600;
  color: #111;
  font-family: "Hauser", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  transform: rotate(0deg); /* ubah ke -5deg kalau mau miring */
}

/* === TEKS BERJALAN === */
.warning-track {
  display: flex;
  white-space: nowrap;
  animation: warningScroll 12s linear infinite;
}

.warning-track span {
  padding-right: 3rem;
  letter-spacing: 0.15em;
  font-size: 1.8rem;
  user-select: none;
}

@keyframes warningScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .warning-divider { height: 100px; }
  .warning-line { height: 60px; }
  .warning-track span { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .warning-divider { height: 80px; }
  .warning-line { height: 50px; }
  .warning-track span { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .warning-divider { height: 60px; }
  .warning-line { height: 40px; }
  .warning-track span { font-size: 0.9rem; }
}



/* =========================================================
6) COUNTDOWN (card kecil, readable)
========================================================= */
.countdown-container {
  margin-top: 16px;
  display: grid;
  grid-auto-flow: column;
  gap: 14px;
  justify-content: center;
}

.count-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 90px;
  padding: 12px 14px;
}

.count-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
}

.count-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ==============================
   PEMBATAS ANTAR SECTION (DOUBLE)
============================== */
.section-divider.double {
  position: relative;
  height: 180px;
  background: linear-gradient(to bottom, var(--primary-600) 0%, #ffffff 100%);
  overflow: visible;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================
   PITA POLICE LINE
============================== */
.text-loop.tape {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 75px;
  background: #f7e600;
  color: #111;
  text-transform: uppercase;
  font-family: "Hauser", sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  overflow: hidden;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

/* ==============================
   TEKS BERGERAK
============================== */
.text-track {
  display: flex;
  white-space: nowrap;
  animation: scroll 12s linear infinite;
  gap: 0;
}

.text-track span {
  padding-right: 3rem;
  letter-spacing: 0.15em;
  font-size: 1.8rem;
  user-select: none;
}

/* Tape pertama dan kedua */
.tape-1 {
  transform: rotate(-5deg);
  top: 30%;
  z-index: 2;
}

.tape-2 {
  transform: rotate(5deg);
  top: 55%;
  z-index: 1;
  opacity: 0.9;
  animation-direction: reverse;
}

/* ==============================
   ANIMASI BERGERAK
============================== */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==============================
   RESPONSIVE DESIGN
============================== */
@media (max-width: 1024px) {
  .section-divider.double {
    height: 140px;
  }
  .text-loop.tape {
    height: 60px;
  }
  .text-track span {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .section-divider.double {
    height: 100px;
  }
  .text-loop.tape {
    height: 45px;
  }
  .tape-1 { transform: rotate(-4deg); top: 35%; }
  .tape-2 { transform: rotate(4deg); top: 60%; }
  .text-track span {
    font-size: 0.9rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-divider.double {
    height: 80px;
  }
  .text-loop.tape {
    height: 35px;
  }
  .text-track span {
    font-size: 0.75rem;
  }
}

/* =========================================================
   7) ABOUT SECTION (card + video)
========================================================= */
.about-title,
.event-title,
.TimeLine-h2,
.Competition-card {
  text-align: center;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 28px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* =========================================================
   ABOUT SECTION (ARESTA 21 THEME)
========================================================= */
.about {
  background: var(--surface, #fff);
  color: var(--text-color, #1e293b);
  padding: clamp(60px, 6vw, 100px) var(--container-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  position: relative;
}

/* Judul Utama */
.about-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary-700, #1e293b);
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.about-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

/* Konten Teks */
.about-content {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg, 20px);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.about-content h2 {
  color: var(--primary-700, #1e293b);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-content p {
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #333;
}

.about-content b {
  color: var(--primary-600, #2563eb);
  font-weight: 700;
}

  /* Video Container */
  .about-video-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow-md);
  }

  .video-wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: inherit;
    overflow: hidden;
    position: relative;
  }

  .about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    filter: brightness(0.95);
    transition: filter 0.4s ease;
  }

  .about-video:hover {
    filter: brightness(1.05);
  }
/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content {
    order: 2;
  }

  .about-video-container {
    order: 1;
  }

  .about-content h2 {
    font-size: 1.2rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }
}

/* =========================================================
   EVENTS SECTION (disesuaikan agar seirama dengan PENGINAPAN)
========================================================= */
.event-section {
  background: var(--primary-600);
  padding: clamp(60px, 6vw, 100px) var(--container-x);
  color: #fff;
  text-align: center;
  height: auto;
  position: relative;
  gap: 10px;
}

/* Judul Event */
.event-section h1,
.event-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.event-section h1::after,
.event-section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

/* Konten (misal slider/splide wrapper) */
.event-section .splide {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}


.sponsor-title {
	text-align: center;
	padding-bottom: 0px;
	
}
/* Sponsor section (kalau ada di bawah event) */
.sponsor-section {
  background: var(--accent);
  border-top: 3px solid #000;
  height: 200px;
  border-bottom:3px solid #000;
}

.sponsor-logos {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.9;
}

.sponsor-logos img {
  width: 120px;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sponsor-logos img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Responsif */
@media (max-width: 600px) {
  .event-section .splide {
    padding: 1.2rem;
  }

  .btn-competition {
    width: 80%;
    font-size: 0.95rem;
  }
}

/* =====================
   PENGINAPAN SECTION
===================== */
.accommodation-section {
  background: var(--surface, #f8fafc);
  padding: clamp(60px, 6vw, 100px) var(--container-x, 5vw);
  text-align: center;
  color: #333;
  position: relative;
}

/* Judul Utama */
.accommodation-section .event-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary-700, #1e293b);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

/* Garis dekoratif di bawah judul */
.accommodation-section .event-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--primary-500, #2563eb);
  border-radius: 3px;
}

/* Konten deskripsi */
.accommodation-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);

  background: rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
}


/* Tombol bagian bawah */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--text)!important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  margin-top: 8px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: 'hauser', sans-serif;
  letter-spacing: 1px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--accent);
}

.btn:active {
    transform: translateY(0);
}
/* Responsif untuk layar kecil */
@media (max-width: 600px) {
  .accommodation-content {
    font-size: 0.95rem;
    padding: 1.2rem 1rem;
  }
}

/* ============================
   TIMELINE SECTION STYLE
============================ */
.timeline-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--primary-600) 100%);
  padding: clamp(40px, 6vw, 80px) var(--container-x, 24px);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: visible;
}

/* Pastikan item container menjadi RELATIVE */
.timeline-item.right,
.timeline-item.left {
    position: relative; /* Ini sangat PENTING! */
    /* ... properti left: 50%, dll tetap ... */
}

/* ====== Title ====== */
.TimeLine-h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #e0e7ff;
  margin-bottom: 60px;
  position: relative;
  letter-spacing: 1px;
}

.TimeLine-h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ====== Timeline Wrapper ====== */
.timeline {
    /* 1. Kunci Utama: Memastikan Garis Absolute Bekerja */
    position: relative; 
    
    /* 2. Memaksa Container Mengandung Semua Floating Items (Clearfix) */
    /* Menggantikan display: flow-root; dengan teknik clearing yang lebih kompatibel. */
    overflow: hidden; /* <-- PERUBAHAN UTAMA UNTUK MENGATASI TINGGI KOLAPS */
    
    /* 3. Menambahkan Ruang Ekstra di Bawah */
    padding-bottom: 80px; 
    padding-top: 20px;
    max-width: 950px; /* Pertahankan lebar maksimum yang Anda miliki di kode lama */
    margin: 0 auto; /* Pertahankan centering */
}

/* ====== Garis Tengah ====== */
.timeline::after {
  content: "";
  position: absolute;
  z-index : 1;
  width: 4px;
  background: linear-gradient(180deg, #6366f1, #06b6d4);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.9;
}

/* ====== Timeline Item ====== */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* ====== Bubble (Kotak isi timeline) ====== */
.timeline-item .content {
  background: var(--accent);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  font-family: 'hauser', sans-serif;
  letter-spacing: 1px;
}

.timeline-item .content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-bold);
}

/* ====== Date Text ====== */
.timeline-item .date {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text);
  font-style: italic;
}

/* ====== Lingkaran titik ====== */
.timeline-item::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-radius: 50%;
  top: 28px;
  z-index: 1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Titik di kiri-kanan */
.timeline-item.left::after {
  right: -9px;
  z-index: 2;
}

.timeline-item.right::after {
  left: -9px;
  z-index: 2;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
  .timeline::after {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 20px;
    text-align: left;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left::after {
    left: 0;
  }
  
    .timeline-item.right::after {
    left: 0;
  }

  .timeline-item .content {
    font-size: 14px;
  }
}
/* =========================================================
   SPLIDE SLIDER CUSTOMIZATION + SPONSOR MARQUEE
/* Splide custom minimal */
.splide {
  max-width: 1100px;
  margin: 12px auto 0;
}

.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

/* Arrows */
.splide__arrow {
  background: #fff !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  width: 38px;
  height: 38px;
  opacity: 0.9;
}
.splide__arrow:hover {
  opacity: 1;
}

/* Pagination dots */
.splide__pagination__page {
  background: #cbd5e1 !important;
}
.splide__pagination__page.is-active {
  background: var(--primary) !important;
}
/* ===========================
   SPONSOR MARQUEE (RESPONSIVE)
   =========================== */
.sponsor-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.sponsor-track {
  display: none;
  /*gap: clamp(20px, 5vw, 56px);
  padding: clamp(10px, 2vw, 18px) clamp(6px, 2vw, 12px);
  animation: scroll-left 22s linear infinite;*/
}

/* Animasi */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Logo Sponsor */
.sponsor-logo {
  width: clamp(32px, 8vw, 56px);
  height: clamp(32px, 8vw, 56px);
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.sponsor-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* ===========================
   SPONSOR STATE CONTROL
   =========================== */
/* ===========================
   SPONSOR STATE CONTROL
   =========================== */
.sponsor-section.empty .sponsor-placeholder {
  color: gray;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 5vw, 40px) 0;
  font-family: 'hauser', sans-serif;
  letter-spacing: 1px;
  width: 100%;
  /* Gunakan clamp untuk margin agar tidak terlalu besar di layar kecil dan besar */
  margin-top: clamp(-30px, -5vw, -50px);
  margin-bottom: clamp(-10px, -3vw, -30px);
  /* Ukuran font yang responsif */
  font-size: clamp(14px, 2vw, 18px);
}

/* Menyembunyikan marquee di perangkat kecil, tampilkan di besar */
.sponsor-section.filled .sponsor-marquee {
  display: none;
}

.sponsor-section.filled .sponsor-placeholder {
  display: none;
}
/* Optional: tambahkan media query untuk penyesuaian lebih spesifik */
@media (max-width: 480px) {
  .sponsor-section.empty .sponsor-placeholder {
    font-size: 12px; /* Lebih kecil di perangkat sangat kecil */
    padding: 15px 0; /* Sedikit padding berbeda jika diperlukan */
  }
}

@media (min-width: 1200px) {
  .sponsor-section.empty .sponsor-placeholder {
    font-size: 20px; /* Lebih besar di layar besar */
    padding: 30px 0;
  }
}
/* Jika ingin menampilkan marquee di ukuran tertentu, bisa tambahkan media query */
@media (min-width: 768px) {
  .sponsor-section.filled .sponsor-marquee {
    display: block;
  }
}

/* ===========================
   Keterangan Sponsor
   =========================== */
.ket-sponsor {
  color: var(--text);
  text-shadow: var(--shadow-md);
}

/* ===========================
   TOMBOL WA (RESPONSIVE)
   =========================== */
.sponsor-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--border);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-soft);
  color: var(--text)!important;
  padding: clamp(8px, 2vw, 12px) clamp(14px, 4vw, 24px);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: 'hauser', sans-serif;
  letter-spacing: 1px;
  font-size: clamp(12px, 2.5vw, 16px);
}

.sponsor-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===========================
   EXTRA RESPONSIVE TUNING
   =========================== */
@media (max-width: 480px) {
  .sponsor-track {
    animation-duration: 18s; /* Lebih cepat di HP */
  }
}

@media (min-width: 1600px) {
  .sponsor-track {
    animation-duration: 28s; /* Lebih lambat di layar besar */
  }
}

/* text-line */
/* =========================
   Responsive HP (max-width: 768px)
========================= */
@media (max-width: 768px) {
  /* Splide tetap sama kaya desktop, cuma kasih padding */
  .splide {
    max-width: 100%;
    margin: 12px auto 0;
    padding: 0 12px; /* biar ga nempel ke tepi layar */
  }

  .splide__slide img {
    width: 100%;
    height: 100%; /* biar proporsional tapi bentuk sama */
    /* max-height: 260px; jaga proporsi biar gak kepanjangan */
  }

  /* Arrow & dots biarin sama aja, ga usah dikecilin */
  .splide__arrow {
    width: 38px;
    height: 38px;
  }

  /* Sponsor marquee hampir sama */
  .sponsor-track {
    gap: 40px; /* sedikit lebih rapat tapi bentuk sama */
    padding: 16px 8px;
    animation: scroll-left 22s linear infinite;
  }

  .sponsor-logo {
    width: 56px;
    height: 56px;
  }
}

/* =========================================================
   9) CONTACT / FOOTER GRID
========================================================= */
.contact-section {
  background: var(--bg);
}

.contact-btn {
  display: inline-block;
  background-color: var(--primary-600);
  backdrop-filter: blur(4px);
  color: white;
  font-weight: 600;
  text-decoration: none;      /* sangat kecil */
  border-radius: 4px;     /* lebih kecil */
  font-size: 11px;        /* teks mini */
  font-family: sans-serif;
  letter-spacing: 0.3px;  /* rapat */
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  padding: 3px 4px;
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.footer-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* Desktop 3 kolom */
@media (min-width: 900px) {
  .footer-container {
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 28px;
  }
}

.footer-column h3 {
  color: var(--primary-600);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.footer-column p {
  color: var(--text);
  opacity: 0.95;
}

.footer-column iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: var(--radius);
}

/* Bottom footer */
footer {
  border-top: 1px solid var(--border);
  padding: 18px var(--container-x) 26px;
  background: var(--surface);
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  width: 100px;
  height: auto;
  margin-bottom: 6px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
}
/* =========================================================
   10) ANIMATIONS HELPERS (dipakai JS hamburger)
========================================================= */
.nav-links li a[data-animate] {
  opacity: 0;
  transform: translateY(-8px);
}
.nav-links.open li a[data-animate] {
  animation: fadeSlideIn 0.35s ease forwards;
}

/* =========================================================
   11) RESPONSIVE TUNING
========================================================= */
@media (max-width: 768px) {
  .countdown-container {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .sponsor-logo {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 84vh;
  }
  .countdown-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .count-block {
    min-width: auto;
  }
}

/* =========================================================
   12) REDUCED MOTION (aksesibilitas)
========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { 
    animation-duration: 0.01ms !important; 
    animation-iteration-count: 1 !important; 
    transition-duration: 0.01ms !important; 
    scroll-behavior: auto !important;
  }
  .sponsor-track { animation: none; }
}

/* =========================================================
   13) EXTRA: CTA Button (opsional, tulis class="btn-accent")
========================================================= */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent:active {
  transform: translateY(0);
}
