@charset "UTF-8";

/* ==========================================================================
   1. CSS VARIABLES & COLOR PALETTE
   ========================================================================== */
:root {
    --bg-main: #f5f6f4;         
    --bg-dark: #3a473d;         
    --accent-color: #6a7b6d;    
    --accent-hover: #526154;    
    --text-dark: #2c332e;       
    --border-color: #d1d8d2;    
    
    --success-bg: #eaf5eb;      
    --success-text: #2e7d32;    
    --danger-bg: #fdeaea;       
    --danger-text: #c62828;     
    
    --shadow-sm: 0 5px 15px rgba(58, 71, 61, 0.08);
    --shadow-md: 0 12px 30px rgba(58, 71, 61, 0.12);
    --shadow-lg: 0 20px 40px rgba(58, 71, 61, 0.25);
    
    --font-script: 'WindSong', cursive;           
    --font-serif: 'Cormorant Garamond', serif;    
    --font-sans: 'Montserrat', sans-serif;
    --font-handwriting: 'Caveat', cursive;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. RESET & GLOBAL STYLES 
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; font-family: var(--font-sans); background-color: var(--bg-main); color: var(--text-dark); line-height: 1.7; }
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }

/* ==========================================================================
   3. TYPOGRAPHY & ALIGNMENT
   ========================================================================== */
h1, h2, h3, h4, h5, h6, p, span, a, label { text-align: center; width: 100%; }
h2, h3, .subtitle-cover, .event-heading { font-family: var(--font-serif); color: var(--text-dark); font-weight: 600; }
.title-couple, .name-script, .dan { font-family: var(--font-script); color: var(--bg-dark); font-weight: 500; }

/* ==========================================================================
   4. LAYOUT SYSTEM & PARALLAX
   ========================================================================== */
.parallax-bg { position: relative; width: 100%; min-height: 100vh; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; z-index: 1; }
.parallax-bg::before { content: ''; position: absolute; inset: 0; background: rgba(44, 51, 46, 0.35); z-index: -1; }
.solid-bg { background-color: var(--bg-main); padding: 80px 20px; display: flex; justify-content: center; width: 100%; overflow: hidden; }

/* ==========================================================================
   5. SHAPE CARDS 
   ========================================================================== */
.glass-container { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 20px; padding: 50px 25px; max-width: 600px; box-shadow: var(--shadow-lg); z-index: 2; width: 100%; }
#gift .glass-container { background: rgba(44, 51, 46, 0.8); border: 1px solid rgba(255, 255, 255, 0.15); }
.clean-box { width: 100%; max-width: 700px; display: flex; flex-direction: column; align-items: center; }

/* ==========================================================================
   6. COVER SECTION
   ========================================================================== */
#cover { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 9999; transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease; padding: 20px; }
#cover.opened-dramatic { opacity: 0; filter: blur(20px); transform: translateY(-50px) scale(1.05); visibility: hidden; pointer-events: none; }
.cover-glass-overlay { background: rgba(245, 246, 244, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 50px 30px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.6); display: flex; flex-direction: column; justify-content: center; align-items: center; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.subtitle-cover { font-size: 0.95rem; letter-spacing: 5px; margin-bottom: -10px; font-weight: 600; text-transform: uppercase; color: var(--accent-color); }
.title-couple { font-size: 3.8rem; margin-bottom: 15px; line-height: 1; text-shadow: 2px 2px 5px rgba(0,0,0,0.05); }
.date-line { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 30px; width: 100%; }
.date-line .line { height: 1px; width: 40px; background-color: var(--accent-color); }
.date-cover { font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: 3px; font-weight: 600; color: var(--bg-dark); }
.guest-info { margin-bottom: 25px; }
.guest-info p { font-size: 0.8rem; margin-bottom: 5px; color: var(--text-dark); }
.guest-name { font-size: 1.3rem; color: var(--bg-dark); font-weight: bold; }
.btn-primary, .submit-btn { background-color: var(--accent-color); color: #fff; border: none; padding: 12px 28px; border-radius: 30px; font-size: 0.85rem; cursor: pointer; margin-top: 15px; font-family: var(--font-sans); font-weight: 500; transition: var(--transition-smooth); text-transform: uppercase; letter-spacing: 1.5px; box-shadow: var(--shadow-md); display: inline-block; }
.btn-primary:hover, .submit-btn:hover { background-color: var(--bg-dark); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.btn-unlocking { transform: scale(0) !important; opacity: 0; pointer-events: none; }

/* ==========================================================================
   7. WITH LOVE SECTION
   ========================================================================== */
.section-title { font-size: 2.2rem; letter-spacing: 2px; margin-bottom: 20px; color: var(--bg-dark); font-style: italic; }
#with-love .section-title { color: #fff; text-shadow: 1px 1px 10px rgba(0,0,0,0.3); }
.ayat { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; font-weight: 400; max-width: 550px; line-height: 1.8; color: #fff; text-shadow: 1px 1px 8px rgba(0,0,0,0.5); margin: 0 auto; }

/* ==========================================================================
   8. BRIDE & GROOM SECTION
   ========================================================================== */
.salam { font-size: 0.85rem; margin-bottom: 40px; line-height: 1.7; color: var(--accent-hover); }
.couple-cards { display: flex; flex-direction: column; gap: 50px; width: 100%; align-items: center; }
.person { display: flex; flex-direction: column; align-items: center; width: 100%; }
.aesthetic-frame { width: 170px; height: 240px; border-radius: 85px 85px 8px 8px; overflow: hidden; padding: 6px; background-color: #fff; margin-bottom: 15px; box-shadow: 0 10px 25px rgba(58, 71, 61, 0.15); position: relative; transition: var(--transition-smooth); }
.aesthetic-frame:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(58, 71, 61, 0.25); }
.aesthetic-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 80px 80px 4px 4px; }
.name-script { font-size: 3.2rem; margin-bottom: -5px; line-height: 1; }
.full-name { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; letter-spacing: 1px; }
.parents { font-size: 0.8rem; margin-bottom: 12px; color: var(--accent-hover); }
.ig-link { color: var(--accent-color); text-decoration: none; font-size: 0.8rem; padding: 6px 18px; border: 1px solid var(--accent-color); border-radius: 30px; transition: var(--transition-smooth); display: inline-block; width: auto; font-weight: 500; }
.ig-link:hover { background-color: var(--accent-color); color: #fff; }
.dan { font-size: 3rem; margin: -15px 0; color: var(--accent-color); opacity: 0.7; }

/* ==========================================================================
   9. EVENTS SECTION
   ========================================================================== */
.event-wrapper { width: 100%; max-width: 900px; }
.event-cards-container { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.event-detail-card { background-color: rgba(255, 255, 255, 0.95); border: none; border-radius: 20px; padding: 40px 20px; max-width: 350px; width: 100%; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.event-detail-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--accent-color); }
.event-heading { font-size: 1.8rem; letter-spacing: 2px; margin-bottom: 12px; color: var(--bg-dark); }
.event-day { font-size: 0.9rem; letter-spacing: 3px; color: var(--accent-color); font-weight: 500; }
.event-date-number { font-size: 4rem; line-height: 1; margin: 5px 0; color: var(--bg-dark); font-family: var(--font-serif); }
.event-month { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 15px; font-weight: 600; }
.event-time { font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; background: var(--bg-main); color: var(--bg-dark); padding: 6px 20px; border-radius: 30px; display: inline-block; width: auto; border: 1px solid var(--border-color); }
.divider-leaf { height: 25px; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; }
.divider-leaf::after { content: '🌿'; font-size: 1.2rem; opacity: 0.8; }
.event-location { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 6px; color: var(--bg-dark); }
.event-address { font-size: 0.8rem; margin-bottom: 25px; line-height: 1.5; color: var(--accent-hover); }

/* ==========================================================================
   10. SCROLLYTELLING MASTERPIECE (GARIS MENGALIR & ANIMASI HALUS)
   ========================================================================== */
.scrollytelling-wrapper.visual-theme { position: relative; width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }

/* Animasi Muncul Lembut untuk Elemen Pembuka */
.reveal-cinematic { opacity: 0; transform: translateY(40px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); will-change: opacity, transform; }
.reveal-cinematic.is-visible { opacity: 1; transform: translateY(0); }

/* ANIMASI GARIS TUMBUH MENGALIR */
.connector-line { 
    width: 2px; 
    height: 0px; 
    background: linear-gradient(to bottom, transparent, var(--accent-color) 15%, var(--accent-color) 85%, transparent); 
    margin: 10px auto; 
    opacity: 0; 
    transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.5s ease;
}
.connector-line.is-visible { 
    height: var(--line-height, 100px); 
    opacity: 0.8; 
}

/* ANIMASI TITIK (DOTS) MENYALA & MENGAYUN */
.timeline-point { position: relative; display: flex; flex-direction: column; align-items: center; z-index: 2; padding: 0; margin-bottom: 10px; }

.point-dot-story { 
    width: 12px; height: 12px; 
    background: var(--accent-color); 
    border-radius: 50%; 
    position: relative;
    z-index: 3;
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.timeline-point.is-visible .point-dot-story { 
    transform: scale(1);
    animation: pulseDot 2.5s infinite alternate ease-in-out 0.8s;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 4px rgba(106, 123, 109, 0.1), 0 0 10px rgba(106, 123, 109, 0.3); }
    100% { box-shadow: 0 0 0 8px rgba(106, 123, 109, 0.2), 0 0 20px rgba(106, 123, 109, 0.6); }
}

/* Teks Cerita Mengalun Munculnya Di-delay Biar Elegan */
.point-text { 
    font-family: var(--font-serif); font-size: 1.15rem; color: var(--bg-dark); 
    font-style: italic; text-align: center; line-height: 1.6; margin-top: 15px;
    opacity: 0; transform: translateY(15px);
    transition: all 1s ease 0.4s; 
}
.timeline-point.is-visible .point-text {
    opacity: 1; transform: translateY(0);
}

.timeline-content { position: relative; z-index: 2; width: 100%; display: flex; justify-content: center; padding: 0; }

/* KAMERA */
.magic-camera-container { position: relative; width: 200px; height: 160px; cursor: pointer; margin-top: 10px; background: var(--bg-main); padding: 10px; z-index: 2; }
.camera-body { width: 100%; height: 100%; background: #2a312c; border-radius: 15px; position: absolute; top: 0; left: 0; z-index: 3; box-shadow: 0 10px 20px rgba(0,0,0,0.3); border-bottom: 10px solid #1c221e; display: flex; justify-content: center; align-items: center; }
.camera-lens { width: 80px; height: 80px; background: #111; border-radius: 50%; border: 10px solid #d4c4a8; box-shadow: inset 0 0 15px #000; position: relative; }
.lens-reflection { width: 20px; height: 20px; background: rgba(255,255,255,0.3); border-radius: 50%; position: absolute; top: 8px; left: 8px; }
.camera-flash { position: absolute; top: 15px; left: 15px; width: 25px; height: 15px; background: #e1e3e0; border-radius: 3px; box-shadow: inset 0 0 5px rgba(0,0,0,0.5); }
.camera-button { position: absolute; top: -12px; right: 25px; width: 25px; height: 12px; background: #a83232; border-radius: 4px 4px 0 0; transition: transform 0.2s; }
.camera-slot { position: absolute; bottom: 8px; width: 120px; height: 5px; background: #000; border-radius: 5px; box-shadow: inset 0 2px 5px #000; }
.polaroid-printout { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%) translateY(0) scale(0.8); width: 160px; height: auto; min-height: 190px; background: #fff; padding: 10px 10px 45px 10px; border-radius: 4px; z-index: 2; box-shadow: 0 5px 15px rgba(0,0,0,0.2); opacity: 0; transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s; }
.polaroid-printout img { width: 100%; height: 140px; object-fit: cover; filter: sepia(20%) contrast(1.1); }
.polaroid-text { position: absolute; bottom: 22px; left: 0; width: 100%; text-align: center; font-family: var(--font-handwriting); font-size: 1.1rem; color: #333; font-weight: 600; }
.camera-flash-light { position: absolute; top: -50px; left: -50px; right: -50px; bottom: -50px; background: #fff; border-radius: 30px; z-index: 10; opacity: 0; pointer-events: none; }

.tap-indicator { position: absolute; top: -35px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; animation: bounceIndicator 1.5s infinite; z-index: 10; pointer-events: none; }
.tap-indicator .tap-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 2px; }
.tap-indicator .tap-text { font-family: var(--font-sans); font-size: 0.75rem; background: var(--accent-color); color: #fff; padding: 4px 12px; border-radius: 20px; white-space: nowrap; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
@keyframes bounceIndicator { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

.magic-camera-container.snapped .tap-indicator { opacity: 0; transition: opacity 0.3s; }
.magic-camera-container.snapped .camera-flash-light { animation: snapFlash 0.5s ease-out; }
.magic-camera-container.snapped .camera-button { transform: translateY(5px); }
.magic-camera-container.snapped .polaroid-printout { transform: translateX(-50%) translateY(165px) scale(1.1); opacity: 1; transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, opacity 0.5s ease 0.3s; z-index: 5; }

.scroll-down-hint { position: absolute; bottom: 5px; left: 0; width: 100%; display: block; font-family: var(--font-sans); font-size: 0.65rem; color: var(--bg-dark); font-weight: bold; text-align: center; opacity: 0; transition: opacity 1s ease 1.5s; background: var(--bg-main); border-radius: 10px; }
.magic-camera-container.snapped .scroll-down-hint { opacity: 1; }
@keyframes snapFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* JEMURAN KENANGAN */
.clothesline-scroll { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 20px 0 60px 0; position: relative; scrollbar-width: none; -ms-overflow-style: none; }
.clothesline-scroll::-webkit-scrollbar { display: none; }
.hanging-container { display: inline-flex; gap: 20px; padding: 20px 30px; position: relative; min-width: max-content; align-items: flex-start; }
.hanging-container::before { content: ''; position: absolute; top: 25px; left: 0; width: 100%; height: 2px; background-color: #bbaea0; z-index: 0; }
.hanging-photo { position: relative; width: 180px; flex: 0 0 auto; transform-origin: top center; animation: swing 4s ease-in-out infinite alternate; animation-delay: var(--swing-delay); z-index: 1; }
@keyframes swing { 0% { transform: rotate(-5deg); } 100% { transform: rotate(5deg); } }
.hanging-photo:hover { animation-play-state: paused; z-index: 10; }
.wooden-clip { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 10px; height: 25px; background-color: #8b6b4e; border-radius: 2px; box-shadow: 1px 2px 4px rgba(0,0,0,0.3); z-index: 3; }
.wooden-clip::after { content: ''; position: absolute; top: 10px; left: 1px; right: 1px; height: 2px; background: rgba(0,0,0,0.3); }
.photo-paper { background: #fff; padding: 8px 8px 15px 8px; border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); transition: transform 0.4s ease, box-shadow 0.4s ease; cursor: pointer; }
.hanging-photo:hover .photo-paper { transform: scale(1.1) translateY(8px); box-shadow: 0 15px 30px rgba(58, 71, 61, 0.3); }
.photo-paper img { width: 100%; height: 180px; object-fit: cover; border: 1px solid rgba(0,0,0,0.05); filter: sepia(20%) contrast(1.05); transition: filter 0.4s ease; }
.hanging-photo:hover .photo-paper img { filter: sepia(0%) contrast(1.1); }
.photo-caption { font-family: var(--font-script); font-size: 1.5rem; color: var(--text-dark); margin-top: 10px; line-height: 1; text-align: center; }

/* BINGKAI 3D (PENUTUP) */
.frame-flip-container { width: 100%; max-width: 280px; height: 350px; perspective: 1200px; cursor: pointer; margin: 0 auto; position: relative; z-index: 2; padding: 10px; }
.frame-flip-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1); transform-style: preserve-3d; box-shadow: 0 15px 30px rgba(0,0,0,0.25); border-radius: 4px; }
.frame-flip-container.flipped .frame-flip-inner { transform: rotateY(180deg); }
.frame-flip-container.flipped .tap-indicator { opacity: 0; transition: opacity 0.3s; }
.frame-front, .frame-back { position: absolute; width: 100%; height: 100%; left: 0; top: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 4px; }
.frame-front { background: #fdfbf7; }
.wooden-frame { width: 100%; height: 100%; background: #e6d5b8; border: 15px solid #3e4741; border-radius: 4px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); padding: 20px; display: flex; justify-content: center; align-items: center; }
.frame-matboard { width: 100%; height: 100%; box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 2px 5px rgba(0,0,0,0.1); background: #fff; padding: 3px; border: 1px solid #ddd; }
.frame-matboard img { width: 100%; height: 100%; object-fit: cover; filter: sepia(10%); }

/* Teks Bingkai 3D (Back) - Presisi, Teks Agak Mengecil Biar Pas */
.frame-back { background-color: var(--bg-dark); color: #fff; transform: rotateY(180deg); border: 3px solid #d4c4a8; display: flex; justify-content: center; align-items: center; padding: 15px; }
.back-message-content { display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(212, 196, 168, 0.3); padding: 20px 10px; height: 100%; width: 100%; justify-content: center; }
.icon-ring { font-size: 1.8rem; margin-bottom: 10px; }
.sincere-text { font-family: var(--font-serif); font-size: 0.9rem; line-height: 1.5; color: rgba(255, 255, 255, 0.95); margin-bottom: 8px; text-align: center; }

/* Desain Nama Bersusun (Vertikal) Anti Nabrak di Dalam Bingkai */
.back-signature-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}
.sig-name {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: #d4c4a8;
    line-height: 0.8;
}
.sig-amp {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: #d4c4a8;
    opacity: 0.7;
    margin: 5px 0;
    line-height: 0.8;
}

/* ==========================================================================
   11. WEDDING GIFT (ACCORDION)
   ========================================================================== */
.gift-hidden { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; width: 100%; }
.gift-show { max-height: 2500px; opacity: 1; margin-top: 30px; }
.gift-container { display: grid; grid-template-columns: 1fr; gap: 15px; width: 100%; }
.gift-card { background: #fff; border: 1px solid var(--border-color); border-radius: 15px; padding: 25px 15px; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-sm); transition: var(--transition-smooth); }
.gift-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-color); }
.bank-logo { height: 30px; width: auto; margin-bottom: 12px; object-fit: contain; }
.bank-name { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 8px; color: var(--bg-dark); font-weight: 600; }
.rek-number { font-size: 1.3rem; font-weight: 600; margin: 5px 0; letter-spacing: 1.5px; color: var(--bg-dark); }
.rek-name { font-size: 0.85rem; font-weight: 500; color: var(--accent-hover); }
.btn-copy { background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 6px 20px; border-radius: 30px; cursor: pointer; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; transition: var(--transition-smooth); margin-top: 12px; width: auto; }
.btn-copy:hover { background: var(--accent-color); color: #fff; }

/* ==========================================================================
   12. RSVP & WISHES
   ========================================================================== */
#rsvpForm { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 30px; }
input, textarea { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 10px; font-family: var(--font-sans); background: #fff; color: var(--text-dark); font-size: 0.85rem; text-align: center; transition: var(--transition-smooth); }
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(106, 123, 109, 0.2); }
.custom-select { position: relative; width: 100%; }
.select-selected { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 10px; font-family: var(--font-sans); background: #fff; color: var(--text-dark); font-size: 0.85rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: var(--transition-smooth); user-select: none; }
.select-selected span { flex-grow: 1; text-align: center; }
.select-selected::after { content: "▼"; position: absolute; right: 15px; font-size: 0.6rem; color: var(--accent-color); transition: 0.3s ease; }
.select-selected.select-arrow-active::after { transform: rotate(180deg); }
.select-selected:hover { border-color: var(--accent-color); }
.select-items { position: absolute; background-color: #fff; top: calc(100% + 5px); left: 0; right: 0; z-index: 99; border: 1px solid var(--border-color); border-radius: 10px; box-shadow: var(--shadow-md); overflow: hidden; transition: all 0.3s ease; }
.select-hide { opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none; }
.select-items div { padding: 12px; cursor: pointer; font-size: 0.85rem; text-align: center; border-bottom: 1px solid var(--border-color); transition: var(--transition-smooth); }
.select-items div:last-child { border-bottom: none; }
.select-items div:hover { background-color: var(--accent-color); color: #fff; }
.wishes-wrapper { width: 100%; border-top: 1px dashed var(--border-color); padding-top: 30px; margin-top: 20px; }
.wishes-title { font-size: 1.8rem; margin-bottom: 20px; font-family: var(--font-serif); color: var(--bg-dark); }
#wishes-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; width: 100%; }
.wish-item { background: #fff; border: 1px solid var(--border-color); padding: 20px; border-radius: 12px; box-shadow: var(--shadow-sm); transition: var(--transition-smooth); }
.wish-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-color); }
.wish-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 10px; }
.wish-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; text-align: left; color: var(--bg-dark); }
.badge { font-size: 0.65rem; padding: 4px 10px; border-radius: 20px; font-weight: 600; display: inline-flex; align-items: center; text-transform: uppercase; letter-spacing: 1px; }
.badge-hadir { background-color: var(--success-bg); color: var(--success-text); }
.badge-absen { background-color: var(--danger-bg); color: var(--danger-text); }
.wish-text { font-size: 0.85rem; text-align: left; color: var(--text-dark); line-height: 1.6; }
#custom-toast { width: 100%; background-color: var(--success-bg); padding: 12px 15px; border-radius: 10px; display: none; align-items: center; margin-bottom: 15px; box-shadow: var(--shadow-sm); border: 1px solid var(--success-text); }
#custom-toast.show { display: flex; animation: fadeInDownToast 0.4s ease forwards; }
#custom-toast.error { background-color: var(--danger-bg); border-color: var(--danger-text); }
#custom-toast.error .toast-message { color: var(--danger-text); }
.toast-content { display: flex; align-items: center; gap: 10px; width: 100%; }
.toast-message { font-size: 0.85rem; color: var(--success-text); font-weight: 600; text-align: left; margin: 0; }
@keyframes fadeInDownToast { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
#btn-load-more { background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 10px 24px; border-radius: 30px; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; cursor: pointer; margin-top: 10px; transition: var(--transition-smooth); text-transform: uppercase; letter-spacing: 1px; }
#btn-load-more:hover { background: var(--accent-color); color: #fff; box-shadow: var(--shadow-sm); }

/* ==========================================================================
   13. LIGHTBOX & MUSIC BUTTON
   ========================================================================== */
.zoomable { cursor: zoom-in; }
#lightbox { position: fixed; inset: 0; background: rgba(20, 24, 21, 0.95); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
#lightbox.active { opacity: 1; pointer-events: auto; }
#lightbox img { max-width: 95%; max-height: 85vh; border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.close-lightbox { position: absolute; top: 15px; right: 20px; color: #fff; font-size: 35px; cursor: pointer; transition: var(--transition-smooth); }
.close-lightbox:hover { color: var(--accent-color); transform: rotate(90deg); }
#music-control { position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; background-color: var(--accent-color); color: white; border: none; border-radius: 50%; font-size: 1.1rem; cursor: pointer; z-index: 1000; display: none; box-shadow: var(--shadow-md); transition: var(--transition-smooth); }
#music-control:hover { transform: scale(1.1); background-color: var(--bg-dark); }
#music-control.paused { background-color: var(--border-color); color: var(--bg-dark); opacity: 0.8; }
.playing { animation: spinMusic 4s linear infinite; }
@keyframes spinMusic { 100% { transform: rotate(360deg); } }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
footer { padding: 60px 20px 40px 20px; background: var(--bg-dark); color: #fff; display: flex; flex-direction: column; align-items: center; overflow: hidden; width: 100%; }
footer .title-couple { color: #fff; font-size: 3rem; margin-bottom: 5px; }
footer p { font-size: 0.85rem; opacity: 0.8; margin-top: 10px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500;}

/* ==========================================================================
   15. ANIMATION ENGINE
   ========================================================================== */
.animate-slide-up { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.animate-fade-in { opacity: 0; transition: opacity 1.5s ease-in-out; }
.animate-fade-left { opacity: 0; transform: translateX(-40px); transition: opacity 1s ease, transform 1s ease; }
.animate-fade-right { opacity: 0; transform: translateX(40px); transition: opacity 1s ease, transform 1s ease; }
.animate-zoom { opacity: 0; transform: scale(0.9); transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.is-visible { opacity: 1 !important; transform: translate(0, 0) scale(1) !important; }

/* ==========================================================================
   16. MEDIA QUERIES (RESPONSIVE DESKTOP/TABLET)
   ========================================================================== */
@media (min-width: 768px) {
    .parallax-bg, .solid-bg { padding: 100px 20px; }
    .cover-glass-overlay { max-width: 500px; padding: 70px 40px; }
    .title-couple { font-size: 5rem; }
    .section-title { font-size: 2.8rem; }
    
    .couple-cards { flex-direction: row; justify-content: space-evenly; gap: 30px; }
    .person { width: 45%; }
    .aesthetic-frame { width: 220px; height: 320px; border-radius: 110px 110px 10px 10px; }
    .name-script { font-size: 4.5rem; }
    
    .event-cards-container { flex-direction: row; justify-content: center; align-items: stretch; }
    .event-detail-card { width: calc(50% - 20px); max-width: 400px; margin-bottom: 0; }
    .event-date-number { font-size: 5rem; }
    
    .gift-container { grid-template-columns: repeat(2, 1fr); }
    .address-card { grid-column: span 1; }
    
    #rsvpForm, .wishes-wrapper { max-width: 600px; }
    .wish-header { flex-direction: row; align-items: center; }

    .hanging-container { gap: 30px; padding: 30px calc(50vw - 150px); }
    .hanging-photo { width: 250px; }
    .photo-paper img { height: 260px; }
    .photo-caption { font-size: 2rem; }
    .hanging-container::before { top: 35px; }

    footer .title-couple { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
    .title-couple { font-size: 6rem; }
    .name-script { font-size: 5.5rem; }
    .event-date-number { font-size: 6.5rem; }
}
