/* Variabel Warna */
:root {
    --gold: #e2145f;
    --gold-light: #990a36;
    --dark: #d3d3d3;
    --dark-accent: #2a2a2a;
    --white: #ffffff;
    --balloon-gold: #e2145f;
    --balloon-dark: #4a4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    overflow-x: hidden; 
    overflow-y: auto; 
    position: relative;
}

/* Styling Logo Lingkaran pada Cover */
.logo-container {
    margin-bottom: 25px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-cover {
    width: 120px;         /* Ukuran lebar */
    height: 120px;        
    object-fit: cover;   
    border-radius: 50%;   /*bentuk lingkaran */
    padding: 5px;         /* Jarak antara gambar dan bingkai emas */
    background: rgba(255, 255, 255, 0.05); /* Background transparan halus */
    filter: drop-shadow(0px 0px 15px rgba(212, 175, 55, 0.4));
    animation: pulseLogo 3s infinite ease-in-out;
}

/* Animasi halus untuk logo */
@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Penyesuaian untuk HP */
@media (max-width: 480px) {
    .logo-cover {
        width: 100px;
        height: 100px;
    }
}

/* Styling Canvas Kembang Api */
#fireworksCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Agar tidak menghalangi klik tombol */
    z-index: 1; /* Di bawah konten landing */
}

/* Base styling untuk semua maskot */
.maskot-animasi {
    position: absolute;
    width: 120px; /* Ukuran bisa disesuaikan */
    z-index: 5;
    opacity: 0;
    pointer-events: none; /* Agar tidak menghalangi tombol saat diklik */
}

/* Posisi Kanan Bawah */
.maskot-kanan {
    bottom: 50px;
    right: 30px;
    animation: 
        slideInBottom 1.5s ease-out forwards, 
        floatNormal 4s ease-in-out infinite 1.5s;
}

/* Posisi Kiri Atas */
.maskot-kiri {
    top: 50px;
    left: 30px;
    /* Kita gunakan animasi float yang sedikit berbeda kecepatannya (5s) agar tidak kaku */
    animation: 
        slideInTop 1.5s ease-out forwards, 
        floatNormal 5s ease-in-out infinite 1.5s;
}

/* Animasi Muncul dari Bawah */
@keyframes slideInBottom {
    from { bottom: -150px; opacity: 0; }
    to { bottom: 50px; opacity: 1; }
}

/* Animasi Muncul dari Atas */
@keyframes slideInTop {
    from { top: -150px; opacity: 0; }
    to { top: 50px; opacity: 1; }
}

/* Animasi Melayang (Naik Turun Bergelombang) */
@keyframes floatNormal {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Container Utama */
.curtain-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}

.curtain-wrapper.active {
    visibility: visible;
}

.curtain-side {
    width: 50%;
    height: 100%;
    background-color: #8b0000;
    background-image: repeating-linear-gradient(to right, 
        rgba(0,0,0,0.3) 0px, transparent 25px, 
        rgba(255,255,255,0.1) 50px, transparent 75px, 
        rgba(0,0,0,0.3) 100px);
    background-size: 200px 100%;
    /* Origin di TOP agar bagian atas tetap diam saat bagian bawah miring */
    transform-origin: top; 
    transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
    position: relative;
}

/* Detail Garis Emas */
.curtain-side::after {
    content: "";
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #bf953f, #fcf6ba, #bf953f);
}
.left::after { right: 0; }
.right::after { left: 0; }

/* --- Animasi Miring Saat Terbuka --- */

/* Tirai Kiri: Geser kiri + Miring ke kanan */
.curtain-wrapper.active .left {
    transform: translateX(-100%) skewX(-15deg);
}

/* Tirai Kanan: Geser kanan + Miring ke kiri */
.curtain-wrapper.active .right {
    transform: translateX(100%) skewX(15deg);
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Agar tidak menghalangi klik pada elemen di bawahnya */
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -20px; /* Mulai dari atas layar */
  width: 10px;
  height: 15px;
  background-color: #f00;
  opacity: 0.8;
  animation: fall linear infinite;
}

/* Variasi posisi, warna, dan durasi untuk masing-masing potongan */
.confetti:nth-child(1) { left: 10%; background: #ff4136; animation-duration: 3s; animation-delay: 0s; }
.confetti:nth-child(2) { left: 25%; background: #2ecc40; animation-duration: 4.5s; animation-delay: 1s; }
.confetti:nth-child(3) { left: 40%; background: #0074d9; animation-duration: 3.5s; animation-delay: 0.5s; }
.confetti:nth-child(4) { left: 55%; background: #ffdc00; animation-duration: 5s; animation-delay: 2s; }
.confetti:nth-child(5) { left: 70%; background: #b10dc9; animation-duration: 4s; animation-delay: 1.5s; }
.confetti:nth-child(6) { left: 85%; background: #01ff70; animation-duration: 3.2s; animation-delay: 0.2s; }
.confetti:nth-child(7) { left: 95%; background: #ff851b; animation-duration: 4.8s; animation-delay: 2.5s; }

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    /* Bergerak ke bawah layar + sedikit goyangan horizontal */
    transform: translateY(110vh) translateX(50px) rotate(720deg);
  }
}

/* Gaya Halaman Depan */
#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('file/background.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out;
    text-align: center;
}

.landing-content {
    position: relative;
    z-index: 2; 
    padding: 20px;
    max-width: 400px;
}

#landing-page h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 20px 0;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.fade-in-text, .event-details .detail-item, .detail-item-location {
    color: #e0e0e0; 
}

/* Transisi Keluar */
.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

/* Menyembunyikan sebelum dibuka */
.hidden {
    display: none;
    opacity: 0;
}

body.no-scroll {
    overflow: hidden;
}

/* Container Grup Balon Kanan Atas */
.balon-group-top {
    position: absolute;
    top: 0;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

/* Base Balon 2D - Tali di Atas */
.balon-2d-top {
    position: relative;
    width: 30px;
    height: 40px;
    background-color: var(--gold);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; /* Dibalik agar bagian bawah lebih bulat */
}

/* Segitiga Pengikat di ATAS */
.balon-2d-top::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--gold); /* Menghadap ke bawah */
}

/* Tali di ATAS */
.balon-2d-top::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.4);
}

/* Variasi 3 Balon */
.b1 { background-color: var(--gold); transform: translateY(15px) rotate(-5deg); }
.b2 { background-color: var(--gold-light); transform: translateY(5px); }
.b3 { background-color: var(--gold); transform: translateY(15px) rotate(5deg); }

/* Menyesuaikan warna segitiga pengikat untuk b2 */
.b2::before { border-top-color: var(--gold-light); }

/* --- Balon Kiri Bawah (Tetap Normal) --- */
.balon-2d-bottom {
    position: absolute;
    bottom: 20px;
    left: 15px;
    width: 40px;
    height: 50px;
    background-color: var(--gold-light);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    transform: rotate(-15deg);
    z-index: 5;
}
/* Tambahkan pengikat dan tali bawah untuk balon-2d-bottom sesuai kode sebelumnya jika diperlukan */

.invitation-card {
    max-width: 450px;
    width: 100%;
    background: linear-gradient(145deg, #2e2a2a, #1e1b1b);
    padding: 50px 30px;
    text-align: center;
    border: 1px solid var(--gold);
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.invitation-card::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    pointer-events: none;
}

.invitation-card:not(.hidden) {
    opacity: 1;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    margin: 20px 0;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold);
}

/* Container untuk mengatur jarak kelompok pembuka */
.opening-greeting {
    margin: 20px 0;
}

/* Styling Teks Arab Basmalah */
.bismillah-text {
    font-family: 'Amiri', serif; /* Menggunakan font Arab yang umum di web */
    font-size: 2rem;
    color: #ffff;
    margin-bottom: 5px;
    text-align: center;
    font-weight: normal;
}

/* Styling Salam Latin (mengikuti permintaan sebelumnya) */
.salam-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--gold);
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
    margin: 0;
}

/* Responsif: Perkecil sedikit di HP jika terlalu lebar */
@media (max-width: 480px) {
    .bismillah-text {
        font-size: 1.4rem;
    }
}

.shimmer {
    color: #990a36 !important;
    -webkit-text-fill-color: #990a36 !important;

    /* Outline putih */

    /* Layer shadow: warna utama dulu, baru putih */
    text-shadow:
        0 0 1px #990a36,
        0 0 2px #990a36,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff;

    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}


@keyframes shine {
    to { background-position: 200% center; }
}

.line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 25px auto;
}

.event-details {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.detail-item-main {
    font-size: 1.4rem;
    margin: 10px 0;

    /* Warna utama */
    color: #990a36 !important;
    -webkit-text-fill-color: #990a36 !important;

    /* Outline putih + penguatan warna utama */
    text-shadow:
        0 0 1px #990a36,
        0 0 2px #990a36,
        -1px -1px 0 #ffffff,
         1px -1px 0 #ffffff,
        -1px  1px 0 #ffffff,
         1px  1px 0 #ffffff;

    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.detail-item-location {
    margin-top: 15px;
    font-style: italic;
    font-size: 0.9rem;
    color: #bbb;
}

/* Button Styling */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 14px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn.primary {
    background: var(--gold);
    color: #fff; /* Teks hitam */
    font-weight: 600;
}

.btn:hover {
    background: var(--gold-light);
    color: #fff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* --- Balon Animasi --- */
/* Container Utama Balon */
.balloon-container {
    position: fixed; /* Ubah ke fixed agar tetap di layar saat scroll */
    bottom: -100px;
    width: 200px; /* Area penyebaran balon */
    height: 100vh;
    pointer-events: none;
    z-index: 5;
}

/* Posisi Kiri dan Kanan */
.left-side { left: 0; }
.right-side { right: 0; }

.balloon {
    width: 40px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    bottom: -100px;
    animation: floatUp 10s ease-in-out infinite;
    opacity: 0.7;
}

/* Variasi posisi horizontal agar tidak menumpuk (Acak) */
.balloon:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.balloon:nth-child(2) { left: 40%; animation-delay: 2s; animation-duration: 15s; }
.balloon:nth-child(3) { left: 70%; animation-delay: 4s; animation-duration: 11s; }
.balloon:nth-child(4) { left: 25%; animation-delay: 1s; animation-duration: 14s; }
.balloon:nth-child(5) { left: 85%; animation-delay: 5s; animation-duration: 13s; }
.balloon:nth-child(6) { left: 55%; animation-delay: 3s; animation-duration: 16s; }

/* Warna dan Efek */
.balloon-gold {
    background: var(--balloon-gold);
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.2);
}
.balloon-dark {
    background: var(--balloon-dark);
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.3);
}

/* Tali Balon */
.balloon::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    100% {
        transform: translateY(-120vh) rotate(10deg);
        opacity: 0;
    }
}

/* Floating Music Button */
#music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#music-control.rotating {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    overflow-x: hidden; /* Sembunyikan scrollbar untuk kontrol JS */
    scroll-behavior: smooth;
}

.carousel-slide {
    min-width: 100%;
    height: 300px; /* Atur tinggi tetap */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Gambar FULL tidak terpotong */
    cursor: pointer;
}

/* Tombol Navigasi */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(226, 20, 95, 0.6); /* Warna --gold dengan transparansi */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    font-size: 18px;
}

.nav-btn:hover { background: var(--gold); }
.prev { left: 10px; }
.next { right: 10px; }

/* Container Utama Lightbox */
.lightbox-overlay {
    display: none; /* Sembunyikan default */
    position: fixed;
    z-index: 99999; /* Pastikan di atas semua elemen lain */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

/* Gambar yang Membesar */
#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(226, 20, 95, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

/* Efek saat terbuka */
.lightbox-overlay.active #lightbox-img {
    transform: scale(1);
}

/* Tombol Tutup (X) */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Animasi Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delay untuk elemen dalam list */
.scroll-reveal-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-stagger:nth-child(1).active { transition-delay: 0.1s; }
.scroll-reveal-stagger:nth-child(2).active { transition-delay: 0.2s; }
.scroll-reveal-stagger:nth-child(3).active { transition-delay: 0.3s; }
.scroll-reveal-stagger:nth-child(4).active { transition-delay: 0.4s; }
.scroll-reveal-stagger:nth-child(5).active { transition-delay: 0.5s; }

/* Container Utama Promo */
.promo-section {
    margin: 40px auto;
    padding: 25px 15px;
    border: 2px dashed var(--gold); /* Garis putus-putus seperti kupon */
    border-radius: 15px;
    background: rgba(226, 20, 95, 0.05); /* Background sangat transparan */
    position: relative;
    max-width: 320px;
    box-shadow: 0 0 15px rgba(226, 20, 95, 0.2);
}

/* Judul Promo Utama */
/* Judul Promo Utama */
.promo-title {
    font-family: 'Playfair Display', serif;
    color: #ffffff; /* Mengubah warna menjadi PUTIH */
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    /* Memberikan sedikit bayangan emas agar tetap mewah */
    text-shadow: 2px 2px 10px rgba(226, 20, 95, 0.8); 
    font-weight: 800;
    text-align: center;
}

/* Bagian Periode */
.promo-period {
    background: var(--gold); /* Box emas untuk tanggal */
    color: #fff; /* Teks gelap agar kontras */
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    width: 90%;
}

.promo-period h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Container Periode yang Berdenyut */
.promo-period {
    background: var(--gold); /* Pastikan warna background tetap emas */
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    width: 90%;
    
    /* Tambahkan baris animasi di bawah ini */
    animation: pulse-animation 2s infinite; 
    box-shadow: 0 0 0 0 rgba(226, 20, 95, 0.7); /* Efek bayangan awal */
}

/* Definisi Gerakan Berdenyut */
@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(226, 20, 95, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(226, 20, 95, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(226, 20, 95, 0);
    }
}

/* Hiasan tambahan di pojok promo */
.promo-section::before, .promo-section::after {
    content: '★';
    position: absolute;
    color: var(--gold);
    font-size: 1.2rem;
}

.promo-section::before { top: -10px; left: -10px; }
.promo-section::after { bottom: -10px; right: -10px; }