/* ================= GLOBAL & CONTAINER ================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #d1d5db;
  display: flex;
  justify-content: center;
  min-height: 100vh;

  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* FIX SCROLL MOBILE */
}

.no-scroll { overflow: hidden; }

.app-container {
  width: 100%;
  max-width: 450px;
  background: #fffaf5;
  position: relative;
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0,0,0,0.2);
  overflow-x: hidden;
}

/* ================= COVER ================= */
#cover {
  position: absolute;
  inset: 0;
  z-index: 999;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  transition: all 1s ease;

  background-image: url('back3.webp');
  background-size: cover;
  background-position: center;
}

.cover-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
}

.logo {
  width: 120px;
  margin-bottom: 20px;
}

/* TEXT STYLE (ASLI - TIDAK DIUBAH) */
#cover h1, .eyebrow {
  color: #EE7020;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

#cover h3 {
  color: #f9c000;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.note {
  color: #575655;
  font-size: 10px;
  margin-top: 15px;
  font-weight: bold;
}

.guest-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 15px;
  border-radius: 12px;
  margin: 20px 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #575655;
}

/* ================= BUTTON ================= */
#openInvitation {
  background: #EE7020;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: pulse-animation 2s infinite;
  transition: 0.3s;
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0px rgba(238, 112, 32, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(238, 112, 32, 0); }
  100% { box-shadow: 0 0 0 0px rgba(238, 112, 32, 0); }
}

/* ================= MAIN CONTENT ================= */
.hidden { display: none; }

#mainContent {
  position: relative;
  min-height: 100vh;

  background-image: url('back3.webp');
  background-size: cover;
  background-position: center;

  background-attachment: scroll; /* FIX MOBILE */
  will-change: transform; /* SMOOTH SCROLL */
}

/* BACKGROUND SETELAH KLIK (TAMBAHAN AMAN) */
.after-open-bg {
  background-image: url('background.webp') !important;
}

/* ================= HERO ================= */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: transparent;
}

.hero h1 {
  font-family: 'Playfair Display';
  color: #7c2d12;
  text-shadow: 1px 1px 2px white;
}

/* ================= SECTION ================= */
.section {
  padding: 40px 20px;
  text-align: center;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ================= TIMELINE ================= */
.timeline {
  margin-top: 30px;
  border-left: 3px solid #f97316;
  padding-left: 20px;
  text-align: left;
}

.item {
  position: relative;
  margin-bottom: 25px;
  color: #7c2d12;
  font-weight: 500;
}

.item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #f97316;
  border-radius: 50%;
}

/* ================= BUTTON ================= */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: white;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
}

/* ================= ANIMATION ================= */
.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  pointer-events: none; /* FIX SCROLL TERHALANG */
}