html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: "Josefin Sans", sans-serif;
    background: #111;
}

.font-esthetic {
    font-family: "Sacramento", cursive;
}

.font-arabic {
    font-family: "Noto Naskh Arabic", serif;
}

.bg-light-dark {
    background-color: var(--bs-light);
}

.bg-white-black {
    background-color: var(--bs-white);
}

.bg-theme-auto {
    background-color: var(--bs-gray-100);
}

.bg-overlay-auto {
    background-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(.35rem);
}

.text-theme-auto {
    color: var(--bs-dark);
}

.btn-outline-auto {
    --bs-btn-color: var(--bs-dark);
    --bs-btn-border-color: var(--bs-dark);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--bs-dark);
    --bs-btn-hover-border-color: var(--bs-dark);
    --bs-btn-focus-shadow-rgb: var(--bs-dark-rgb);
}

.btn-primary {
    --bs-btn-bg: var(--theme);
    --bs-btn-border-color: var(--theme);
    --bs-btn-hover-bg: #111;
    --bs-btn-hover-border-color: #111;
}

.loading-page {
    position: fixed;
    inset: 0;
    z-index: 1056;
    width: 100%;
    height: 100%;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.gallery-photo,
.gallery-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    display: grid;
    place-items: center;
    color: var(--bs-secondary-color);
    border: 1px dashed var(--bs-border-color);
    background: var(--bs-gray-100);
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(.5turn, transparent, black 40%, black 60%, transparent);
}

.slide-desktop {
    animation: desktopFade 18s linear infinite;
}

.slide-desktop:nth-child(2) {
    animation-delay: 6s;
}

.slide-desktop:nth-child(3) {
    animation-delay: 12s;
}

@keyframes desktopFade {
    0%, 28% {
        opacity: .34;
        transform: scale(1);
    }
    33%, 100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

.color-theme-svg {
    color: rgb(255, 255, 255);
    background-color: var(--bs-light);
}

.svg-wrapper {
    overflow: hidden;
    transform: translateZ(0);
}

.no-gap-bottom {
    margin-bottom: -.75rem;
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
}

.navbar {
    background-color: rgba(248, 249, 250, .82);
    backdrop-filter: blur(.5rem);
}

.navbar .nav-link {
    color: rgba(0, 0, 0, .56);
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--theme);
}

.navbar .nav-link::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--theme);
    border-radius: 0 0 4px 4px;
    transition: transform 0.3s ease;
}

.navbar .nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

.cursor-pointer {
    cursor: pointer;
}

.mouse-animation {
    height: 2rem;
}

.scroll-animation {
    width: .4rem;
    height: .4rem;
    animation: scrollDot 1.2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        transform: translateY(0);
        opacity: .4;
    }
    70% {
        transform: translateY(.8rem);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: .4;
    }
}

.animate-love {
    animation: loveFloat 3s ease-in-out infinite;
}

@keyframes loveFloat {
    0%, 100% {
        transform: translateY(0) rotate(-6deg);
    }
    50% {
        transform: translateY(-12px) rotate(6deg);
    }
}

.width-loading {
    width: 25%;
}

.with-scrollbar {
    scrollbar-width: auto;
}

.audio-float {
    bottom: 10vh;
    right: 2vh;
    z-index: 1030;
}

.btn-transparent {
    background-color: rgba(248, 249, 250, .74);
    backdrop-filter: blur(.5rem);
}

.theme-line {
    width: 4rem;
    height: .12rem;
    margin: .5rem auto 1rem;
    background: var(--theme);
    border-radius: 999px;
}

.progress-bar {
    background-color: var(--theme);
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

/* 1. Modern Minimalist (Default) */
/* No overrides needed, uses standard Bootstrap light/white variables */

/* 2. Adat Jawa */
.theme-adat-jawa {
    --bs-light: #f4ecd8;
    --bs-white: #fdfaf3;
    --bs-dark: #4b3621;
    --bs-gray-100: #e8dfc7;
    color: var(--bs-dark);
}
.theme-adat-jawa .bg-cover-home { filter: sepia(0.4); }

/* 3. Elegant Luxury */
.theme-elegant-luxury {
    --bs-light: #1c1c1e;
    --bs-white: #000000;
    --bs-dark: #f0e6d2;
    --bs-gray-100: #2c2c2e;
    --bs-body-bg: #000;
    color: var(--bs-dark);
}
.theme-elegant-luxury .bg-cover-home { filter: brightness(0.8) contrast(1.1); }
.theme-elegant-luxury .navbar .nav-link { color: rgba(255, 255, 255, .6); }

/* 4. Royal Gold */
.theme-royal-gold {
    --bs-light: #fffdf5;
    --bs-white: #ffffff;
    --bs-dark: #634b00;
    --bs-gray-100: #fff9e6;
    color: var(--bs-dark);
}

/* 5. Vintage Classic */
.theme-vintage-classic {
    --bs-light: #e6dfd1;
    --bs-white: #f5f0e6;
    --bs-dark: #3e3223;
    --bs-gray-100: #d6caba;
    color: var(--bs-dark);
    font-family: "Georgia", serif;
}
.theme-vintage-classic .bg-cover-home { filter: grayscale(0.5) sepia(0.5); }

/* 6. Glassmorphism */
.theme-glassmorphism {
    --bs-light: rgba(255, 255, 255, 0.4);
    --bs-white: rgba(255, 255, 255, 0.2);
    --bs-dark: #111;
    --bs-gray-100: rgba(255, 255, 255, 0.3);
}
.theme-glassmorphism .bg-white-black,
.theme-glassmorphism .bg-light-dark,
.theme-glassmorphism .bg-theme-auto {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.theme-glassmorphism .bg-cover-home { filter: saturate(1.2); }

/* 7. Dark Premium */
.theme-dark-premium {
    --bs-light: #1a1a1a;
    --bs-white: #0a0a0a;
    --bs-dark: #f5f5f5;
    --bs-gray-100: #222222;
    --bs-body-bg: #0a0a0a;
    color: var(--bs-dark);
}
.theme-dark-premium .navbar .nav-link { color: rgba(255, 255, 255, .6); }
.theme-dark-premium .bg-cover-home { filter: brightness(0.6); }

/* 8. Sakura Jepang */
.theme-sakura-jepang {
    --bs-light: #fff5f8;
    --bs-white: #ffffff;
    --bs-dark: #4a2f38;
    --bs-gray-100: #ffe8f0;
    color: var(--bs-dark);
}

/* 9. Islami Elegan */
.theme-islami-elegan {
    --bs-light: #f0f7f4;
    --bs-white: #ffffff;
    --bs-dark: #123524;
    --bs-gray-100: #e2efea;
    color: var(--bs-dark);
}

/* 10. Batik Nusantara */
.theme-batik-nusantara {
    --bs-light: #f0e8dc;
    --bs-white: #faf6ef;
    --bs-dark: #362204;
    --bs-gray-100: #e3d5c1;
    color: var(--bs-dark);
}

/* 11. Garden Party */
.theme-garden-party {
    --bs-light: #f4f9f4;
    --bs-white: #ffffff;
    --bs-dark: #1b4332;
    --bs-gray-100: #e8f3e8;
    color: var(--bs-dark);
}

/* =========================================
   THEME ORNAMENTS & ANIMATIONS (ENHANCED)
   ========================================= */

#theme-ornaments {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1057; /* Di atas loading-page (1056) agar tampil di landing page */
    overflow: hidden;
}

/* 1. Adat Jawa: Wayang Rama & Sinta (Swaying Animation) */
.ornament-jawa-rama-sinta {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 250px;
    background: url('../img/wayang_rama_sinta.png') no-repeat bottom center;
    background-size: contain;
    transform-origin: bottom center;
    animation: swayWayangCenter 6s ease-in-out infinite alternate, fadeInWayang 2s ease-out forwards;
    opacity: 0;
    mix-blend-mode: multiply;
}
@keyframes swayWayangCenter { 
    0% { transform: translateX(-50%) rotate(-2deg); } 
    100% { transform: translateX(-50%) rotate(2deg); } 
}
@keyframes fadeInWayang { to { opacity: 0.15; } }

/* 2. Sakura Jepang: Vibrant Petals */
.petal {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.8), rgba(255, 105, 135, 0.6));
    border-radius: 15px 0 15px 0;
    top: -20px;
    box-shadow: 0 0 10px rgba(255, 183, 197, 0.5);
    animation: fallSakura linear infinite;
}
.petal:nth-child(odd) { background: linear-gradient(135deg, rgba(255, 145, 164, 0.8), rgba(255, 99, 132, 0.6)); animation-duration: 6s; }
.petal:nth-child(even) { animation-duration: 8s; }
.petal:nth-child(1) { left: 10%; animation-delay: 0s; }
.petal:nth-child(2) { left: 20%; animation-delay: 2s; }
.petal:nth-child(3) { left: 30%; animation-delay: 4s; }
.petal:nth-child(4) { left: 40%; animation-delay: 1s; }
.petal:nth-child(5) { left: 50%; animation-delay: 3s; }
.petal:nth-child(6) { left: 60%; animation-delay: 5s; }
.petal:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.petal:nth-child(8) { left: 80%; animation-delay: 2.5s; }
.petal:nth-child(9) { left: 90%; animation-delay: 4.5s; }
.petal:nth-child(10) { left: 15%; animation-delay: 1.5s; }
.petal:nth-child(11) { left: 35%; animation-delay: 3.5s; }
.petal:nth-child(12) { left: 55%; animation-delay: 0.2s; }
.petal:nth-child(13) { left: 75%; animation-delay: 2.2s; }
.petal:nth-child(14) { left: 95%; animation-delay: 4.2s; }
.petal:nth-child(15) { left: 5%; animation-delay: 1.8s; }
@keyframes fallSakura {
    0% { transform: translateY(-20px) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(50vh) rotate(180deg) translateX(80px); }
    90% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg) translateX(-80px); opacity: 0; }
}

/* 3. Glassmorphism: Floating Orbs */
.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 15s infinite alternate ease-in-out;
}
.orb-1 { width: 50vw; height: 50vw; background: rgba(255, 99, 132, 0.4); top: -10%; left: -10%; }
.orb-2 { width: 40vw; height: 40vw; background: rgba(54, 162, 235, 0.4); bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 35vw; height: 35vw; background: rgba(255, 206, 86, 0.4); top: 30%; left: 20%; animation-delay: -10s; }
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 150px) scale(1.3); }
}

/* 4. Islami Elegan: Swinging Lanterns & Moon */
.lantern {
    position: absolute;
    top: -30px;
    font-size: 4rem;
    color: rgba(18, 53, 36, 0.4);
    transform-origin: top center;
    animation: swingLantern 3.5s infinite ease-in-out alternate;
}
.lantern.left { left: 15%; animation-delay: 0s; }
.lantern.right { right: 15%; animation-delay: -1.5s; font-size: 5rem; }
.lantern::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 60vh;
    background: linear-gradient(to bottom, rgba(18, 53, 36, 0.3), transparent);
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}
@keyframes swingLantern { 0% { transform: rotate(-15deg); } 100% { transform: rotate(15deg); } }

/* 5. Royal Gold: Glowing Crown */
.royal-frame {
    position: absolute;
    inset: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 40px;
    box-shadow: inset 0 0 50px rgba(212, 175, 55, 0.1);
    animation: framePulse 4s infinite alternate;
}
.royal-crown {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.9);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
    animation: pulseCrown 3s infinite ease-in-out;
}
@keyframes framePulse { 0% { border-color: rgba(212, 175, 55, 0.2); } 100% { border-color: rgba(212, 175, 55, 0.5); } }
@keyframes pulseCrown { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 25px rgba(212, 175, 55, 1)); } }

/* 6. Garden Party: Floating Leaves */
.leaf {
    position: absolute;
    font-size: 2rem;
    color: rgba(45, 106, 79, 0.5);
    top: -40px;
    animation: fallSakura linear infinite;
}
.leaf:nth-child(odd) { color: rgba(27, 67, 50, 0.6); animation-duration: 9s; font-size: 1.5rem; }
.leaf:nth-child(even) { animation-duration: 12s; }
.leaf:nth-child(1) { left: 10%; animation-delay: 0s; }
.leaf:nth-child(2) { left: 30%; animation-delay: 2s; }
.leaf:nth-child(3) { left: 50%; animation-delay: 4s; }
.leaf:nth-child(4) { left: 70%; animation-delay: 1s; }
.leaf:nth-child(5) { left: 90%; animation-delay: 3s; }
.leaf:nth-child(6) { left: 20%; animation-delay: 5s; }
.leaf:nth-child(7) { left: 40%; animation-delay: 0.5s; }
.leaf:nth-child(8) { left: 60%; animation-delay: 2.5s; }
.leaf:nth-child(9) { left: 80%; animation-delay: 4.5s; }
.leaf:nth-child(10) { left: 15%; animation-delay: 1.5s; }
.leaf:nth-child(11) { left: 85%; animation-delay: 3.5s; }
.leaf:nth-child(12) { left: 55%; animation-delay: 0.2s; }

/* 7. Elegant Luxury: Twinkling Diamonds */
.sparkle {
    position: absolute;
    font-size: 1rem;
    color: rgba(255, 215, 0, 0.8);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 1));
    animation: twinkle 4s infinite ease-in-out;
}
.sparkle:nth-child(odd) { font-size: 0.6rem; animation-duration: 2s; }
.sparkle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 30%; left: 80%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 60%; left: 15%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 80%; left: 70%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { top: 40%; left: 40%; animation-delay: 2s; }
.sparkle:nth-child(6) { top: 15%; left: 60%; animation-delay: 0.2s; }
.sparkle:nth-child(7) { top: 85%; left: 25%; animation-delay: 0.7s; }
.sparkle:nth-child(8) { top: 50%; left: 85%; animation-delay: 1.2s; }
.sparkle:nth-child(9) { top: 70%; left: 10%; animation-delay: 1.7s; }
.sparkle:nth-child(10) { top: 25%; left: 90%; animation-delay: 2.2s; }
.sparkle:nth-child(11) { top: 5%; left: 40%; animation-delay: 0.3s; }
.sparkle:nth-child(12) { top: 95%; left: 50%; animation-delay: 0.8s; }
.sparkle:nth-child(13) { top: 45%; left: 5%; animation-delay: 1.3s; }
.sparkle:nth-child(14) { top: 65%; left: 95%; animation-delay: 1.8s; }
.sparkle:nth-child(15) { top: 35%; left: 25%; animation-delay: 2.3s; }
.sparkle:nth-child(16) { top: 55%; left: 65%; animation-delay: 0.4s; }
.sparkle:nth-child(17) { top: 75%; left: 45%; animation-delay: 0.9s; }
.sparkle:nth-child(18) { top: 20%; left: 10%; animation-delay: 1.4s; }
.sparkle:nth-child(19) { top: 90%; left: 80%; animation-delay: 1.9s; }
.sparkle:nth-child(20) { top: 10%; left: 95%; animation-delay: 2.4s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1.5) rotate(180deg); } }

/* 8. Dark Premium: Neon Grid & Shooting Stars */
.neon-grid {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: moveGrid 10s linear infinite;
}
@keyframes moveGrid { 0% { background-position: 0 0; } 100% { background-position: 0 500px; } }
.shooting-star {
    position: absolute;
    width: 3px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,1), transparent);
    top: -100px;
    transform: rotate(45deg);
    animation: shoot 3s infinite;
    filter: drop-shadow(0 0 10px white);
}
.shooting-star:nth-child(2) { left: 20%; animation-delay: 1s; }
.shooting-star:nth-child(3) { left: 50%; animation-delay: 2.5s; }
.shooting-star:nth-child(4) { left: 80%; animation-delay: 0.5s; }
.shooting-star:nth-child(5) { left: 90%; animation-delay: 3s; }
.shooting-star:nth-child(6) { left: 10%; animation-delay: 1.5s; }
@keyframes shoot { 0% { transform: rotate(45deg) translateY(-100px); opacity: 1; } 100% { transform: rotate(45deg) translateY(2500px); opacity: 0; } }

/* 9. Vintage Classic: Flourish Dividers */
.vintage-flourish {
    position: absolute;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 400 100" xmlns="http://www.w3.org/2000/svg"><path d="M20 50 Q 100 0, 200 50 T 380 50" fill="none" stroke="rgba(62, 50, 35, 0.3)" stroke-width="3"/><circle cx="200" cy="50" r="10" fill="none" stroke="rgba(62, 50, 35, 0.3)" stroke-width="2"/></svg>') no-repeat center;
    background-size: 90%;
    animation: expandFlourish 4s ease-out forwards;
}
.vintage-flourish.top { top: 30px; }
.vintage-flourish.bottom { bottom: 30px; transform: rotate(180deg); }
@keyframes expandFlourish { 0% { transform: scaleX(0); opacity: 0; } 100% { transform: scaleX(1); opacity: 1; } }

/* 10. Batik Nusantara: Scrolling Pattern */
.batik-pattern {
    position: absolute;
    inset: -50%;
    background: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="15" fill="none" stroke="rgba(54, 34, 4, 0.08)" stroke-width="3"/><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="none" stroke="rgba(54, 34, 4, 0.08)" stroke-width="2"/></svg>') repeat;
    animation: panBatik 30s linear infinite;
}
@keyframes panBatik { 0% { transform: translate(0, 0); } 100% { transform: translate(60px, 60px); } }

/* 11. Modern Minimalist: Rotating Shapes */
.minimalist-circle {
    position: absolute;
    width: 60vh;
    height: 60vh;
    border: 2px solid rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    top: 20%;
    left: -30vh;
    animation: rotateCircle 25s linear infinite;
}
.minimalist-circle::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    top: 0;
    left: 50%;
}
.minimalist-line {
    position: absolute;
    width: 2px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.04);
    right: 20%;
    top: 0;
}
@keyframes rotateCircle { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


