/* 
   Premium Wedding Invitation Style System 
   Designed for Angelica & Miguel
   Palette: Champagne Cream, Elegant Gold, Deep Charcoal, Soft Blush Rose
*/

:root {
  --bg-primary: #fcfaf6;
  --bg-secondary: #f4eee1;
  --text-dark: #2a2a2a;
  --text-muted: #5a5a5a;
  --gold-primary: #b89753;
  --gold-hover: #a38244;
  --gold-light: rgba(184, 151, 83, 0.12);
  --gold-soft-border: rgba(184, 151, 83, 0.25);
  --rose-primary: #d4a373;
  --rose-light: #faedcd;
  --white: #ffffff;
  --white-translucent: rgba(255, 255, 255, 0.85);
  --shadow-premium: 0 15px 45px rgba(184, 151, 83, 0.08);
  --shadow-button: 0 8px 25px rgba(184, 151, 83, 0.15);
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, .script-font {
  color: var(--text-dark);
}

.script-title {
  font-family: 'Corinthia', 'Great Vibes', cursive;
  font-weight: 700;
  color: var(--gold-primary);
}

.ampersand {
  font-family: 'Montez', cursive;
  font-weight: 400;
  display: inline-block;
}

.serif-title {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 2px;
}

/* Background Leaf/Petal Falling Animation */
#petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  background: rgba(212, 163, 115, 0.25); /* soft rose gold leaf */
  border-radius: 150% 0 150% 0;
  opacity: 0.8;
  animation: fade linear infinite, float linear infinite;
  pointer-events: none;
}

@keyframes fade {
  0%, 90% { opacity: 0.7; }
  100% { opacity: 0; }
}

@keyframes float {
  0% { transform: translateY(-100px) rotate(0deg); }
  100% { transform: translateY(105vh) rotate(360deg); }
}

/* Scroll Fade In Elements */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Main Cover (Hero) */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  background-color: var(--bg-secondary);
  background-image: linear-gradient(rgba(244, 238, 225, 0.75), rgba(244, 238, 225, 0.75)), url('/images/wedding-preview.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
  overflow: hidden;
}

/* Elegant gold frame for Cover */
.hero-frame {
  border: 1px solid var(--gold-soft-border);
  padding: 50px 30px;
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  width: 100%;
  background: var(--white-translucent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-premium);
  position: relative;
}

.hero-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(184, 151, 83, 0.1);
  border-radius: calc(var(--border-radius-lg) - 5px);
  pointer-events: none;
}

.hero-logo {
  font-size: 80px;
  margin-bottom: 5px;
  line-height: 1.1;
  animation: heartbeat 2s infinite ease-in-out;
}

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

.hero-date {
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 25px;
  color: var(--text-dark);
  font-weight: 500;
  border-top: 1px solid var(--gold-soft-border);
  border-bottom: 1px solid var(--gold-soft-border);
  padding: 12px 0;
  display: inline-block;
  width: 80%;
}

.scroll-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  transition: var(--transition-smooth);
}

.scroll-btn:hover {
  color: var(--gold-hover);
}

.scroll-btn span {
  display: block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* Layout Containers */
.section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 1px;
  background-color: var(--gold-primary);
  margin: 20px auto 40px;
  position: relative;
}

.section-divider::before {
  content: '♥';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-primary);
  padding: 0 8px;
  color: var(--gold-primary);
  font-size: 12px;
}

/* Personalized Greeting section */
.invitation-box {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 50px 30px;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(184, 151, 83, 0.15);
  margin-bottom: 40px;
}

.guest-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.guest-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold-primary);
  margin-bottom: 15px;
  font-weight: 600;
  display: inline-block;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 5px;
}

.passes-ticket {
  background-color: #fbf9f4;
  border: 1px dashed var(--gold-primary);
  border-radius: var(--border-radius-md);
  padding: 15px 25px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.passes-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

.passes-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
  color: var(--text-muted);
}

/* Countdown Styles */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

@media (max-width: 480px) {
  .countdown-container {
    gap: 8px;
  }
}

.countdown-card {
  background: var(--white);
  border: 1px solid var(--gold-soft-border);
  border-radius: var(--border-radius-md);
  padding: 15px;
  min-width: 75px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.3s;
}

.countdown-card:hover {
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .countdown-card {
    min-width: 65px;
    padding: 10px;
  }
}

.countdown-num {
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-primary);
  line-height: 1.2;
}

@media (max-width: 480px) {
  .countdown-num {
    font-size: 22px;
  }
}

.countdown-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Wedding Event Details Cards */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.event-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(184, 151, 83, 0.1);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
}

.event-icon {
  font-size: 32px;
  color: var(--gold-primary);
  margin-bottom: 15px;
}

.event-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.event-details {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.event-details p {
  margin-bottom: 8px;
}

.event-details strong {
  display: block;
  font-size: 16px;
  color: var(--text-dark);
  margin-top: 5px;
}

.btn-map {
  background-color: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 12px 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-map:hover {
  background-color: var(--gold-primary);
  color: var(--white);
  box-shadow: var(--shadow-button);
}

/* Gifts Section */
.gift-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(184, 151, 83, 0.15);
  max-width: 650px;
  margin: 40px auto 0;
}

.gift-icon {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--rose-primary);
}

.account-box {
  background-color: #faf8f5;
  border: 1px solid rgba(184, 151, 83, 0.15);
  border-radius: var(--border-radius-md);
  padding: 15px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.account-info {
  font-size: 13px;
}

.account-info strong {
  font-size: 15px;
  color: var(--gold-primary);
}

.copy-btn {
  background-color: var(--gold-light);
  border: none;
  color: var(--gold-primary);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* RSVP Section Form */
.rsvp-section {
  background-color: var(--bg-secondary);
  background-image: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(244,238,225,0.4) 100%);
}

.rsvp-box {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 50px 35px;
  box-shadow: var(--shadow-premium);
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(184, 151, 83, 0.15);
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(184, 151, 83, 0.2);
  border-radius: var(--border-radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background-color: #faf8f4;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--gold-primary);
  background-color: var(--white);
  box-shadow: 0 0 10px rgba(184, 151, 83, 0.1);
}

/* Interactive Radio Options for Attendance */
.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.attendance-card {
  border: 1px solid rgba(184, 151, 83, 0.2);
  background: #faf8f4;
  border-radius: var(--border-radius-md);
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  position: relative;
}

.attendance-card input {
  position: absolute;
  opacity: 0;
}

.attendance-card .card-icon {
  font-size: 24px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.attendance-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.attendance-card:hover {
  border-color: var(--gold-primary);
  background-color: var(--white);
}

.attendance-card input:checked + .card-icon {
  color: var(--gold-primary);
  transform: scale(1.15);
}

.attendance-card.checked {
  border-color: var(--gold-primary);
  background-color: var(--gold-light);
  color: var(--gold-primary);
  box-shadow: 0 5px 15px rgba(184, 151, 83, 0.08);
}

/* Conditional Attendance Area Animation */
.conditional-area {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.4s ease;
}

.conditional-area.show {
  max-height: 1000px;
  opacity: 1;
  margin-top: 25px;
}

.companions-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--gold-primary);
  border: none;
  border-radius: var(--border-radius-md);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-button);
  margin-top: 10px;
}

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

.btn-submit:active {
  transform: translateY(0);
}

/* Floating Audio Player */
.audio-control {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--gold-soft-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.audio-control:hover {
  transform: scale(1.08);
  border-color: var(--gold-primary);
}

.audio-control svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-primary);
}

.audio-control.playing {
  animation: rotation 4s infinite linear;
}

@keyframes rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(359deg); }
}

/* Elegant Success Overlay Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42, 42, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 45px 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--gold-soft-border);
  box-shadow: var(--shadow-premium);
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-icon {
  font-size: 50px;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25d366;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 25px;
  transition: var(--transition-smooth);
  width: 100%;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-close-modal {
  margin-top: 15px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

/* Toast popup */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #333333;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 12px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 2000;
}

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

/* ==========================================================================
   Welcome Overlay & Video Modal Styles
   ========================================================================== */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  background-image: linear-gradient(rgba(244, 238, 225, 0.5), rgba(244, 238, 225, 0.5)), url('/images/wedding-preview.jpg');
  background-size: cover;
  background-position: center;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
  padding: 20px;
}

.welcome-overlay.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.welcome-card {
  background: var(--white-translucent);
  border: 1px solid var(--gold-soft-border);
  border-radius: var(--border-radius-lg);
  padding: 50px 30px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(10px);
  position: relative;
  animation: cardFadeIn 1.2s ease-out;
}

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

.welcome-monogram {
  font-family: 'Corinthia', 'Great Vibes', cursive;
  font-size: 42px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.welcome-title {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.welcome-couple {
  font-family: 'Corinthia', 'Great Vibes', cursive;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.0;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.btn-open {
  background-color: var(--gold-primary);
  color: var(--white);
  border: none;
  padding: 16px 36px;
  border-radius: var(--border-radius-md);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: var(--transition-smooth);
  animation: pulse-ring 2s infinite;
}

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

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(184, 151, 83, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(184, 151, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 151, 83, 0); }
}

/* Video Overlay Styles */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  padding: 15px;
}

.video-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.video-overlay video {
  width: 100%;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gold-soft-border);
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  max-height: 70vh;
  background-color: #000;
  object-fit: cover;
}

.btn-skip {
  position: absolute;
  top: -45px;
  right: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-skip:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: #ffffff;
}

.video-footer {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.btn-enter-site {
  background-color: var(--gold-primary);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: var(--transition-smooth);
}

.btn-enter-site:hover {
  background-color: var(--gold-hover);
}

