@import url("common.css");
@import url("animation.css");

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Sacramento', cursive !important;
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

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

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

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

html[data-bs-theme="light"] .color-theme-svg {
    color: rgb(255, 255, 255);
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

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

.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}

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

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

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

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

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}


/* =========================================
   DIMAS.CLOUD — LUXURY MONOCHROME COVER
   Charcoal • Silver Grey • White
   ========================================= */

:root {
    --lux-charcoal: #202124;
    --lux-charcoal-deep: #141517;
    --lux-grey: #aeb0b5;
    --lux-silver: #d5d6d8;
    --lux-white: #f8f8f6;
}

/* Background utama cover */
#home {
    isolation: isolate;
    min-height: 100svh;
    color: var(--lux-white);
    background:
        radial-gradient(
            ellipse at 50% 12%,
            rgba(110, 112, 118, 0.25) 0%,
            transparent 48%
        ),
        linear-gradient(
            145deg,
            var(--lux-charcoal) 0%,
            #292a2e 48%,
            var(--lux-charcoal-deep) 100%
        ) !important;
}

/* Foto latar dibuat lebih lembut dan monokrom */
#home > img.bg-cover-home {
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.13 !important;
    filter: grayscale(100%) brightness(0.65);
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        #000 25%,
        #000 75%,
        rgba(0, 0, 0, 0.3)
    );
}

/* Lapisan konten cover */
#home > .bg-overlay-auto {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3.5rem 1.5rem !important;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.035),
            transparent 68%
        ) !important;
}

/* Judul undangan */
#home h1 {
    color: var(--lux-silver);
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 1.8;
}

/* Foto utama pasangan */
#home img.img-center-crop {
    width: min(58vw, 15rem);
    height: min(58vw, 15rem);
    object-fit: cover;
    border-color: rgba(220, 220, 225, 0.8) !important;
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.035),
        0 16px 45px rgba(0, 0, 0, 0.35) !important;
    filter: grayscale(100%);
}

/* Nama pasangan */
#home h2.font-esthetic {
    color: var(--lux-white);
    font-family: 'Sacramento', cursive !important;
    font-size: clamp(2.8rem, 10vw, 4rem) !important;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}

/* Tanggal */
#home p.my-2 {
    color: var(--lux-silver);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem !important;
    letter-spacing: 0.12em;
}

/* Tombol kalender */
#home .btn-outline-auto {
    color: var(--lux-white) !important;
    border: 1px solid rgba(220, 220, 225, 0.65) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    backdrop-filter: blur(8px);
    padding: 0.65rem 1.2rem !important;
    letter-spacing: 0.04em;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

#home .btn-outline-auto:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: var(--lux-white) !important;
    transform: translateY(-2px);
}

/* Petunjuk scroll */
#home .mouse-animation {
    border-color: var(--lux-grey) !important;
}

#home .scroll-animation {
    background-color: var(--lux-silver) !important;
}

#home p.text-secondary {
    color: var(--lux-grey) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Ornamen floral monokrom di kedua sudut.
   Menggunakan pseudo-element, tanpa file gambar tambahan. */
#home::before,
#home::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: clamp(110px, 30vw, 190px);
    height: clamp(110px, 30vw, 190px);
    pointer-events: none;
    opacity: 0.25;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            transparent 39%,
            var(--lux-silver) 40%,
            transparent 41%
        ),
        radial-gradient(
            ellipse at 0% 50%,
            transparent 39%,
            var(--lux-silver) 40%,
            transparent 41%
        ),
        radial-gradient(
            ellipse at 100% 50%,
            transparent 39%,
            var(--lux-silver) 40%,
            transparent 41%
        ),
        radial-gradient(
            ellipse at 50% 100%,
            transparent 39%,
            var(--lux-silver) 40%,
            transparent 41%
        );
    border: 1px solid rgba(213, 214, 216, 0.35);
    border-radius: 50%;
}

#home::before {
    top: -42px;
    left: -42px;
    transform: rotate(-25deg);
}

#home::after {
    right: -42px;
    bottom: -42px;
    transform: rotate(25deg);
}

/* Tampilan desktop */
@media screen and (min-width: 576px) {
    #home {
        min-height: 100vh;
    }

    #home > .bg-overlay-auto {
        min-height: 100vh;
        padding: 4rem 2rem !important;
    }

    #home::before {
        top: -35px;
        left: -35px;
    }

    #home::after {
        right: -35px;
        bottom: -35px;
    }
}

/* Tampilan HP */
@media screen and (max-width: 575.98px) {
    #home h1 {
        letter-spacing: 0.2em;
    }

    #home img.img-center-crop {
        width: min(55vw, 13rem);
        height: min(55vw, 13rem);
    }

    #home::before {
        top: -45px;
        left: -45px;
    }

    #home::after {
        right: -45px;
        bottom: -45px;
    }
}
