/* =========================================================
   ROYAL BIRTHDAY CARD - MOHTARMA MARYAM NAWAZ SHARIF
   Chief Minister of Punjab | 28th October Celebration
   ========================================================= */

:root {
  --emerald-darkest: #02140e;
  --emerald-deep: #052319;
  --emerald-forest: #0b3d2c;
  --emerald-accent: #135e44;
  --gold-1: #bf953f;
  --gold-2: #fcf6ba;
  --gold-3: #b38728;
  --gold-4: #fbf5b7;
  --gold-5: #aa771c;
  --gold-metallic: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 25%, var(--gold-3) 50%, var(--gold-4) 75%, var(--gold-5) 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.45);
  --glass-bg: rgba(7, 36, 26, 0.65);
  --glass-border: rgba(212, 175, 55, 0.35);
  --text-primary: #fdfaf2;
  --text-muted: #d0ded6;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel Decorative', 'Playfair Display', serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Amiri', serif;
}

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

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: var(--emerald-darkest);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(19, 94, 68, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(179, 135, 40, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(11, 61, 44, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, var(--emerald-darkest) 0%, var(--emerald-deep) 50%, var(--emerald-darkest) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}



/* Background Animated Canvas & Ambient Glows */
#sparkleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: pulseAmbient 10s ease-in-out infinite alternate;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 70%);
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(19, 94, 68, 0.35), transparent 70%);
  bottom: 10%;
  right: 5%;
}

@keyframes pulseAmbient {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  100% { transform: scale(1.15) translate(20px, -20px); opacity: 0.7; }
}

/* Falling Rose Petals Container */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.rose-petal {
  position: absolute;
  top: -40px;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 30% 30%, #ff6b8b, #c41e3a 70%, #850b23 100%);
  border-radius: 50% 0 50% 50%;
  opacity: 0.85;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: fallPetal linear forwards;
}

@keyframes fallPetal {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) rotate(540deg) scale(1);
    opacity: 0;
  }
}

/* Floating Toolbar */
.top-controls {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1000;
}

.control-group {
  display: flex;
  gap: 10px;
  background: rgba(3, 22, 15, 0.85);
  backdrop-filter: blur(14px);
  padding: 6px 10px;
  border-radius: 40px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.pill-btn:hover {
  background: var(--gold-metallic);
  color: #031e13;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.spark-btn {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.6);
}

/* =========================================================
   MAIN CARD PRESENTATION (DIRECT)
   ========================================================= */
.main-card-layout {
  position: relative;
  z-index: 10;
  max-width: 1050px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: fadeInMain 0.8s ease-out forwards;
}

.main-card-layout.hidden {
  display: none;
}

@keyframes fadeInMain {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Hero Header */
.card-hero-banner {
  text-align: center;
  position: relative;
}

.royal-crest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--gold-2);
  margin-bottom: 12px;
}

.crescent-star {
  font-size: 1rem;
  color: var(--gold-4);
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-metallic);
  color: #021a11;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  text-shadow: 0 0 35px rgba(212, 175, 55, 0.3);
  line-height: 1.15;
  margin-bottom: 6px;
}

.sub-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.chief-title {
  color: var(--gold-2);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto 0;
  max-width: 400px;
}

.ornament-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}

.ornament-divider .diamond {
  color: var(--gold-2);
  font-size: 0.9rem;
}

/* =========================================================
   PORTRAIT SHOWCASE
   ========================================================= */
.portrait-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.portrait-card-link {
  display: block;
  width: 100%;
  max-width: 480px;
  color: inherit;
  text-decoration: none;
}

.portrait-card-link:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 6px;
  border-radius: 24px;
}

.portrait-frame-glow {
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(19, 94, 68, 0.3), rgba(212, 175, 55, 0.6));
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.35);
  max-width: 480px;
  width: 100%;
}

.portrait-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #02140e;
  border: 2px solid rgba(255, 245, 183, 0.5);
  aspect-ratio: 4 / 4.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.portrait-frame:hover .main-portrait-img {
  transform: scale(1.04);
}

.frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold-2);
  z-index: 2;
  pointer-events: none;
}

.top-left { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.top-right { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.bottom-right { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.portrait-caption-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(2, 20, 14, 0.95) 0%, rgba(2, 20, 14, 0.7) 70%, transparent 100%);
  padding: 30px 18px 14px;
  font-size: 0.85rem;
  color: var(--gold-4);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 3;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumb-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 42, 31, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  padding: 6px 14px 6px 8px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.thumb-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-2);
}

.thumb-btn:hover, .thumb-btn.active {
  background: var(--gold-metallic);
  color: #021a11;
  font-weight: 600;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* =========================================================
   URDU POETRY & DUA SECTION
   ========================================================= */
.poetry-card-box {
  background: linear-gradient(135deg, rgba(11, 56, 40, 0.75), rgba(4, 28, 19, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.5),
    inset 0 0 25px rgba(212, 175, 55, 0.1);
  position: relative;
  overflow: hidden;
}

.poetry-card-box::before {
  content: "✨";
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 1.2rem;
  opacity: 0.6;
}

.poetry-card-box::after {
  content: "✨";
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 1.2rem;
  opacity: 0.6;
}

.urdu-greeting {
  font-family: var(--font-urdu);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.8;
  margin-bottom: 15px;
  direction: rtl;
}

.urdu-poetry {
  font-family: var(--font-urdu);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #ffffff;
  line-height: 2.2;
  margin-bottom: 20px;
  direction: rtl;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.urdu-dua {
  font-family: var(--font-urdu);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: #d1fae5;
  line-height: 2.2;
  max-width: 750px;
  margin: 0 auto;
  direction: rtl;
}

/* =========================================================
   WISHES & TRIBUTES GRID
   ========================================================= */
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 25px;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tribute-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.25);
}

.tribute-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.tribute-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-2);
  margin-bottom: 12px;
}

.tribute-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.featured-tribute {
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  background: linear-gradient(145deg, rgba(9, 46, 33, 0.8), rgba(4, 25, 18, 0.85));
}

.wisher-sign {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.9rem;
  color: var(--gold-4);
  font-family: var(--font-serif);
  font-style: italic;
}

.wisher-sign strong {
  display: block;
  font-style: normal;
  color: #fff;
  margin-top: 3px;
  font-family: var(--font-sans);
}

/* =========================================================
   SPECIAL PHOTO GALLERY (PINTEREST TRIBUTES)
   ========================================================= */
.special-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.royal-mini-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.special-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.special-photo-card {
  padding: 14px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.special-photo-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.3);
}

.photo-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  background: #02140e;
}

.special-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.special-photo-card:hover .special-photo {
  transform: scale(1.06);
}

.photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(3, 22, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-2);
  color: var(--gold-2);
  font-size: 0.72rem;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.photo-desc {
  text-align: center;
  padding: 4px 8px 8px;
}

.photo-desc h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-2);
  margin-bottom: 4px;
}

.photo-desc p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================
   FLAGSHIP INITIATIVES & PROJECTS SHOWCASE
   ========================================================= */
.projects-showcase-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 175, 55, 0.2);
}

.project-img-box {
  position: relative;
  width: 100%;
  height: 220px;
  background: #02160f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-img.contain-img {
  object-fit: contain;
  padding: 20px;
  background: radial-gradient(circle at center, rgba(19, 94, 68, 0.45) 0%, rgba(2, 20, 14, 0.98) 100%);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(3, 22, 15, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-2);
  color: var(--gold-2);
  font-size: 0.72rem;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}

.project-content {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title-row h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-2);
  line-height: 1.3;
}

.urdu-proj-title {
  font-family: var(--font-urdu);
  font-size: 1.15rem;
  color: #fff;
  direction: rtl;
  text-align: right;
  line-height: 1.7;
}

.project-summary-en {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-summary-ur {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  color: #d1fae5;
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
  padding-top: 10px;
  margin-top: 4px;
}

/* =========================================================
   INTERACTIVE GESTURES (ROSES, CANDLES, APPLAUSE)
   ========================================================= */
.interactive-gestures-panel {
  text-align: center;
}

.panel-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-2);
  margin-bottom: 6px;
}

.panel-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.action-buttons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  max-width: 950px;
  margin: 0 auto;
}

.gesture-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gesture-btn .emoji {
  font-size: 1.35rem;
}

.counter-badge {
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid var(--gold-2);
  color: var(--gold-2);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.gesture-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.rose-btn:hover {
  background: linear-gradient(135deg, #e63946, #9b111e);
  border-color: #ff758f;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.45);
}

.candle-btn:hover {
  background: linear-gradient(135deg, #f39c12, #d35400);
  border-color: #ffd166;
  box-shadow: 0 10px 25px rgba(243, 156, 18, 0.45);
}

.clap-btn:hover {
  background: var(--gold-metallic);
  color: #031e13;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
}

.clap-btn:hover .counter-badge {
  background: #031e13;
  color: var(--gold-2);
}

.cake-btn:hover {
  background: linear-gradient(135deg, #d90429, #8338ec);
  border-color: #ff99c8;
  box-shadow: 0 10px 25px rgba(217, 4, 41, 0.45);
}

.dove-btn:hover {
  background: linear-gradient(135deg, #028090, #00a896);
  border-color: #a8dadc;
  box-shadow: 0 10px 25px rgba(0, 168, 150, 0.45);
}

.heart-btn:hover {
  background: linear-gradient(135deg, #e63946, #c77dff);
  border-color: #ffb3c6;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.45);
}

.crown-btn:hover {
  background: var(--gold-metallic);
  color: #031e13;
  border-color: #fff;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.55);
}

.crown-btn:hover .counter-badge {
  background: #031e13;
  color: var(--gold-2);
}

.firework-btn:hover {
  background: linear-gradient(135deg, #7209b7, #f72585);
  border-color: #ffd166;
  box-shadow: 0 10px 25px rgba(114, 9, 183, 0.5);
}

/* Floating Elements (Balloons, Hearts, Doves) */
.floating-item {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  user-select: none;
  animation: floatUpAnimation linear forwards;
}

@keyframes floatUpAnimation {
  0% {
    transform: translateY(0) scale(0.7) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-50vh) scale(1.1) rotate(15deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-110vh) scale(1) rotate(-15deg);
    opacity: 0;
  }
}

.flying-dove {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 2.2rem;
  animation: flyAcross linear forwards;
}

@keyframes flyAcross {
  0% {
    transform: translate(-10vw, 80vh) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(110vw, 10vh) scale(1.2);
    opacity: 0;
  }
}

.gesture-toast {
  margin-top: 18px;
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-2);
  color: var(--gold-2);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  animation: popIn 0.3s ease;
}

.gesture-toast.hidden {
  display: none;
}

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



/* =========================================================
   FOOTER
   ========================================================= */
.card-footer {
  text-align: center;
  padding: 40px 20px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-seal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seal-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-metallic);
  color: #031e13;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
}

.seal-text {
  font-size: 0.85rem;
  color: var(--gold-4);
  letter-spacing: 1px;
}

.closing-prayer {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 600px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-3);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  transition: color 0.2s ease;
}

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

/* =========================================================
   PRINT / PDF EXPORT STYLES
   ========================================================= */
@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }
  .top-controls,
  .gallery-thumbs,
  .interactive-gestures-panel,
  .quick-links,
  #sparkleCanvas,
  .petals-container,
  .ambient-glow {
    display: none !important;
  }
  .main-card-layout {
    display: block !important;
    padding: 0;
    max-width: 100%;
  }
  .glass, .poetry-card-box {
    background: #fbfbfb !important;
    border: 2px solid #b38728 !important;
    color: #111 !important;
    box-shadow: none !important;
  }
  .main-title, .urdu-greeting {
    -webkit-text-fill-color: #8c6710 !important;
    color: #8c6710 !important;
  }
  .sub-title, .tribute-card h3, .urdu-poetry {
    color: #111 !important;
  }
  .urdu-dua, .tribute-card p {
    color: #333 !important;
  }
  .main-portrait-img {
    filter: none !important;
  }
}

/* =========================================================
   RESPONSIVENESS
   ========================================================= */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
  .ambient-glow {
    filter: blur(80px);
  }
  .top-controls {
    top: 10px;
    right: 10px;
  }
  .pill-btn .label {
    display: none;
  }
  .pill-btn {
    padding: 7px 10px;
  }
  .main-card-layout {
    padding: 70px 16px 40px;
    gap: 30px;
  }
  .action-buttons-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }
  .gesture-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
    justify-content: center;
  }
}
