/* ════ VARIABLES & RESET ════ */
:root {
  --primary: #8A9A86; /* Warna utama (Sage Green) */
  --secondary: #C5A880; /* Warna emas/coklat muda */
  --bg-light: #FDFBF7; /* Warna krem cerah */
  --bg-soft: #F2EFE9; /* Warna krem agak gelap */
  --text-dark: #333333;
  --text-muted: #666666;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-accent: 'Great Vibes', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-dark); background-color: var(--bg-light); overflow-x: hidden; }

/* ════ UTILITIES ════ */
.text-center { text-align: center; }
.hidden { display: none !important; }
.container { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.bg-soft { background-color: var(--bg-soft); }

.section-title { font-family: var(--font-serif); font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; font-weight: 600; }
.section-subtitle { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }

/* BUTTONS */
.btn-primary, .btn-outline, .btn-copy {
  display: inline-block; padding: 12px 25px; border-radius: 30px; font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; border: none;
}
.btn-primary { background-color: var(--primary); color: white; box-shadow: 0 4px 15px rgba(138, 154, 134, 0.3); }
.btn-primary:hover { background-color: #72826E; transform: translateY(-2px); }

.btn-outline { background-color: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: white; }

/* ════ COVER SECTION ════ */
.cover-section {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1080&q=80');
  background-size: cover; background-position: center;
  z-index: 9999; display: flex; align-items: center; justify-content: center; text-align: center;
  transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1);
}
.cover-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.cover-content { position: relative; z-index: 2; color: white; padding: 20px; }

.cover-subtitle { letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 10px; }
.cover-title { font-family: var(--font-serif); font-size: 4rem; line-height: 1; margin-bottom: 10px; }
.cover-title span { font-family: var(--font-accent); color: var(--secondary); font-size: 4.5rem; margin: 0 10px; }
.cover-date { font-family: var(--font-sans); letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 10px; display: inline-block; }

.guest-box { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.3); padding: 20px; border-radius: 10px; margin-bottom: 30px; }
.guest-box p { font-size: 0.8rem; margin-bottom: 5px; opacity: 0.9; }
.guest-box h3 { font-family: var(--font-serif); font-size: 1.6rem; }

/* ════ MUSIC BUTTON ════ */
#btn-music { position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; border-radius: 50%; background: var(--secondary); color: white; border: none; font-size: 1.1rem; cursor: pointer; z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.fa-spin { animation: spin 3s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ════ COUPLE SECTION ════ */
.couple-wrapper { display: flex; flex-direction: column; gap: 40px; align-items: center; margin-top: 30px; }
.couple-card { text-align: center; }
.couple-img-wrapper { width: 180px; height: 260px; border-radius: 90px 90px 0 0; overflow: hidden; margin: 0 auto 20px; border: 4px solid var(--bg-soft); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.couple-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.couple-name { font-family: var(--font-serif); font-size: 2rem; color: var(--text-dark); margin-bottom: 5px; font-weight: 600; }
.couple-parents { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.ig-link { font-size: 0.8rem; color: var(--secondary); text-decoration: none; font-weight: 500; }
.ampersand { font-family: var(--font-accent); font-size: 4rem; color: var(--primary); }
@media (min-width: 768px) { .couple-wrapper { flex-direction: row; justify-content: center; align-items: center; gap: 30px; } }

/* ════ EVENT & COUNTDOWN ════ */
.countdown-wrapper { display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; }
.cd-box { background: white; padding: 15px 10px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); min-width: 65px; border: 1px solid #eaeaea; }
.cd-box span { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--primary); display: block; line-height: 1; }
.cd-box p { font-size: 0.7rem; letter-spacing: 1px; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; }

.event-cards { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .event-cards { grid-template-columns: 1fr 1fr; } }
.event-card { background: white; padding: 40px 25px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border-top: 4px solid var(--primary); border-bottom: 1px solid #eaeaea; }
.event-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 15px; }
.event-card h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 10px; color: var(--text-dark); }
.event-date { font-weight: 600; margin-bottom: 5px; color: var(--text-dark); font-size: 0.95rem; }
.event-time, .event-location { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }

/* ════ TIMELINE (LOVE STORY) ════ */
.timeline { position: relative; max-width: 600px; margin: 0 auto; padding-left: 20px; text-align: left; border-left: 2px solid var(--primary); }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 20px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -34px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--primary); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; box-shadow: 0 0 0 4px white; }
.timeline-content { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border: 1px solid #eaeaea; }
.timeline-content h4 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--primary); margin-bottom: 8px; font-weight: 600; }
.timeline-content p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ════ GALLERY SECTION ════ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; transition: transform 0.3s; }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* ════ GIFT SECTION ════ */
/* Update class .gift-card untuk tampilan Hijau Batik */
.gift-card {
    background-color: #5D7364; /* Hijau Sage gelap */
    background-image: url('url-gambar-batik-anda.png'); /* GANTI dengan link/path gambar batik Anda */
    background-blend-mode: multiply; /* Agar pola menyatu dengan warna hijau */
    background-size: cover;
    color: #ffffff; /* Mengubah teks jadi putih agar terbaca */
    box-shadow: none; /* Menghilangkan bayangan agar "cardless" */
    border: none; /* Menghilangkan border */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

/* Mengubah warna teks di dalam card agar kontras dengan hijau */
.gift-card .bank-name {
    color: #e2c88a; /* Warna emas agar elegan dengan hijau */
}

.gift-card .bank-account {
    color: #ffffff;
}

.gift-card .bank-owner {
    color: #d1d1d1;
}

/* Tombol Salin disesuaikan */
.gift-card .btn-copy {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gift-card .btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ════ RSVP SECTION ════ */
.rsvp-wrapper { max-width: 500px; margin: 0 auto; text-align: left; }
.rsvp-wrapper input, .rsvp-wrapper select, .rsvp-wrapper textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-sans); font-size: 0.9rem; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.rsvp-wrapper input:focus, .rsvp-wrapper select:focus, .rsvp-wrapper textarea:focus { outline: none; border-color: var(--primary); }

.ucapan-list { margin-top: 40px; max-height: 350px; overflow-y: auto; padding-right: 5px; }
.ucapan-list::-webkit-scrollbar { width: 5px; }
.ucapan-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.ucapan-item { background: white; padding: 15px; border-radius: 10px; margin-bottom: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border-left: 3px solid var(--primary); }
.ucapan-item strong { display: inline-block; margin-bottom: 5px; color: var(--text-dark); font-weight: 600; }
.badge { display: inline-block; padding: 3px 10px; background: var(--bg-soft); color: var(--primary); font-size: 0.7rem; border-radius: 10px; margin-left: 5px; font-weight: 600; }
.ucapan-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ════ FOOTER ════ */
.footer-section { background-color: var(--text-dark); color: white; padding: 60px 20px; }
.footer-section .cover-title { color: white; }
.footer-section .cover-title span { color: var(--secondary); }
.footer-credit { margin-top: 30px; font-size: 0.75rem; opacity: 0.6; }

/* ════ ANIMATIONS ════ */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ════ FITUR ADMIN ════ */
.btn-gear {
  position: fixed; bottom: 20px; left: 20px; width: 45px; height: 45px; border-radius: 50%; background: white; color: var(--text-dark); border: 1px solid #ddd; font-size: 1.1rem; cursor: pointer; z-index: 100000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: all 0.3s ease;
}
.btn-gear:hover { transform: rotate(90deg); background: var(--primary); color: white; border-color: var(--primary); }

.admin-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 100001; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.admin-modal-content { background: white; padding: 30px; border-radius: 15px; max-width: 350px; width: 90%; text-align: center; position: relative; box-shadow: 0 15px 30px rgba(0,0,0,0.3); animation: modalFadeIn 0.3s ease; }
.admin-modal-content h3 { font-family: var(--font-serif); color: var(--primary); font-size: 1.5rem; margin-bottom: 8px; font-weight: 600; }
.admin-modal-content p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }
.admin-modal-content input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-sans); font-size: 0.9rem; }
.admin-close { position: absolute; top: 10px; right: 20px; font-size: 1.8rem; cursor: pointer; color: #999; transition: color 0.2s; }
.admin-close:hover { color: #e74c3c; }

@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }