:root {
  --gold: #c5a059;
  --gold-light: #f3e5ab;
  --green-deep: #2d4a3e;
  --bg-color: #faf9f5;
  --text-dark: #333333;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  
  /* Latar belakang menggunakan background.jpg dengan overlay putih transparan */
  background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), 
              url('assets/images/background.jpg') center/cover no-repeat fixed;
}

/* Typography Fonts */
.font-serif { font-family: 'Cinzel', serif; }
.font-script { font-family: 'Sacramento', cursive; }

/* Sections Styling */
section {
  padding: 50px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-subtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--green-deep);
}

/* ==================== COVER & BINGKAI MEWAH ==================== */
#cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(45, 74, 62, 0.85), rgba(45, 74, 62, 0.85)), url('assets/images/gambar1.jpg');
  background-size: cover;
  background-position: center;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

.cover-image-container {
  width: 140px;
  height: 140px;
  margin-bottom: 15px;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  outline: 2px dashed var(--gold);
  outline-offset: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.guest-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 15px 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.btn-open {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
  transition: transform 0.2s, background 0.2s;
}

.btn-open:hover {
  transform: scale(1.05);
  background: #b38f48;
}

/* ==================== BINGKAI FOTO ==================== */
/* ==================== BINGKAI FOTO & PENATAAN MEMPELAI ==================== */
.couple-container {
  display: flex;
  flex-direction: column; /* Mengatur urutan lurus ke bawah di HP */
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.profile-card {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

/* Mengatur simbol '&' agar selalu di tengah */
.couple-divider {
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin: 10px 0;
}

.frame-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #c5a059 0%, #f3e5ab 50%, #c5a059 100%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.frame-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
}

.profile-name {
  font-size: 1.8rem;
  color: var(--green-deep);
}

.parents {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

/* Galeri Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.frame-gallery {
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.frame-gallery:hover {
  transform: translateY(-5px);
}

.frame-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ==================== TIMER & CARDS ==================== */
.timer-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.timer-box {
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  min-width: 65px;
}

.timer-number {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--green-deep);
}

.timer-label {
  font-size: 0.7rem;
  color: #777;
}

.event-card, .rekening-card, .comment-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.btn-map {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: var(--green-deep);
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ==================== FORM & COMMENTS (SCROLLBAR) ==================== */
.form-group {
  text-align: left;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Area Ucapan dengan Scrollbar */
.comments-list {
  margin-top: 20px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 10px;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
}

/* Custom Style Scrollbar */
.comments-list::-webkit-scrollbar {
  width: 6px;
}

.comments-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: #b38f48;
}

.comment-item {
  text-align: left;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.comment-name { font-weight: 600; color: var(--green-deep); }
.comment-status { background: #e8f5e9; color: #2e7d32; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; }
.comment-text { font-size: 0.9rem; color: #555; }

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active { display: flex; }

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-icon { font-size: 2.5rem; margin-bottom: 10px; }

/* Background Hearts */
.heart-emitter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.heart {
  position: absolute;
  bottom: -20px;
  font-size: 1.2rem;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100vh); opacity: 0; }
}