/* ============================================
   ROOT VARIABLES
============================================ */
:root {
  --bg-body: #090514;
  --bg-card: rgba(20, 12, 36, 0.65);
  --border-glow: rgba(168, 85, 247, 0.25);
  --text-main: #f3f4f6;
  --text-sub: #a1a1aa;
  --accent-primary: #c084fc;
  --accent-secondary: #9333ea;
  --accent-pink: #e879f9;
  --accent-gradient: linear-gradient(135deg, #a855f7, #7e22ce, #e879f9);
  --accent-btn-gradient: linear-gradient(135deg, #AE22C6, #7826CE);
  --shadow-glow: 0 8px 32px rgba(147, 51, 234, 0.35);
  --shadow-neon: 0 0 40px rgba(168, 85, 247, 0.25);
  --accent-blue-light: #c084fc;
  --accent-cyan: #e879f9;
  --accent-indigo: #818cf8;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET & BASE
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  background-image: 
    radial-gradient(ellipse at 10% 20%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(232, 121, 249, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ============================================
   SCROLLBAR STYLING
============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 10px;
}

/* ============================================
   BACKGROUND VIDEO / ANIMATED BG
============================================ */
#bg-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#bg-media-slot,
#bg-media-slot video,
#bg-media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

#bg-video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 5, 20, 0.75);
  backdrop-filter: blur(4px);
}

#bg-video-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232, 121, 249, 0.12) 0%, transparent 50%);
  animation: orbPulse 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes orbPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0px); filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 0 30px rgba(232, 121, 249, 0.6)); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(168, 85, 247, 0.25); box-shadow: 0 0 20px rgba(168, 85, 247, 0.1); }
  50% { border-color: rgba(232, 121, 249, 0.45); box-shadow: 0 0 35px rgba(232, 121, 249, 0.2); }
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

/* ============================================
   HEADER
============================================ */
header {
  background: rgba(9, 5, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  position: sticky;
  top: 0;
  z-index: 90;
  animation: borderGlow 5s ease-in-out infinite;
}

.nav-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.brand:hover {
  transform: scale(1.03);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-glow);
  box-shadow: none;
}

.brand span {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #a855f7, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

/* ============================================
   MAIN WRAPPER
============================================ */
.main-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseRing 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 24px;
  padding: 3px;
  background: var(--accent-gradient);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.hero-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.5);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
}

.hero-text-card {
  margin-bottom: 24px;
}

.hero-welcome {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-sub);
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* PERBAIKAN GRADIENT TEKS UNTUK ANIMASI HURUF */
.hero-greeting .char-anim {
  background: linear-gradient(135deg, #38bdf8, #a855f7, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.hero-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
============================================ */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.h-btn {
  width: 100%;
  max-width: 320px;
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  cursor: pointer;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.h-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.25);
}

.h-btn:active {
  transform: scale(0.98);
}

.h-btn.primary {
  background: var(--accent-btn-gradient);
  border: none;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.h-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SECTION & CARDS
============================================ */
.section-box {
  margin-bottom: 44px;
}

.section-header-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.section-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: 22px;
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 121, 249, 0.5);
  box-shadow: var(--shadow-neon);
}

.cat-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.cat-icon-title i {
  font-size: 1.3rem;
  color: var(--accent-primary);
}

.cat-desc {
  font-size: 0.83rem;
  color: var(--text-sub);
  padding-left: 36px;
  line-height: 1.6;
}

/* ============================================
   ABOUT & STATS BOX
============================================ */
.about-box, .stats-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: 26px;
  padding: 28px 22px;
  margin-bottom: 40px;
  transition: var(--transition-smooth);
}

.about-box:hover, .stats-box:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--shadow-neon);
}

.about-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.about-box p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 14px;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.role-tag {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--accent-pink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

.stats-box {
  text-align: center;
}

.stats-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e879f9, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
  line-height: 1.1;
}

.stats-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.stats-desc {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  text-align: left;
  margin-bottom: 20px;
}

.feature-mini {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  padding: 16px;
  border-radius: 16px;
}

.feature-mini h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-mini h5 i {
  margin-right: 6px;
  color: var(--accent-pink);
}

.feature-mini p {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.order-cta-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-glow);
  border-radius: 20px;
  padding: 22px 18px;
}

.order-cta-box p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 14px;
}

/* ============================================
   MODALS & POPUP
============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 5, 20, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-wa-card, .payment-modal-card {
  background: #0f0821;
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  width: 100%;
  max-width: 380px;
  padding: 32px 22px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .popup-wa-card,
.modal-overlay.active .payment-modal-card {
  transform: scale(1);
}

.popup-close-circle {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  color: var(--text-sub);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.popup-close-circle:hover {
  border-color: var(--accent-pink);
  color: #fff;
}

.popup-avatar-box {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--accent-pink);
  box-shadow: none;
}

.popup-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-title, .pay-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.popup-desc {
  font-size: 0.83rem;
  color: var(--text-sub);
  margin-bottom: 22px;
  line-height: 1.6;
}

.popup-btn-join, .pay-confirm-btn {
  display: block;
  width: 100%;
  background: var(--accent-btn-gradient);
  color: #fff;
  text-decoration: none;
  padding: 14px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.popup-btn-join:hover, .pay-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.6);
}

.popup-btn-later {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  color: var(--text-sub);
  padding: 13px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.popup-btn-later:hover {
  border-color: var(--accent-primary);
  color: #fff;
}

.qris-box {
  background: #fff;
  padding: 14px;
  border-radius: 18px;
  width: 190px;
  height: 190px;
  margin: 0 auto 16px;
}

.qris-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wallet-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-info h5 {
  font-size: 0.72rem;
  color: var(--text-sub);
  text-transform: uppercase;
}

.wallet-info p {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.copy-btn {
  background: var(--accent-btn-gradient);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ============================================
   SPLASH SCREEN
============================================ */
.splash-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-body);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.splash-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-btn-gradient);
  animation: progressAnimation 1.5s ease-in-out forwards;
}

@keyframes progressAnimation {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ============================================
   FOOTER
============================================ */
footer {
  border-top: 1px solid var(--border-glow);
  background: rgba(9, 5, 20, 0.95);
  backdrop-filter: blur(16px);
  padding: 40px 20px 30px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-socials a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
}

.footer-socials a:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}

.footer-section-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-contact-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-menu-list a {
  color: var(--text-sub);
  text-decoration: none;
}

.footer-menu-list a:hover {
  color: var(--accent-pink);
}

.copyright {
  border-top: 1px solid var(--border-glow);
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--text-sub);
  text-align: center;
}

/* ============================================
   ANIMASI TEKS PER HURUF (HERO SECTION)
============================================ */
.char-anim {
  display: inline-block;
  opacity: 0;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.char-anim.from-left {
  animation-name: charSlideFromLeft;
}

.char-anim.from-right {
  animation-name: charSlideFromRight;
}

@keyframes charSlideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-25px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes charSlideFromRight {
  0% {
    opacity: 0;
    transform: translateX(25px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ============================================
   ANIMASI FADE-IN BERURUTAN (STAGGERED)
============================================ */
.cascade-item {
  opacity: 0;
  transform: translateY(20px); /* Mulai dari agak ke bawah sedikit */
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cascade-item.show-cascade {
  opacity: 1;
  transform: translateY(0); /* Muncul halus ke posisi asli */
}
/* ============================================
   ANIMASI KETIKAN (TYPEWRITER EFFECT)
============================================ */
@keyframes typeChar {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.char-anim {
  display: inline-block;
  opacity: 0;
  animation: typeChar 0.05s ease-out forwards;
}

/* Menjaga warna gradient judul agar tidak transparan */
.hero-greeting .char-anim {
  background: linear-gradient(135deg, #38bdf8, #a855f7, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ============================================
   ANIMASI GARIS LOADING (BOLAK-BALIK KIRI-KANAN)
============================================ */
.splash-progress-bar {
  width: 100%;
  max-width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.splash-progress-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #a855f7, #f472b6);
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  animation: progressPingPong 1.2s ease-in-out infinite alternate;
}

@keyframes progressPingPong {
  0% {
    left: 0%;
    transform: translateX(0%);
  }
  100% {
    left: 100%;
    transform: translateX(-100%);
  }
}
