/* ===============================
   ROOT & THEME
================================ */
:root {
  --gold: #d4af37;
  --gold-soft: rgba(212,175,55,0.25);
  --white: #ffffff;
  --black: #0b0b0f;

  --glass-bg-dark: rgba(20,20,30,0.45);
  --glass-bg-light: rgba(255,255,255,0.55);

  --blur: blur(18px);
  --radius: 18px;
  --transition: all .4s ease;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #000, #1a1a1f);
  color: var(--white);
  min-height: 100vh;
  transition: background .6s ease, color .6s ease;
}

body.theme-light {
  background: linear-gradient(135deg, #fff, #f6f3ea);
  color: #111;
}

/* ===============================
   LIQUID GLASS
================================ */
.glass {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.35),
    inset 0 0 0.5px rgba(255,255,255,0.6);
  transition: var(--transition);
}

body.theme-light .glass {
  background: var(--glass-bg-light);
  border: 1px solid rgba(0,0,0,0.1);
}

/* ===============================
   HEADER
================================ */
.header {
  margin: 30px 20px;
  padding: 30px;
  text-align: center;
}

.header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}

.subtitle {
  opacity: .85;
  margin-top: 6px;
}

/* ===============================
   NAVIGATION
================================ */
.nav {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  padding: 14px 22px;
  z-index: 50;
}

.nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--gold);
  background: var(--gold-soft);
}

body.theme-light .nav a {
  color: #111;
}

/* ===============================
   FOOTER
================================ */
.footer {
  margin: 80px 20px 120px;
  padding: 20px;
  text-align: center;
  font-size: .9rem;
  opacity: .75;
}

/* ===============================
   TIMELINE (ABOUT)
================================ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 60px 20px;
}

/* GARIS CACING */
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold),
    transparent
  );
  transform: translateX(-50%);
  border-radius: 10px;
  opacity: .6;
  z-index: 1;
}

.timeline-item {
  display: flex;
}

.timeline-item.left {
  justify-content: flex-start;
}

.timeline-item.right {
  justify-content: flex-end;
}

.timeline-card {
  width: min(480px, 90%);
  padding: 25px;
  opacity: 0;
  position: relative;
  z-index: 2;
  transition: all .8s ease;
}

.timeline-card h2 {
  color: var(--gold);
  margin-top: 0;
}

/* ARAH MASUK */
.timeline-item.left .timeline-card {
  transform: translateX(-80px) translateY(20px);
}

.timeline-item.right .timeline-card {
  transform: translateX(80px) translateY(20px);
}

.timeline-item .timeline-card.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ===============================
   PRESET / STORE / SOCIAL / GROUP
================================ */
.preset-list,
.store-list,
.social-list,
.group-list {
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 25px;
}

.preset-card,
.store-card,
.social-card,
.group-card {
  padding: 24px;
  transition: var(--transition);
}

.preset-card:hover,
.store-card:hover,
.social-card:hover,
.group-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
}

.preset-links a,
.btn-store,
.btn-social,
.btn-group {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--white);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  transition: var(--transition);
  min-height: 44px; /* standar tap HP */
  text-align: center; 
}

.preset-links a:hover,
.btn-store:hover,
.btn-social:hover,
.btn-group:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

/* ===============================
   STORE
================================ */
.store-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ===============================
   LOADING SCREEN
================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1a1a1f, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease;
}

#loading-text {
  font-weight: 700;
  color: var(--gold);
}

#loading-percent {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 8px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
  .timeline-line {
    left: 12px;
  }

  .timeline-item {
    justify-content: flex-start;
  }

  .timeline-card {
    margin-left: 24px;
    width: calc(100% - 30px);
  }
}


/* ===============================
   MUSIC POPUP
================================ */
.music-popup {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 260px;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
  animation: fadeUp .6s ease;
}

.music-popup h3 {
  margin: 0;
  color: var(--gold);
}

.music-controls {
  display: flex;
  gap: 10px;
}

.music-controls button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.music-controls button:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

#progress {
  width: 100%;
}

.time {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  opacity: .8;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   LOGO CIRCLE (HOME)
================================ */
.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.logo-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--glass-bg-dark);
  padding: 6px;

  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(212,175,55,0.12),
    0 12px 35px rgba(0,0,0,.45);

  transition: var(--transition);
}

/* Hover subtle */
.logo-circle:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 8px rgba(212,175,55,0.2),
    0 18px 45px rgba(0,0,0,.55);
}

/* ===============================
   CARD SCROLL ANIMATION (GLOBAL)
================================ */


.animate-card {
  opacity: 0;
  transform: translateY(30px) scale(.96);
  transition:
    opacity .8s ease,
    transform .8s ease;
}

/* SAAT MUNCUL */
.animate-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* DELAY OTOMATIS BERTAHAP */
.animate-card:nth-child(1) { transition-delay: .05s; }
.animate-card:nth-child(2) { transition-delay: .15s; }
.animate-card:nth-child(3) { transition-delay: .25s; }
.animate-card:nth-child(4) { transition-delay: .35s; }

/* HOVER LEBIH HIDUP */
.animate-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    0 30px 70px rgba(0,0,0,.45),
    0 0 25px rgba(212,175,55,.25);
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 480px) {

  body {
    font-size: 15px;
  }

  .header {
    margin: 20px 14px;
    padding: 22px;
  }

  .header h1 {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: .9rem;
  }

  .logo-circle {
    width: 90px;
    height: 90px;
  }

  .preset-list,
  .store-list,
  .social-list,
  .group-list {
    grid-template-columns: 1fr;
    padding: 20px 14px;
  }

  .nav {
    width: calc(100% - 20px);
    bottom: 10px;
    padding: 12px;
    gap: 10px;
  }

  .nav a {
    font-size: .85rem;
    padding: 6px 8px;
  }

  .music-popup {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

