/* ==========================================================================
   Luxury Wedding Invitation Design System — Rahmatillo & Mashhura
   ========================================================================== */

:root {
  --primary-gold: #C9943A;
  --primary-gold-light: #F4E2B8;
  --primary-gold-dark: #966A1E;
  --blush-pink: #F2A8B8;
  --blush-dark: #D4607A;
  --soft-bg: #FDF9F5;
  --petal-pink: #FFF0F3;
  --sage-green: #C8D8C0;
  --text-dark: #2C2226;
  --text-muted: #6E5B63;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 16px 40px rgba(180, 110, 130, 0.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-cursive: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', -apple-system, sans-serif;
  --font-arabic: 'Amiri', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--soft-bg);
  color: var(--text-dark);
  font-family: var(--font-serif);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Background Ambient Blobs
   -------------------------------------------------------------------------- */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatBlob 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #FFE4E9 0%, #FFC2D1 100%);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FFF3D6 0%, #F5D996 100%);
  bottom: -150px;
  right: -100px;
  animation-delay: -6s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #E2F0DD 0%, #C8D8C0 100%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -12s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   Petals Container
   -------------------------------------------------------------------------- */
#petals-container {
  position: fixed;
  top: -20px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.petal-fall {
  position: absolute;
  top: -20px;
  user-select: none;
  animation: petalDrop linear infinite;
}

@keyframes petalDrop {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(105vh) rotate(540deg) scale(1.1);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Welcome Screen (Lock)
   -------------------------------------------------------------------------- */
.welcome-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #FFF5F7 0%, #FDF0DC 50%, #F4E8D8 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.welcome-screen.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-content {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 48px 32px;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(212, 96, 122, 0.15);
  max-width: 400px;
  width: 100%;
  animation: welcomePop 0.8s ease-out;
}

@keyframes welcomePop {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.welcome-heart {
  font-size: 38px;
  color: var(--blush-dark);
  margin-bottom: 16px;
  animation: heartPulse 1.8s infinite ease-in-out;
  display: inline-block;
}

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

.welcome-content h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--primary-gold-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

.unlock-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush-dark), var(--primary-gold));
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 96, 122, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.unlock-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(212, 96, 122, 0.45);
}

.welcome-content p {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Audio Toggle Button
   -------------------------------------------------------------------------- */
.music-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--primary-gold-light);
  color: var(--primary-gold-dark);
  font-size: 18px;
  cursor: pointer;
  z-index: 9000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

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

.music-toggle.playing {
  background: var(--primary-gold);
  color: #FFF;
  border-color: var(--primary-gold);
  animation: spinVinyl 6s linear infinite;
}

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

/* --------------------------------------------------------------------------
   Invitation Container & Acrylic Card
   -------------------------------------------------------------------------- */
.invitation-container {
  min-height: 100vh;
  padding: 40px 16px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.acrylic-card {
  position: relative;
  max-width: 680px;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 48px);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Ornament Headers & Lines */
.top-decor, .bottom-decor {
  margin-bottom: 24px;
}

.doves-svg, .bottom-rings-svg {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

.text-intro {
  font-family: var(--font-sans);
  font-size: clamp(10px, 1.8vw, 12px);
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--blush-dark);
  margin-bottom: 28px;
  line-height: 1.8;
  text-transform: uppercase;
}

/* Names */
.names-wrapper {
  margin: 16px 0 24px;
}

.name {
  font-family: var(--font-cursive);
  font-size: clamp(48px, 10vw, 88px);
  color: var(--text-dark);
  line-height: 1.05;
  font-weight: 400;
}

.ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--primary-gold);
  display: block;
  margin: 4px 0;
}

/* Date Section */
.date-section-v2 {
  margin: 32px 0 28px;
}

.month-v2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.date-row-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.date-side-left, .date-side-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gold-line {
  width: 45px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-gold));
}

.date-side-right .gold-line {
  background: linear-gradient(to left, transparent, var(--primary-gold));
}

.date-row-v2 .text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.date-center {
  font-family: var(--font-serif);
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 600;
  color: var(--blush-dark);
  line-height: 1;
  padding: 0 8px;
}

/* Countdown */
.countdown-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 20px);
  margin-bottom: 40px;
}

.time-unit {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(242, 168, 184, 0.35);
  border-radius: 16px;
  padding: 14px 12px;
  min-width: clamp(64px, 12vw, 84px);
  box-shadow: 0 4px 16px rgba(212, 96, 122, 0.08);
}

.time-unit span {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  color: var(--blush-dark);
  line-height: 1;
}

.time-unit label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* --------------------------------------------------------------------------
   Calendar Component
   -------------------------------------------------------------------------- */
.calendar-inner {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(242, 168, 184, 0.3);
  border-radius: 24px;
  padding: 24px 20px;
  margin: 32px 0 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.calendar-header h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--primary-gold-dark);
  margin-bottom: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  font-size: 14px;
  align-items: center;
}

.cal-day-name {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--blush-dark);
  letter-spacing: 0.1em;
  padding-bottom: 8px;
}

.calendar-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 50%;
  font-family: var(--font-serif);
  color: var(--text-dark);
}

.calendar-grid span.heart-date-red {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  margin: 0 auto;
  cursor: pointer;
}

.calendar-grid span.heart-date-red .red-heart-bg {
  font-size: 38px;
  color: #E53935; /* Bold vibrant crimson red */
  filter: drop-shadow(0 4px 12px rgba(229, 57, 53, 0.5));
  animation: heartPulseRed 1.8s infinite ease-in-out;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.calendar-grid span.heart-date-red .date-num-inside {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF; /* Crisp white number inside heart */
  margin-top: -1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@keyframes heartPulseRed {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 12px rgba(229, 57, 53, 0.5)); }
  50% { transform: scale(1.18); filter: drop-shadow(0 8px 20px rgba(229, 57, 53, 0.75)); }
}

/* --------------------------------------------------------------------------
   Timeline Schedule
   -------------------------------------------------------------------------- */
.schedule-section {
  margin: 40px 0;
  text-align: center;
}

.section-title {
  font-family: var(--font-cursive);
  font-size: clamp(34px, 6vw, 54px);
  color: var(--text-dark);
  margin-bottom: 4px;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--blush-dark);
  margin-bottom: 24px;
}

.timeline {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, var(--blush-pink), var(--primary-gold-light), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}

.tl-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.tl-content {
  width: 45%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(242, 168, 184, 0.3);
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.tl-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #FFF;
  border: 3px solid var(--blush-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(212, 96, 122, 0.15);
  z-index: 2;
}

.tl-time {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary-gold-dark);
  margin-bottom: 4px;
}

.tl-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.tl-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Photo Gallery & Lightbox
   -------------------------------------------------------------------------- */
.gallery-section {
  margin: 48px 0;
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.g-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1/1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.g-item.featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.g-item:hover img {
  transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #FFF;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Location Section & Maps
   -------------------------------------------------------------------------- */
.location-section {
  margin: 40px 0 20px;
}

.address-text {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

.highlight-gold {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-gold-dark);
}

.map-embed-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(242, 168, 184, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.map-btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-maps-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.btn-maps-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-maps-pill.google {
  background: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
}

.btn-maps-pill.yandex {
  background: #FC3F1D;
  color: #FFFFFF;
}

.map-logo-icon {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Du'a & Footer
   -------------------------------------------------------------------------- */
.dua-box {
  margin: 36px 0 20px;
  padding: 24px;
  background: rgba(200, 216, 192, 0.18);
  border-radius: 20px;
  border-left: 3px solid var(--sage-green);
}

.dua-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(20px, 3.5vw, 28px);
  color: var(--primary-gold-dark);
  line-height: 1.8;
  margin-bottom: 8px;
}

.dua-translation {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

footer {
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 168, 184, 0.3);
}

.footer-names {
  font-family: var(--font-cursive);
  font-size: 36px;
  color: var(--text-dark);
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 600px) {
  .g-grid {
    grid-template-columns: 1fr 1fr;
  }
  .g-item.featured {
    grid-column: span 2;
  }
  .timeline::before {
    left: 20px;
  }
  .tl-item, .tl-item:nth-child(odd) {
    flex-direction: row;
  }
  .tl-content {
    width: calc(100% - 40px);
    margin-left: 40px;
    text-align: left;
  }
  .tl-dot {
    left: 20px;
  }
}
