:root {
  --bg-cream: #faf7f2;
  --text-dark: #2c3531;
  --gold: #c5a059;
  --gold-light: #e5c158;
  --green-deep: #112d25;
  --white-trans: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

.font-serif { font-family: 'Cinzel', serif; }
.font-script { font-family: 'Sacramento', cursive; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* COVER */
#cover {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: linear-gradient(rgba(17, 45, 37, 0.7), rgba(17, 45, 37, 0.8)), 
              url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80') center/cover;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; color: #fff;
  z-index: 999; transition: transform 0.8s ease-in-out;
  padding: 20px;
}

#cover h3 { font-size: 1.1rem; letter-spacing: 3px; color: var(--gold-light); margin-bottom: 10px; }
#cover h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
#cover p { font-size: 0.95rem; margin-bottom: 25px; font-weight: 300; }

.guest-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 15px 30px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 30px;
}

.btn-open {
  background: var(--gold); color: #fff;
  border: none; padding: 12px 30px;
  font-size: 0.95rem; border-radius: 50px;
  cursor: pointer; font-weight: 600;
  letter-spacing: 1px; transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}
.btn-open:hover { background: var(--gold-light); transform: translateY(-2px); }

/* MAIN CONTENT */
section { padding: 80px 20px; max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 2;}

.section-title { font-size: 2.2rem; color: var(--green-deep); margin-bottom: 15px; }
.section-subtitle { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 40px; }

.couple-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; margin-top: 30px; }
.profile-card { flex: 1; min-width: 250px; }
.profile-img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); margin-bottom: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.profile-name { font-size: 2rem; color: var(--green-deep); }
.parents { font-size: 0.85rem; color: #666; margin-top: 5px; }

.timer-container { display: flex; justify-content: center; gap: 15px; margin: 30px 0; }
.timer-box { background: #fff; border: 1px solid var(--gold); padding: 15px; border-radius: 10px; min-width: 75px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.timer-number { font-size: 1.8rem; font-weight: 700; color: var(--green-deep); }
.timer-label { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; }

.event-card { background: var(--white-trans); border-radius: 16px; padding: 40px 25px; margin-bottom: 25px; border: 1px solid rgba(197, 160, 89, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.event-type { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; }
.btn-map { display: inline-block; background: var(--green-deep); color: #fff; text-decoration: none; padding: 10px 25px; border-radius: 25px; font-size: 0.85rem; margin-top: 20px; transition: 0.3s; }
.btn-map:hover { background: var(--gold); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; transition: 0.3s; }
.gallery-grid img:hover { transform: scale(1.03); }

.comment-box { background: #fff; padding: 30px; border-radius: 16px; border: 1px solid var(--gold); text-align: left; box-shadow: 0 10px 25px rgba(0,0,0,0.02); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; font-family: inherit; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }

.btn-submit { width: 100%; background: var(--gold); color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s, transform 0.1s; }
.btn-submit:hover { background: var(--gold-light); }
.btn-submit:active { transform: scale(0.98); }

.comments-list { margin-top: 30px; max-height: 400px; overflow-y: auto; padding-right: 5px; border-top: 1px solid #eee; padding-top: 20px; }
.comment-item { background: var(--bg-cream); padding: 15px 20px; border-radius: 12px; margin-bottom: 12px; border-left: 3px solid var(--gold); box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.comment-name { font-weight: 600; color: var(--green-deep); font-size: 0.95rem; }
.comment-status { font-size: 0.75rem; background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 12px; font-weight: 500; }
.comment-text { font-size: 0.9rem; color: #555; white-space: pre-line; }

.rekening-card { background: #fff; padding: 25px; border-radius: 12px; border: 1px dashed var(--gold); margin-top: 15px; transition: transform 0.3s; }
.rekening-card:hover { transform: translateY(-5px); }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: #fff; padding: 35px 25px; border-radius: 20px; text-align: center; max-width: 360px; width: 90%; border: 1px solid var(--gold); box-shadow: 0 15px 30px rgba(0,0,0,0.15); transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-icon { font-size: 2.5rem; margin-bottom: 10px; }

/* FLOATING HEARTS */
.heart-emitter { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.heart { position: absolute; color: rgba(197, 160, 89, 0.3); font-size: 20px; animation: floatUp 6s linear infinite; }
@keyframes floatUp {
  0% { transform: translateY(110vh) scale(0); opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

@media (max-width: 600px) {
  #cover h1 { font-size: 2.5rem; }
  .section-title { font-size: 1.8rem; }
  .couple-container { gap: 20px; }
  section { padding: 60px 15px; }
}