/* Variabel Warna Premium */
:root {
  --primary-color: #1a3c34; /* Hijau Zamrud */
  --secondary-color: #d4af37; /* Emas Metalik */
  --text-dark: #333333;
  --bg-light: #f9f8f4;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.locked-scroll {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background-color: #e5e5e5;
  color: var(--text-dark);
}

.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-light);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.15);
  overflow-x: hidden;
}

/* ================= COVER SECTION (EFEK LEBIH MENARIK) ================= */
.cover-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(38, 82, 71, 0.95), rgba(18, 41, 35, 1)), url('https://www.transparenttextures.com/patterns/arabesque.png');
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  z-index: 9999;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.cover-screen.slide-up {
  transform: translateY(-100%);
  opacity: 0;
}

.cover-wrapper { padding: 30px; }

/* Animasi Mengambang Halus pada Konten Cover */
.floating-element {
  animation: floatUp 4s ease-in-out infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.subtitle { font-size: 0.9rem; letter-spacing: 3px; color: var(--secondary-color); margin-bottom: 25px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.image-frame {
  width: 170px; height: 170px;
  margin: 0 auto 25px;
  border-radius: 50%;
  padding: 5px;
  border: 2px dashed var(--secondary-color);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); /* Efek cahaya di belakang foto */
}

.image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
  background-color: #fff;
}

.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 0 35px rgba(212, 175, 55, 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
}

.title-name { font-family: var(--font-heading); font-size: 2.2rem; color: #f3d076; margin-bottom: 15px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.cover-text { font-size: 0.85rem; line-height: 1.6; margin-bottom: 35px; color: #e0e0e0; padding: 0 10px; }

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 14px 35px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.glowing-btn {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  animation: glowBtn 2s infinite alternate;
}
@keyframes glowBtn {
  from { box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
  to { box-shadow: 0 0 25px rgba(212, 175, 55, 0.9), 0 0 5px rgba(255, 255, 255, 0.5); }
}

/* ================= MAIN CONTENT & EFEK MASUK ================= */
.main-content { padding: 40px 20px; background: url('https://www.transparenttextures.com/patterns/arabesque.png'); }
.hidden { display: none; }

/* Animasi Elegan Saat Isi Undangan Muncul */
.show-content-animation {
  animation: fadeInUpContent 1.2s cubic-bezier(0.23, 1, 0.320, 1) forwards;
}
@keyframes fadeInUpContent {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.section { text-align: center; margin-bottom: 40px; }

.salam-buka { font-family: var(--font-heading); color: var(--secondary-color); font-size: 1.2rem; margin-bottom: 15px; }
.intro-text { font-size: 0.9rem; line-height: 1.6; color: #555; margin-bottom: 25px; }

.profile-wrapper {
  width: 140px; height: 140px;
  margin: 0 auto 15px;
  border-radius: 15px; 
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 10px 20px rgba(26,60,52,0.2);
}
.profile-wrapper img { width: 100%; height: 100%; object-fit: cover; background-color: #fff; }

.main-name { font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary-color); margin-bottom: 5px; }
.birth-date { font-size: 0.85rem; font-weight: 600; color: var(--secondary-color); margin-bottom: 20px; letter-spacing: 1px; }
.doa-text { font-size: 0.85rem; font-style: italic; color: #666; padding: 0 15px; line-height: 1.7; }

.divider { width: 50px; height: 3px; background-color: var(--secondary-color); margin: 40px auto; border-radius: 5px; }

/* Komponen Kartu (Card) */
.section-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary-color); margin-bottom: 25px; }
.family-card, .event-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(212,175,55,0.3);
}

.family-group { margin-bottom: 10px; }
.mt-15 { margin-top: 20px; }
.family-name { display: block; font-size: 1.1rem; color: var(--primary-color); }

.icon-circle {
  width: 60px; height: 60px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.5rem;
  margin: 0 auto 15px;
}

.event-subtitle { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 10px; }
.date-highlight { font-size: 1.2rem; font-weight: 600; color: var(--primary-color); margin-bottom: 5px; }
.time-text { font-size: 0.9rem; color: #555; margin-bottom: 25px; }
.address-text { font-size: 0.9rem; line-height: 1.6; color: #555; margin-bottom: 20px; }

.dashed-line { border: 0; border-top: 2px dashed #ddd; margin-bottom: 25px; }

/* Container Maps */
.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
}

.btn-secondary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.btn-secondary:hover { background-color: #112a24; }

/* Footer Styling */
.footer { 
  text-align: center; 
  background-color: var(--primary-color); 
  color: #fff; 
  margin: 0 -20px -40px; 
}
.footer-content { padding: 40px 20px; }
.footer p { font-size: 0.85rem; opacity: 0.8; margin-bottom: 10px; }
.salam-tutup { font-family: var(--font-heading); font-size: 1.1rem !important; color: var(--secondary-color); opacity: 1 !important; }

.custom-footer {
  background-color: #112a24;
  padding: 15px;
  font-size: 0.75rem;
  color: #999;
}
.custom-footer p { margin: 0; opacity: 1; }