/* -------------------------------------------------------------
   Wedding Invitation Style Sheet
   Theme: Dusty Blue & Blush Floral (Navy, Gold, Blush Accent)
   Responsive mobile-first styling
   ------------------------------------------------------------- */

/* Custom Properties / Variables */
:root {
  --navy-deep: #16223A;
  --navy-mid: #223655;
  --dusty-blue: #8BA3C7;
  --blush: #E3B7BC;
  --blush-soft: #EFD3D6;
  --gold: #C9A961;
  --cream: #F4F0E8;

  /* Theme color mapping */
  --bg-navy-deep: var(--navy-deep);
  --bg-navy-main: var(--navy-mid);
  --bg-navy-light: #2c3e5c; /* Lighter mid-navy for cards */
  --bg-translucent: rgba(22, 34, 58, 0.8);
  --color-gold: var(--gold);
  --color-gold-light: #DFCA95; /* slightly lighter gold for highlight/readability */
  --color-blush: var(--blush);
  --color-dusty-blue: var(--dusty-blue);
  --color-white: var(--cream);
  --color-muted: #AEC1DB; /* muted slate blue */
  
  --font-title: 'Playfair Display', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  --box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  --box-shadow-light: 0 6px 20px rgba(0, 0, 0, 0.2);
  --border-gold-thin: 1px solid rgba(201, 169, 97, 0.35);
}

/* Reset & General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-navy-deep);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Developer Config Warning Banner */
.config-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #d97706;
  color: #fff;
  padding: 10px 15px;
  z-index: 9999;
  text-align: center;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.config-warning button {
  background: white;
  border: none;
  color: #d97706;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Base Container */
.invitation-container {
  max-width: 480px; /* Optimized for mobile layout */
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-navy-main);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Floral Frames positioning */
.floral-frame {
  width: 100%;
  position: absolute;
  left: 0;
  z-index: 10;
  pointer-events: none;
}

.top-frame {
  top: 0;
}

.bottom-frame {
  bottom: 0;
}

.floral-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Common Styling */
.section {
  padding: 80px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.section-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.section-title {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-gold-light);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: none;
}

.section-title-script {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 2.8rem;
  color: var(--color-blush);
  margin-bottom: 10px;
  font-weight: 500;
}

.section-subtitle-text {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-family: var(--font-sans);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Divider Custom Styles */
.gold-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 20px auto;
  position: relative;
}

.gold-divider::after {
  content: '✦';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-gold);
  font-size: 10px;
  background-color: var(--bg-navy-main);
  padding: 0 8px;
}

.gold-divider-small {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 15px auto 25px;
}

/* FADE IN ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* SECTION 1: COVER */
.cover-section {
  justify-content: space-between;
  padding: 100px 24px;
}

.cover-content {
  position: relative;
  z-index: 5;
  margin: auto 0;
  width: 100%;
}

.wedding-intro {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-dusty-blue);
  margin-bottom: 25px;
  display: block;
}

/* Monogram */
.monogram {
  width: 168px; height: 168px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #9FB4D4, #6E85AC 60%, #57699091 100%);
  position: relative;
  margin: 0 auto 30px;
  box-shadow: var(--box-shadow);
}
.monogram-wreath {
  position: absolute;
  inset: -22px;
  width: calc(100% + 44px);
  height: calc(100% + 44px);
  z-index: 2;
  pointer-events: none;
  animation: rotateWreath 70s linear infinite;
}
@keyframes rotateWreath {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.monogram-initials {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 44px; color: var(--cream);
}
.monogram-amp { font-size: 20px; vertical-align: 4px; color: var(--blush-soft); margin: 0 6px; }

.couple-names {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 3.6rem;
  color: var(--color-blush);
  margin: 15px 0 5px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.wedding-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.date-badge {
  margin-top: 20px;
}

.wedding-date {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.scroll-cue {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.scroll-cue p {
  margin-bottom: 8px;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

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

/* SECTION 2: COUNTDOWN TIMER */
.countdown-section {
  min-height: 50vh;
  background: linear-gradient(180deg, var(--bg-navy-deep), var(--bg-navy-main));
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.countdown-box {
  width: 75px;
  height: 85px;
  background: rgba(38, 54, 92, 0.7);
  border: 1px solid rgba(201, 160, 84, 0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow-light);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
}

.time-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-blush);
  line-height: 1;
  margin-bottom: 6px;
}

.time-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
}

/* SECTION 3: STORY / MEMPELAI */
.story-section {
  background-color: var(--bg-navy-deep);
}

.bismillah {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.bismillah-img {
  display: block;
  margin: 0 auto 25px;
  max-width: 220px;
  width: 65%;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1); /* Invert black ink on transparent background to white */
}

.couple-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.profile-card {
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  border-left: 2px solid var(--color-gold);
  background: rgba(38, 54, 92, 0.3);
  margin: 10px 0;
}

.profile-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--color-gold-light);
  margin-bottom: 5px;
}

.parents {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-family: var(--font-serif);
}

.ampersand {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--color-blush);
  margin: 5px 0;
}

.story-blurb {
  margin: 40px 0 30px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-muted);
  font-size: 0.95rem;
  padding: 0 10px;
  line-height: 1.8;
}

.surah-cite {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 500;
}

/* Carousel Gallery styling */
.gallery-wrapper {
  width: 100%;
  position: relative;
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(201, 160, 84, 0.2);
}

.gallery-container {
  display: flex;
  height: 250px;
  position: relative;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 2;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-controls {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 10;
}

.gallery-btn {
  background: rgba(27, 42, 74, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.gallery-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.dot.active {
  background: var(--color-gold-light);
  transform: scale(1.2);
}

/* SECTION 4: EVENT SCHEDULE */
.schedule-section {
  background-color: var(--bg-navy-main);
}

.schedule-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 20px;
}

.schedule-card {
  background: rgba(38, 54, 92, 0.45);
  border: var(--border-gold-thin);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

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

.card-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-blush));
}

.event-title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-blush);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  text-align: left;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.detail-icon {
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-text {
  color: var(--color-white);
}

/* SECTION 5: LOCATION */
.location-section {
  background-color: var(--bg-navy-deep);
}

.location-details {
  width: 100%;
}

.venue-name {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-gold-light);
  margin-bottom: 8px;
}

.venue-address {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 25px;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: var(--border-gold-thin);
  margin-bottom: 25px;
  box-shadow: var(--box-shadow);
}

.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Button Custom Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--bg-navy-deep);
}

.btn-primary:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 160, 84, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
}

.btn-secondary:hover {
  background-color: rgba(201, 160, 84, 0.1);
  transform: translateY(-2px);
}

.btn-direction {
  flex: 1;
  max-width: 160px;
}

/* SECTION 6: RSVP */
.rsvp-section {
  background-color: var(--bg-navy-main);
}

.rsvp-card {
  background: rgba(38, 54, 92, 0.5);
  border: var(--border-gold-thin);
  border-radius: 12px;
  padding: 30px 20px;
  width: 100%;
  margin-top: 25px;
  box-shadow: var(--box-shadow-light);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-gold-light);
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(18, 29, 51, 0.8);
  border: 1px solid rgba(201, 160, 84, 0.3);
  border-radius: 6px;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--color-gold-light);
}

.form-control::placeholder {
  color: #64748b;
}

/* Radio Group styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: 0.85rem;
  user-select: none;
  padding: 8px 12px;
  background: rgba(18, 29, 51, 0.4);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.radio-label:hover {
  background: rgba(18, 29, 51, 0.7);
  border-color: rgba(201, 160, 84, 0.2);
}

.radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  margin-right: 12px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.radio-label input:checked ~ .custom-radio {
  background-color: var(--color-gold);
}

.radio-label input:checked ~ .custom-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-navy-deep);
}

.radio-label input:checked {
  background-color: red;
}

.input-tip {
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-top: 5px;
  display: block;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--bg-navy-deep);
  font-weight: 600;
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 160, 84, 0.45);
}

/* Success Message styling */
.rsvp-success-message {
  text-align: center;
  padding: 20px 0;
  animation: scaleIn 0.5s ease forwards;
}

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

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.2);
  border: 1.5px solid #10b981;
  color: #10b981;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.rsvp-success-message h3 {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--color-gold-light);
  margin-bottom: 10px;
}

.rsvp-success-message p {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* SECTION 7: WISHES WALL */
.wishes-section {
  background-color: var(--bg-navy-deep);
}

.wishes-layout {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  margin-top: 25px;
}

.wish-form-card {
  background: rgba(38, 54, 92, 0.4);
  border: var(--border-gold-thin);
  border-radius: 12px;
  padding: 20px;
}

.wish-form textarea {
  resize: none;
}

.wishes-display {
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  border: var(--border-gold-thin);
  padding: 15px;
  background: rgba(18, 29, 51, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Scrollbar for Wishes display */
.wishes-display::-webkit-scrollbar {
  width: 6px;
}

.wishes-display::-webkit-scrollbar-track {
  background: rgba(18, 29, 51, 0.3);
}

.wishes-display::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}

.wishes-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--color-muted);
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(201, 160, 84, 0.2);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.wishes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-card {
  background: rgba(38, 54, 92, 0.6);
  border-left: 2px solid var(--color-blush);
  border-radius: 6px;
  padding: 15px;
  text-align: left;
  animation: slideInUp 0.4s ease forwards;
}

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

.wish-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.wish-guest-name {
  font-weight: 600;
  color: var(--color-gold-light);
}

.wish-time {
  color: var(--color-muted);
}

.wish-message {
  font-size: 0.8rem;
  color: var(--color-white);
  line-height: 1.5;
}

/* SECTION 9: FOOTER */
.wedding-footer {
  background-color: var(--bg-navy-deep);
  position: relative;
  padding: 100px 24px 60px;
  text-align: center;
}

.footer-frame {
  bottom: auto;
  top: 0;
}

.footer-content {
  position: relative;
  z-index: 5;
}

.closing-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.couple-names-footer {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 3.2rem;
  color: var(--color-blush);
  line-height: 1.1;
  margin-bottom: 10px;
}

.wedding-date-footer {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 4px;
  color: var(--color-gold-light);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.developer-credit {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* BACKGROUND MUSIC TOGGLE BUTTON */
.music-toggle-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.music-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-navy-light);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.3s ease;
}

.music-toggle-btn:hover {
  transform: scale(1.1);
  background-color: var(--bg-navy-deep);
  border-color: var(--color-gold-light);
}

.music-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.music-icon {
  transition: transform 0.3s;
}

/* Pulsing effect when playing */
.music-toggle-btn.playing {
  animation: pulseMusic 2.5s infinite;
}

.music-toggle-btn.playing .music-icon {
  animation: rotateMusic 4s infinite linear;
}

@keyframes pulseMusic {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 160, 84, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(201, 160, 84, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 160, 84, 0);
  }
}

@keyframes rotateMusic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Simple Tooltip */
.music-tooltip {
  position: absolute;
  right: 60px;
  background-color: rgba(27, 42, 74, 0.9);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.music-toggle-btn:hover .music-tooltip {
  opacity: 1;
}

/* Button font size adjust */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

/* -------------------------------------------------------------
   Refinement Round 2: Navigation, Petals & Animations
   ------------------------------------------------------------- */

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  height: 65px;
  background: rgba(18, 29, 51, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 160, 84, 0.6);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

.bottom-nav.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-item {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 4px 0;
  font-family: var(--font-sans);
  position: relative;
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-icon {
  transition: transform 0.3s ease, stroke-width 0.3s ease;
}

.nav-label {
  font-size: 0.62rem;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.5px;
}

/* Nav Active State */
.nav-item.active {
  color: var(--color-gold-light);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  stroke: var(--color-gold-light);
  stroke-width: 2.2px;
  filter: drop-shadow(0 0 4px rgba(229, 193, 133, 0.3));
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 12px;
  height: 1.5px;
  background-color: var(--color-gold-light);
  transition: transform 0.3s ease;
}

.nav-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Floating Petals Cover Section */
.petals-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.petal-item {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  animation: drift 10s infinite linear;
}

.petal-item svg {
  width: 100%;
  height: 100%;
}

@keyframes drift {
  0%   { opacity: 0; transform: translate(0,0) rotate(0deg); }
  12%  { opacity: 0.75; }
  50%  { transform: translate(14px, 60px) rotate(160deg); }
  88%  { opacity: 0.5; }
  100% { opacity: 0; transform: translate(-6px, 130px) rotate(320deg); }
}

/* Petals Variations */
.petal-1 { animation-duration: 9s; }
.petal-2 { animation-duration: 11s; }
.petal-3 { animation-duration: 13s; }
.petal-4 { animation-duration: 10s; }
.petal-5 { animation-duration: 12s; }

/* Contact Info Card */
.contact-info-card {
  background: rgba(38, 54, 92, 0.45);
  border: 1px solid rgba(201, 160, 84, 0.35);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  box-shadow: var(--box-shadow-light);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
}

.contact-icon {
  color: var(--color-gold-light);
  background: rgba(201, 160, 84, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-text {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.contact-link {
  color: var(--color-gold-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 2px 4px;
}

.contact-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Countdown Digit Change Animation */
@keyframes pulseTime {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: var(--color-gold-light); }
  100% { transform: scale(1); }
}

.pulse-time {
  display: inline-block;
  animation: pulseTime 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Micro-interactions: Cards & Buttons */
.btn, 
.schedule-card, 
.countdown-box,
.wish-card, 
.gallery-btn {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn:active, 
.gallery-btn:active {
  transform: scale(0.95) translateY(0);
}

.schedule-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.wish-card:hover {
  transform: translateX(3px);
  border-left-color: var(--color-gold);
}

/* Adjust Layout Padding to prevent Navigation Overlap */
.wedding-footer {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
}

.rsvp-card, 
.wish-form-card {
  margin-bottom: 25px;
}

/* Gallery Slides Transitions Polish */
.gallery-slide {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
}

.gallery-slide.active {
  transform: scale(1);
}

/* ==========================================
   Botanical Vine Accents & Placements
   ========================================== */

/* Vine SVG Base Style */
.vine {
  display: block;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.cover-section .top-right-frame {
  position: absolute;
  top: -65px;
  right: -80px;
  left: auto;
  width: 340px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  animation: float-top-right 6s ease-in-out infinite;
}

.cover-section .bottom-left-frame {
  position: absolute;
  bottom: -140px;
  left: -230px;
  right: auto;
  top: auto;
  width: 480px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  animation: float-bottom-left 7s ease-in-out infinite;
}

.corner-decoration {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

@keyframes float-top-right {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-8px) translateX(4px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes float-bottom-left {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(8px) translateX(-4px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Schedule Card Corner Vines */
.card-vine {
  position: absolute;
  width: 90px;
  height: 90px;
  z-index: 5;
  opacity: 0.8;
}

.card-vine.top-left {
  top: 0;
  left: 0;
}

.card-vine.top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

/* Section Title Vines */
.title-with-vine {
  position: relative;
  display: inline-block;
  padding: 0 45px;
}

.title-vine {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(30deg);
  width: 50px;
  height: 50px;
  opacity: 0.7;
}

/* Heading Vine above RSVP and Wishes Wall */
.heading-vine-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.heading-vine {
  width: 110px;
  height: 110px;
  opacity: 0.75;
  transform: rotate(90deg);
}

/* Footer corner vine */
.wedding-footer .footer-frame {
  position: absolute;
  bottom: 0;
  right: 0;
  top: auto;
  left: auto;
  width: 250px;
  height: 250px;
  z-index: 10;
}

.wedding-footer .footer-frame .vine {
  transform: scaleX(-1) scaleY(-1);
}

/* ==========================================
   Content & Structure Update v3 Styles
   ========================================== */

/* Jemputan Section */
.jemputan-section {
  background-color: var(--bg-navy-main);
  padding: 100px 24px;
}

.parents-names {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-gold-light);
  line-height: 1.4;
  margin-bottom: 10px;
}

.parents-amp {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-blush);
}

.parents-relation {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

.parents-group {
  margin-bottom: 18px;
}

.parents-connector {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 12px auto 18px auto;
}

.invitation-text-lead {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-white);
  margin: 15px auto;
  max-width: 380px;
}

.invitation-intro {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.honorifics-list {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 10px auto;
}

.couple-names-formal {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: var(--color-blush);
  margin: 10px 0;
}

.ampersand-serif {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 2rem;
  color: var(--color-gold-light);
  display: block;
  margin: 5px 0;
}

/* Butiran Majlis Section */
.butiran-section {
  background-color: var(--bg-navy-deep);
  padding: 100px 24px;
}

.details-card {
  background: rgba(38, 54, 92, 0.45);
  border: var(--border-gold-thin);
  border-radius: 12px;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  backdrop-filter: blur(5px);
  margin-top: 30px;
  text-align: left;
}

.detail-item-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.detail-item-block:last-child {
  margin-bottom: 0;
}

.detail-block-icon {
  color: var(--color-gold-light);
  background: rgba(201, 169, 97, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.detail-block-text {
  flex: 1;
}

.detail-block-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold-light);
  margin-bottom: 6px;
}

.detail-block-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-white);
}

.hijri-date {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Countdown & Galeri combined Section */
.countdown-gallery-section {
  background: linear-gradient(180deg, var(--bg-navy-main), var(--bg-navy-deep));
  padding: 100px 24px;
}

/* Vertical Timeline Component */
.timeline-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 40px auto 0;
  padding: 10px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, var(--dusty-blue) 0%, var(--gold) 50%, var(--dusty-blue) 100%);
  opacity: 0.6;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 30px;
  align-items: center;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  width: 50%;
  padding-right: 20px;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  box-sizing: border-box;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: 2px solid var(--navy-mid);
  box-shadow: 0 0 8px var(--color-gold);
  z-index: 2;
}

.timeline-event {
  width: 50%;
  padding-left: 20px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-white);
  box-sizing: border-box;
  line-height: 1.4;
}

.timeline-subtext {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Doa Section */
.doa-section {
  background-color: var(--bg-navy-main);
  padding: 100px 24px;
}

.doa-card {
  position: relative;
  background: rgba(38, 54, 92, 0.25);
  border-left: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
  padding: 30px 20px;
  border-radius: 4px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: var(--box-shadow-light);
  overflow: hidden; /* Hide watermark overflow */
}

.doa-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-white);
  text-align: center;
}

.doa-ameen {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-light);
  text-align: center;
  margin-top: 20px;
  font-weight: 500;
}

/* Penutup Section */
.penutup-section {
  background-color: var(--bg-navy-deep);
  padding: 50px 24px; /* Reduced padding to remove excess spacing */
}

.closing-message {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 20px; /* Reduced margin */
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.hashtag {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 2px;
  /* Removed text-transform: uppercase to support camelCase/lowercase spelling */
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(201, 169, 97, 0.2);
  margin: 15px 0 10px; /* Reduced margin */
}

/* ==========================================
   Refinement Round 3: Ambient Enhancement v4
   ========================================== */

/* Global Petals Layer */
.global-petals-container {
  position: fixed;
  inset: 0;
  z-index: 1; /* Renders behind cards/content (z-index 5) but above backgrounds */
  pointer-events: none;
  overflow: hidden;
}

.global-petal-item {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  top: -50px;
  animation: globalDrift 16s infinite linear;
}

.global-petal-item svg {
  width: 100%;
  height: 100%;
}

@keyframes globalDrift {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(40px) rotate(360deg);
    opacity: 0;
  }
}

/* Petal Speed Variations */
.petal-speed-1 { animation-duration: 12s; }
.petal-speed-2 { animation-duration: 16s; }
.petal-speed-3 { animation-duration: 20s; }
.petal-speed-4 { animation-duration: 24s; }

/* Decorative Corner Vines */
.corner-vine {
  position: absolute;
  width: 105px;
  height: 105px;
  opacity: 0.65;
  z-index: 2; /* Sandwiched below card text but visible on backgrounds */
  pointer-events: none;
}

.corner-vine.top-left {
  top: 15px;
  left: 15px;
}

.corner-vine.bottom-right {
  bottom: 15px;
  right: 15px;
  transform: scaleX(-1) scaleY(-1);
}

.corner-vine.top-right {
  top: 15px;
  right: 15px;
  transform: scaleX(-1);
}

/* Ornamental Heading Divider */
.ornamental-divider {
  position: relative;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 15px auto 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ornamental-divider::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-blush-soft);
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 0 5px rgba(201, 169, 97, 0.4);
}

/* Doa Watermark Vine */
.watermark-vine {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  opacity: 0.06; /* 6% watermark opacity */
  pointer-events: none;
  z-index: 1;
}

/* Cover Content Floating Animation */
.cover-floating-wrapper {
  animation: smoothFloat 5s ease-in-out infinite;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes smoothFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Floral Decoration Variation Styles (v4+) */
.heading-spray {
  width: 180px;
  height: 54px;
  opacity: 0.85;
}

.budding-sprig {
  width: 150px;
  height: 54px;
  opacity: 0.85;
}

/* Section-Specific Floral Color Customizations */
.jemputan-section .heading-spray path.spray-branch-1,
.jemputan-section .heading-spray path.spray-branch-3 {
  stroke: var(--color-blush);
}
.jemputan-section .heading-spray path.spray-branch-2,
.jemputan-section .heading-spray path.spray-branch-4 {
  stroke: var(--color-blush-soft);
}

.rsvp-section .budding-sprig path.sprig-stem {
  stroke: var(--color-gold);
}
.rsvp-section .budding-sprig path.sprig-shoot-1,
.rsvp-section .budding-sprig path.sprig-shoot-2 {
  stroke: var(--color-dusty-blue);
}

.wishes-section .heading-spray path.spray-branch-1,
.wishes-section .heading-spray path.spray-branch-3 {
  stroke: var(--color-dusty-blue);
}
.wishes-section .heading-spray path.spray-branch-2,
.wishes-section .heading-spray path.spray-branch-4 {
  stroke: var(--color-blush-soft);
}

/* ==========================================
   Door Intro Screen Overlay Styles
   ========================================== */

/* Skip door intro when session state has been set */
.door-skip #door-overlay {
  display: none !important;
}

/* Lock body scrolling when door is showing */
body.door-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Overlay main container */
.door-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10000; /* overlay above navigation (999) and music control (1000) */
  overflow: hidden;
  display: flex;
}

/* Vertical panels (left / right) */
.door-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.door-left {
  left: 0;
  border-right: 1px solid rgba(201, 169, 97, 0.15);
}

.door-right {
  right: 0;
  border-left: 1px solid rgba(201, 169, 97, 0.15);
}

/* Animate panels sliding apart */
.door-overlay.opened .door-left {
  transform: translateX(-100%);
}

.door-overlay.opened .door-right {
  transform: translateX(100%);
}

/* Vine accent along the seam */
.door-vine-wrapper {
  position: absolute;
  top: 50%;
  width: 220px;
  height: 220px;
  opacity: 0.35;
  pointer-events: none;
}

.door-left .door-vine-wrapper {
  right: -110px;
  transform: translateY(-50%) rotate(-90deg);
}

.door-right .door-vine-wrapper {
  left: -110px;
  transform: translateY(-50%) rotate(90deg) scaleX(-1); /* mirror */
}

/* Center Content (Monogram + Hint text) */
.door-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.door-overlay.opened .door-content-wrapper {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.door-stamp-seal {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Organic wavy/melted shape typical of hand-pressed wax seals */
  border-radius: 51% 49% 52% 48% / 48% 51% 49% 52%;
  /* Elegant Dusty Blue wax gradient */
  background: radial-gradient(circle at 35% 35%, 
    #b3c7e6 0%, 
    #8ba3c7 45%, 
    #5e78a0 75%, 
    #3b5275 100%
  );
  /* Multiple box-shadow layers for depth, bevel edge, and casting shadow on the door */
  box-shadow: 
    inset 0 4px 8px rgba(255, 255, 255, 0.35),
    inset 0 -6px 12px rgba(0, 0, 0, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #5a739c;
  animation: sealFloat 4s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  pointer-events: auto; /* Allow hovering and clicking */
}

/* Outer/Inner compression ring of the stamp */
.door-stamp-seal::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50% 48% 51% 49% / 49% 50% 48% 52%;
  border: 2px solid rgba(220, 230, 245, 0.65); /* Silver compression ring */
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* Subtle highlights for 3D glassy/waxy look */
.door-stamp-seal::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 49% 51% 48% 52% / 51% 48% 52% 49%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.door-stamp-seal:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    inset 0 4px 8px rgba(255, 255, 255, 0.4),
    inset 0 -6px 12px rgba(0, 0, 0, 0.45),
    0 18px 35px rgba(0, 0, 0, 0.55),
    0 8px 16px rgba(0, 0, 0, 0.35);
}

.door-stamp-seal:active {
  transform: translateY(-2px) scale(0.98);
}

.door-monogram-logo {
  width: 110px;
  height: auto;
  display: block;
  z-index: 2;
  /* Grayscale + brightness + contrast + drop-shadow turns the gold/bronze logo into a metallic silver */
  filter: grayscale(1) brightness(1.6) contrast(1.1) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  margin-bottom: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.door-stamp-seal:hover .door-monogram-logo {
  transform: scale(1.03) rotate(-1deg);
}

.door-hint {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-gold-light);
  animation: doorPulse 2s infinite ease-in-out;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Floating petals specifically inside the door overlay */
.door-petals-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10002;
}

@keyframes doorPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sealFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
