@font-face {
  font-family: 'Esther';
  src: url('https://db.onlinewebfonts.com/t/144240ddc0331c70ace625ce42981ac8.woff2') format('woff2'),
       url('https://db.onlinewebfonts.com/t/144240ddc0331c70ace625ce42981ac8.woff') format('woff'),
       url('https://db.onlinewebfonts.com/t/144240ddc0331c70ace625ce42981ac8.ttf') format('truetype');
}

:root {
  --primary: #1A365D;
  --text: #2D2D2D;
  --text-light: #8B7D6B;
  --loading-bg: #FAF7F2;
  --loading-color: var(--primary);
  /* --script: 'Great Vibes', cursive; */
  /* --script: 'Italianno', cursive; */
  --script: 'Mr De Haviland', cursive;
  /* --script: 'Cookie', cursive; */
  /* --script: 'Kaushan Script', cursive; */
  /* --script: 'Playfair Display', serif; */
  --serif: var(--serif);
  /* --serif: 'Lora', serif; */
  /* --serif: 'Libre Baskerville', serif; */
  /* --serif: 'Bodoni Moda', serif; */
  --serif: 'EB Garamond', serif;
}

#loading-screen {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--loading-bg);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loading-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* —— LOADING OPTION 1: Spinner —— */
/* .loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid #E8E4DE;
  border-top-color: var(--loading-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } } */
/* 
—— LOADING OPTION 2: Pulse —— */
.loading-pulse {
  width: 48px; height: 48px;
  background: var(--loading-color);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}

/* —— LOADING OPTION 3: Dots —— */
/* .loading-dots { display: flex; gap: 8px; }
.loading-dots span {
  width: 14px; height: 14px;
  background: var(--loading-color);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
} */

/* —— LOADING OPTION 4: Heart —— */
/* .loading-heart {
  font-size: 2.2rem; color: var(--loading-color);
  animation: heartBeat 1.2s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
} */

/* —— LOADING OPTION 5: Rings (wedding) —— */
/* .loading-rings {
  display: flex; gap: 6px;
}
.loading-rings span {
  width: 24px; height: 24px;
  border: 2px solid var(--loading-color);
  border-radius: 50%;
  animation: ringSpin 1.6s ease-in-out infinite;
}
.loading-rings span:nth-child(1) { animation-delay: 0s; }
.loading-rings span:nth-child(2) { animation-delay: 0.2s; }
@keyframes ringSpin {
  0%, 100% { transform: rotate(0deg) scale(0.7); opacity: 0.3; }
  50% { transform: rotate(180deg) scale(1); opacity: 1; }
} */

.loading-text {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-light);
  animation: fadeText 2s ease-in-out infinite;
}
@keyframes fadeText { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

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

body {
  font-family: 'Montserrat', sans-serif;
  background: #FAF7F2;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

#wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
#wrapper.show { opacity: 1; pointer-events: auto; }

#overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: 65%35%;
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 1s ease;
}
#overlay::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}
.overlay-content { position: relative; z-index: 1; text-align: center; max-width: 400px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 50px 30px 40px; }
#overlay.slide-up { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.overlay-label { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: white; margin-bottom: 16px; }
.overlay-title { font-family: var(--script); font-size: 3.5rem; color: white; line-height: 1.1; }
.overlay-guest-label { font-size: 0.85rem; color: white; margin: 0 0 8px; }
.overlay-guest-name { font-family: var(--serif); font-size: 1.5rem; color: white; font-weight: 700; margin-bottom: 28px; }
#overlay .line { background: rgba(255,255,255,0.5); }

.btn-open {
  background: var(--primary); color: white; border: none;
  padding: 14px 40px; border-radius: 50px; font-size: 0.85rem;
  letter-spacing: 0.1em; cursor: pointer; font-family: 'Montserrat', sans-serif;
  transition: all 0.4s ease;
}
.btn-open:hover { opacity: 0.85; transform: scale(1.05); }

.line {
  width: 50px; height: 1.5px;
  background: var(--line-color, var(--primary));
  margin: 0 auto;
}

.hero {
  height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 30px; background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.hero-bg-zoom {
  position: absolute; inset: -30px;
  background: inherit; background-size: cover;
  animation: zoom 10s ease-out forwards;
}
@keyframes zoom { 0% { transform: scale(1.1); } 100% { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; opacity: 0; transform: translateY(30px); animation: fadeUp 1.2s ease 0.3s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.hero-label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.hero-couple { font-family: var(--script); font-size: 4rem; line-height: 1.1; color: var(--primary); margin-bottom: 24px; }
.hero-date { font-size: 0.85rem; letter-spacing: 0.3em; color: var(--text-light); margin-top: 24px; }

section { padding: 60px 28px; }
.section-inner { max-width: 440px; margin: 0 auto; text-align: center; }
.section-label { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--label-color, var(--text-light)); margin-bottom: 8px; }
.section-title {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 400;
  color: var(--title-color, var(--primary));
  margin-bottom: 16px;
}

.verse-text { font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.8; color: var(--text-color, var(--text)); }

.profile-block { margin-bottom: 50px; }
.profile-block:last-child { margin-bottom: 0; }
.profile-img { width: 100%; height: 532px; object-fit: cover; object-position: 50% 20%; box-shadow: 0 8px 24px rgba(0,0,0,0.08); display: block; border: 6px solid #fff; border-radius: 157px; }
.profile-info {
  margin-top: 20px;
  text-align: center;
  padding: 0 16px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.profile-name {
  font-family: var(--script);
  font-size: 51px;
  color: var(--primary);
  font-weight: 800;
  line-height: 83px;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
}
.profile-fullname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  color: var(--text-light);
  line-height: 26px;
  letter-spacing: 1.9px;
  margin-bottom: 16px;
}
.profile-parent {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
  letter-spacing: 0.02em;
  max-width: 280px;
  margin: 16px auto 0;
}
.profile-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}
.profile-instagram:hover { opacity: 0.65; }

.timer { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.time-box { background: #FFFFFF; padding: 16px 12px; min-width: 68px; text-align: center; border-radius: 8px; border: 1px solid #E8E4DE; }
.time-box span { display: block; font-size: 1.6rem; font-weight: 600; color: var(--primary); font-family: var(--serif); }
.time-box label { font-size: 0.6rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.15em; margin-top: 4px; display: block; }

.events-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.event-card { padding: 28px 24px;  transition: all 0.4s ease; }
.event-card:hover { transform: translateY(-4px); }
.event-icon { font-size: 1.2rem; margin-bottom: 12px; display: block; color: var(--title-color, var(--primary)); }
.double-ring { font-size: 1.2rem; margin-bottom: 12px; display: block; color: var(--title-color, var(--primary)); position: relative; }
.double-ring i { display: inline-block; }
.double-ring i:first-child { transform: rotate(-20deg); margin-right: -6px; }
.double-ring i:last-child { transform: rotate(20deg); }
.event-type { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 12px; color: var(--title-color, var(--primary)); }
.event-detail { font-size: 0.82rem; margin-bottom: 4px; }
.event-detail i { margin-right: 6px; color: var(--title-color, var(--primary)); }
.event-address { font-size: 0.82rem; line-height: 1.7; margin-top: 8px; margin-bottom: 16px; }
.event-address i { margin-right: 6px; }

.btn-event {
  display: inline-block; border: 1px solid; padding: 10px 24px;
  border-radius: 50px; font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; background: transparent; cursor: pointer;
  font-family: 'Montserrat', sans-serif; transition: all 0.4s ease;
  border-color: var(--title-color, var(--primary));
  color: var(--title-color, var(--primary));
}
.btn-event:hover { color: white; background: var(--title-color, var(--primary)); }

.map-wrapper { width: 100%; height: 260px; border: 1px solid #E8E4DE; }
.btn-action {
  display: block; width: 100%; padding: 14px; color: white;
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 16px;
  font-family: 'Montserrat', sans-serif; text-align: center; transition: all 0.4s ease;
}
.btn-action:hover { opacity: 0.85; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 8px; margin-top: 24px;
}
.gallery-item { overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; cursor: pointer; }
.gallery-item img:hover { transform: scale(1.06); }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item.vertical { grid-row: span 2; }
.gallery-item.horizontal { grid-column: span 2; }

.video-wrapper { margin-top: 32px; }
.video-label {
  font-family: var(--serif); font-size: 1.05rem; color: var(--primary);
  text-align: center; margin-bottom: 16px; letter-spacing: 0.05em;
}
.video-embed {
  width: 100%; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);

}
.video-embed video, .video-embed iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border: 0;
  height: 201px;
}

.gift-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.btn-gift {
  display: inline-block; background: var(--primary); color: white; border: none;
  padding: 14px 36px; border-radius: 50px; font-size: 0.85rem;
  letter-spacing: 0.1em; cursor: pointer; font-family: 'Montserrat', sans-serif;
  transition: all 0.4s ease;
}
.btn-gift:hover { opacity: 0.85; transform: scale(1.05); }
.gift-details { margin-top: 24px; transition: all 0.5s ease; }
.gift-details.hidden { display: none; }
.gift-section { margin-bottom: 24px; }
.gift-section:last-child { margin-bottom: 0; }
.gift-section-title { font-family: var(--serif); font-size: 1.2rem; color: var(--primary); margin-bottom: 12px; }
.gift-address { font-size: 0.85rem; color: var(--text-light); line-height: 1.8; }
.bank-box { padding: 20px; background: #F5F0EC; }
.bank-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.bank-number { font-size: 1.1rem; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.copy-icon { cursor: pointer; color: var(--primary); font-size: 0.9rem; transition: all 0.3s ease; }
.copy-icon:hover { opacity: 0.6; transform: scale(1.2); }
.bank-holder { font-size: 0.85rem; color: var(--text-light); }

.section-rsvp { background: var(--primary); color: white; }
.section-rsvp .section-title { color: white; }

.input-rsvp { width: 100%; padding: 14px; margin-bottom: 14px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.1); color: white; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; transition: all 0.3s ease; }
.input-rsvp:focus { border-color: white; outline: none; background: rgba(255,255,255,0.15); }
.input-rsvp::placeholder { color: rgba(255,255,255,0.5); }
.input-rsvp option { color: var(--text); background: white; }

.btn-submit { width: 100%; padding: 16px; background: white; color: var(--primary); border: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; cursor: pointer; font-family: 'Montserrat', sans-serif; transition: all 0.4s ease; }
.btn-submit:hover { opacity: 0.85; }

.wishes-area { margin-top: 28px; max-height: 280px; overflow-y: auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.wish-item { background: rgba(255,255,255,0.06); padding: 16px; margin-bottom: 10px; text-align: left; }
.wish-item { position: relative; }
.wish-item h4 { font-size: 0.85rem; color: white; margin-bottom: 4px; }
.wish-item p { font-size: 0.8rem; opacity: 0.7; }
.wish-time { position: absolute; bottom: 6px; right: 10px; font-size: 0.6rem; opacity: 0.4; }

.footer { height: 400px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; background-size: cover; background-position: center; }
.footer-label { font-family: var(--serif); font-size: 2.2rem; color: white; margin-bottom: 16px; }
.footer-couple { font-family: var(--script); font-size: 2.5rem; color: white; margin: 20px 0; }
.footer-date { font-size: 0.8rem; letter-spacing: 0.3em; color: rgba(255,255,255,0.6); margin-top: 20px; }

#music-btn { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,0.15); transition: all 0.4s ease; }
#music-btn:hover { opacity: 0.85; transform: scale(1.1); }
#music-btn.playing { animation: spin 3s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-30px); transition: opacity 1s ease, transform 1s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(30px); transition: opacity 1s ease, transform 1s ease; }
.slide-right.visible { opacity: 1; transform: translateX(0); }

.alt-bg { background: var(--cream, #F5F0EC); }

.modal {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  position: relative;
  background: #fff;
  max-width: 360px; width: 90%;
  padding: 40px 32px 32px;
  text-align: center;
  animation: modalIn 0.4s ease;
}
@keyframes modalIn {
  0% { transform: scale(0.85) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem; color: #fff;
}
.modal-title {
  font-family: var(--serif);
  font-size: 1.8rem; color: var(--primary);
  margin-bottom: 12px;
}
.modal-message {
  font-size: 0.85rem; color: var(--text-light);
  line-height: 1.8; margin-bottom: 24px;
}
.modal-close-btn {
  background: var(--primary); color: white; border: none;
  padding: 12px 36px; border-radius: 50px;
  font-size: 0.8rem; letter-spacing: 0.1em;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}
.modal-close-btn:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .hero-couple { font-size: 3rem; }
  .overlay-title { font-size: 2.8rem; }
  /* .profile-img {  border-radius: 110px; } */
  .profile-name { font-size: 4.2rem; }
  .profile-fullname { font-size: 1.405rem; }
}
