/* Noisette / Template-055 - Persian RTL Luxury Wedding Invitation Stylesheet */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Nastaliq';
  src: url('../assets/fonts/NotoNastaliqUrdu-subset.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Naskh';
  src: url('../assets/fonts/NotoNaskhArabic-subset.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-espresso: #1c1512;
  --bg-card: #251c17;
  --bg-card-light: #2e231e;
  --gold-primary: #c7ad88;
  --gold-light: #dfcbac;
  --gold-deep: #9a7d55;
  --gold-border: rgba(199, 173, 136, 0.25);
  --text-main: #f5ece1;
  --text-muted: #9e8d7d;
  --font-main: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-nastaliq: 'Noto Nastaliq', 'Vazirmatn', serif;
  --font-serif: 'Times New Roman', 'Noto Naskh', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-espresso);
  color: var(--text-main);
  direction: rtl;
  scroll-behavior: smooth;
  font-feature-settings: "ss01";
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-espresso);
}

.page-wrapper {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-espresso);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
}

/* ========================================================
   INTRO ENVELOPE OVERLAY
   ======================================================== */
.intro-envelope-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-espresso);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
  cursor: pointer;
  overflow: hidden;
}

.intro-envelope-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

video {
  pointer-events: none;
}

video::-internal-media-controls-overlay-cast-button {
  display: none !important;
}

video::-webkit-media-controls {
  display: none !important;
}

.intro-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-prompt {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.intro-prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(28, 21, 18, 0.75);
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  backdrop-filter: blur(8px);
  color: var(--gold-primary);
  font-size: 0.95rem;
  letter-spacing: 1px;
  font-weight: 600;
  animation: pulsePrompt 2.5s infinite;
}

@keyframes pulsePrompt {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* ========================================================
   FLOATING AUDIO PLAYER
   ======================================================== */
.audio-floating-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 28, 23, 0.85);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(8px);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.audio-floating-btn.visible {
  opacity: 1;
  visibility: visible;
}

.audio-floating-btn:hover {
  transform: scale(1.08);
  background: rgba(46, 35, 30, 0.95);
}

.audio-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
}

.audio-equalizer span {
  width: 2.5px;
  background-color: var(--gold-primary);
  border-radius: 1px;
  animation: barAnim 1.2s ease-in-out infinite alternate;
}

.audio-equalizer span:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.audio-equalizer span:nth-child(2) { height: 6px; animation-delay: 0.3s; }
.audio-equalizer span:nth-child(3) { height: 15px; animation-delay: 0s; }
.audio-equalizer span:nth-child(4) { height: 8px; animation-delay: 0.4s; }

.audio-floating-btn.paused .audio-equalizer span {
  animation-play-state: paused;
  height: 3px;
}

@keyframes barAnim {
  0% { height: 3px; }
  100% { height: 15px; }
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 24px;
  text-align: center;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(108%) brightness(95%);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(28, 21, 18, 1) 0%,
    rgba(28, 21, 18, 0.85) 25%,
    rgba(28, 21, 18, 0.3) 60%,
    rgba(28, 21, 18, 0.2) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.hero-couple-names {
  font-family: var(--font-nastaliq);
  font-size: 2.8rem;
  color: var(--gold-primary);
  line-height: 1.4;
  margin: 4px 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto;
  width: 140px;
}

.hero-diamond-divider::before,
.hero-diamond-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
}

.diamond-glyph {
  color: var(--gold-primary);
  font-size: 0.65rem;
}

.hero-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1px;
  margin-top: 6px;
}

.hero-scroll-indicator {
  margin-top: 24px;
  animation: bounceDown 2s infinite;
}

.hero-scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-primary);
  opacity: 0.75;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ========================================================
   INVITATION CARD
   ======================================================== */
.invitation-intro-section {
  padding: 50px 24px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(199, 173, 136, 0.12);
}

.family-honor-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.intro-script-names {
  font-family: var(--font-nastaliq);
  font-size: 2.4rem;
  color: var(--gold-primary);
  margin: 14px 0 20px;
}

.intro-invitation-body {
  font-size: 1.08rem;
  line-height: 2.2;
  color: var(--text-main);
  max-width: 380px;
  margin: 0 auto;
  font-weight: 400;
}

/* ========================================================
   THE SCHEDULE / TIMELINE
   ======================================================== */
.schedule-section {
  padding: 50px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(199, 173, 136, 0.12);
}

.section-heading-roman {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 2px;
  margin-bottom: 34px;
  text-transform: uppercase;
}

.schedule-timeline {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  padding-right: 24px;
  border-right: 1px solid rgba(199, 173, 136, 0.35);
  text-align: right;
}

.timeline-event-item {
  position: relative;
  margin-bottom: 38px;
}

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

.timeline-event-node {
  position: absolute;
  right: -31px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  background: var(--bg-espresso);
  box-shadow: 0 0 8px rgba(199, 173, 136, 0.3);
}

.timeline-event-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-event-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-event-venue {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.timeline-event-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-view-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(199, 173, 136, 0.35);
  color: var(--gold-light);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-view-map:hover {
  background: rgba(199, 173, 136, 0.15);
  border-color: var(--gold-primary);
}

.btn-view-map svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ========================================================
   COUNTDOWN TIMER
   ======================================================== */
.countdown-section {
  padding: 50px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(199, 173, 136, 0.12);
}

.countdown-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 24px;
}

.countdown-unit {
  flex: 1;
  padding: 0 10px;
  position: relative;
}

.countdown-unit:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(199, 173, 136, 0.25);
}

.cd-number {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1.1;
  letter-spacing: 1px;
}

.cd-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ========================================================
   PHOTO GALLERY
   ======================================================== */
.maps-section {
  padding: 50px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(199, 173, 136, 0.12);
}
.maps-list { display: grid; gap: 28px; margin-top: 24px; }
.map-location h3 { color: var(--gold-light); margin: 0 0 10px; font-size: 1.1rem; }
.map-routing { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map-routing img { object-fit: contain; }
.map-label { margin: 20px 0 4px; color: var(--gold-light); }

.gallery-section {
  padding: 50px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(199, 173, 136, 0.12);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(105%) grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: contrast(110%) grayscale(0%);
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.95);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 20px;
  cursor: zoom-out;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* ========================================================
   RSVP FORM
   ======================================================== */
.rsvp-section {
  padding: 50px 24px 60px;
  text-align: center;
}

.rsvp-subtitle {
  font-size: 1.05rem;
  color: var(--gold-light);
  font-style: italic;
  font-family: var(--font-serif);
  margin-bottom: 32px;
}

.rsvp-form {
  max-width: 360px;
  margin: 0 auto;
  text-align: right;
}

.form-group-line {
  position: relative;
  margin-bottom: 24px;
}

.form-line-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(199, 173, 136, 0.35);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 12px 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-line-input:focus {
  border-bottom-color: var(--gold-primary);
}

.form-line-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.rsvp-choice-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.rsvp-pill-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: 30px;
  border: 1px solid rgba(199, 173, 136, 0.35);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-main);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.rsvp-pill-btn:hover {
  background: rgba(199, 173, 136, 0.1);
  border-color: var(--gold-primary);
}

.rsvp-pill-btn.active {
  background: rgba(199, 173, 136, 0.25);
  border-color: var(--gold-light);
  color: #fff;
}

.rsvp-extra-options {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.rsvp-extra-options select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(199, 173, 136, 0.35);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 12px;
  outline: none;
}

.btn-send-rsvp {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 30px;
  border: 1px solid var(--gold-primary);
  background: transparent;
  color: var(--gold-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 26px;
}

.btn-send-rsvp:hover {
  background: var(--gold-primary);
  color: var(--bg-espresso);
  box-shadow: 0 4px 18px rgba(199, 173, 136, 0.3);
}

.rsvp-feedback {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
  text-align: center;
}

.rsvp-feedback.success {
  display: block;
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(129, 199, 132, 0.4);
  color: #c8e6c9;
}

.rsvp-feedback.error {
  display: block;
  background: rgba(198, 40, 40, 0.2);
  border: 1px solid rgba(229, 115, 115, 0.4);
  color: #ffcdd2;
}

/* ========================================================
   FOOTER SECTION
   ======================================================== */
.footer-section {
  padding: 40px 24px 60px;
  text-align: center;
  border-top: 1px solid rgba(199, 173, 136, 0.12);
}

.footer-monogram {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-primary);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.footer-love-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.footer-forever {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.text-reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 700ms ease var(--text-reveal-delay, 0ms), translate 700ms cubic-bezier(.2,.65,.3,1) var(--text-reveal-delay, 0ms);
}
.text-reveal.text-revealed { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .text-reveal { opacity: 1; translate: none; transition: none; }
}
