/* styles.css - Mobile-first, cleaned and optimized */

/* -------------------------
   Root variables (defaults)
-------------------------- */
:root {
  --bg: rgba(0, 0, 0, 0.65);
  --bg-opaque: #000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --accent: #00b894;
  --glass-border: rgba(255, 255, 255, 0.06);
  --transition-fast: 180ms;
  --transition-medium: 250ms;
  --nav-height: 64px;
  --max-content-width: 1200px;
  --container-padding: 16px;
  --focus-ring: 3px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light theme overrides */
html[data-theme="light"] {
  --bg: rgba(255, 255, 255, 0.85);
  --bg-opaque: #fff;
  --text: #111;
  --muted: rgba(0, 0, 0, 0.6);
  --accent: #0b76ff;
  --glass-border: rgba(0, 0, 0, 0.06);
}

/* -------------------------
   Basic layout
-------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #121212 0%, #1b1b1b 100%);
  line-height: 1.45;
}

.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

/* -------------------------
   NAVBAR
-------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(6px);
}

.site-nav {
  background: var(--bg);
  color: var(--text);
  width: 100%;
  padding: 8px var(--container-padding);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

/* Logo */
.site-nav__logo img {
  display: block;
  height: clamp(28px, 4.5vw, 48px);
  width: auto;
  object-fit: contain;
}

/* Menu (desktop) */
.site-nav__menu {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  margin-left: 80px;
}

/* Menu links */
.site-nav__link {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(14px, 2.6vw, 16px);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.site-nav__link:hover { color: var(--accent); }
.site-nav__link.is-active { color: var(--accent); font-weight: 600; }

/* Controls (theme toggle, etc.) */
.site-nav__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
}
.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.theme-toggle__track {
  display: inline-block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  position: relative;
  cursor: pointer;
}
.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-opaque);
  transition: transform var(--transition-medium);
}
.theme-toggle input:checked + .theme-toggle__track .theme-toggle__thumb {
  transform: translateX(18px);
}

/* Hamburger menu */
.site-nav__hamburger {
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.site-nav__hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}
.site-nav__hamburger-line.top { margin-bottom: 6px; }

/* -------------------------
   MOBILE DRAWER MENU
-------------------------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity var(--transition-medium);
  pointer-events: none;
  z-index: 1;
}
.mobile-drawer__content {
  position: absolute;
  right: 0;
  top: 0;
  height: 100vh;
  width: 80%;
  max-width: 420px;
  background: var(--bg);
  transform: translateX(110%);
  transition: transform var(--transition-medium) cubic-bezier(.2,.9,.2,1);
  padding: 24px;
  pointer-events: auto;
  overflow-y: auto;
  z-index: 2;
}
.mobile-drawer.is-open { pointer-events: auto; }
.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; pointer-events: auto; }
.mobile-drawer.is-open .mobile-drawer__content { transform: translateX(0); }

.mobile-drawer__close {
  background: transparent;
  border: 0;
  font-size: 50px;
  color: var(--text);
  position: absolute;
  right: 30px;
  top: 6px;
  cursor: pointer;
}

.mobile-drawer__menu {
  list-style: none;
  padding: 0;
  margin: 80px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-drawer__menu .mobile-link {
  color: var(--text);
  text-decoration: none;
  padding: 12px 8px;
  display: block;
  border-radius: 6px;
  transition: 0.3s;
}
.mobile-drawer__menu .mobile-link:hover,
.mobile-drawer__menu .mobile-link.is-active {
  background-color: var(--accent);
  color: #fff;
}

/* Hide drawer on wide screens */
@media (min-width: 1024px) {
  .mobile-drawer { display: none; }
}

/* -------------------------
   HERO DEMO
-------------------------- */
.hero {
  padding: 48px 12px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__inner h1 { font-size: clamp(20px, 6vw, 40px); margin: 0 0 12px; }
.hero__inner p { color: var(--muted); }

/* -------------------------
   FOOTER
-------------------------- */
.site-footer {
  margin-top: 48px;
  background: var(--bg);
  color: var(--text);
  padding: 32px var(--container-padding);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
}

.site-footer__inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.site-footer__col--brand img {
  height: 42px;
  margin-bottom: 8px;
}

.site-footer__desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 300px;
}

/* Explore + Resources berdampingan */
.site-footer__links-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.site-footer__links {
  list-style: none; /* 🔥 Hapus bulatan di depan teks link */
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* 🎨 Footer links — match navbar style */
.site-footer__links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
  color: var(--accent);
}

.site-footer__links a.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* Footer responsive */
@media (max-width: 360px) {
  .site-footer__links-group { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* Footer bottom */
.site-footer__bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
  margin-top: 18px;
  color: var(--muted);
}
/* -------------------------
   FOOTER CONTACT LINKS
-------------------------- */
.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px; /* jarak antar baris */
}

.contact-links li {
  display: flex;
  align-items: center;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* jarak antara ikon dan teks */
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-links a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* ikon (baik <i> maupun <img>) */
.contact-links i,
.contact-links img {
  width: 16px;   /* lebih kecil agar seimbang dengan teks */
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/* efek lembut saat hover */
.contact-links a:hover i,
.contact-links a:hover img {
  transform: scale(1.15);
}

/* warna ikon sesuai merek */
.contact-links img[alt="Email"] {
  filter: none; /* biarkan tetap warna asli Gmail (merah) */
}

.contact-links img[alt="WhatsApp"] {
  filter: none; /* biarkan tetap hijau asli */
}

/* Ukuran khusus untuk ikon telepon lucide */
.contact-links i[data-lucide="phone"] {
  stroke: var(--text);
  transform: scale(0.8); /* perkecil ikon jadi 80% */
  transform-origin: center;
  margin-right: 2px; /* sedikit jarak dari teks */
}



/* -------------------------
   WHATSAPP CTA
-------------------------- */
.wa-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: waBounce 2.2s ease-in-out infinite;
  z-index: 120;
}
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.wa-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.wa-cta__bubble {
  position: absolute;
  right: 70px;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  animation: textWiggle 2s ease-in-out infinite;
}
@keyframes textWiggle {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-2px); }
  50% { transform: translateY(1px); }
  75% { transform: translateY(-1px); }
}
.wa-cta__bubble::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #25D366;
}
html[data-theme="dark"] .wa-cta,
html[data-theme="dark"] .wa-cta__bubble {
  background: #25D366 !important;
  color: #fff !important;
}

/* -------------------------
   RESPONSIVE NAV CONTROL
-------------------------- */
@media (max-width: 767px) {
  .site-nav__inner {
    padding-inline: 16px;
  }
  .theme-toggle {
    margin-left: auto;
    margin-right: 10px;
  }
  .site-nav__hamburger {
    margin-left: 4px;
    margin-right: 8px;
  }
  .site-nav__menu { display: none; }
}

/* Hamburger vs Menu visibility */
@media (max-width: 1023px) {
  .site-nav__menu { display: none; }
  .site-nav__hamburger { display: inline-grid; }
}
@media (min-width: 1024px) {
  .site-nav__menu { display: flex; }
  .site-nav__hamburger { display: none; }
}

/* Focus-visible (accessibility) */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-ring) rgba(11, 119, 255, 0.18);
  border-radius: 6px;
}
.hidden { display: none !important; }

