/* src/css/home.css (Fixed Stacking) - NUDE TEXT EDITION */

.home {
    width: 100%;
    height: 100svh; 
    min-height: 100svh;
    position: sticky;
    top: 0;
    z-index: 0;
    margin-top: -1rem;
    overflow: hidden;
    background-color: #000; /* Tetap Hitam untuk wadah slider */
}

.home-slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.home-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;

    /* Default: Sembunyi di paling belakang */
    opacity: 0;
    z-index: 0;

    will-change: filter, opacity;
    transform: translateZ(0);
}

/* KELAS UNTUK POSISI TUMPUKAN */
.home-slide.active {
    opacity: 1;
    z-index: 2;
    filter: url(#hole-dissolve);
}

.home-slide.next {
    opacity: 1;
    z-index: 1;
    filter: none;
}

/* Overlay Gradient - Tetap Hitam agar Teks Terbaca */
.home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Tetap gunakan gradasi hitam original agar kontras dengan foto */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 3;
    pointer-events: none;
}

.home-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 4;
    
    /* --- UBAH WARNA TEKS DISINI --- */
    /* Menggunakan warna background tema (Krem/Putih Tulang) agar kontras di layar hitam */
    color: var(--main-bg-color); 
    
    padding: 0 1rem;
}

.home-content figcaption {
    margin: 0.5rem 0;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    
    /* --- UBAH GRADASI WARNA EMAS JADI ROSE GOLD / MOCCA --- */
    background: linear-gradient(to right, 
        #D7CCC8, /* Mocca Pucat */
        #FFAB91, /* Rose Gold / Peach */
        #A1887F, /* Mocca Gelap */
        #FFAB91, 
        #D7CCC8);
        
    background-size: 200% auto;
    animation: shine 4s linear infinite;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}

.home-content .brideLName,
.home-content .bridePName {
    font-family: 'namapengantin', cursive;
    font-size: clamp(3.5rem, 6vw, 4.5rem);
    line-height: 1.2;
    background: none;
    -webkit-text-fill-color: inherit;
}

.home-content .ampersand {
    font-family: var(--sacramento);
    font-size: clamp(3.2rem, 5vw, 3.5rem);
    margin: 0;
    background: none;
    -webkit-text-fill-color: inherit;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.home-guest-name {
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
}

.home-guest-name span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    
    /* Warna Nama Tamu: Putih Gading (Sesuai tema) */
    color: var(--card-bg-color);
    
    opacity: 0.9;
    text-transform: capitalize;
    
    /* Garis Bawah: Warna Aksen Mocca */
    border-bottom: 1px solid var(--accent-color);
    
    padding-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.home-content .scroll_down {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    
    /* Warna teks Scroll Down: Krem */
    color: var(--main-bg-color);
    
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.home-content .scroll_down i {
    font-size: 1.8rem;
    /* Icon Panah: Warna Aksen Mocca */
    color: var(--accent-color);
}

.home-content .scroll_down span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@media screen and (min-width: 768px) {
    .home-content figcaption {
        gap: 1rem;
    }
}