/* ==========================================
   MUGHAL ARABIC WEDDING INVITATION STYLING
   ========================================== */

:root {
  --gold-primary: #d4af37;
  --gold-light: #fff3a8;
  --gold-dark: #aa771c;
  --gold-glow: rgba(212, 175, 55, 0.45);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #fff3a8 25%, #aa771c 50%, #fff3a8 75%, #aa771c 100%);
  --gold-gradient-v: linear-gradient(to right, #7a5c1f, #d4af37, #fff3a8, #d4af37, #7a5c1f);
  
  --crimson-royal: #c8102e;
  --sapphire-royal: #0f52ba;
  
  --dark-bg: #070919;
  --dark-palace: #0f1126;
  --glass-bg: rgba(15, 17, 38, 0.65);
  --glass-border: rgba(212, 175, 55, 0.25);
  
  --parchment-bg: radial-gradient(circle at center, #fffbf2 20%, #f7ebd3 65%, #ebd4a0 100%);
  --parchment-border: #d4af37;
  
  --wood-gradient: linear-gradient(to bottom, #3d1c06, #6b330d, #8f4b1c, #6b330d, #3d1c06);
  
  --font-serif: 'Playfair Display', serif;
  --font-royal: 'Cinzel Decorative', serif;
  --font-arabic: 'Amiri', serif;
  --font-accent: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', sans-serif;
}

/* Base resets & styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--dark-bg);
  font-family: var(--font-sans);
  color: #f0ebd8;
  user-select: none;
}

/* Custom Scrollbars for the invitation text container */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ==========================================
   OVERLAY SCREENS (Loader, Scroll View)
   ========================================== */

.overlay-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #2b5680 0%, #0c1c2e 100%);
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.5s;
}

.overlay-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loader Content & Silhouette */
.loader-content {
  text-align: center;
  z-index: 10;
  max-width: 500px;
  padding: 20px;
  position: relative;
}

/* Rising Golden Sun */
.loader-sun {
  position: absolute;
  bottom: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(253, 228, 155, 0.95) 20%, rgba(250, 190, 88, 0.4) 45%, rgba(139, 110, 48, 0.05) 60%, rgba(27, 14, 43, 0) 75%);
  filter: blur(15px);
  z-index: 2;
  animation: sunRiseLoader 5.5s cubic-bezier(0.1, 0.75, 0.2, 1) forwards;
}

@keyframes sunRiseLoader {
  0% {
    bottom: -320px;
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  100% {
    bottom: 80px; /* Positions the sun behind the dome */
    opacity: 1;
  }
}

.taj-silhouette-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 250px;
  margin: 0 auto 20px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.taj-silhouette {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(252, 246, 186, 0.3));
}

/* SVG Line Drawing Animation */
.taj-silhouette g path,
.taj-silhouette g rect,
.taj-silhouette g line,
.taj-silhouette g circle {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawOutlineLoader 4.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

@keyframes drawOutlineLoader {
  0% {
    stroke-dashoffset: 600;
    fill-opacity: 0;
  }
  80% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }
  100% {
    stroke-dashoffset: 0;
    fill-opacity: 0.15; /* Soft glow fill inside the dome/shapes */
  }
}

/* Slowly float the welcome text on entry */
.welcome-text {
  position: relative;
  z-index: 4;
  opacity: 0;
  transform: translateY(20px);
  animation: welcomeFadeIn 1.5s ease-out 3.2s forwards;
}

@keyframes welcomeFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-text h3.bismillah-text {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(252, 246, 186, 0.4);
}

.welcome-text h1.royal-title {
  font-family: var(--font-royal);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold-primary);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.couple-names {
  font-family: var(--font-accent);
  font-size: 3.5rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.welcome-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(240, 235, 216, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Golden Buttons */
.gold-btn {
  background: transparent;
  border: 1px solid var(--gold-primary);
  padding: 12px 30px;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(191, 149, 63, 0.1);
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gold-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.gold-btn:hover {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #070919;
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-2px);
}

.gold-btn:hover::before {
  left: 100%;
}

.gold-btn i {
  font-size: 0.95rem;
}

/* ==========================================
   CANVAS & GARDEN HUD (3D view)
   ========================================== */

#canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hud-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  transition: opacity 1s ease;
}

.hud-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.glass-header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 20px 40px;
  border-radius: 15px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.arabic-calligraphy {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--gold-light);
  text-shadow: 0 0 6px var(--gold-glow);
  margin-bottom: 5px;
}

.hud-title {
  font-family: var(--font-royal);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--gold-primary);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 5px;
}

.hud-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: rgba(240, 235, 216, 0.7);
}

.hud-instructions {
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 15px 30px;
  border-radius: 30px;
  align-self: center;
  border: 1px solid rgba(191, 149, 63, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-instructions p {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: rgba(240, 235, 216, 0.9);
}

.pulse-text {
  animation: pulseGoldText 2.5s infinite;
  font-weight: 600;
}

/* ==========================================
   AUDIO WIDGET
   ========================================== */

.audio-widget {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 10;
  pointer-events: auto;
  transition: opacity 1s ease;
}

.audio-widget.fade-out {
  opacity: 0;
  pointer-events: none;
}

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

.audio-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--gold-glow);
  border-color: var(--gold-light);
}

.disk-spinner {
  font-size: 1.1rem;
}

.audio-btn.playing .disk-spinner {
  animation: rotateDisk 4s linear infinite;
}

.music-waves {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 8px;
  gap: 2.5px;
  margin-top: 4px;
}

.music-waves span {
  display: inline-block;
  width: 2px;
  height: 2px;
  background-color: var(--gold-primary);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.audio-btn.playing .music-waves span:nth-child(1) { animation: soundWave 0.6s ease-in-out infinite alternate; }
.audio-btn.playing .music-waves span:nth-child(2) { animation: soundWave 0.9s ease-in-out infinite alternate; }
.audio-btn.playing .music-waves span:nth-child(3) { animation: soundWave 0.5s ease-in-out infinite alternate; }
.audio-btn.playing .music-waves span:nth-child(4) { animation: soundWave 0.7s ease-in-out infinite alternate; }

/* ==========================================
   TRANSITION SCREEN
   ========================================== */

.transition-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #261d0f 0%, #0a0b12 100%);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.transition-screen.active {
  opacity: 1;
  visibility: visible;
}

.transition-message {
  text-align: center;
}

.shimmer-gold {
  font-family: var(--font-royal);
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: var(--gold-light);
  margin-bottom: 20px;
  animation: textShimmer 2s ease-in-out infinite;
}

.loading-bar-container {
  width: 220px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  border: 0.5px solid rgba(191, 149, 63, 0.2);
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px var(--gold-primary);
  transition: width 0.8s ease-in-out;
}

.transition-screen.active .loading-bar {
  width: 100%;
}

/* ==========================================
   ROYAL INVITATION SCROLL VIEW
   ========================================== */

.scroll-view {
  background: radial-gradient(circle at center, rgba(15, 17, 38, 0.96) 0%, rgba(5, 6, 22, 0.98) 100%);
  z-index: 70;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 40px 10px;
}

.scroll-view.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-wrapper {
  position: relative;
  width: 90%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Scroll Rollers (Shaft & Knobs) */
.scroll-roller {
  width: 105%;
  height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  position: relative;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
}

.roller-shaft {
  flex-grow: 1;
  height: 16px;
  background: var(--wood-gradient);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), inset 0 -2px 5px rgba(0,0,0,0.6);
}

.roller-knob {
  width: 25px;
  height: 32px;
  background: var(--gold-gradient-v);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.left-knob {
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
}
.right-knob {
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
}

.top-roller {
  margin-bottom: -5px;
  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-roller {
  margin-top: -5px;
  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Scroll Paper Sheet */
.scroll-paper {
  width: 100%;
  height: 0px; /* Animate height to unroll */
  background: var(--parchment-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  transition: height 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-paper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23c8102e' stroke-width='0.85' stroke-opacity='0.08'%3E%3Cpath d='M50,50 C55,40 65,45 60,55 C55,65 45,65 40,55 C35,45 45,40 50,50 Z'/%3E%3Cpath d='M50,50 C55,30 75,35 70,55 C65,75 35,75 30,55 C25,35 45,30 50,50 Z'/%3E%3Cpath d='M50,50 C55,20 85,25 80,55 C75,85 25,85 20,55 C15,25 45,20 50,50 Z'/%3E%3Cpath d='M20,55 Q10,65 15,75 Q25,70 20,55 Z'/%3E%3Cpath d='M80,55 Q90,65 85,75 Q75,70 80,55 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.scroll-paper-content {
  padding: 40px;
  color: #3b2a1a;
  overflow-y: auto;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  
  /* Arabesque Gold & Rose Border */
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='60' viewBox='0 0 30 60'%3E%3Crect width='30' height='60' fill='%23f7ebd3'/%3E%3Cpath d='M15,0 Q10,15 15,30 Q20,45 15,60' fill='none' stroke='%23d4af37' stroke-width='2.2'/%3E%3Cpath d='M15,10 Q5,5 8,15 Z' fill='%23d4af37'/%3E%3Cpath d='M15,40 Q25,35 22,45 Z' fill='%23d4af37'/%3E%3Ccircle cx='9' cy='10' r='3.8' fill='%23c8102e'/%3E%3Cpath d='M9,6.5 C8,6.5 6.5,8 9,10' fill='none' stroke='%23fff3a8' stroke-width='0.8'/%3E%3Ccircle cx='21' cy='40' r='3.8' fill='%23c8102e'/%3E%3Cpath d='M21,36.5 C20,36.5 18.5,38 21,40' fill='none' stroke='%23fff3a8' stroke-width='0.8'/%3E%3Crect x='13.5' y='24' width='3.2' height='3.2' transform='rotate%2845 15 25.6%29' fill='%230f52ba'/%3E%3Crect x='13.5' y='54' width='3.2' height='3.2' transform='rotate%2845 15 55.6%29' fill='%230f52ba'/%3E%3C/svg%3E") 100% 24 repeat;
}

/* Golden Floral Corner Ornaments inside Ceremony Cards */
.corner-decoration {
  position: absolute;
  width: 35px;
  height: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M2,2 L38,2 M2,2 L2,38' fill='none' stroke='%23d4af37' stroke-width='2.2'/%3E%3Cpath d='M2,2 L15,15 Q25,25 25,35' fill='none' stroke='%23d4af37' stroke-width='1'/%3E%3Cpath d='M2,2 Q20,20 35,25' fill='none' stroke='%23d4af37' stroke-width='1'/%3E%3Ccircle cx='15' cy='15' r='3' fill='%23c8102e'/%3E%3Ccircle cx='25' cy='25' r='2.5' fill='%230f52ba'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 5;
}

.corner-decoration.tl { top: 6px; left: 6px; }
.corner-decoration.tr { top: 6px; right: 6px; transform: scaleX(-1); }
.corner-decoration.bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.corner-decoration.br { bottom: 6px; right: 6px; transform: scale(-1); }

/* Unrolled State */
.scroll-view.unrolled .scroll-paper {
  height: 80vh; /* Opened scroll height */
}

.scroll-view.unrolled .scroll-paper-content {
  opacity: 1;
}

.scroll-view.unrolled .top-roller {
  transform: translateY(0);
}
.scroll-view.unrolled .bottom-roller {
  transform: translateY(0);
}

/* Close Scroll / Return Button */
.close-scroll-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--parchment-border);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 15;
}

.close-scroll-btn:hover {
  color: #c93b2b;
  transform: scale(1.1);
}

/* Scroll Headers & Typography */
.scroll-header-decoration {
  margin-top: 15px;
  margin-bottom: 5px;
  text-align: center;
  position: relative;
  width: 100%;
}

.shamsa-medallion {
  filter: drop-shadow(0 6px 15px rgba(146, 43, 33, 0.2));
  transform: scale(0.3) rotate(-180deg);
  opacity: 0;
  margin-bottom: 10px;
}

.scroll-view.unrolled .shamsa-medallion {
  animation: shamsaEntrance 1.6s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards 0.2s;
}

@keyframes shamsaEntrance {
  0% { transform: scale(0.3) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.scroll-bismillah {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--crimson-royal);
  text-align: center;
  font-weight: 700;
  margin-bottom: 2px;
  text-shadow: 0 1px 2px rgba(197, 155, 39, 0.4);
}

.scroll-bismillah-translation {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 1px;
  color: rgba(146, 43, 33, 0.8);
  text-align: center;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.scroll-intro-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  color: #3b2a1a;
  max-width: 620px;
  margin-bottom: 35px;
}

/* Nikah & Walima Cards Layout */
.invitation-sections-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  margin-bottom: 40px;
}

.ceremony-card {
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(146, 43, 33, 0.06);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ceremony-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(146, 43, 33, 0.1);
}

.card-border-inner {
  border: 1px dashed var(--gold-dark);
  border-radius: 6px;
  padding: 25px 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ceremony-title {
  font-family: var(--font-royal);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--crimson-royal);
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
  width: 80%;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(197, 155, 39, 0.25);
}

.hosts-info {
  margin-bottom: 20px;
}

.host-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(92, 68, 26, 0.7);
}

.host-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #4c3c25;
  margin-top: 3px;
}

.host-origin {
  font-size: 0.8rem;
  color: rgba(92, 68, 26, 0.8);
}

.inviting-text {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  color: var(--gold-dark);
  margin: 5px 0 15px;
}

.couple-detail {
  margin-bottom: 10px;
  width: 100%;
}

.role-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 600;
}

.member-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sapphire-royal);
  margin-top: 2px;
}

.member-edu {
  font-size: 0.75rem;
  color: rgba(92, 68, 26, 0.9);
  font-style: italic;
  margin-top: 2px;
}

.parents-sub {
  font-size: 0.8rem;
  color: #5c4c37;
  margin-top: 4px;
  line-height: 1.4;
}

.connector-and {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin: 5px 0;
  line-height: 1;
}

/* Ceremony Date/Time/Venue Details */
.ceremony-details {
  background: rgba(197, 155, 39, 0.05);
  border-radius: 6px;
  padding: 15px;
  width: 100%;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}

.detail-icon {
  color: var(--crimson-royal);
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

.detail-val {
  font-size: 0.85rem;
  color: #3b2d1c;
  line-height: 1.4;
}

.venue-address strong {
  color: #2b1f13;
  font-size: 0.9rem;
}

/* Map Link Button */
.map-link-btn {
  background: var(--sapphire-royal);
  border: none;
  padding: 10px 20px;
  color: #fbf7eb;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(26, 54, 93, 0.15);
}

.map-link-btn:hover {
  background: var(--crimson-royal);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* RSVP Stamp Section */
.rsvp-stamp-section {
  width: 100%;
  background: rgba(146, 43, 33, 0.02);
  border: 1px dashed var(--gold-primary);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin-bottom: 40px;
}

.rsvp-heading {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--crimson-royal);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.rsvp-options {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.rsvp-opt-btn {
  background: transparent;
  border: 1px solid var(--sapphire-royal);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sapphire-royal);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rsvp-opt-btn:hover {
  background: rgba(26, 54, 93, 0.06);
}

.rsvp-opt-btn.active-accept {
  background: var(--sapphire-royal);
  border-color: var(--sapphire-royal);
  color: #fff;
  box-shadow: 0 0 10px rgba(26, 54, 93, 0.2);
}

.rsvp-opt-btn.active-decline {
  background: var(--crimson-royal);
  border-color: var(--crimson-royal);
  color: #fff;
  box-shadow: 0 0 10px rgba(146, 43, 33, 0.2);
}

.rsvp-response {
  margin-top: 15px;
  font-family: var(--font-accent);
  font-size: 2.2rem;
  color: var(--crimson-royal);
  animation: stampFade 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.rsvp-response.hidden {
  display: none;
}

/* Scroll Footer (Gifts note & Compliments) */
.scroll-footer {
  width: 100%;
  margin-top: 10px;
  border-top: 1px solid rgba(197, 155, 39, 0.3);
  padding-top: 25px;
}

.no-gifts-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--crimson-royal);
  text-align: center;
  max-width: 550px;
  margin: 0 auto 30px;
}

.no-gifts-note i {
  font-size: 1.1rem;
}

.no-gifts-note p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #4a3a24;
}

.compliments-box {
  background: rgba(146, 43, 33, 0.015);
  border-radius: 4px;
  padding: 20px;
  border: 0.5px solid rgba(197, 155, 39, 0.2);
  text-align: center;
}

.compliments-box h5 {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--crimson-royal);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 700;
}

.compliments-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  text-align: left;
}

.compliments-columns ul {
  list-style: none;
}

.compliments-columns ul li {
  font-size: 0.8rem;
  color: #423521;
  margin-bottom: 6px;
  line-height: 1.3;
}

.compliments-columns ul li small {
  color: rgba(92, 68, 26, 0.7);
  display: block;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

@keyframes pulseStar {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; text-shadow: 0 0 20px var(--gold-light); }
}

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

@keyframes soundWave {
  0% { height: 2px; }
  100% { height: 12px; }
}

@keyframes pulseGoldText {
  0%, 100% { color: rgba(240, 235, 216, 0.85); text-shadow: 0 0 0px transparent; }
  50% { color: var(--gold-light); text-shadow: 0 0 10px var(--gold-glow); }
}

@keyframes textShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; text-shadow: 0 0 15px var(--gold-light); }
}

@keyframes stampFade {
  0% { transform: scale(3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

@media (max-width: 768px) {
  /* Welcome Screen mobile overrides */
  .welcome-text h3.bismillah-text {
    font-size: 1.8rem;
  }
  .couple-names {
    font-size: 2.8rem;
  }
  .welcome-text h1.royal-title {
    font-size: 1.4rem;
  }

  /* HUD mobile adjustments */
  .glass-header {
    padding: 15px 20px;
    margin: 0 10px;
  }
  .arabic-calligraphy {
    font-size: 1.7rem;
  }
  .hud-title {
    font-size: 1.1rem;
  }
  .hud-instructions {
    padding: 10px 15px;
    margin: 0 10px;
  }
  
  /* Scroll View Mobile Layout */
  .scroll-view.unrolled .scroll-paper {
    height: 90vh; /* Max height on mobile to make scrolling easier */
  }
  
  .scroll-paper-content {
    padding: 25px 12px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-image-width: 12px;
  }
  
  .scroll-roller {
    width: 102%;
    height: 18px;
  }
  .roller-knob {
    width: 15px;
    height: 24px;
  }
  
  .scroll-bismillah {
    font-size: 1.7rem;
  }
  .scroll-intro-text {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  
  /* Grid to Stacked column */
  .invitation-sections-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .ceremony-card {
    padding: 4px;
  }
  .card-border-inner {
    padding: 20px 10px;
  }
  
  .member-name {
    font-size: 1.35rem;
  }
  .connector-and {
    font-size: 1.8rem;
  }
  
  .rsvp-options {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .rsvp-opt-btn {
    width: 100%;
    max-width: 250px;
  }
  
  .compliments-columns {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
