/* --- IMPORT FONT BARU (PLAYFAIR DISPLAY) --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* PALET WARNA MEWAH */
    --gold: #b88746;
    --gold-dark: #8c6635;
    --gold-light: #e8d3b5;
    --text-dark: #4a4a4a;
    --white: #ffffff;
    --cream-bg: #fcfbf8;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--cream-bg);
    margin: 0;
    padding: 0;
}

/* --- TYPOGRAPHY --- */
.font-aesthetic { font-family: 'Great Vibes', cursive; }
.font-serif { font-family: 'Noto Serif JP', serif; } 
.text-gold { color: var(--gold) !important; }
.fw-bold { font-weight: 700 !important; }

/* --- BACKGROUND PATTERN: LINEN PAPER TEXTURE (MURNI CSS) --- */
.pattern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.6; /* Transparansi tekstur kertas */
    pointer-events: none;
    
    /* Efek serat kertas diagonal */
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(184, 135, 70, 0.03) 2px,
        rgba(184, 135, 70, 0.03) 4px
    ),
    repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 2px,
        rgba(184, 135, 70, 0.03) 2px,
        rgba(184, 135, 70, 0.03) 4px
    );
    background-color: transparent;
}

/* --- DATE DISPLAY STYLING (FONT BARU: PLAYFAIR DISPLAY) --- */
.date-wrapper {
    border-top: 1px solid var(--gold-light);
    border-bottom: 1px solid var(--gold-light);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.date-month {
    font-family: 'Playfair Display', serif; /* Font Baru */
    font-size: 1.2rem;
    letter-spacing: 5px; /* Dibuat lebih renggang biar elegan */
    text-transform: uppercase;
    color: var(--text-dark);
    font-weight: 600;
}

.date-day {
    font-family: 'Playfair Display', serif; /* Font Baru */
    font-size: 5.5rem;
    font-weight: 700; /* Lebih tebal */
    line-height: 1;
    color: var(--gold-dark);
    margin: 5px 0;
}

.date-year {
    font-family: 'Playfair Display', serif; /* Font Baru */
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: var(--text-dark);
    font-weight: 600;
}

/* --- SEKAT / PEMISAH SECTION --- */
.jp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    position: relative;
    z-index: 2;
}
.jp-divider::before, .jp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    max-width: 200px;
    margin: 0 15px;
    opacity: 0.5;
}
.jp-divider span {
    color: var(--gold);
    font-size: 1.2rem;
    background: var(--cream-bg);
    padding: 10px;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(184, 135, 70, 0.1);
}

/* --- LAYOUT & SECTIONS --- */
.content-section {
    background-color: transparent; 
    padding: 6rem 0;
    position: relative;
    margin: 0;
}

/* Section khusus Countdown */
.bg-gold-light {
    background: linear-gradient(to bottom, rgba(232, 211, 181, 0.1), rgba(232, 211, 181, 0.3));
}

/* --- POLAROID PHOTO STYLE --- */
.polaroid-wrapper {
    position: relative;
    background: white;
    padding: 15px 15px 60px 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: rotate(-2deg); 
    transition: all 0.4s ease;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border: 1px solid #eee;
}
.polaroid-wrapper:hover {
    transform: rotate(0deg) scale(1.02) translateY(-5px);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(184, 135, 70, 0.2);
}
.polaroid-photo img {
    width: 100%;
    height: auto;
    filter: sepia(5%) contrast(1.05); 
    border: 1px solid #f0f0f0;
}

/* Efek Washi Tape */
.washi-tape {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 35px;
    background-color: rgba(225, 206, 173, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
    opacity: 0.9;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.5) 2px, rgba(255,255,255,0.5) 4px);
}

/* --- COVER SECTION (Parallax) --- */
#cover {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/bg1.png'); 
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
#cover.open { transform: translateY(-100%); }

.guest-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px 40px;
    border-radius: 50px;
    display: inline-block;
    color: var(--gold-dark);
    font-size: 1.2rem;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- COUNTDOWN --- */
.countdown-item {
    background: white;
    padding: 15px 10px;
    border-radius: 12px;
    width: 85px;
    border: 1px solid var(--gold-light);
    box-shadow: 0 10px 20px rgba(184, 135, 70, 0.1);
}
.countdown-item span { display: block; line-height: 1; margin-bottom: 5px; }
.countdown-item small { 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    letter-spacing: 1px; 
    color: #999;
}

/* --- BUTTONS --- */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(184, 135, 70, 0.3);
}
.btn-gold:hover { 
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: white; 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(184, 135, 70, 0.5);
}
.btn-outline-gold {
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}
.btn-outline-gold:hover { background-color: var(--gold); color: white; }

/* --- CARDS (Glassmorphism) --- */
.gold-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(184, 135, 70, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

/* --- GALLERY --- */
.gallery-item {
    display: block; overflow: hidden; border-radius: 12px;
    position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.img-crop {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover .img-crop { transform: scale(1.1); }

/* --- MUSIC CONTROL --- */
.music-box {
    position: fixed; bottom: 25px; right: 25px; z-index: 999;
    background: rgba(255, 255, 255, 0.9); 
    padding: 10px; border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer; border: 1px solid var(--gold);
    opacity: 0; transition: opacity 1s;
    backdrop-filter: blur(5px);
}
.music-box.show { opacity: 1; }
.spin-disk { animation: spin 4s linear infinite; }
.paused-disk { animation-play-state: paused; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- SCROLLBAR CUSTOM --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- RESPONSIVE MOBILE (UPDATE FINAL) --- */
@media (max-width: 768px) {
    /* 1. Judul Cover */
    .display-1 { font-size: 3rem; }
    
    /* 2. Judul Section */
    .display-4 { font-size: 1.8rem; }
    
    /* 3. Padding Section */
    .content-section { padding: 3rem 0; }
    
    /* 4. Ukuran Polaroid */
    .polaroid-wrapper { max-width: 260px; }
    
    /* 5. Kartu Undangan */
    .gold-card { padding: 30px 20px; }
    
    /* 6. Angka Tanggal */
    .date-day { font-size: 3.5rem; }

    /* --- PENGATURAN FONT INTRO --- */
    
    /* Ayat Al-Quran: Dibuat KECIL & Rapi */
    #intro .fs-5 { 
        font-size: 0.8rem !important; 
        line-height: 1.5;
    }

/* Teks "Kami Mengundang...": Ukuran NORMAL/JELAS (Tidak Dikecilkan) */
    #intro .lead {
        font-size: 1.1rem !important; 
        line-height: 1.6;
        padding: 0 5px;
        
        /* TAMBAHKAN INI UNTUK JARAK KE BAWAH */
        margin-bottom: 50px !important; /* Semakin besar angkanya, semakin jauh jaraknya */
    }

    /* Nama Mempelai: Tetap BESAR & Jelas */
    .couple-names .display-3 {
        font-size: 2.5rem !important; /* Ukuran besar agar terbaca jelas */
        margin-bottom: 10px;
    }
    
    /* Simbol '&' */
    .flower-divider h1 { font-size: 2rem !important; }
}

/* --- CUSTOM FONT UNTUK JAM --- */
.time-font {
    font-family: 'EB Garamond', serif; /* Menggunakan font yang sama dengan tanggal */
    font-size: 1.1rem; /* Ukuran sedikit dibesarkan agar jelas */
    letter-spacing: 1px; /* Sedikit jarak antar huruf */
    color: var(--text-dark);
}

/* --- LIVE STREAMING PREMIUM UI --- */
.live-box-premium {
    background: #ffffff;
    border: 1px solid var(--gold-light);
    border-radius: 20px; /* Sudut membulat */
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(184, 135, 70, 0.08); /* Bayangan halus */
    position: relative;
    overflow: hidden;
}

/* Header Judul  */
.live-header {
    text-align: left;
    margin-bottom: 10px;
}
.live-header h2 {
    font-size: 2.5rem; /* Ukuran font judul */
    margin-bottom: 0;
}

/* Garis Pemisah */
.live-divider {
    border: 0;
    height: 1px;
    background: rgba(184, 135, 70, 0.3); /* Warna emas transparan */
    margin: 0 0 25px 0;
}

/* Wrapper Icon */
.live-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px; /* Lebar area ikon tetap */
}

/* Lingkaran Pink */
.icon-circle {
    width: 70px;
    height: 70px;
    background-color: #fff5f5; /* Pink sangat muda */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-circle i {
    font-size: 2rem; /* Ukuran logo youtube */
}

/* Badge LIVE Merah */
.badge-live {
    background-color: #dc3545; /* Merah */
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}

/* Nama Channel */
.channel-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.5rem;
}

/* --- RESPONSIVE (Tampilan HP) --- */
@media (max-width: 768px) {
    .live-box-premium {
        padding: 25px 20px;
        text-align: center;
    }
    
    .live-header {
        text-align: center; /* Judul jadi tengah di HP */
    }
    
    .live-content {
        flex-direction: column; /* Icon di atas teks */
        gap: 15px;
    }
    
    .live-icon-wrapper {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    .live-text-wrapper {
        text-align: center !important;
    }
}