/* --- Variables & Reset --- */
:root {
  --bg-main: #ffffff;
  --bg-soft: #f9fafb;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography & Utilities --- */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
}
h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
p {
  color: var(--text-muted);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-padding {
  padding: 6rem 0;
}
.text-center {
  text-align: center;
}
.bg-soft {
  background-color: var(--bg-soft);
}
.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  shadow: var(--shadow-md);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}
.btn-outline:hover {
  border-color: var(--text-dark);
  background-color: var(--bg-soft);
}
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Navbar --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
/* --- Styling Logo & Teks Header --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px; /* Jarak antara gambar logo dan teks */
  text-decoration: none; /* Menghilangkan garis bawah pada link */
}

.header-logo {
  height: 40px; /* Mengatur tinggi logo agar pas dengan navbar */
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.brand-text span {
  color: var(--primary);
}
.logo span {
  color: var(--primary);
}
nav a {
  text-decoration: none;
  color: var(--text-muted);
  margin: 0 1rem;
  font-weight: 500;
  transition: var(--transition);
}
nav a:hover,
nav a.active {
  color: var(--primary);
  font-weight: 700; /* Memberikan efek tebal */
}

/* --- Hero Section --- */
.hero {
  padding-top: 10rem;
  text-align: center;
}
.hero h1 span {
  color: var(--primary);
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}
.stat-item h3 {
  font-size: 2.5rem;
  color: var(--text-dark);
}

/* --- Animasi Melayang (Floating) untuk Angka Project --- */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px); /* Angka akan melayang ke atas sejauh 12px */
  }
  100% {
    transform: translateY(0px);
  }
}

/* Mengaplikasikan animasi ke setiap item stat */
.stat-item {
  animation: float 4s ease-in-out infinite; /* Animasi berulang terus-menerus */
}

/* Memberikan jeda waktu (delay) agar gerakannya tidak berbarengan (terlihat natural) */
.stat-item:nth-child(1) {
  animation-delay: 0s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.5s;
}
.stat-item:nth-child(3) {
  animation-delay: 1s;
}

/* --- Cards (Values & Portfolio) --- */
.card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.value-card .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.value-card h3 {
  margin-bottom: 1rem;
}

.portfolio-item {
  padding: 0;
  overflow: hidden;
}
.portfolio-info {
  padding: 1.5rem;
}

/* --- Pricing Section --- */
.pricing-selector {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.pricing-selector select {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  background: white;
  font-family: inherit;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
/* --- GANTI KODE .pricing-card.popular LAMA DENGAN INI --- */

.pricing-card.popular {
  background: var(--text-dark); /* Background gelap elegan */
  color: var(--bg-main); /* Teks menjadi putih */
  border: none;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Shadow lebih pekat */
  transform: scale(1.06); /* Dibuat lebih besar sedikit dari sebelumnya */
  z-index: 10;
}

.pricing-card.popular:hover {
  transform: scale(1.06) translateY(-5px);
}

/* --- Powerful Promo Countdown --- */

/* Keyframes untuk denyutan cahaya neon pada kontainer */
@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.7);
  }
}

/* Keyframes untuk loncatan angka setiap detik */
@keyframes digitJump {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-3px) scale(1.1);
  }
  40% {
    transform: translateY(0) scale(1);
  }
}

/* Keyframes untuk kedipan cepat titik dua (:) */
@keyframes blinkSep {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
}

.promo-banner.powerful {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: #ef4444; /* Full merah intens */
  padding: 12px 25px;
  border-radius: 50px;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  animation: neonPulse 2s infinite ease-in-out; /* Animasi denyutan kontainer */
}

.promo-text {
  color: #ffffff; /* Putih bersih */
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-timer.powerful {
  display: flex;
  gap: 3px;
  align-items: center;
  font-family: monospace; /* Font ala jam digital */
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
}

.cd-unit {
  display: inline-block;
}

/* Mengaplikasikan animasi loncatan pada unit detik (paling sering bergerak) */
.cd-unit.s {
  animation: digitJump 1s infinite ease-in-out;
}

.cd-sep {
  color: rgba(255, 255, 255, 0.6);
  animation: blinkSep 1s infinite; /* Titik dua berkedip cepat */
  font-weight: 300;
  margin-top: -3px;
}

/* Responsif untuk Mobile */
@media (max-width: 600px) {
  .promo-banner.powerful {
    gap: 8px;
    padding: 10px 15px;
  }
  .promo-text {
    font-size: 0.8rem;
  }
  .countdown-timer.powerful {
    font-size: 1.3rem;
  }
}

/* --- Efek Harga Coret (Promo) --- */
.original-price {
  text-decoration: line-through; /* Memberikan efek garis coret */
  color: var(--text-muted); /* Warna abu-abu agar tidak terlalu mencolok */
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: -5px; /* Menarik harga utama sedikit lebih rapat ke atas */
}

/* Khusus untuk Card Growth (Background Gelap) agar harga coretnya tetap terbaca */
.pricing-card.popular .original-price {
  color: #9ca3af;
}

/* Modifikasi warna teks di dalam card gelap agar tetap terbaca jelas */
.pricing-card.popular .tier {
  color: #9ca3af;
}
.pricing-card.popular .price {
  color: #ffffff;
}
.pricing-card.popular .features li {
  color: #f3f4f6;
}
.pricing-card.popular .features i {
  color: #60a5fa;
} /* Biru centang dibuat lebih terang agar menyala */
.pricing-card.popular .fee-text {
  color: #9ca3af;
}

/* Modifikasi tombol order di dalam card gelap menjadi putih */
.pricing-card.popular .btn-primary {
  background: var(--bg-main);
  color: var(--text-dark);
  font-weight: 700;
}
.pricing-card.popular .btn-primary:hover {
  background: #e5e7eb; /* Abu-abu sangat soft saat di-hover */
}

/* Modifikasi Badge "Paling Laris" biar lebih pop-out */
.badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.4rem 1.5rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4); /* Shadow biru */
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tier {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.price {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.features i {
  color: var(--primary);
}
.fee-text {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1.5rem;
  line-height: 1.4;
  text-align: left;
}

/* --- Workflow Section --- */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.step-num {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem auto;
}
.step h3 {
  margin-bottom: 1rem;
}

/* --- FAQ Section --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: white;
}
.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.faq-question:hover {
  background: var(--bg-soft);
}
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-muted);
}
.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 200px;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* --- Final CTA & Footer --- */
.final-cta {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #e0e7ff 100%);
}
footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 0 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.footer-brand span {
  color: var(--primary);
}
.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.socials a {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: var(--transition);
}
.socials a:hover {
  color: var(--primary);
}
.footer-links h4 {
  margin-bottom: 1.5rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}
/* --- Perbaikan Spacing Final CTA --- */
.final-cta p {
  margin-top: 1rem;
  margin-bottom: 2.5rem; /* Memberikan jarak lega antara teks dan tombol */
  max-width: 700px; /* Menjaga teks tidak terlalu melebar di desktop */
  margin-left: auto;
  margin-right: auto;
}

/* --- Animations & Responsiveness --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  header nav {
    display: none; /* Disembunyikan untuk simplicity mobile, bisa ditambah hamburger menu nantinya */
  }
  h1 {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .grid-3,
  .workflow-steps,
  .footer-content {
    grid-template-columns: 1fr;
  }
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
}

/* --- Floating WhatsApp Button Styling --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px; /* Jarak dari bawah layar */
  right: 30px; /* Jarak dari kanan layar */
  background-color: #25d366; /* Warna resmi WhatsApp */
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 35px; /* Ukuran ikon */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); /* Efek bayangan biar estetik */
  z-index: 1100; /* Pastikan di atas semua elemen (navbar, card, dll) */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition); /* Efek smooth saat hover */
}

/* Efek hover untuk Desktop */
.whatsapp-float:hover {
  background-color: #1ebd5a; /* Warna sedikit gelap saat di-hover */
  transform: translateY(-5px) scale(1.05); /* Melayang sedikit ke atas & membesar */
}

/* Responsif untuk Mobile/Tablet (Layar < 768px) */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px; /* Jarak lebih mepet di HP */
    right: 20px; /* Jarak lebih mepet di HP */
    font-size: 28px; /* Ukuran ikon sedikit lebih kecil */
  }
}

/* --- Portofolio Section Styling --- */
.portfolio-item {
  padding: 0;
  overflow: hidden;
}

.portfolio-img {
  height: 250px; /* Tinggi gambar portofolio */
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar mengisi wadah tanpa terdistorsi */
  object-position: top center; /* Fokuskan pada bagian atas web */
  transition: transform 0.6s ease; /* Transisi zoom yang halus */
}

/* Efek Hover: Gambar akan memperbesar sedikit secara perlahan */
.portfolio-item:hover .portfolio-screenshot {
  transform: scale(1.08);
}

.portfolio-info {
  padding: 1.5rem;
}

/* --- Typewriter Minimalis --- */
.hero-pre-title {
  font-size: 1.2rem; /* Sedikit dibesarkan karena berdiri sendiri */
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  min-height: 28px; /* Mengunci tinggi 1 baris agar tidak joget */
}

#typewriter-text {
  color: var(--primary); /* Menggunakan warna biru aksen */
}

/* Animasi kursor kedap-kedip (tetap sama) */
.cursor {
  display: inline-block;
  width: 2px;
  background-color: var(--primary);
  margin-left: 4px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* --- Perbaikan Tombol Navbar --- */
.nav-wrapper .btn {
  padding: 0.5rem 1.2rem; /* Mengecilkan ukuran tombol di desktop */
  font-size: 0.95rem;
  white-space: nowrap; /* Mencegah teks terlipat ke bawah */
}

/* Responsif khusus untuk layar Mobile */
@media (max-width: 768px) {
  .nav-wrapper .btn {
    padding: 0.4rem 0.8rem; /* Ukuran tombol lebih mungil di HP */
    font-size: 0.8rem; /* Font dikecilkan agar muat bersanding dengan logo */
    border-radius: 6px;
  }

  /* Sedikit menyesuaikan ukuran logo di HP agar seimbang dengan tombol */
  .header-logo {
    height: 32px;
  }
  .brand-text {
    font-size: 1.2rem;
  }
  .logo {
    gap: 8px; /* Jarak logo dan teks dipersempit sedikit di HP */
  }
}

/* Khusus layar yang sangat kecil (seperti iPhone SE lama) */
@media (max-width: 380px) {
  .brand-text {
    font-size: 1.1rem; /* Biar tidak nabrak tombol */
  }
  .nav-wrapper .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}
