/* ============================================
   UNDANGAN DIGITAL - STYLE SHEET
   Minimalist Elegant Wedding Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #8B7E6A;
  --primary-dark: #6B5E4A;
  --secondary: #C9A96E;
  --accent: #D4A574;
  --bg-cream: #FDF8F0;
  --bg-section: #F5EFE6;
  --text-dark: #3D3229;
  --text-medium: #6B5E4A;
  --text-light: #8B7E6A;
  --white: #FFFFFF;
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --shadow: 0 4px 20px rgba(61, 50, 41, 0.08);
  --shadow-hover: 0 8px 30px rgba(61, 50, 41, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lora', serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle texture overlay on body */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../assets/images/pattern-bg.png');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  line-height: 1.3;
}

h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-medium);
}

p {
  font-family: 'Lora', serif;
}

/* ---------- Section Common ---------- */
.section {
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--primary-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* Alternating section backgrounds */
.section-quran { background-color: var(--bg-cream); }
.section-couple { background-color: var(--bg-section); }
.section-event { background-color: var(--bg-cream); }
.section-location { background-color: var(--bg-section); }
.section-gift { background-color: var(--bg-cream); }
.section-rsvp { background-color: var(--bg-section); }
.section-closing { background-color: var(--bg-cream); }

/* Section Ornaments */
.section-ornament {
  position: absolute;
  width: 150px;
  opacity: 0.15;
  pointer-events: none;
}
.ornament-top-right-small { top: 20px; right: -20px; }
.ornament-top-left-small { top: 20px; left: -20px; transform: scaleX(-1); }
.ornament-bottom-right-small { bottom: 20px; right: -20px; }
.ornament-bottom-left-small { bottom: 20px; left: -20px; }

/* ============================================
   COVER SCREEN
   ============================================ */
.cover-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  min-height: 100dvh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.cover-screen.opened {
  transform: translateY(-100%);
  pointer-events: none;
}

.cover-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  /* GANTI: Placeholder gradient jika foto belum ada */
  background-color: #8B7E6A;
  background-image: linear-gradient(135deg, #8B7E6A 0%, #C9A96E 50%, #D4A574 100%);
}

.cover-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(61, 50, 41, 0.4) 0%,
    rgba(61, 50, 41, 0.6) 50%,
    rgba(61, 50, 41, 0.75) 100%
  );
}

/* Cover Ornaments */
.ornament {
  position: absolute;
  width: 180px;
  opacity: 0.35;
  pointer-events: none;
  animation: floatOrnament 5s ease-in-out infinite;
}

.ornament-top-left {
  top: 30px; left: 30px;
  animation-delay: 0s;
}
.ornament-top-right {
  top: 30px; right: 30px;
  transform: scaleX(-1);
  animation-delay: 1s;
}
.ornament-bottom-left {
  bottom: 30px; left: 30px;
  transform: scaleY(-1);
  animation-delay: 2s;
}
.ornament-bottom-right {
  bottom: 30px; right: 30px;
  transform: scale(-1, -1);
  animation-delay: 3s;
}

@keyframes floatOrnament {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.ornament-top-right { animation-name: floatOrnamentFlipX; }
@keyframes floatOrnamentFlipX {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(-8px); }
}
.ornament-bottom-left { animation-name: floatOrnamentFlipY; }
@keyframes floatOrnamentFlipY {
  0%, 100% { transform: scaleY(-1) translateY(0); }
  50% { transform: scaleY(-1) translateY(-8px); }
}
.ornament-bottom-right { animation-name: floatOrnamentFlipXY; }
@keyframes floatOrnamentFlipXY {
  0%, 100% { transform: scale(-1,-1) translateY(0); }
  50% { transform: scale(-1,-1) translateY(-8px); }
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.cover-bismillah {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.3s;
  direction: rtl;
}

.cover-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--gold-light);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.6s;
}

.cover-couple-name {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.9s;
}

.cover-couple-name span {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
  font-size: 2.5rem;
  vertical-align: middle;
  margin: 0 8px;
}

.cover-guest-label {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 2px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.2s;
}

.cover-guest-label-sub {
  font-size: 0.85rem;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.3s;
}

.cover-guest-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 36px;
  color: var(--gold-light);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.5s;
}

.btn-open-invitation {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 2px;
  padding: 14px 36px;
  background: transparent;
  border: 1.5px solid var(--gold-light);
  color: var(--white);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.8s;
}

.btn-open-invitation:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-dark);
  transform: scale(1.05);
}

.btn-open-invitation .btn-icon {
  margin-right: 6px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   FALLING PETALS KEYFRAMES
   ============================================ */
@keyframes petalFall {
  0% {
    transform: translateY(-10vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  25% {
    transform: translateY(25vh) translateX(var(--sway, 30px)) rotate(90deg);
    opacity: 0.45;
  }
  50% {
    transform: translateY(55vh) translateX(calc(var(--sway, 30px) * -0.5)) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(80vh) translateX(var(--sway, 30px)) rotate(270deg);
    opacity: 0.35;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(110vh) translateX(calc(var(--sway, 30px) * 0.3)) rotate(360deg);
    opacity: 0;
  }
}

@keyframes petalSway {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(30px); }
  75% { transform: translateX(-30px); }
}

/* ============================================
   QURAN VERSE SECTION
   ============================================ */
.quran-text {
  text-align: center;
  margin-bottom: 40px;
}

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  line-height: 2.2;
  color: var(--primary-dark);
  direction: rtl;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(201, 169, 110, 0.06);
  border-radius: var(--radius);
  border-right: 3px solid var(--gold);
}

.quran-translation {
  font-style: italic;
  color: var(--text-medium);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 8px;
  line-height: 1.8;
}

.quran-source {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
}

.invitation-text {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   COUPLE PROFILE SECTION
   ============================================ */
.couple-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.person {
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

.person-photo-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(201, 169, 110, 0.15), var(--shadow);
  position: relative;
}

.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* GANTI: Placeholder gradient jika foto belum ada */
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--accent) 100%);
}

.person-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.person-parents {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.person-parents-name {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 12px;
}

.person-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  transition: all var(--transition);
}

.person-instagram:hover {
  background: var(--gold);
  color: var(--white);
}

.couple-and-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.couple-and-symbol span {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.7;
}

/* ============================================
   EVENT DETAILS SECTION
   ============================================ */
.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 169, 110, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.event-card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.event-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
}

.event-card-date {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.event-card-time {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.event-card-venue {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.event-card-address {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Countdown */
.countdown-wrapper {
  text-align: center;
  margin-bottom: 32px;
}

.countdown-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 80px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 169, 110, 0.12);
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* Calendar Button */
.calendar-btn-wrapper {
  text-align: center;
}

.btn-calendar {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 12px 32px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.btn-calendar:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-wrapper {
  text-align: center;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
}

.map-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.btn-maps {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 12px 32px;
  background: var(--white);
  color: var(--primary-dark);
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-maps:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   GIFT / AMPLOP DIGITAL SECTION
   ============================================ */
.gift-description {
  text-align: center;
  color: var(--text-medium);
  font-size: 0.95rem;
  max-width: 550px;
  margin: -20px auto 36px;
  line-height: 1.8;
}

.gift-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.gift-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 169, 110, 0.12);
  transition: transform var(--transition);
}

.gift-card:hover {
  transform: translateY(-4px);
}

.gift-card-bank {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.gift-card-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.gift-card-name {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.btn-copy {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  padding: 10px 24px;
  background: var(--bg-cream);
  color: var(--primary-dark);
  border: 1px solid var(--gold-light);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-copy:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.gift-confirm {
  text-align: center;
}

.btn-whatsapp {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 12px 32px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================
   RSVP SECTION
   ============================================ */
.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B5E4A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.btn-submit {
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 14px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================
   CLOSING SECTION
   ============================================ */
.section-closing {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-section) 100%);
}

.closing-text {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.9;
}

.closing-couple {
  margin-top: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.closing-copyright {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.closing-copyright p {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ============================================
   MUSIC TOGGLE BUTTON
   ============================================ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  display: none;
}

.music-toggle.visible {
  display: flex;
}

.music-toggle:hover {
  background: var(--gold);
  transform: scale(1.1);
}

.music-icon {
  font-size: 1.4rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.music-toggle.playing .music-icon {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ============================================
   FALLING PETALS
   ============================================ */
.petals-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 800;
  overflow: hidden;
  display: none;
}

.petals-container.active {
  display: block;
}

.petal {
  position: absolute;
  top: -40px;
  border-radius: 50% 0 50% 0;
  will-change: transform;
  pointer-events: none;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.85rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================
   MAIN CONTENT VISIBILITY
   ============================================ */
.main-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}

.main-content.visible {
  opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .section {
    padding: 100px 40px;
  }

  .cover-screen {
    min-height: 100dvh;
  }

  .cover-bg {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  .cover-couple-name {
    font-size: 4.5rem;
  }

  .cover-couple-name span {
    font-size: 3rem;
  }

  .cover-guest-name {
    font-size: 1.8rem;
  }

  .person-photo-wrapper {
    width: 200px;
    height: 200px;
  }

  .couple-wrapper {
    gap: 60px;
  }

  .ornament {
    width: 220px;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .section {
    padding: 120px 60px;
  }

  .cover-couple-name {
    font-size: 5.5rem;
  }

  .cover-couple-name span {
    font-size: 3.5rem;
  }

  .ornament {
    width: 280px;
  }

  .person-photo-wrapper {
    width: 220px;
    height: 220px;
  }

  .event-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gift-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - Portrait Small (max 480px) */
@media (max-width: 480px) {
  .cover-screen {
    min-height: 100dvh;
    min-height: 100dvh;
  }

  .cover-bg {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  .cover-couple-name {
    font-size: 2.2rem;
  }

  .cover-couple-name span {
    font-size: 1.6rem;
  }

  .cover-bismillah {
    font-size: 1.05rem;
  }

  .cover-subtitle {
    font-size: 0.75rem;
    letter-spacing: 4px;
  }

  .cover-guest-name {
    font-size: 1.3rem;
  }

  .btn-open-invitation {
    font-size: 0.85rem;
    padding: 12px 28px;
  }

  .ornament {
    width: 100px;
  }

  .ornament-top-left { top: 10px; left: 10px; }
  .ornament-top-right { top: 10px; right: 10px; }
  .ornament-bottom-left { bottom: 10px; left: 10px; }
  .ornament-bottom-right { bottom: 10px; right: 10px; }

  .section {
    padding: 50px 16px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .couple-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .couple-and-symbol {
    padding-top: 0;
    padding: 8px 0;
  }

  .couple-and-symbol span {
    font-size: 1.8rem;
  }

  .person {
    min-width: 200px;
  }

  .person-photo-wrapper {
    width: 130px;
    height: 130px;
  }

  .person-name {
    font-size: 1.2rem;
  }

  .arabic-text {
    font-size: 1.1rem;
    padding: 12px;
    line-height: 2;
  }

  .quran-translation {
    font-size: 0.85rem;
  }

  .invitation-text {
    font-size: 0.85rem;
  }

  .event-card {
    padding: 24px 18px;
  }

  .event-card-title {
    font-size: 1.1rem;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 10px 8px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.65rem;
  }

  .gift-card {
    padding: 22px 16px;
  }

  .gift-card-number {
    font-size: 1.2rem;
  }

  .rsvp-form {
    padding: 20px 16px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

/* Mobile - Portrait Medium (481-768px) */
@media (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
  .cover-screen {
    min-height: 100dvh;
  }

  .cover-bg {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  .cover-couple-name {
    font-size: 2.8rem;
  }

  .cover-couple-name span {
    font-size: 2.2rem;
  }

  .cover-bismillah {
    font-size: 1.2rem;
  }

  .cover-subtitle {
    font-size: 0.85rem;
    letter-spacing: 5px;
  }

  .cover-guest-name {
    font-size: 1.5rem;
  }

  .btn-open-invitation {
    font-size: 0.95rem;
    padding: 14px 32px;
  }

  .ornament {
    width: 140px;
  }

  .ornament-top-left { top: 20px; left: 20px; }
  .ornament-top-right { top: 20px; right: 20px; }
  .ornament-bottom-left { bottom: 20px; left: 20px; }
  .ornament-bottom-right { bottom: 20px; right: 20px; }

  .section {
    padding: 70px 24px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .couple-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .couple-and-symbol {
    padding: 8px 0;
  }

  .couple-and-symbol span {
    font-size: 2rem;
  }

  .person-photo-wrapper {
    width: 160px;
    height: 160px;
  }

  .person-name {
    font-size: 1.3rem;
  }

  .arabic-text {
    font-size: 1.3rem;
    padding: 16px;
  }

  .event-cards {
    gap: 20px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 14px 12px;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .rsvp-form {
    padding: 28px 22px;
  }
}

/* Tablet Landscape (769-1024px, landscape) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .cover-screen {
    min-height: 100dvh;
  }

  .cover-bg {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  .cover-couple-name {
    font-size: 3.8rem;
  }

  .cover-couple-name span {
    font-size: 2.8rem;
  }

  .cover-bismillah {
    font-size: 1.1rem;
  }

  .cover-guest-name {
    font-size: 1.5rem;
  }

  .ornament {
    width: 180px;
  }

  .section {
    padding: 80px 40px;
  }
}

/* Mobile Landscape / Short Height Phones (orientation: landscape, max-height: 500px) */
@media (orientation: landscape) and (max-height: 500px) {
  .cover-screen {
    min-height: 100dvh;
    align-items: center;
  }

  .cover-bg {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  .cover-content {
    padding: 10px 20px;
  }

  .cover-bismillah {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .cover-subtitle {
    font-size: 0.7rem;
    letter-spacing: 4px;
    margin-bottom: 4px;
  }

  .cover-couple-name {
    font-size: 2.4rem;
    margin-bottom: 16px;
  }

  .cover-couple-name span {
    font-size: 1.8rem;
  }

  .cover-guest-label,
  .cover-guest-label-sub {
    font-size: 0.7rem;
    margin-bottom: 1px;
  }

  .cover-guest-name {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .btn-open-invitation {
    font-size: 0.8rem;
    padding: 10px 24px;
  }

  .ornament {
    width: 100px;
  }

  .ornament-top-left { top: 8px; left: 8px; }
  .ornament-top-right { top: 8px; right: 8px; }
  .ornament-bottom-left { bottom: 8px; left: 8px; }
  .ornament-bottom-right { bottom: 8px; right: 8px; }

  .section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }

  .couple-wrapper {
    flex-direction: row;
    gap: 30px;
  }

  .couple-and-symbol {
    padding-top: 30px;
  }

  .person-photo-wrapper {
    width: 110px;
    height: 110px;
  }

  .person-name {
    font-size: 1rem;
  }

  .arabic-text {
    font-size: 1rem;
    padding: 10px;
    line-height: 1.8;
  }

  .event-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .event-card {
    padding: 16px 12px;
  }

  .countdown-item {
    min-width: 55px;
    padding: 8px 6px;
  }

  .countdown-number {
    font-size: 1.3rem;
  }

  .gift-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .rsvp-form {
    padding: 16px 14px;
  }

  .form-group {
    margin-bottom: 12px;
  }
}

/* Very small screens (portrait, max 380px) */
@media (max-width: 380px) and (orientation: portrait) {
  .cover-couple-name {
    font-size: 2rem;
  }

  .cover-couple-name span {
    font-size: 1.4rem;
  }

  .cover-bismillah {
    font-size: 0.95rem;
  }

  .cover-guest-name {
    font-size: 1.2rem;
  }

  .btn-open-invitation {
    font-size: 0.8rem;
    padding: 10px 22px;
  }

  .ornament {
    width: 80px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown-item {
    min-width: 52px;
    padding: 8px 6px;
  }

  .countdown-number {
    font-size: 1.3rem;
  }
}

/* High-res / Retina adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .cover-bg {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

img {
  /* Memblokir menu pop-up bawaan HP saat gambar ditekan lama */
  -webkit-touch-callout: none !important; 
  
  /* Mencegah gambar terseleksi */
  -webkit-user-select: none !important;
  user-select: none !important;
  
  /* Tambahan: mencegah gambar di-drag di browser tertentu */
  -webkit-user-drag: none;
}
