/* ============================================
   CUSTOM STYLES - Udara Jakarta Landing Page
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --color-primary: #4f9cf9;
  --color-primary-dark: #027bbe;
  --color-hero-dark: #0a1628;
  --color-hero-mid: #0d2137;
  --font-jakarta: 'Plus Jakarta Sans', sans-serif;
  --font-manrope: 'Manrope', sans-serif;
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-manrope);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ============ HERO SECTION ============ */
.hero-section {
  position: relative;
  overflow: hidden;

  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     BACKGROUND HERO — ubah di sini
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     background-size options:
       cover   → gambar mengisi penuh (terpotong jika perlu)
       contain → gambar tampil utuh (ada sisa kosong)
       100%    → lebar pas, tinggi otomatis
       100% 100% → paksa isi penuh (distorsi)

     background-position options:
       center, top, bottom, left, right
       atau kombinasi: "center top", "left bottom"
  */
  background-image: url('../images/background-hero copy.png');
  background-size: 120%;           /* ← UBAH UKURAN DI SINI */
  background-position: center top; /* ← UBAH POSISI DI SINI */
  background-repeat: no-repeat;
  padding-top: 80px; /* Kompensasi fixed navbar */
}

/* Vector SVG dekoratif — sembunyikan karena pakai bg-hero.png */
.vector-bg {
  display: none;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(193, 193, 193, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

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

.navbar a {
  transition: opacity 0.2s;
}

.navbar a:hover {
  opacity: 0.75;
}

/* ============ HERO CONTENT ============ */
.hero-badge {
  background: rgba(112, 147, 236, 0.2);
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.hero-heading {
  font-family: var(--font-manrope);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.btn-download {
  background: var(--color-primary);
  transition: background 0.2s, transform 0.2s;
  font-family: var(--font-jakarta);
}

.btn-download:hover {
  background: #3a8ef0;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-jakarta);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* Phone mockup */
.phone-mockup {
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

/* ============ SECTION TITLES ============ */
.section-title {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.48px;
  color: #000;
}

.section-subtitle {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 16px;
  color: #aaa;
  letter-spacing: -0.24px;
  line-height: 24px;
}

/* ============ CAMPAIGN STEPS ============ */
.step-card {
  background: rgba(151, 214, 248, 0.15);
  border-radius: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(2, 123, 190, 0.15);
}

.step-number {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: 80px;
  color: var(--color-primary-dark);
  line-height: 80px;
  letter-spacing: -2px;
}

.step-title {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-primary-dark);
  letter-spacing: -0.55px;
  line-height: 33px;
}

.step-desc {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 16px;
  color: #a1a1a1;
  line-height: 26px;
}

/* ============ LEVEL BADGES ============ */
.level-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  text-align: center;
}

.level-icon-wrapper {
  width: 128px;
  height: 128px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.level-icon-wrapper.highlight {
  background: rgba(111, 251, 133, 0.3);
}

.level-icon-wrapper.green {
  background: #d4feda;
}

/* ============ REWARD CARDS ============ */
.reward-card {
  flex: 1;
}

.reward-image-wrapper {
  width: 100%;
  height: 252px;
  border-radius: 24px;
  overflow: hidden;
  background: #d9d9d9;
}

.reward-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reward-title {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 20px;
  color: #2a2a2a;
  line-height: 33px;
}

.reward-desc {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 16px;
  color: #a1a1a1;
  line-height: 26px;
}

/* ============ BADGE ITEMS ============ */
.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  justify-content: center;
  max-height: 417px;
  overflow: hidden;
  position: relative;
}

.badge-grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 315px;
  background: linear-gradient(to top, white 4%, transparent);
  pointer-events: none;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 475px;
  height: 80px;
  padding: 20px;
  background: #f2fbff;
  border-radius: 24px;
}

.badge-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: rgba(0, 97, 167, 0.1);
  border: 2px solid rgba(0, 97, 167, 0.2);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.badge-info {
  flex: 1;
}

.badge-name {
  font-family: var(--font-jakarta);
  font-weight: 700;
  font-size: 16px;
  color: #171c22;
  line-height: 24px;
}

.badge-desc {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 14px;
  color: #3f4753;
  line-height: 19.25px;
}

.badge-points {
  background: rgba(0, 97, 167, 0.1);
  color: #0061a7;
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ============ TIMELINE ============ */
.timeline-section {
  text-align: center;
}

.timeline-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.timeline-item-title {
  font-family: var(--font-jakarta);
  font-weight: 600;
  font-size: 14px;
  color: #000;
  line-height: normal;
}

.timeline-item-desc {
  font-family: var(--font-jakarta);
  font-weight: 400;
  font-size: 14px;
  color: #9c9c9c;
  line-height: normal;
}

.timeline-connector {
  display: flex;
  align-items: center;
}

.timeline-connector .dot {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.timeline-connector .line {
  flex: 1;
  height: 2px;
  background: #d1d5db;
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid #efefef;
  border-radius: 16px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
}

.faq-question-text {
  font-family: var(--font-jakarta);
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
  letter-spacing: -0.24px;
  flex: 1;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 15px;
  color: #64748b;
  line-height: 24px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

/* ============ FOOTER ============ */
.footer {
  background: white;
  border-top: 1px solid #f1f1f1;
}

.footer-logo-text {
  font-family: var(--font-jakarta);
  font-weight: 600;
  font-size: 24px;
  color: #1b2823;
  letter-spacing: -0.96px;
}

.footer-desc {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 14px;
  color: #6b7280;
  line-height: 24px;
}

.footer-link {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 14px;
  color: #6b7280;
  line-height: 24px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-primary-dark);
}

.footer-heading {
  font-family: var(--font-manrope);
  font-weight: 500;
  font-size: 16px;
  color: #000;
  line-height: 24px;
}

/* ============ DECORATIVE ELEMENTS ============ */
.deco-ellipse {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ============ NAVBAR DEFAULT COLORS (di hero = putih) ============ */
.navbar-logo-icon {
  color: white;
  transition: color 0.3s ease;
}

.navbar-logo-text {
  color: white;
  transition: color 0.3s ease;
}

.nav-link {
  color: #ffffff;
  position: relative;
  padding-bottom: 4px;
}

.nav-link.active,
.nav-link.text-blue-600 {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after,
.nav-link.text-blue-600::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}

.navbar-scrolled .nav-link.active::after,
.navbar-scrolled .nav-link.text-blue-600::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
}

/* ============ NAVBAR SCROLLED STATE (putih, teks gelap) ============ */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .navbar-logo-icon {
  color: #4f9cf9;
}

.navbar-scrolled .navbar-logo-text {
  color: #171c22;
}

.navbar-scrolled .nav-link {
  color: #171c22;
}

.navbar-scrolled .navbar-menu-btn {
  color: #171c22;
}

/* Instant navbar state change (no animation) */
.navbar-no-transition,
.navbar-no-transition * {
  transition: none !important;
}

/* Mobile menu background */
#mobile-menu {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

#mobile-menu .nav-link,
#mobile-menu a:not(.btn-download) {
  color: #171c22;
}

#mobile-menu .btn-download {
  color: white;
}

/* Mobile menu background saat scrolled */
.navbar-scrolled #mobile-menu {
  background: rgba(255, 255, 255, 0.97);
}

/* ============ BADGE GRID EXPANDED ============ */
.badge-grid.expanded::after {
  display: none;
}

/* ============ SCROLL REVEAL ANIMATION ============ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .hero-content-wrap {
    gap: 32px;
  }
  .badge-item {
    width: calc(50% - 18px);
  }
}

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

  .step-card {
    width: 100%;
    max-width: 480px;
  }

  .rewards-row {
    flex-direction: column;
    align-items: center;
  }

  .reward-card {
    width: 100%;
    max-width: 480px;
  }

  .timeline-row {
    flex-direction: column;
    align-items: center;
  }

  .badge-item {
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px; /* Tetap kompensasi navbar */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    /* Mobile: background lebih kecil, top tetap 0 */
    background-size: 450%;
    background-position: center top;
  }

  .navbar-inner {
    flex-direction: row;
    gap: 0;
  }

  .nav-links {
    display: none;
  }

  .hero-phones {
    display: none;
  }

  /* Sembunyikan elemen dekoratif di mobile */
  .deco-ellipse {
    display: none;
  }

  .hero-content-wrap {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 32px;
    padding-bottom: 48px;
    justify-content: center;
  }

  .hero-text {
    text-align: left;
    align-items: flex-start;
    max-width: 100%;
  }

  .hero-heading {
    font-size: 32px;
    line-height: 1.25;
  }

  .hero-badge {
    font-size: 13px;
  }

  .hero-btns {
    justify-content: flex-start;
    gap: 12px;
  }

  .hero-btns img {
    height: 42px;
  }

  .levels-row {
    flex-wrap: wrap;
  }

  .level-item {
    min-width: calc(33% - 8px);
  }

  .footer-columns {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 24px;
  }

  /* Badge section — full width, tidak terpotong */
  .badge-grid {
    gap: 12px;
  }

  .badge-item {
    width: 100% !important;  /* override fixed 475px/477px */
    height: auto;
    min-height: 80px;
  }

  /* Sembunyikan dekoratif mask-group di badges section */
  #section-badges .absolute {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }

  .level-item {
    min-width: calc(50% - 8px);
  }

  .badge-item {
    height: auto;
  }
}
