/* --- RESET & BASE STYLE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f0102;
    color: #333;
    overflow-x: hidden;
}

/* --- ANIMASI LAMPU SOROT BERGERAK (SWEEPING SPOTLIGHTS) --- */
.spotlight {
    position: absolute;
    top: -20%;
    width: 160%;
    height: 140vh;
    background: radial-gradient(ellipse at top, rgba(255, 235, 150, 0.25) 0%, rgba(255, 200, 50, 0.04) 40%, transparent 70%);
    z-index: 998;
    pointer-events: none;
    transform-origin: top center;
}

.spotlight-left {
    left: -30%;
    animation: scanLeft 6s ease-in-out infinite alternate;
}

.spotlight-right {
    right: -30%;
    background: radial-gradient(ellipse at top, rgba(255, 240, 180, 0.22) 0%, rgba(255, 200, 50, 0.03) 40%, transparent 70%);
    animation: scanRight 6s ease-in-out infinite alternate;
    animation-delay: -3s; 
}

@keyframes scanLeft {
    0% { transform: rotate(-15deg) scaleX(0.9); }
    100% { transform: rotate(15deg) scaleX(1.1); }
}

@keyframes scanRight {
    0% { transform: rotate(15deg) scaleX(0.9); }
    100% { transform: rotate(-15deg) scaleX(1.1); }
}

/* --- LOGO DI DEPAN --- */
.logo-container {
    width: 85px;
    height: 85px;
    margin: 0 auto 15px auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 8px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.inner-logo {
    max-width: 80px;
    margin: 0 auto;
}

/* --- DETAIL TIRAI --- */
.curtain-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    background-color: #2b0004;
}

.curtain {
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 50% 35%, #990012 0%, #300005 100%);
    transition: transform 1.6s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
}

.curtain-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #ffe89e, #d4af37, #ffe89e);
    box-shadow: 0 0 10px #d4af37;
}

.curtain::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.4) 0%, 
        rgba(255,255,255,0.06) 25%, 
        rgba(0,0,0,0.4) 50%, 
        rgba(255,255,255,0.06) 75%, 
        rgba(0,0,0,0.4) 100%);
    background-size: 50px 100%;
}

/* Animasi Tutup/Buka */
.curtain-wrapper.open .curtain-left { transform: translateX(-100%); }
.curtain-wrapper.open .curtain-right { transform: translateX(100%); }
.curtain-wrapper.open .curtain-content { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
.curtain-wrapper.open .spotlight { opacity: 0; transition: opacity 0.4s; }

/* --- KONTEN COVER --- */
/* --- KONTEN COVER --- */
.curtain-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 85%;
    max-width: 420px;
    z-index: 1000;
    color: #fff;
    transition: all 1s ease-in-out;
    
    /* --- TAMBAHAN AGAR BISA DI-SCROLL JIKA LAYAR HP KECIL --- */
    max-height: 95vh; /* Batas tinggi maksimal 95% dari layar HP */
    overflow-y: auto; /* Otomatis bisa di-scroll jika konten melebihi batas layar */
    padding: 10px 0;  /* Sedikit ruang di atas dan bawah agar tidak terlalu mepet */
    
    /* Menyembunyikan garis scrollbar agar tetap estetik (opsional tapi disarankan) */
    -ms-overflow-style: none;  /* Untuk browser IE dan Edge */
    scrollbar-width: none;  /* Untuk browser Firefox */
}

/* Menyembunyikan garis scrollbar untuk Chrome, Safari, dan Opera */
.curtain-content::-webkit-scrollbar {
    display: none; 
}
.title-wrapper {
    background: rgba(0, 0, 0, 0.55);
    padding: 20px 10px; /* Padding dibuat lebih ramping */
    margin: 10px 0; /* Memberi sedikit jarak atas dan bawah */
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #ffe082;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 5px;
}

.main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    line-height: 0.95;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 3px 4px 0px #4a000a, 0px 0px 20px rgba(255, 215, 0, 0.4);
    margin-bottom: 12px;
}

.ampersand {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #ffd54f;
    display: inline-block;
    margin: 2px 0;
}

.school {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #eeeeee;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.8);
}

.year {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: #ffd54f;
    margin-top: 2px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* --- PAPAN GUEST BOX & TOMBOL BUKA --- */
.marquee-guest-box {
    margin: 30px auto;
    padding: 18px 15px;
    background: radial-gradient(circle, #4a0107 0%, #200003 100%);
    border: 3px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 0 0 4px #80000a, 0 10px 25px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0,0,0,0.6);
}

.guest-title { font-size: 12px; color: #e0e0e0; font-style: italic; margin-bottom: 8px; }
.guest-name { font-family: 'Cinzel', serif; font-size: 20px; font-weight: 900; color: #ffd54f; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); word-wrap: break-word; }

.btn-open {
    font-family: 'Bebas Neue', sans-serif;
    padding: 12px 40px;
    background: linear-gradient(135deg, #ffe082 0%, #d4af37 50%, #b38f1d 100%);
    color: #1a0205;
    border: 2px solid #fff;
    border-radius: 30px;
    letter-spacing: 2px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5), inset 0 2px 2px rgba(255,255,255,0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-open:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.7);
    background: linear-gradient(135deg, #ffffff 0%, #ffe082 100%);
}

/* --- KONTEN ISI UNDANGAN --- */
.main-content {
    min-height: 100vh;
    padding: 25px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #1f0206 0%, #0a0001 100%);
}

.card-invitation {
    background: #ffffff;
    width: 100%;
    max-width: 430px;
    border-radius: 15px;
    padding: 35px 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    border: 3px solid #d4af37;
    text-align: center;
}

.hidden { display: none !important; }
.salam { font-weight: 600; font-size: 13px; margin: 15px 0; color: #4a000a; }
.text-pembuka, .text-penutup { font-size: 12px; line-height: 1.6; color: #444; margin-bottom: 15px; }
.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #d4af37, transparent); margin: 22px 0; }

.event-details { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; }
.detail-item { flex: 1; font-size: 11px; }
.detail-item h4 { color: #4a000a; margin-bottom: 5px; }
.detail-date { flex: 1; border-left: 1px solid #ddd; border-right: 1px solid #ddd; padding: 0 5px; }
.date-highlight { font-size: 38px; font-weight: bold; color: #a70016; line-height: 1; margin: 3px 0; }

.agenda-section h3 { font-size: 14px; color: #4a000a; letter-spacing: 2px; margin-bottom: 12px; }
.agenda-grid { display: flex; justify-content: space-between; text-align: left; font-size: 11px; background: #fffcf9; padding: 15px; border-radius: 8px; border: 1px solid #e0cfbe; }
.agenda-grid ol { padding-left: 15px; width: 48%; }
.agenda-grid li { margin-bottom: 6px; color: #333; }

.signature-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; /* Ini adalah kunci agar kolom sejajar di bagian bawah */
    font-size: 11px; 
    margin-top: 35px; 
    text-align: center; 
}

.signature-container div { 
    width: 47%; 
}
.note { font-size: 10px; color: #777; margin-top: 25px; font-style: italic; }

/* --- TOMBOL MUSIK MELAYANG --- */
.music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffe082 0%, #d4af37 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1001;
    cursor: pointer;
    border: 2px solid #fff;
    transition: transform 0.3s;
}

.music-toggle.playing {
    animation: spinDisc 4s linear infinite;
}

@keyframes spinDisc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- TOMBOL LIHAT LOKASI --- */
.btn-location {
    display: inline-block;
    margin: 15px 0;
    padding: 10px 25px;
    background-color: #a70016;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 25px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(167, 0, 22, 0.4);
    transition: 0.3s;
}

.btn-location:hover {
    background-color: #d4af37;
    color: #4a000a;
}

/* --- COUNTDOWN TIME --- */
.countdown-section {
    margin: 25px 0;
}

.countdown-section h3 {
    font-size: 14px;
    color: #d4af37;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cd-box {
    background: radial-gradient(circle, #4a000a 0%, #200003 100%);
    color: #fff;
    padding: 10px;
    width: 65px;
    border-radius: 8px;
    border: 1px solid #d4af37;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cd-box span {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    color: #ffe082;
    line-height: 1;
    margin-bottom: 3px;
}

.cd-box p {
    font-size: 9px;
    letter-spacing: 1px;
    color: #ccc;
    text-transform: uppercase;
}
/* --- TOMBOL KEMBALI KE SAMPUL --- */
.btn-back {
    display: inline-block;
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 10px 25px;
    background-color: transparent;
    color: #4a000a;
    border: 2px solid #4a000a;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #4a000a;
    color: #d4af37;
}