/* ===================================================================
   FILE: style.css
   HALAMAN: Under Construction
   ---------------------------------------------------------------
   Daftar isi (cari pakai Ctrl+F sesuai nomor section):
   1. RESET & BASE
   2. VARIABLES (Color Palette & Tokens)
   3. LAYOUT - BACKGROUND
   4. LAYOUT - NAVBAR
   5. LAYOUT - HERO / KONTEN UTAMA
   6. KOMPONEN - PROGRESS BAR
   7. KOMPONEN - FORM NOTIFY ME
   8. KOMPONEN - SOCIAL ICONS
   9. LAYOUT - FOOTER
   10. KOMPONEN - TOMBOL CHAT (floating button)
   11. RESPONSIVE (Media Queries)
   =================================================================== */


/* ===================================================================
   1. RESET & BASE
   Aturan dasar supaya tampilan konsisten di semua browser.
   =================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-white);
  background-color: var(--color-ink-navy);
  line-height: 1.5;
  min-height: 100vh;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ===================================================================
   2. VARIABLES (Color Palette & Tokens)
   Semua warna & ukuran "ajaib" dikumpulkan di sini.
   Kalau mau ganti warna brand, cukup ubah di bagian ini saja —
   tidak perlu cari satu-satu di bawah.
   =================================================================== */
:root {
  /* --- Brand colors (sesuai Visual Identity) --- */
  --color-primary: #4F46E5;     /* Electric Indigo - Trust & digital energy */
  --color-secondary: #108981;   /* Fresh Mint - Growth & success */
  --color-accent: #FFB703;      /* Mango Yellow - Promos & CTA */

  /* --- Neutral colors --- */
  --color-ink-navy: #0E1A2E;    /* Background utama (dark) */
  --color-slate: #475569;       /* Teks sekunder / border halus */
  --color-cloud: #F4F5FB;       /* Background terang / surface */
  --color-white: #FFFFFF;       /* Teks utama di atas background gelap */

  /* --- Warna turunan (dengan transparansi) untuk efek overlay --- */
  --color-overlay-dark: rgba(14, 26, 46, 0.75);   /* Lapisan gelap di atas foto */
  --color-primary-soft: rgba(79, 70, 229, 0.25);  /* Glow lembut warna primary */
  --color-secondary-soft: rgba(16, 137, 129, 0.25); /* Glow lembut warna secondary */
  --color-border-subtle: rgba(255, 255, 255, 0.18);
  --color-surface-translucent: rgba(255, 255, 255, 0.06);

  /* --- Tipografi --- */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* --- Spacing scale --- */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;

  /* --- Radius & shadow --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35);
}


/* ===================================================================
   3. LAYOUT - BACKGROUND
   Background gradasi + dekorasi blur (pengganti foto blur pada
   referensi), dibuat dari color palette brand (indigo & mint).
   =================================================================== */
.page-frame {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: linear-gradient(135deg, #1b1442 0%, var(--color-ink-navy) 55%, #07101f 100%);
}

.construction-card {
  position: relative;
  width: 100%;
  max-width: 1100px;
  min-height: 620px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--color-ink-navy);
}

/* Dekorasi blur warna brand sebagai pengganti foto background pada referensi */
.background-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.background-decor__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.background-decor__blob--indigo {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -100px;
  background: var(--color-primary);
}

.background-decor__blob--mint {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -80px;
  background: var(--color-secondary);
}

.background-decor__blob--mango {
  width: 280px;
  height: 280px;
  top: 40%;
  right: 10%;
  background: var(--color-accent);
  opacity: 0.18;
}

/* Lapisan gelap supaya teks tetap kontras di atas dekorasi */
.background-decor__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  backdrop-filter: blur(2px);
}


/* ===================================================================
   4. LAYOUT - NAVBAR
   =================================================================== */
.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: var(--space-md) var(--space-lg) 0;
}

.navbar__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.navbar__link:hover {
  opacity: 1;
  color: var(--color-accent);
}


/* ===================================================================
   5. LAYOUT - HERO / KONTEN UTAMA
   =================================================================== */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
  text-transform: uppercase;
}

/* Kata kedua judul diberi warna accent agar ada penekanan visual */
.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  margin-top: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-cloud);
  opacity: 0.8;
}


/* ===================================================================
   6. KOMPONEN - PROGRESS BAR
   =================================================================== */
.progress {
  width: 100%;
  max-width: 380px;
  margin-top: var(--space-md);
}

.progress__track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface-translucent);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0%; /* Nilai awal sebelum animasi berjalan (jangan diubah manual) */
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));

  /* Animasi loading berulang: bar berjalan dari 0% sampai 90%,
     berhenti sebentar (kesan "memproses"), lalu mulai lagi dari 0%.
     Diulang terus-menerus (infinite) selama halaman terbuka, karena
     situs masih dalam proses maintenance/pembangunan (belum 100%).
     Ubah angka di --progress-target jika progres ingin diubah. */
  --progress-target: 90%;
  animation: progress-loading 3.5s ease-in-out infinite;
}

@keyframes progress-loading {
  0% {
    width: 0%;
  }
  65% {
    width: var(--progress-target);
  }
  85% {
    /* Jeda sejenak di 90% sebelum mengulang dari awal */
    width: var(--progress-target);
  }
  100% {
    width: 0%;
  }
}

.progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-cloud);
  opacity: 0.7;
}


/* ===================================================================
   7. KOMPONEN - FORM NOTIFY ME
   =================================================================== */
.notify-form {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form__input {
  flex: 1;
  min-width: 220px;
  padding: 13px var(--space-sm);
  font-size: 14px;
  color: var(--color-white);
  background-color: var(--color-surface-translucent);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.notify-form__input::placeholder {
  color: var(--color-cloud);
  opacity: 0.55;
}

.notify-form__input:focus {
  border-color: var(--color-secondary);
  background-color: rgba(255, 255, 255, 0.1);
}

.notify-form__button {
  padding: 13px var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.notify-form__button:hover {
  background-color: var(--color-secondary);
  transform: translateY(-1px);
}

.notify-form__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.notify-form__button:focus-visible,
.navbar__link:focus-visible,
.social-icons__link:focus-visible,
.notify-form__input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Pesan status setelah form disubmit (sukses / gagal) */
.notify-form__status {
  min-height: 18px; /* Reservasi ruang agar layout tidak "lompat" saat teks muncul */
  margin-top: var(--space-sm);
  font-size: 13px;
  font-weight: 500;
}

.notify-form__status--success {
  color: var(--color-secondary);
}

.notify-form__status--error {
  color: var(--color-accent);
}


/* ===================================================================
   8. KOMPONEN - SOCIAL ICONS
   =================================================================== */
.social-icons {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
}

.social-icons__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  color: var(--color-white);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icons__link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.social-icons__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ===================================================================
   9. LAYOUT - FOOTER
   =================================================================== */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  font-size: 12px;
  color: var(--color-cloud);
  opacity: 0.6;
}

.footer a {
  text-decoration: underline;
  text-decoration-color: var(--color-border-subtle);
}

.footer__link {
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer__link:hover {
  opacity: 1;
  color: var(--color-accent);
}


/* ===================================================================
   10. KOMPONEN - TOMBOL CHAT (floating button)
   Menampilkan logo brand "N" (file: assets/logo-n.png).
   Logo sudah punya background navy + rounded corner sendiri,
   jadi tombol ini hanya berfungsi sebagai bingkai bulat + shadow.
   =================================================================== */
.chat-button {
  position: absolute;
  z-index: 3;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-button:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.chat-button__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===================================================================
   11. RESPONSIVE (Media Queries)
   =================================================================== */
@media (max-width: 768px) {
  .page-frame {
    padding: var(--space-sm);
  }

  .construction-card {
    min-height: auto;
  }

  .navbar {
    justify-content: center;
    padding: var(--space-md) var(--space-md) 0;
  }

  .hero {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .notify-form {
    flex-direction: column;
    align-items: stretch;
  }

  .notify-form__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  /* Untuk pengguna yang sensitif terhadap motion:
     progress bar langsung tampil di posisi akhir (90%),
     tanpa proses animasi berjalan. */
  .progress__fill {
    animation: none !important;
    width: var(--progress-target);
  }
}
