/* ======================================================
   DevNalar - Modern Enhanced Style.css (FIXED VERSION)
====================================================== */

/* ---------------- RESET & GLOBAL ---------------- */
* {
    scroll-behavior: smooth;
}

/* 
  PERBAIKAN 1: Pastikan elemen dasar tidak menyebabkan overflow.
  Ini adalah langkah terpenting untuk mencegah halaman melebar.
*/
html,
body {
    overflow-x: hidden;
    /* Cegah scroll horizontal di level teratas */
    width: 100%;
    max-width: 100vw;
    /* Maksimal lebar adalah lebar viewport */
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 
  PERBAIKAN 2: Pastikan semua gambar dan media responsif.
  Ini mencegah gambar tetap lebar di layar kecil.
*/
img,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
    /* Menghilangkan 'gap' kecil di bawah gambar */
}

/* ---------------- MODERN ANIMATIONS ---------------- */

/* 1. Animated Gradient Background */
.animated-gradient-bg {
    background: linear-gradient(-45deg,
            #7f00ff,
            #5b2cff,
            #2f80ed,
            #56ccf2);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Kesan: premium, serius, eksklusif
.animated-gradient-bg {
    background: linear-gradient(-45deg,
        #4b0082,
        #5b2c83,
        #1e3c72,
        #2a5298
    );
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
} */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 2. Gradient Text Effect */
.gradient-text-yellow {
    background: linear-gradient(to right, #fde047, #facc15, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 3. Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* 4. 3D Card Effect */
.card-3d-wrapper {
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.card-3d-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d-wrapper:hover .card-3d-inner {
    transform: rotateY(5deg) rotateX(-5deg) scale(1.03);
}

/* 5. Shine Button Effect */
.shine-button {
    position: relative;
    overflow: hidden;
}

.shine-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.shine-button:hover::before {
    left: 100%;
}

/* 6. Ripple Effect (JS akan menambahkan span) */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 7. Icon Animation */
.icon-animate {
    animation: icon-bounce 2s infinite;
}

@keyframes icon-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* 8. Pulse Glow Effect */
.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ---------------- NAVBAR ---------------- */
/* ---------------- HAMBURGER MENU ANIMATION ---------------- */
.hamburger-menu-btn {
    display: flex;
    /* Menggunakan flexbox untuk menata garis */
    flex-direction: column;
    /* Menumpuk garis secara vertikal */
    justify-content: space-around;
    /* Memberi jarak merata antar garis */
    width: 2rem;
    /* Lebar tombol */
    height: 2rem;
    /* Tinggi tombol */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 51;
    /* Pastikan tombol di atas elemen lain */
}

.hamburger-line {
    display: block;
    width: 100%;
    /* Garis memenuhi lebar tombol */
    height: 3px;
    /* Ketebalan garis */
    background-color: #374151;
    /* Warna abu-abu (text-gray-700) */
    border-radius: 2px;
    /* Sedikit melengkung di ujungnya */
    transition: all 0.3s ease-in-out;
    /* Transisi halus untuk animasi */
    transform-origin: 1px;
    /* Titik poros rotasi agar animasi terlihat natural */
}

/* 
  Animasi saat tombol memiliki class 'menu-open' 
  (ditambahkan oleh JavaScript saat menu diklik)
*/
.hamburger-menu-btn.menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    /* Garis pertama diputar 45 derajat */
}

.hamburger-menu-btn.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    /* Garis tengah dihilangkan */
}

.hamburger-menu-btn.menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    /* Garis ketiga diputar -45 derajat */
}

#navbar {
    transition: all 0.3s ease;
}

#navbar.navbar-scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9333ea;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ---------------- MOBILE MENU ---------------- */
#mobile-menu {
    /* 
      PERBAIKAN: Tambahkan background putih langsung di sini.
      Ini memastikan background selalu ada, meskipun container-nya tertutup.
    */
    background-color: white;
    border-top: 1px solid #e5e7eb;
    /* Opsional: tambahkan garis pemisah */
}

/* State saat menu TUTUP */
.mobile-menu-closed {
    max-height: 0;
    overflow: hidden;
    /* 
      PERBAIKAN: Animasi untuk container tetap menggunakan max-height,
      tapi kita akan animasikan konten di dalamnya secara terpisah.
    */
    transition: max-height 0.4s ease-in-out;
}

/* State saat menu BUKA */
.mobile-menu-open {
    /* Berikan nilai max-height yang cukup besar untuk menampung semua item */
    max-height: 400px;
    transition: max-height 0.4s ease-in-out;
}

/* 
  PERBAIKAN UTAMA: Atur animasi untuk setiap link di dalam menu.
  Saat menu dalam keadaan tertutup (default), link-link tidak terlihat.
*/
.mobile-nav-link {
    opacity: 0;
    /* Awalnya tidak terlihat */
    transform: translateY(-10px);
    /* Posisikan sedikit ke atas */
    transition: all 0.3s ease-in-out;
    /* Berikan transisi untuk opacity dan transform */
}

/* 
  Saat container #mobile-menu mendapat class 'mobile-menu-open',
  animasikan semua link di dalamnya.
*/
.mobile-menu-open .mobile-nav-link {
    opacity: 1;
    /* Muncul */
    transform: translateY(0);
    /* Kembali ke posisi normal */
}

/* 
  PERBAIKAN HALUS: Berikan sedikit delay pada setiap link
  untuk menciptakan efek cascade yang menarik.
*/
.mobile-menu-open .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-open .mobile-nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-open .mobile-nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-open .mobile-nav-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-open .mobile-nav-link:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu-open .mobile-nav-link:nth-child(6) {
    transition-delay: 0.35s;
}

/* ---------------- HERO SECTION ENHANCEMENTS ---------------- */
.hero-image-3d-wrapper {
    perspective: 1000px;
}

.hero-image-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
    animation: float-3d 12s ease-in-out infinite;
}

.hero-image-3d img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    border-radius: 1rem;
    pointer-events: none;
}

@keyframes float-3d {

    0%,
    100% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0px);
    }

    25% {
        transform: rotateY(8deg) rotateX(-5deg) translateZ(30px);
    }

    50% {
        transform: rotateY(-5deg) rotateX(8deg) translateZ(20px);
    }

    75% {
        transform: rotateY(-8deg) rotateX(-5deg) translateZ(40px);
    }
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

.particle-1 {
    width: 10px;
    height: 10px;
    top: 20%;
    left: 10%;
    animation: float-up 10s infinite linear;
}

.particle-2 {
    width: 15px;
    height: 15px;
    top: 60%;
    left: 80%;
    animation: float-down 12s infinite linear;
}

.particle-3 {
    width: 8px;
    height: 8px;
    top: 80%;
    left: 30%;
    animation: float-up 8s infinite linear;
}

.particle-4 {
    width: 12px;
    height: 12px;
    top: 40%;
    left: 60%;
    animation: float-down 15s infinite linear;
}

.particle-5 {
    width: 6px;
    height: 6px;
    top: 10%;
    left: 50%;
    animation: float-up 9s infinite linear;
}

@keyframes float-up {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-down {
    from {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    to {
        transform: translateY(100vh) rotate(-360deg);
        opacity: 0;
    }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ---------------- MOBILE HERO ANIMATION ---------------- */
/* Wrapper untuk animasi gambar mobile */
.mobile-hero-image-wrapper {
    animation: mobile-hero-float 6s ease-in-out infinite;
}

/* Animasi mengambang yang lebih halus untuk mobile */
@keyframes mobile-hero-float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Elemen mengambang khusus mobile */
.mobile-floating-element {
    position: absolute;
    animation: float 3s ease-in-out infinite;
    display: block;
    /* Pastikan terlihat di mobile */
}

/* Posisi untuk elemen mengambang mobile */
.mobile-floating-element.top-5 {
    top: 1.25rem;
    right: 1.25rem;
}

.mobile-floating-element.bottom-5 {
    bottom: 1.25rem;
    left: 1.25rem;
}

/* Sembunyikan elemen mengambang mobile di layar yang lebih besar */
@media (min-width: 768px) {
    .mobile-floating-element {
        display: none;
    }
}

/* ---------------- THEME CARD ENHANCEMENTS ---------------- */
.theme-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(10px);
    opacity: 0;
}

.theme-card.slide-in {
    transform: translateY(0);
    opacity: 1;
}

.theme-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

.theme-card img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.theme-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* ---------------- THEME TAG ---------------- */
.theme-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    color: white;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.tag-wedding-engagement {
    background: rgba(168, 85, 247, 0.9);
}

/* Purple */
.tag-kids-birthday {
    background: rgba(249, 115, 22, 0.9);
}

/* Orange */
.tag-aqiqah-tasmiyah {
    background: rgba(34, 197, 94, 0.9);
}

/* Green */
.tag-tasyakuran-khitan {
    background: rgba(20, 184, 166, 0.9);
}

/* Teal */
.tag-umum-seminar {
    background: rgba(14, 165, 233, 0.9);
}

/* Blue */
.tag-christmas-newyear {
    background: rgba(239, 68, 68, 0.9);
}

/* Red */
.tag-syukuran-islami {
    background: rgba(107, 114, 128, 0.9);
}

/* Gray */
.tag-party-dinner {
    background: rgba(236, 72, 153, 0.9);
}

/* Pink */
.tag-school-graduation {
    background: rgba(99, 102, 241, 0.9);
}

/* Indigo */

/* ---------------- FILTER BUTTON ---------------- */
.filter-btn {
    transition: all 0.25s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

/* ---------------- FEATURE CARD ---------------- */
.card-hover {
    transition: all 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.card-hover.slide-in {
    transform: translateY(0);
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-hover .bg-purple-100 {
    transition: all 0.3s ease;
}

.card-hover:hover .bg-purple-100 {
    transform: scale(1.1);
    background-color: #9333ea;
    color: white;
}

/* ---------------- RESPONSIVE FIX FOR FEATURES ---------------- */
/* ---------------- FEATURES NO-CARD STYLE ---------------- */
#features .card-3d-inner {
    /* Menghapus semua properti kartu */
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;

    /* Menambahkan sedikit jarak di bawah agar tidak terlalu rapat */
    padding-bottom: 1rem;
}

#features .card-3d-inner:hover {
    /* Membatalkan efek hover 3D kartu */
    transform: none;
    box-shadow: none;
}

/* Efek hover baru hanya pada ikon */
#features .card-3d-inner .icon-animate {
    transition: all 0.3s ease;
}

#features .card-3d-inner:hover .icon-animate {
    transform: scale(1.1);
    background-color: #9333ea;
    /* Warna ungu saat hover */
    color: white;
    /* Ikon menjadi putih saat hover */
}

@media (max-width: 767px) {

    /* Mengurangi margin bawah judul agar lebih rapat di mobile */
    #features .card-3d-inner h3 {
        margin-bottom: 0.5rem;
        /* mb-2 */
    }
}

/* ---------------- PRICING CARD ENHANCEMENTS ---------------- */
.pricing-card {
    transition: all 0.4s ease;
}

.pricing-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ---------------- FAQ ENHANCEMENTS ---------------- */
.faq-modern-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-modern-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.faq-modern-item button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-modern-item .faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease-in-out 0.1s,
        transform 0.4s ease-in-out 0.1s,
        padding 0.3s ease-in-out;
}

.faq-modern-item .faq-content.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1rem;
}

.faq-modern-item button .chevron-icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-modern-item button .chevron-icon.rotate-180 {
    transform: rotate(180deg);
}

/* ---------------- TESTIMONIAL ---------------- */
#testimonial-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
    flex: 0 0 calc(100% - 1.5rem);
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    cursor: grab;
}

.testimonial-card:active {
    cursor: grabbing;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(25% - 1.125rem);
    }
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-dot:hover {
    background: #9333ea;
    transform: scale(1.2);
}

.testimonial-dot.active {
    background: #9333ea;
    width: 30px;
    border-radius: 5px;
}

/* Testimonial Navigation Arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #9333ea;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-nav:hover {
    background: #9333ea;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
    left: -24px;
}

.testimonial-nav.next {
    right: -24px;
}

/* Touch swipe indicator */
.swipe-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: swipeHint 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes swipeHint {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateX(-10px);
    }
}

/* Rating Stars */
.rating-star {
    transition: color 0.2s ease, transform 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.2);
}

#rating-stars button {
    transition: all 0.2s ease;
}

#rating-stars button:hover {
    transform: scale(1.1);
}

/* ---------------- FORM ---------------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* ---------------- MODAL ---------------- */
#success-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#success-modal.show {
    display: flex;
}

#success-modal>div {
    animation: popIn 0.3s ease forwards;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------------- BUTTON ---------------- */
button {
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

button:active {
    transform: scale(0.97);
}

/* ---------------- BACK TO TOP BUTTON ---------------- */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px 0 rgba(147, 51, 234, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px 0 rgba(147, 51, 234, 0.4);
}

/* ---------------- FOOTER ---------------- */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #9333ea;
}

.footer-social a {
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* ---------------- ANIMATIONS ---------------- */
.slide-in {
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- RESPONSIVE FIX ---------------- */
@media (max-width: 767px) {

    /* 
      PERBAIKAN 3: Pastikan tidak ada elemen yang melebihi layar di ponsel.
      Ini adalah langkah kedua yang paling penting.
    */
    * {
        box-sizing: border-box;
        /* Memastikan padding tidak menambah lebar total */
    }

    /* Pastikan konten tidak melebihi lebar layar */
    body {
        overflow-x: hidden;
        /* Mencegah scroll horizontal */
    }

    /* Perbaikan untuk navbar */
    #navbar {
        width: 100%;
        max-width: 100vw;
        /* Maksimal lebar viewport */
        box-sizing: border-box;
        /* Memastikan padding tidak menambah lebar */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    /* Perbaikan untuk tombol WhatsApp */
    #floating-wa {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        /* Kurangi jarak dari bawah */
        right: 1rem;
        /* Kurangi jarak dari kanan */
    }

    #floating-wa i {
        font-size: 22px;
    }

    #floating-wa .wa-tooltip {
        display: none;
    }

    .theme-card img {
        height: 180px;
    }

    .testimonial-nav {
        display: none;
    }

    #testimonial-track {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .testimonial-card {
        scroll-snap-align: start;
    }

    .swipe-hint {
        display: flex;
    }
}

@media (min-width: 768px) {
    .swipe-hint {
        display: none;
    }
}

/* ---------------- CUSTOM SCROLLBAR ---------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* ---------------- SELECTION ---------------- */
::selection {
    background: #9333ea;
    color: white;
}

::-moz-selection {
    background: #9333ea;
    color: white;
}

/* ---------------- FLOATING WHATSAPP BUTTON ---------------- */
#floating-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.4);
    cursor: pointer;
    opacity: 1;
    /* Ubah dari 0 ke 1 agar selalu terlihat */
    visibility: visible;
    /* Ubah dari hidden ke visible agar selalu terlihat */
    transition: all 0.3s ease;
    z-index: 40;
    overflow: hidden;
}

/* Hapus atau komentari class .show karena tidak lagi diperlukan */
/*
#floating-wa.show {
    opacity: 1;
    visibility: visible;
}
*/

#floating-wa:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.5);
}

#floating-wa i {
    font-size: 24px;
    z-index: 2;
}

#floating-wa::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#floating-wa:hover::before {
    left: 100%;
}

/* WhatsApp pulse effect */
#floating-wa.pulse {
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tooltip untuk tombol WhatsApp */
#floating-wa .wa-tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
}

#floating-wa .wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

#floating-wa:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Penyesuaian responsif */
@media (max-width: 767px) {
    #floating-wa {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    #floating-wa i {
        font-size: 22px;
    }

    #floating-wa .wa-tooltip {
        display: none;
    }
}