/* ======================================================
   NAVBAR BASE
====================================================== */
.navbar {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;

  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(8px);

  transform: translateY(0);
  opacity: 1;
  will-change: auto;

  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* 
   NAVBAR CONTAINER
 */
.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: var(--container-width-wide);
  margin: 0 auto;
  padding: 1rem;
  width: 100%;

  transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 
   SCROLLED STATE
 */
.navbar.is-scrolled {
  background: #ffffffd3;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

/* 
   ANIMATION ENABLED
*/
.navbar.is-animated {
  will-change: transform, opacity;

  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* 
   AUTO HIDE
*/
.navbar.is-hidden {
  transform: translateY(-120%);
  opacity: 0;

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
}

/* 
   LOGO ROTATOR
 */
.logo-rotator {
  position: relative;
  width: 10.5rem;
  height: 3.25rem;
  overflow: hidden;
}

.logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  transform: translateY(100%);
}

.logo.active {
  transform: translateY(0);
}

.logo.next {
  transform: translateY(150%);
}

.logo.prev {
  transform: translateY(-150%);
}

/* 
   NAV MENU
 */
.nav-button-container {
  display: flex;
  gap: 72px;
}

.navbar__nav {
  height: 100%;
}

.navbar__menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 3rem;
  padding: 0;
  margin: 0;
  width: 685px;
}

/* ITEM */
.navbar__item {
  position: relative;
  padding: 1rem 0;
}

/* LINK */
.navbar__item > a {
  position: relative;
  display: inline-block;

  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  text-decoration: none;
  color: #111;

  transition: transform 0.25s ease;
}

.navbar__item > a::before {
  content: attr(data-text);
  font-weight: 500;

  height: 0;
  overflow: hidden;
  visibility: hidden;
  display: block;
}

/* =====================================================
   UNDERLINE BASE
===================================================== */

/* LINK BASE */
.navbar__item > a {
  position: relative;
  display: inline-block;
  overflow: visible;
}

/* UNDERLINE BASE */
.navbar__item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;

  width: 0%;
  height: 4px;
  border-radius: 999px;

  /* ULTRA FLOWING GRADIENT (NO HARD LOOP EDGE) */
  background: linear-gradient(
    90deg,
    #31b0ff,
    #e082ff,
    #ff9271,
    #31b0ff,
    #e082ff,
    #ff9271
  );

  background-size: 300% 100%;
  background-position: 0% 50%;

  transform: translateX(-50%);
  opacity: 0;

  will-change: width, opacity, background-position;

  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

/* HOVER STATE */
.navbar__item:hover > a {
  background: linear-gradient(
    90deg,
    #31b0ff,
    #e082ff,
    #ff9271,
    #31b0ff,
    #e082ff,
    #ff9271
  );

  background-size: 300% 100%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: text-gradient 2s linear infinite;
  font-weight: 500;
}

.navbar__item:hover > a::after {
  width: 85%;
  opacity: 1;
  animation: underline-gradient 1.2s linear infinite;
}

/* ACTIVE STATE */
.navbar__item--active > a {
  font-weight: 500;

  background: linear-gradient(
    90deg,
    #31b0ff,
    #e082ff,
    #ff9271,
    #31b0ff,
    #e082ff,
    #ff9271
  );

  background-size: 300% 100%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: text-gradient 2s linear infinite;
}

.navbar__item--active > a::after {
  width: 70%;
  opacity: 1;
  animation: underline-gradient 1.2s linear infinite;
}

/* 
   BUTTON STYLE
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  box-sizing: border-box;
  border-radius: 0.75rem;

  font-weight: 500;
  line-height: 1.2; /* lebih aman */
  text-decoration: none;
  white-space: nowrap;

  cursor: none;
  user-select: none;
  overflow: visible; /* ⬅️ PENTING */

  position: relative;
  z-index: 0;
  isolation: isolate;

  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.32s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

/*
   PRIMARY
*/
.btn-primary {
  background: #007cff;

  border: none;
  color: #ffffff;
  min-height: 3.75rem; /* 60px */
  padding-inline: 1.5rem; /* 24px */
  font-size: 1rem; /* 16px */
}

/*
   OUTLINE
*/
.btn-outline {
  background: transparent;
  border: 1px solid #2563eb;
  color: #2563eb;
  min-height: 3.75rem; /* 60px */
  padding-inline: 1.5rem; /* 24px */
  font-size: 1rem; /* 16px */
}

/* 
   OUTLINE WHITE
*/
.btn-outline-white {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  min-height: 3.75rem; /* 60px */
  padding-inline: 1.5rem; /* 24px */
  font-size: 1rem; /* 16px */
}

/* 
   MASK (AFTER) 
 */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: transparent;
}

/* 
   HALO GLOW (BEFORE) 
*/
.btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -2;

  background: linear-gradient(90deg, #31b0ff, #e082ff, #ff9271, #31b0ff);
  background-size: 400%;

  border-radius: inherit;
  filter: blur(4px);
  opacity: 0;

  transition: opacity 0.3s ease;
  animation: glowingGradient 18s linear infinite;
}

/* 
   PRIMARY STATES
 */
.btn.btn-primary:hover {
  background: #ffffff;
  color: #2563eb;
  transform: scale(1.06);

  box-shadow:
    0 0 0 1px rgba(49, 176, 255, 0.9),
    0 0 12px rgba(224, 130, 255, 0.8),
    0 0 20px rgba(255, 146, 113, 0.6);
}

.btn.btn-primary:hover::after {
  background: #ffffff;
}

.btn.btn-primary:hover::before {
  opacity: 1;
}

.btn.btn-primary:active {
  transform: scale(0.97);
}

/* 
   OUTLINE STATES
*/
.btn.btn-outline:hover {
  background: #ffffff;
  color: #2563eb;
  transform: scale(1.05);

  box-shadow:
    0 0 0 1px rgba(49, 176, 255, 0.9),
    0 0 12px rgba(224, 130, 255, 0.8),
    0 0 20px rgba(255, 146, 113, 0.6);
}

.btn.btn-outline:hover::after {
  background: #ffffff;
}

.btn.btn-outline:hover::before {
  opacity: 1;
}

.btn.btn-outline:active {
  transform: scale(0.97);
}

/*  ICON */
.btn-icon {
  width: 24px;
}

.btn.btn-outline-white:hover {
  background: #ffffff;
  color: #2563eb;
  transform: scale(1.05);

  box-shadow:
    0 0 0 1px rgba(49, 176, 255, 0.9),
    0 0 12px rgba(224, 130, 255, 0.8),
    0 0 20px rgba(255, 146, 113, 0.6);
}

.btn.btn-outline-white:hover::after {
  background: #ffffff;
}

.btn.btn-outline-white:hover::before {
  opacity: 1;
}

.btn.btn-outline-white:active {
  transform: scale(0.97);
}

/* ===============================
   STATS SECTION
================================ */
.stats-section {
  margin-bottom: -100px;
}

.stats-container {
  margin: 0 auto;

  border-radius: 1.5rem;
  background: linear-gradient(
    83deg,
    #31b0ff 23.9%,
    #e082ff 49.53%,
    #ff9271 78.25%
  );
}

/* 
   GRID
 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 12px;
  padding: 48px 56px;
  align-items: center;
  justify-content: center;
}

/* 
   ITEM
 */
.stat-item {
  display: grid;
  width: fit-content;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.stat-item:nth-child(1) {
  justify-self: start;
}

.stat-item:nth-child(2) {
  justify-self: center;
  margin-right: 32px;
}

.stat-item:nth-child(3) {
  justify-self: end;
}

/* 
   ICON 
 */
.stat-icon {
  width: 8.5rem;
  height: 8.5rem;
  flex-shrink: 0;
}

.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.stat-icon img:hover {
  transform: scale(1.1);
}

/* 
   TEXT
 */

.stat-heading {
  font-size: 2.875rem; /*46px*/
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sh3 {
  font-size: 2.5rem;
}

.stat-text {
  font-size: 1.125rem; /*18px*/
  letter-spacing: 0.5px;
  line-height: 1.3;
  font-weight: 500;
  opacity: 0.95;
}

/* ===============================
   PACKAGE
================================ */
.package-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.375rem; /* 22px */
  padding: 2.375rem 0 0 0;
}

.package-grid {
  max-width: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.package-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;

  background: #fff;
  border-radius: 20px;
  padding: 24px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.package-title {
  font-size: 22px;
  font-weight: 600;
}

.package-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.package-image img {
  width: 100%;
  height: auto;
  display: block;
}

.btn-primary.package-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 2px 28px;
  border-radius: 12px;
  border: none;

  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #007cff;

  cursor: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

@media (max-width: 640px) {
  .package-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   PROMO SLIDER – FINAL
================================ */

/* ROOT */
.promo-slider {
  --peek: 40px; /* ukuran slide sebelah yang kelihatan */
  --gap: 46px; /* jarak antar slide */

  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 32px;
  overflow: visible; /* ⬅️ tombol boleh keluar */
}

/* 
   VIEWPORT (IMAGE AREA)
 */
.promo-slider-viewport {
  overflow: hidden;
  padding-left: var(--peek); /* ⬅️ jaga sisi kiri tetap rapih */
  border-radius: 16px;
}

/* 
   TRACK
 */
.promo-slider-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  width: 70%;
}

/* 
   SLIDE
 */
.promo-slide {
  flex: 0 0 calc(100% - var(--peek));
}

.promo-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 
   NAVIGATION BUTTON
 */
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.promo-nav:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: translateY(-50%) scale(1.08);
}

.promo-slider {
  margin-top: 2.375rem;
}

/* POSITION */
.promo-prev {
  left: -16px;
}

.promo-next {
  right: -56px;
}

.promo__nav-icon {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke-width: 3px;
}

.promo-slider-dots {
  position: absolute;
  /* top: 100%;  */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 16px; /* jarak dari gambar */

  display: flex;
  gap: 8px;
}

.promo-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: rgba(87, 87, 87, 0.5);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.promo-slider-dots button.active {
  background: #303135;
  transform: scale(1.3);
}

/* 
   RESPONSIVE
 */
@media (max-width: 768px) {
  .promo-slider {
    --peek: 24px;
  }

  .promo-prev {
    left: 8px;
  }

  .promo-next {
    right: 8px;
  }
}

/* ======================================================
   GALERI
====================================================== */
.auto-gallery {
  width: 100%;
  overflow: hidden;
  padding: 40px 0 0 0;
}

.auto-gallery__viewport {
  overflow: hidden;
  width: 100%;
}

.auto-gallery__track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.auto-gallery__item {
  width: 380px;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.auto-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   FAQ SECTION
================================ */
.faq {
  max-width: 700px;
  height: 560px;
  margin: 2.375rem auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.faq-question {
  padding: 22px 26px;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b5b5b5;
  position: relative;
  flex-shrink: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}

/* arrow */
.faq-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* ANSWER */
.faq-answer {
  max-height: 0;
  opacity: 0;
  padding: 0 26px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;

  transition:
    max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    padding 0.4s ease;
}

/* ACTIVE (terbuka) */
.faq-item.is-active .faq-answer {
  max-height: 218px; /* bisa diganti lebih besar kalau perlu */
  opacity: 1;
  padding: 0 26px 24px;
}

.faq-item.is-active .faq-icon {
  background: #6b6b6b;
  transform: rotate(180deg);
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: #ffffff;
  padding: 96px 0 40px;
  border-top: 1px solid #e6e6e6;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;

  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 48px;
}

/* LEFT */
.footer-tagline {
  margin: 24px 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.footer-description {
  font-size: 14px;
  line-height: 1.7;
  max-width: 420px;
  opacity: 0.85;
  margin-bottom: 24px;
}

.footer-logo {
  height: 42px;
}

.footer-contact {
  display: flex;
  gap: 48px;
  /* margin-top: 16px; */
  margin: 16px 0;
}

/* ITEM */
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ICON */
.contact-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* TEXT */
.contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 14px;
  font-weight: 500;
  color: #8a8a8a;
}

.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: #303135;
}

/* ===============================
   FOLLOW + SUBSIDIARIES
================================ */
.footer-extras {
  display: flex;
  /* justify-content: space-between; */
  gap: 42px;
  align-items: flex-start;
  margin-top: 32px;
}

/* FOLLOW US */
.footer-follow {
  display: flex;
  flex-direction: column;
}

/* HEADINGS */
.heading-footer-extras {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #303135;
}

/* SOCIAL ICONS */
.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social-circle {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  border: 1.5px solid #d6dbea;

  display: grid;

  justify-content: center;
  align-items: center;
  place-items: center;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-social-icon {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

/* HOVER */
.footer-social-circle:hover {
  background: #111;
  /* transform: scale(1.1); */
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.footer-social-icon:hover {
  filter: invert(1);
}

/* SUBSIDIARIES */
.footer-subsidiaries {
  text-align: left;
}

.subsidiary-logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.subsidiary-logos img {
  width: 6.75rem;
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* .subsidiary-logos img:hover {
  transform: scale(1.05);
} */

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-extras {
    flex-direction: column;
    gap: 48px;
  }
}

/* COLUMNS */

.footer-col {
  border-left: 1px solid #eeeeee;
}

.footer-menu-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2rem;
  padding-left: 24px;
}

.footer-menu-lists {
  list-style: none;
}

.footer-menu-list {
  font-size: 16px;
  opacity: 0.85;
  /* transition: opacity 0.25s ease; */
  margin-left: 1.5rem;
}

.footer-menu-list::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;

  width: 0%;
  height: 4px;
  border-radius: 2px;

  background: linear-gradient(90deg, #31b0ff, #e082ff, #ff9271, #31b0ff);
  background-size: 200% 100%;

  transform: translateX(-50%);
  opacity: 0;

  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.footer-menu-list:hover {
  opacity: 1;
  background: linear-gradient(90deg, #31b0ff, #e082ff, #ff9271, #31b0ff);
  background-size: 200% 100%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: text-gradient 1.8s linear infinite;
  font-weight: 400;
  /* text-decoration: underline; */
}

.footer-menu-list::after:hover {
  width: 85%;
  opacity: 1;
  animation: underline-gradient 1.5s linear infinite;
}

.footer-menu-lists {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* BOTTOM */
.footer-bottom {
  max-width: 1440px;
  margin: 64px auto 0;
  padding: 24px 64px 0;
  border-top: 1px solid #e6e6e6;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 14px;
  opacity: 0.75;
}

.footer-policy {
  display: flex;
  gap: 24px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   CUSTOM CURSOR
====================================================== */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor {
  z-index: 99999;
}

/* CURSOR HOVER & CLICK */
.cursor.is-hover .melon-cursor {
  transform: scale(1.1);
}

.cursor.is-click .melon-cursor {
  transform: scale(2.6) rotate(6deg);
}

.melon-cursor {
  width: 46px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 124, 255, 0.25);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 99998;
}

li:hover ~ .cursor-follower,
a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower {
  transform: scale(1.4);
  background: rgba(255, 122, 0, 0.35);
}

a,
a:hover,
a * {
  /* Removed !important hardcoded block to rely on JS */
}

/* ======================================================
   MOBILE & TOUCH CURSOR DESTRUCTOR (SSS SAFE)
====================================================== */
@media (pointer: coarse), (max-width: 1024px) {
  .cursor,
  .cursor-follower {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body,
  a,
  button,
  li,
  input,
  textarea {
    cursor: auto !important;
  }
}

/* ======================================================
   MOBILE NAV (OFFCANVAS) — SSS SAFE
====================================================== */

.navbar__burger,
.mobile-nav,
.mobile-nav__backdrop {
  display: none;
}

/* Mobile breakpoint */
@media (max-width: 1237px) {
  /* Sembunyikan menu desktop + actions di mobile */
  .navbar__nav,
  .navbar__actions {
    display: none;
  }

  .navbar__container {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(0px);
    padding: 0.5rem 1rem;
    color-scheme: light;
  }

  .logo-rotator {
    position: relative;
    width: 6.75rem;
    height: 2.625rem;
    overflow: hidden;
  }

  /* Jarak container biar logo + burger rapi */
  .nav-button-container {
    gap: 0;
    align-items: center;
  }

  /* BURGER BUTTON */
  .navbar__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding-inline: 0;

    width: 48px;
    height: 44px;

    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.96);

    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    color-scheme: light;

    /* penting untuk mobile: jangan cursor none */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  .navbar__burger:focus-visible {
    outline: 2px solid var(--focus-ring, #4a90e2);
    outline-offset: 3px;
  }

  .navbar__burger:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.16);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
  }

  .navbar__burger:active {
    transform: scale(0.97);
  }

  .navbar__burger-line {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
  }

  /* BACKDROP */
  .mobile-nav__backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 1600;

    /* full viewport yang bener untuk mobile */
    width: 100vw;
    height: 100dvh;

    background: rgba(0, 0, 0, 0.45);
    /* backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); */

    opacity: 0;
    pointer-events: none;

    /* stabilin rendering blur */
    transform: translateZ(0);
    will-change: opacity, backdrop-filter;

    transition: opacity 0.25s ease;
  }

  /* OFFCANVAS PANEL */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(86vw, 390px);

    z-index: 1700;

    background: rgba(255, 255, 255, 1);
    color-scheme: light;

    transform: translateX(105%);
    visibility: hidden; /* ARIA Fix: kill focus when off-canvas */
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.35s;

    display: grid;
    grid-template-rows: auto 1fr;

    padding: 24px 16px 20px;
  }

  .mobile-nav[aria-hidden="false"] {
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.75);
  }

  .mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-left: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mobile-nav__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111;
  }

  .mobile-nav__close {
    width: 44px;
    height: 44px;

    border: none;
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.06);
    color: #111827;

    cursor: pointer;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    display: grid;
    place-items: center;

    transition:
      transform 0.2s ease,
      background 0.2s ease;
  }

  .mobile-nav__close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.03);
  }

  .mobile-nav__body {
    padding-top: 16px;
    padding-left: 18px;
    overflow: auto;
  }

  .mobile-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .mobile-nav__menu a {
    display: block;
    width: fit-content;
    position: relative;
    padding: 12px 16px;
    border-radius: 14px;

    color: #111;
    font-weight: 600;
    font-size: 16px;

    cursor: pointer;
  }

  .mobile-nav__menu a:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  /* ACTIVE STATE (Gradient text + underline) */
  .mobile-nav__menu li.navbar__item--active > a {
    background: linear-gradient(
      90deg,
      #31b0ff,
      #e082ff,
      #ff9271,
      #31b0ff,
      #e082ff,
      #ff9271
    ) !important;
    background-size: 300% 100% !important;
    background-position: 0% 50% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: text-gradient 2s linear infinite !important;
  }

  .mobile-nav__menu li.navbar__item--active > a::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: 6px;
    width: calc(100% - 32px);
    height: 4px;
    border-radius: 999px;

    background: linear-gradient(
      90deg,
      #31b0ff,
      #e082ff,
      #ff9271,
      #31b0ff,
      #e082ff,
      #ff9271
    );
    background-size: 300% 100%;
    background-position: 0% 50%;
    animation: underline-gradient 1.2s linear infinite;
  }

  .mobile-nav__cta {
    margin-top: 24px;
  }

  /* OPEN STATE */
  body.is-mobile-nav-open .mobile-nav {
    transform: translateX(0);
    visibility: visible; /* ARIA Fix: enable focus */
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  body.is-mobile-nav-open .mobile-nav__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Body scroll lock */
  body.is-mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  /* Reduce motion respect */
  @media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav__backdrop {
      transition: none !important;
    }
  }
}

@media (max-width: 1237px) and (prefers-color-scheme: dark) {
  .navbar__container,
  .navbar__burger,
  .mobile-nav {
    color-scheme: light;
  }

  .navbar__container {
    background: rgba(255, 255, 255, 0.98);
  }

  .navbar__burger {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(17, 24, 39, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    color: #111827;
  }

  .mobile-nav {
    background: rgba(255, 255, 255, 0.98);
  }
}

@media (max-width: 1237px) and (forced-colors: active) {
  .navbar__burger {
    background: Canvas;
    border: 1px solid ButtonText;
    box-shadow: none;
    color: ButtonText;
  }

  .navbar__burger-line {
    background: currentColor;
  }

  .mobile-nav {
    border-left: 1px solid CanvasText;
  }

  .mobile-nav__close {
    border: 1px solid ButtonText;
    background: Canvas;
    color: ButtonText;
  }
}
