/* Google Fonts dimuat via <link preload> di HTML, tidak perlu @import di sini */
body {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.text-gradient {
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-premium {
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.5);
  display: inline-block;
}

@media (min-width: 768px) {
  .btn-premium {
    padding: 1rem 2.5rem;
  }
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.6);
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  transition: all 0.4s ease;
}

@media (min-width: 768px) {
  .service-card {
    padding: 3rem 2rem;
  }
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #f97316;
  transform: translateY(-10px);
}

.portfolio-item {
  height: 250px;
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
  cursor: pointer;
}

@media (min-width: 768px) {
  .portfolio-item {
    height: 300px;
  }
}

.portfolio-item video,
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover video,
.portfolio-item:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Swiper Pagination Custom */
.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: #f97316 !important;
  opacity: 1;
  width: 25px !important;
  border-radius: 5px !important;
}

/* Menu HP Animasi Buka Tutup */
.mobile-link.active-link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= */
/* ANIMASI HERO SECTION */
/* ============================== */
/* Keadaan awal: tersembunyi dan sedikit turun ke bawah */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

/* Pengatur Jeda (Delay) agar munculnya bergantian */
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 300ms;
} /* Dibuat 300ms agar lebih terlihat jedanya */
.delay-300 {
  transition-delay: 500ms;
}

/* Keadaan aktif (Saat Swiper berpindah ke slide ini) */
.swiper-slide-active .animate-fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* Optimasi Performa Mobile & GPU */
.reveal {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 768px) {
  /* Mengurangi beban compositing GPU pada layar HP */
  .reveal {
    transition-duration: 0.5s !important;
  }
}

/* ========================================== */
/* ANIMASI HOVER TOMBOL WHATSAPP PREMIUM      */
/* ========================================== */
.btn-whatsapp {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4), 0 0 15px rgba(37, 211, 102, 0.2);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, box-shadow;
}

/* Efek Kilau Cahaya (Shine Sweep) saat di-hover */
.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.btn-whatsapp:hover::before {
  left: 150%;
}

/* Animasi Elevasi & Glow Kuat */
.btn-whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 35px -5px rgba(37, 211, 102, 0.6), 0 0 30px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #2fe673 0%, #17a694 100%);
}

.btn-whatsapp:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 8px 18px -4px rgba(37, 211, 102, 0.4);
}

/* Animasi Goyang Ceria (Wiggle / Ring) pada Ikon WhatsApp saat Hover */
.btn-whatsapp svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.btn-whatsapp:hover svg {
  transform: scale(1.18) rotate(-12deg);
  animation: waIconBounce 0.8s ease-in-out infinite alternate 0.2s;
}

@keyframes waIconBounce {
  0% {
    transform: scale(1.18) rotate(-12deg);
  }
  100% {
    transform: scale(1.22) rotate(12deg);
  }
}

/* ========================================== */
/* TOMBOL CTA PILL DENGAN BADGE PANAH (PERSIS CONTOH GAMBAR) */
/* ========================================== */
.btn-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.95rem 1.75rem 0.95rem 2.25rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.12), inset 0 0 15px rgba(249, 115, 22, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-pill-cta .btn-arrow-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-pill-cta .btn-arrow-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.35s ease;
}

.btn-pill-cta:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #f97316;
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.35), 0 10px 25px rgba(0, 0, 0, 0.5);
  background: rgba(28, 22, 18, 0.85);
}

.btn-pill-cta:hover .btn-arrow-badge {
  background: #f97316;
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
}

.btn-pill-cta:hover .btn-arrow-badge svg {
  transform: translateX(2px);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========================================== */
/* DROPDOWN MENU LAYANAN (DESKTOP)            */
/* ========================================== */
.nav-dropdown {
  position: relative;
}

/* Zona hover tak terlihat — memperluas area .nav-dropdown
   agar kursor bisa bergeser dari trigger ke panel dropdown
   tanpa kehilangan :hover */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px; /* Jembatan tak terlihat setinggi 20px */
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); /* 8px gap dari trigger */
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9), 0 0 25px rgba(249, 115, 22, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  z-index: 1050;
}

/* Jembatan transparan di atas panel dropdown —
   menghubungkan ::after trigger dengan panel agar
   hover tidak terputus */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 24px; /* Sedikit lebih besar dari gap */
  background: transparent;
}

/* Tampilkan dropdown saat hover atau fokus */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.dropdown-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
  background: rgba(249, 115, 22, 0.12);
  color: #fbbf24;
  transform: translateX(4px);
}

.nav-dropdown-item .item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-item:hover .item-icon {
  background: rgba(249, 115, 22, 0.25);
  transform: scale(1.1);
}

/* ========================================== */
/* MOBILE SUBMENU ACCORDION                   */
/* ========================================== */
#mobile-layanan-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#mobile-layanan-submenu {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease,
              margin 0.3s ease;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  border-color: transparent !important;
}

#mobile-layanan-submenu.submenu-open {
  max-height: 500px !important;
  opacity: 1 !important;
  overflow: visible !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  margin-top: 0.75rem !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================== */
/* TESTIMONIAL SLIDER EQUAL HEIGHT CARDS      */
/* ========================================== */
.reviewSwiper .swiper-wrapper {
  display: flex !important;
  align-items: stretch !important;
}

.reviewSwiper .swiper-slide {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.reviewSwiper .swiper-slide > div {
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* ========================================== */
/* SKELETON LOADER ANIMATION                  */
/* ========================================== */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.03) 80%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite ease-in-out;
}


