/* --- Root Variables --- */
:root {
    --gold: #ff9d00;
    --cream: #f8f1e5;
    --font-playfair: 'Playfair Display', serif;
    --font-josefin: 'Josefin Sans', sans-serif;
}
.home-wrapper {
    background-color: var(--brown-dark); /* Warna gelap yang menutupi background */
    width: 100%;
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: -100000;
    overflow: hidden; /* Mencegah munculnya area putih saat scale */
}

/* --- Hero Section (The Stage) --- */
#home {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index:-100000;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
    
    /* Optimasi untuk transisi halus saat scroll */
    transform-origin: center center;
    will-change: transform, filter;
    transition: transform 0.1s linear, filter 0.1s linear;
}

/* --- Batik Background Overlay --- */
.batik-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    opacity: 0.07;
    background-image: radial-gradient(var(--gold) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* --- Content Styling --- */
.hero-content {
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero-label {
    font-family: var(--font-josefin);
    color: var(--gold);
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-playfair);
    color: var(--cream);
    font-size: clamp(3.5rem, 12vw, 7rem);
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
     padding: 0 120px; /* Ruang untuk ornamen kiri dan kanan */
     display: inline-block;
}

.hero-title em {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}
/* Ornamen Kiri & Kanan (Menggunakan Data URI SVG agar langsung tampil) */
.hero-title::before,
.hero-title::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    /* Ini adalah kode SVG pola bunga/batik berwarna emas */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23ff9d00' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23ff9d00' stroke-width='1'/%3E%3Cpath d='M50 5 L55 45 L95 50 L55 55 L50 95 L45 55 L5 50 L45 45 Z' fill='%23ff9d00' opacity='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    animation: sparkle 3s infinite ease-in-out;
}

/* Tambahkan keyframes ini di bagian bawah CSS Anda */
@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        filter: brightness(1) drop-shadow(0 0 0px rgba(255, 157, 0, 0));
    }
    50% {
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 157, 0, 0.8));
    }
}

.hero-title::before { left: 0; }
.hero-title::after { right: 0; }

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .hero-title { padding: 30px; }
    .hero-title::before, .hero-title::after { display: none;}
}

.hero-subtitle {
    font-family: var(--font-playfair);
    color: rgba(248, 241, 229, 0.7);
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
    opacity: 0.5;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    z-index: 2;
}

.scroll-indicator span {
    font-family: var(--font-josefin);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--cream);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    
    /* Menambahkan animasi */
    animation: scrollAnimation 2s infinite ease-in-out;
    transform-origin: top; /* Animasi bergerak dari titik atas */
}
.corner-light-2{
    background:#ffd700;

    box-shadow:
        0 0 5px #ffd700,
        0 0 10px #ffd700,
        0 0 20px #ffd700;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(10px); /* Garis turun 10px */
        opacity: 1;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1424px) {
    .hero-label {
        letter-spacing: 0.2rem;
        padding: 30px;
    }
    .scroll-indicator {
        bottom: 25px;
    }
    .corner-light{
        display: none;
    }
}
.main-layout-container {
    /* Menambahkan border yang terlihat tebal */
    border-top: 8px solid var(--gold); 
    
    /* Tambahan: bayangan agar ada efek 'kedalaman' saat menimpa hero */
    box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
    
}
/* --- Ornamen Sudut --- */
.ornament {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--gold);
    opacity: 0.3;
    z-index: 5;
    pointer-events: none;
}

.top-left { top: 110px; left: 30px; border-right: none; border-bottom: none; }
.top-right { top: 110px; right: 30px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.bottom-right { bottom: 30px; right: 30px; border-left: none; border-top: none; }
/* ======================================
   PARENT
====================================== */

.parent{
    position:absolute;
    inset:0;
    pointer-events:none;
}

/* ======================================
   ORNAMEN
====================================== */

.ornament{
    position:absolute;
    width:100px;
    height:100px;
    border:2px solid var(--gold);
    opacity:.3;
    z-index:5;
}

.top-left{
    top:110px;
    left:30px;
    border-right:none;
    border-bottom:none;
}

.top-right{
    top:110px;
    right:30px;
    border-left:none;
    border-bottom:none;
}

.bottom-left{
    bottom:30px;
    left:30px;
    border-right:none;
    border-top:none;
}

.bottom-right{
    bottom:30px;
    right:30px;
    border-left:none;
    border-top:none;
}

/* ======================================
   CAHAYA
====================================== */

.corner-light{
    position:absolute;

    width:8px;
    height:8px;

    border-radius:50%;

    background:var(--gold);

    box-shadow:
        0 0 5px var(--gold),
        0 0 10px var(--gold),
        0 0 20px var(--gold),
        0 0 40px var(--gold);

    z-index:50;

    transform:translate(-50%, -50%);
}