body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
}
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* 1. ANIMATION UTILITIES */
@keyframes fadeInSmooth {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeInSmooth 1.8s ease forwards;
}
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.4s ease, transform 1.4s ease;
}
.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.typewriter-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    width: 0;
}

/* 2. RECHARGE RESET SLANTED */
.slanted-clip {
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}
.slanted-clip.active {
    transform: scale(1.08) rotate(0.5deg);
    filter: brightness(1.05);
    z-index: 10;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#recharge {
    position: relative;
    z-index: 20;
    background-color: #000000;
    margin-top: -1px;
}

/* PAKEJ STATIC GRID */
.package-static-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background-color: #ffffff;
    cursor: pointer;
    opacity: 1 !important;
    filter: none !important;
    border: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.package-static-img.active {
    transform: scale(1.06);
}

/* AMENITIES ACCORDION UTILITIES */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.accordion-item.open .accordion-content {
    max-height: 1200px;
}

/* AMENITIES IMAGES GRID */
.amenities-click-img {
    width: 100%;
    height: 130px;
    object-fit: contain; 
    background-color: #ffffff;
    cursor: pointer;
    opacity: 1 !important;
    filter: none !important;
    border: none !important;
    outline: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.amenities-click-img.active {
    transform: scale(1.06);
}

/* STYLING EXTRA SIDEBAR LINKS */
.sidebar-sub-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000000;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.sidebar-sub-link:hover {
    opacity: 0.6;
}

/* POP-UP SCROLL ANIMATION */
.pop-up-scroll {
    transform: translateY(60px);
    opacity: 0;
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pop-up-scroll.pop-visible {
    opacity: 1 !important;
    transform: translateY(0);
}

/* RULES SECTION TYPEWRITER EFFECT UTILITIES */
.rules-text::after {
    content: '|';
    animation: blinkCursor 0.8s infinite;
    color: #000000;
    font-weight: bold;
    margin-left: 2px;
}
.rules-text.typewriting-done::after {
    content: '';
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* KAWASAN FOOTER CONTAINER */
footer {
    box-shadow: 0px -2px 15px rgba(0, 0, 0, 0.08);
}

/* ?? REKA BENTUK GAMBAR BACKGROUND FOOTER (Gelap Redup & Kalis Masalah Fade) */
.luxury-footer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.35) contrast(1.05); /* Gambar villa dimalapkan supaya tulisan jelas dibaca */
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* Memastikan tulisan putih mudah dibaca dengan bayang lembut */
footer h2, footer h3, footer h4, footer p, footer span {
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.95), 0px 0px 5px rgba(0, 0, 0, 0.6); 
}
footer img[alt="Mail Icon"], 
footer img[alt="Whatsapp Icon"], 
footer img[alt="TikTok Icon"], 
footer img[alt="Instagram Icon"], 
footer img[alt="Facebook Icon"] {
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.7));
}

@media (max-width: 767px) {
    #rules-regulation .grid-cols-4 {
        grid-template-cols: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }
    .slanted-clip { clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%); }
}