/* ==========================================================================
   1. RESET & VARIABLES ROMANTIC ROSE GOLD QUARTZ PALETTE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
    /* Palet Glass Gold */
    --bg-rose-deep: #0a0a0b;        /* Latar belakang sangat gelap agar efek glass menonjol */
    --bg-glass-card: rgba(255, 255, 255, 0.06); /* Dasar kaca transparan */
    --gold-primary: #d4af37;       /* Emas murni (Classic Gold) */
    --gold-light: #fdf5e6;         /* Putih gading/Champagne */
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --border-glass: 1px solid rgba(255, 255, 255, 0.15);
    
    /* Teks */
    --text-main: #ffffff;
    --text-muted: #d1c7b7;
    
    /* Bayangan Emas */
    --shadow-deep: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-rose-deep);
    color: var(--text-main);
    font-family: 'Jost', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-rose-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 10px; }

/* ==========================================================================
   2. TYPOGRAPHY REFINEMENT
   ========================================================================== */
h1, h2, h3, h4, .font-serif {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold-light);
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.3));
}

.sub-title {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 15px;
    opacity: 0.9;
}

.sc-sub {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--gold-primary);
    display: block;
}

.sc-text-info { font-size: 0.9rem; color: var(--text-main); margin-top: 15px;}
.sc-text-info-sub { font-size: 0.75rem; color: var(--text-muted); font-style: italic; margin-bottom: 20px;}

/* ==========================================================================
   3. WELCOME COVER
   ========================================================================== */
/* Container Utama */
.welcome-cover {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 10000; display: flex; justify-content: center; align-items: center;
}

.welcome-bg {
    position: absolute; width: 100%; height: 100%;
    filter: blur(5px) brightness(0.6); /* Efek dramatis */
    transform: scale(1.1);
}

/* Glass Card yang lebih estetik */
.cover-content-floating {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 40px; /* Sudut melengkung halus */
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.heart-symbol {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    display: block;
    margin: 10px 0;
    font-size: 1.5rem;
}

.guest-frame {
    margin: 30px 0;
    border-top: 1px solid rgba(229, 189, 161, 0.2);
    border-bottom: 1px solid rgba(229, 189, 161, 0.2);
    padding: 15px 0;
}

/* Tombol dengan Efek Glow */
.btn-majestic-glow {
    background: linear-gradient(135deg, #e5bda1, #cc9673);
    border: none;
    padding: 15px 40px;
    color: var(--bg-rose-deep);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 50px; /* Pill shape */
    transition: 0.4s;
}

.btn-majestic-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 189, 161, 0.6);
}

/* Hero Main Screen */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Efek vignette untuk fokus ke tengah */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(10,10,11,0.6) 100%);
    z-index: 5;
}

.main-names {
    font-size: 5rem; /* Ukuran lebih besar dan dramatis */
    line-height: 1.1;
    margin: 20px 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.and-divider {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold-primary);
    display: block;
    margin: 10px 0;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 189, 161, 0.3);
    padding: 20px;
    border-radius: 15px;
    min-width: 100px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-names { font-size: 3rem; }
    .countdown-container { gap: 10px; }
    .countdown-item { min-width: 70px; padding: 10px; }
}
#parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    z-index: 1;
    will-change: transform;
}

.relative { position: relative; }
.z-20 { z-index: 20; }

.main-names {
    font-size: 3.5rem;
    margin: 15px 0;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wedding-date {
    letter-spacing: 6px;
    color: var(--text-main);
    font-weight: 300;
    font-size: 1.2rem;
}

/* ==========================================================================
   4. LAYOUT COMPONENT & INTERACTIVE BUTTONS
   ========================================================================== */
.section { padding: 120px 20px; text-align: center; }
.alt-bg { background-color: var(--bg-rose-light); border-top: var(--border-luxury); border-bottom: var(--border-luxury); }
.container { max-width: 900px; margin: 0 auto; }

.btn-majestic, .btn-majestic-submit {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-light) !important;
    padding: 14px 30px;
    font-family: 'Jost', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-majestic:hover, .btn-majestic-submit:hover {
    background: var(--gold-gradient);
    color: var(--bg-rose-deep) !important;
    box-shadow: 0 0 15px rgba(229, 189, 161, 0.4);
}

/* Countdown Box */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.countdown-item {
    border: var(--border-luxury);
    background: rgba(41, 29, 33, 0.7);
    padding: 15px;
    min-width: 85px;
    box-shadow: var(--shadow-deep);
}

.countdown-number {
    font-size: 2rem;
    font-weight: 500;
    color: var(--gold-light);
    display: block;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================================================
   5. SPECIAL ELEMENTS
   ========================================================================== */
/* Quote */
.quote-box { margin-bottom: 60px; }
.gold-icon { color: var(--gold-primary); font-size: 1.5rem; margin-bottom: 15px; }
.italic-quote { font-style: italic; max-width: 600px; margin: 0 auto; color: var(--text-main); }
.quote-author { display:block; margin-top:10px; font-size:0.8rem; color: var(--gold-primary); }

/* Mempelai Profile */
.mempelai-flex { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 40px; }
.mempelai-card { flex: 1; min-width: 250px; max-width: 320px; }

.img-frame {
    position: relative;
    width: 220px;
    height: 280px;
    margin: 0 auto 25px auto;
    border: 1px solid var(--gold-primary);
    padding: 10px;
    background: rgba(229, 189, 161, 0.05);
}

.mempelai-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: grayscale(15%); }
.mempelai-card:hover .mempelai-img { filter: grayscale(0%); transform: scale(1.02); }
.and-divider { font-family: 'Cinzel', serif; font-size: 3rem; color: var(--gold-primary); }

.parents-info { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
.parents-names { color: var(--gold-light); font-weight: 500; font-size: 0.95rem; }

/* Timeline */
.story-timeline { border-left: 2px solid rgba(229, 189, 161, 0.2); max-width: 550px; margin: 40px auto 0 auto; padding-left: 30px; text-align: left; }
.story-node { position: relative; padding-bottom: 40px; }
.story-node::before { content: ''; position: absolute; left: -36px; top: 6px; width: 10px; height: 10px; background: var(--gold-primary); border-radius: 50%; }
.story-year { font-family: 'Cinzel', serif; color: var(--gold-primary); font-weight: bold; display: block; margin-bottom: 5px; }

/* ==========================================================================
   6. SECTION JADWAL ACARA (BACKGROUND GAMBAR GEOMETRIS)
   ========================================================================== */
/* Efek Glass untuk Container Utama */
.section-jadwal-emerald {
    position: relative;
    padding: 140px 20px;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-rose-deep);
}

.emerald-geo-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('uploads/download (9).jpeg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    transform: scale(1.02);
}

/* Overlay warna khusus di atas gambar agar menyatu sempurna dengan tema mawar hangat */
.section-jadwal-emerald::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(30, 21, 24, 0.75), rgba(21, 14, 16, 0.9));
    z-index: 2;
}

.sub-title-emerald {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.title-emerald {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    margin-bottom: 50px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.event-grid-emerald {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    max-width: 950px;
    margin: 0 auto;
}

/* Card Transparan Glassmorphism Bertema Rose Gold */
.event-card-emerald {
    position: relative;
    /* Memberikan latar transparan dengan blur */
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    
    /* Border tipis untuk kesan kaca */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 30px !important;
    
    padding: 50px 35px 40px 35px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

/* Hover effect agar kartu "menyala" */
.event-card-emerald:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(229, 189, 161, 0.5) !important;
    transform: translateY(-10px);
}
.card-badge-emerald {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: var(--bg-rose-deep);
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 3px;
    padding: 5px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.icon-wrap-emerald {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(229, 189, 161, 0.08);
    border: 1px solid rgba(229, 189, 161, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    color: var(--gold-light);
    font-size: 1.4rem;
}

.event-line-emerald {
    width: 50px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
    margin: 20px auto;
}

.event-card-emerald h3 {
    font-size: 1.4rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.event-card-emerald p {
    margin: 12px 0;
    font-size: 0.9rem;
    color: #f7eded;
    text-align: center;
    line-height: 1.6;
}

.event-card-emerald p i {
    color: var(--gold-primary);
    margin-right: 8px;
    font-size: 0.95rem;
}

.btn-emerald-maps, .btn-emerald-maps-solid {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-emerald-maps {
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    background: transparent;
}

.btn-emerald-maps:hover {
    background: var(--gold-primary);
    color: var(--bg-rose-deep) !important;
    box-shadow: 0 0 15px rgba(229, 189, 161, 0.4);
}

.btn-emerald-maps-solid {
    background: var(--gold-gradient);
    color: var(--bg-rose-deep) !important;
    border: none;
    font-weight: 500;
}

.btn-emerald-maps-solid:hover {
    background: linear-gradient(135deg, #e5bda1, #fbf0e8);
    box-shadow: 0 0 20px rgba(229, 189, 161, 0.5);
    transform: scale(1.02);
}

/* ==========================================================================
   7. GALERI MASONRY & KADO DIGITAL
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.gallery-item { aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; border: var(--border-luxury); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; filter: grayscale(10%); }
.gallery-item:hover img { transform: scale(1.1); filter: grayscale(0%); }
.col-span-2 { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-overlay-icon { position: absolute; bottom: 15px; right: 15px; background: rgba(30, 21, 24, 0.7); width: 35px; height: 35px; display: flex; justify-content: center; align-items: center; border-radius: 50%; opacity: 0; transition: 0.3s; }
.gallery-item:hover .gallery-overlay-icon { opacity: 1; }

.bank-card { background: var(--bg-card-dark); border: var(--border-luxury); max-width: 380px; margin: 20px auto; padding: 25px; text-align: left; box-shadow: var(--shadow-deep); }
.bank-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(229, 189, 161, 0.1); padding-bottom: 10px; margin-bottom: 15px; }
.bank-name-tag { font-weight: 600; letter-spacing: 2px; color: var(--gold-light); }
.account-number { font-size: 1.3rem; letter-spacing: 2px; color: var(--text-main); font-weight: bold; margin: 5px 0;}
.account-name { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase;}
.btn-copy { background: transparent; border: 1px dashed var(--gold-primary); color: var(--gold-light); padding: 7px 10px; font-size: 0.75rem; cursor: pointer; margin-top: 15px; width: 100%; transition: 0.3s; }
.btn-copy:hover { background: rgba(229, 189, 161, 0.1); }

/* ==========================================================================
   8. BUKU TAMU / GREETINGS
   ========================================================================== */
.greetings-wrapper { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; text-align: left; }
.form-wrapper, .feed-wrapper { flex: 1; min-width: 300px; }
.greeting-form label { display: block; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 5px; }
.greeting-form input, .greeting-form textarea, .greeting-form select { width: 100%; background: rgba(30, 21, 24, 0.5); border: 1px solid rgba(229, 189, 161, 0.2); color: var(--text-main) !important; padding: 15px; margin-bottom: 20px; font-family: 'Jost', sans-serif; }
.greeting-form input:focus, .greeting-form textarea:focus { outline: none; border-color: var(--gold-primary); }
.greeting-area { max-height: 450px; overflow-y: auto; padding-right: 10px; }
.greeting-item { background: var(--bg-card-dark); padding: 15px; border-bottom: 2px solid var(--bg-rose-deep); margin-bottom: 12px; box-shadow: var(--shadow-deep); }
.greeting-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;}
.greeting-header strong { color: var(--gold-light); font-size: 0.95rem; }
.greeting-body { font-size: 0.9rem; color: var(--text-main); line-height: 1.5; }
.greeting-time { display: block; font-size: 0.7rem; color: var(--text-muted); text-align: right; margin-top: 5px;}

.status { padding: 2px 8px; border-radius: 2px; font-size: 0.7rem; font-weight: bold;}
.status-hadir { background: rgba(204, 150, 115, 0.2); color: #e5bda1; }
.status-absen { background: rgba(255, 255, 255, 0.1); color: #dfd5d7; }
.status-ragu { background: rgba(247, 223, 206, 0.15); color: #f2e2d7; }

/* ==========================================================================
   9. CONTROLS, LIGHTBOX, & ANIMATION ENGINE
   ========================================================================== */
.music-control, .scroll-control {
    position: fixed; left: 30px; width: 45px; height: 45px;
    background: var(--gold-gradient); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.music-control { bottom: 30px; }
.scroll-control { bottom: 90px; }
.music-control i, .scroll-control i { font-size: 1.1rem; color: var(--bg-rose-deep); }

#star-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; overflow: hidden; }
.star { position: absolute; background: var(--gold-light); border-radius: 50%; opacity: 0; box-shadow: 0 0 4px var(--gold-primary); animation: pulse var(--duration) infinite ease-in-out; }

@keyframes pulse { 
    0%, 100% { opacity: 0; transform: scale(0.5); } 
    50% { opacity: 0.6; transform: scale(1.2); } 
}

.lightbox-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(30, 21, 24, 0.96); z-index: 99999; display: none; justify-content: center; align-items: center; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 80%; border: 1px solid var(--gold-primary); box-shadow: var(--shadow-deep); }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: var(--gold-primary); font-size: 2rem; cursor: pointer; background: none; border: none; }

.animate-text { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.animate-text.show { opacity: 1; transform: translateY(0); }

.wedding-footer { background: #150e10; padding: 60px 20px; text-align: center; border-top: var(--border-luxury); }
.wedding-footer p { max-width: 500px; margin: 0 auto 20px auto; font-size: 0.9rem; }
.wedding-footer h4 { font-size: 1.8rem; }
.copyright { font-size: 0.75rem !important; color: var(--text-muted); margin-top: 20px !important; }

/* ==========================================================================
   10. MOBILE DEVICE OPTIMIZATION
   ========================================================================== */
@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    .main-title { font-size: 2.1rem; }
    .main-names { font-size: 2.5rem; }
    .mempelai-flex { flex-direction: column; gap: 50px; }
    .and-divider { margin: 10px 0; font-size: 2rem; }
    .greetings-wrapper { flex-direction: column; }
    .section { padding: 80px 15px; }
    .section-jadwal-emerald { padding: 90px 15px; }
    .title-emerald { font-size: 2rem; margin-bottom: 40px; }
    .event-card-emerald { padding: 45px 25px 35px 25px; min-width: 100%; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .col-span-2 { grid-column: span 2; aspect-ratio: 1 / 1; }
    .countdown-container { gap: 10px; }
    .countdown-item { min-width: 70px; padding: 10px; }
    .countdown-number { font-size: 1.5rem; }
    .hero-section { background-attachment: scroll !important; }
}
/* Efek Glassmorphism untuk Kartu Mempelai - LATAR GELAP */
.mempelai-card {
    background: rgba(15, 15, 15, 0.5) !important; /* Latar gelap transparan (hitam pekat transparan) */
    backdrop-filter: blur(20px) !important; /* Efek blur kaca diperkuat agar lebih dramatis */
    -webkit-backdrop-filter: blur(20px) !important; /* Dukungan Safari */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Border putih tipis agar tepian kaca terlihat rapi */
    border-radius: 25px !important;
    padding: 40px 20px !important;
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.6) !important; /* Bayangan lebih gelap dan menyebar untuk efek melayang */
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease !important;
}

/* Interaksi hover agar kartu "menyala" dan sedikit terangkat */
.mempelai-card:hover {
    background: rgba(25, 25, 25, 0.6) !important; /* Sedikit lebih terang saat di-hover */
    transform: translateY(-10px);
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.8) !important; /* Bayangan lebih kuat saat hover */
}

/* Frame foto agar lebih serasi dengan glass style gelap */
.img-frame {
    border: 2px solid rgba(229, 189, 161, 0.4) !important; /* Warna emas/cream disesuaikan tingkatan opasitasnya */
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3); /* Latar belakang foto lebih gelap */
}