/* ==========================================================================
   SIR SYED AHMAD KHAN MEMORIAL & CELEBRATION TRIBUTE STYLES
   Heritage: Aligarh Muslim University (AMU) • Sir Syed Day Special
   ========================================================================== */

:root {
  --bg-dark: #060910;
  --bg-card: rgba(15, 23, 42, 0.85);
  --amu-green: #0F5132;
  --amu-emerald: #10B981;
  --gold-primary: #D4AF37;
  --gold-glow: #FBBF24;
  --gold-light: #FEF3C7;
  --maroon: #881337;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-urdu: 'Amiri', 'Noto Nastaliq Urdu', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(15, 81, 50, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 80% 40%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(136, 19, 55, 0.2) 0%, transparent 50%);
  background-attachment: fixed;
}

.ambient-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #FEF08A, rgba(0,0,0,0)),
                    radial-gradient(1.5px 1.5px at 150px 80px, #FFFFFF, rgba(0,0,0,0)),
                    radial-gradient(1px 1px at 300px 150px, #FBBF24, rgba(0,0,0,0)),
                    radial-gradient(1.5px 1.5px at 500px 220px, #FFFFFF, rgba(0,0,0,0));
  background-size: 550px 550px;
  opacity: 0.45;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* TOP STATUS TICKER */
.heritage-ticker {
  background: linear-gradient(90deg, #0F5132, #064E3B, #0F5132);
  border-bottom: 2px solid var(--gold-primary);
  padding: 8px 14px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.heritage-ticker span.highlight {
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid var(--gold-primary);
  border-radius: 999px;
  padding: 2px 10px;
  color: #FFF;
}

/* HERO SECTION */
.hero-tribute {
  padding: 50px 0 35px 0;
  text-align: center;
  position: relative;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid var(--gold-primary);
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-glow);
  letter-spacing: 1px;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
  animation: badgeGlow 4s infinite alternate ease-in-out;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
  100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.45); }
}

/* Arch Frame Portrait with Living Aura Animation */
.portrait-stage {
  position: relative;
  width: 220px;
  height: 285px;
  margin: 0 auto 30px auto;
  animation: portraitFloat 6s ease-in-out infinite;
}

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

.arch-frame {
  width: 100%;
  height: 100%;
  border-radius: 120px 120px 18px 18px;
  padding: 9px;
  background: linear-gradient(145deg, #F59E0B, #B45309, #D4AF37, #78350F);
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.4), 0 0 80px rgba(16, 185, 129, 0.2), 0 18px 40px rgba(0,0,0,0.85);
  position: relative;
  animation: haloPulse 5s infinite alternate ease-in-out;
}

@keyframes haloPulse {
  0% {
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.35), 0 0 60px rgba(16, 185, 129, 0.2), 0 15px 35px rgba(0,0,0,0.85);
  }
  100% {
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.65), 0 0 100px rgba(212, 175, 55, 0.4), 0 22px 50px rgba(0,0,0,0.95);
  }
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 112px 112px 12px 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: block;
  filter: contrast(1.08) brightness(1.03);
  transition: transform 0.5s ease;
}

.portrait-stage:hover .portrait-img {
  transform: scale(1.03);
}

.portrait-crown-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #090A16;
  border: 1.5px solid var(--gold-primary);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #FFFFFF 0%, #FEF08A 25%, #F59E0B 50%, #FEF08A 75%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerTitle 6s linear infinite;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

@keyframes shimmerTitle {
  to {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-bottom: 14px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-bio-lead {
  font-size: 1.1rem;
  color: #CBD5E1;
  max-width: 680px;
  margin: 0 auto 24px auto;
  line-height: 1.65;
}

/* AUDIO PLAYER COMPONENT */
.audio-ctrl-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 10px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  margin-bottom: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-ctrl-box:hover {
  border-color: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.audio-btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}

.audio-label {
  text-align: left;
}

.audio-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #FFF;
}

.audio-meta {
  font-size: 0.75rem;
  color: var(--gold-glow);
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.wave-bar {
  width: 3px;
  background: var(--gold-primary);
  border-radius: 2px;
  height: 6px;
  transition: height 0.2s ease;
}

.audio-ctrl-box.playing .wave-bar:nth-child(1) { animation: waveAnim 0.7s infinite alternate; }
.audio-ctrl-box.playing .wave-bar:nth-child(2) { animation: waveAnim 0.5s infinite alternate 0.1s; }
.audio-ctrl-box.playing .wave-bar:nth-child(3) { animation: waveAnim 0.9s infinite alternate 0.2s; }
.audio-ctrl-box.playing .wave-bar:nth-child(4) { animation: waveAnim 0.6s infinite alternate 0.3s; }

@keyframes waveAnim {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* SECTION 2: CHIRAG-E-ILM (THE LAMP OF ENLIGHTENMENT) */
.lamp-ceremony-section {
  background: linear-gradient(180deg, rgba(15, 81, 50, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  padding: 35px 24px;
  text-align: center;
  margin: 30px 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-glow);
  font-weight: 800;
  margin-bottom: 6px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #FFF;
  margin-bottom: 12px;
}

.section-desc {
  color: #94A3B8;
  max-width: 620px;
  margin: 0 auto 24px auto;
  font-size: 0.98rem;
}

.lamp-unit {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 10px auto 20px auto;
  cursor: pointer;
  user-select: none;
}

.lamp-glow-field {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lamp-unit.lit .lamp-glow-field {
  opacity: 1;
  animation: lampPulse 2.5s infinite alternate ease-in-out;
}

@keyframes lampPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.flame-svg {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 48px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lamp-unit.lit .flame-svg {
  opacity: 1;
  animation: flicker 0.12s infinite alternate;
}

@keyframes flicker {
  0% { transform: translateX(-50%) rotate(-1deg) scale(0.98); }
  100% { transform: translateX(-50%) rotate(1.5deg) scale(1.05); }
}

.diya-base-svg {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 70px;
}

.btn-light-lamp {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #000;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-light-lamp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.lamp-message-reveal {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(254, 243, 199, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 14px;
  font-size: 1.05rem;
  color: #FEF08A;
  font-style: italic;
  display: none;
  animation: fadeIn 0.6s ease-out forwards;
}

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

/* SECTION 3: THE 4 EPOCHS TIMELINE */
.timeline-section {
  padding: 40px 0;
}

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

.epoch-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.epoch-card:hover {
  border-color: var(--gold-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.epoch-year-badge {
  display: inline-block;
  background: var(--amu-green);
  color: #FFF;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-primary);
  align-self: flex-start;
  margin-bottom: 12px;
}

.epoch-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #FFF;
  margin-bottom: 8px;
  font-weight: 700;
}

.epoch-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.55;
}

/* SECTION 4: ARCHITECTURAL GALLERY */
.campus-gallery-section {
  padding: 30px 0;
}

.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 20px;
}

.campus-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.campus-img-box {
  width: 100%;
  height: 230px;
  overflow: hidden;
  position: relative;
}

.campus-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.campus-body {
  padding: 18px 20px;
}

.campus-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #FFF;
  margin-bottom: 6px;
}

.campus-caption {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.5;
}

/* SECTION 5: IMMORTAL QUOTES */
.quotes-section {
  padding: 35px 0;
}

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

.quote-tile {
  background: rgba(15, 23, 42, 0.8);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 16px 16px 0;
  padding: 22px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.quote-symbol {
  font-size: 2rem;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.quote-tile p {
  font-size: 1.02rem;
  font-style: italic;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 12px;
}

.quote-author {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SECTION 6: AMU TARANA TRIBUTE & AUTHENTIC VIDEO THEATER */
.tarana-section {
  background: linear-gradient(145deg, #051A11, #081226, #110A18);
  border: 1.5px solid var(--gold-primary);
  border-radius: 28px;
  padding: 42px 24px;
  text-align: center;
  margin: 45px 0;
  box-shadow: 0 25px 70px rgba(0,0,0,0.85), 0 0 40px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
}

/* Ambient Floating Musical Notes */
.notes-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-note {
  position: absolute;
  color: rgba(254, 240, 138, 0.35);
  font-size: 1.5rem;
  animation: floatNote 8s infinite linear;
}

@keyframes floatNote {
  0% {
    transform: translateY(120%) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-40px) scale(1.2) rotate(45deg);
    opacity: 0;
  }
}

.tarana-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-glow);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 14px;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Authentic Video Theater */
.tarana-theater {
  max-width: 820px;
  margin: 28px auto 24px auto;
  position: relative;
  z-index: 1;
}

.tarana-tabs {
  display: inline-flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 18px;
}

.tab-btn {
  background: transparent;
  color: #CBD5E1;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: #FFF;
}

.tab-btn.active {
  background: linear-gradient(135deg, #0F5132, #10B981);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(254, 240, 138, 0.4);
}

.video-frame-gold {
  position: relative;
  border-radius: 18px;
  padding: 6px;
  background: linear-gradient(145deg, #F59E0B, #78350F, #D4AF37, #1E293B);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 30px rgba(245, 158, 11, 0.25);
}

.video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Audio Visualizer Equalizer */
.tarana-live-eq {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
  margin: 16px auto;
}

.eq-bar {
  width: 5px;
  background: linear-gradient(to top, #0F5132, #10B981, #FEF08A);
  border-radius: 3px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 75%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 100%; animation-delay: 0.15s; }
.eq-bar:nth-child(4) { height: 50%; animation-delay: 0.45s; }
.eq-bar:nth-child(5) { height: 85%; animation-delay: 0.2s; }
.eq-bar:nth-child(6) { height: 60%; animation-delay: 0.35s; }
.eq-bar:nth-child(7) { height: 95%; animation-delay: 0.5s; }
.eq-bar:nth-child(8) { height: 40%; animation-delay: 0.25s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.tarana-urdu-text {
  font-family: var(--font-urdu);
  font-size: 1.95rem;
  line-height: 2.1;
  color: #FEF08A;
  direction: rtl;
  margin: 20px 0 14px 0;
  text-shadow: 0 0 15px rgba(254, 240, 138, 0.4);
}

.tarana-transliteration {
  font-size: 1.05rem;
  color: #E2E8F0;
  font-style: italic;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}

/* SECTION 7: LETTER OF GRATITUDE FROM AN ALIG */
.letter-section {
  padding: 30px 0;
}

.parchment-letter {
  background: #FBF7EE;
  color: #1E293B;
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 40px rgba(212, 175, 55, 0.2);
  border: 1px solid #E2D9C8;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.wax-seal {
  position: absolute;
  top: -20px;
  right: 36px;
  width: 54px;
  height: 54px;
  background: radial-gradient(circle, #991B1B, #7F1D1D);
  border-radius: 50%;
  border: 2px solid #FEF08A;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FEF08A;
  font-size: 1.3rem;
  font-weight: 900;
}

.letter-salutation {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F5132;
  margin-bottom: 16px;
}

.letter-body p {
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 1.02rem;
  color: #334155;
}

.letter-signature {
  margin-top: 24px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F5132;
}

/* SECTION 8: PLEDGE */
.pledge-section {
  text-align: center;
  padding: 35px 20px;
  background: rgba(15, 81, 50, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  margin: 35px 0;
}

.pledge-counter {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-glow);
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.btn-take-pledge {
  background: var(--amu-green);
  color: #FFF;
  border: 2px solid var(--gold-primary);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 12px 30px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
  margin-top: 14px;
}

.btn-take-pledge:hover {
  background: #14532D;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
}

/* VIRAL SHARE FOOTER */
.viral-share-bar {
  text-align: center;
  padding: 40px 0 60px 0;
}

.btn-whatsapp-share {
  background: #25D366;
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-whatsapp-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
  background: #2BF075;
}

.platform-credit-badge {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #94A3B8;
}

.platform-credit-badge a {
  color: var(--gold-glow);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   SCROLL REVEAL & INTERACTIVE CARD ANIMATIONS
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.epoch-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.epoch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7), 0 0 25px rgba(212, 175, 55, 0.25);
  border-color: var(--gold-glow);
}

.quote-tile {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.quote-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.6), 0 0 20px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   PERSISTENT FLOATING SHARE DOCK (BOTTOM-RIGHT CORNER)
   ========================================================================== */
.floating-share-dock {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  pointer-events: auto;
}

.floating-share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  outline: none;
  padding: 0;
}

.floating-share-btn:hover {
  transform: scale(1.1) translateY(-3px);
}

.floating-share-btn:active {
  transform: scale(0.95);
}

/* Top Button: Generic Share Badge (Gold / AMU Maroon) */
.share-general-btn {
  background: linear-gradient(135deg, #F59E0B, #D4AF37, #B45309);
  color: #0B0E14;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.share-general-btn:hover {
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.6), 0 0 25px rgba(254, 240, 138, 0.5);
}

/* Bottom Button: WhatsApp Badge (Vibrant Green) */
.share-whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

.share-whatsapp-btn:hover {
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.7), 0 0 25px rgba(37, 211, 102, 0.5);
}

/* Pulsing Beacon Ring on WhatsApp button */
.pulse-beacon {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: beaconWave 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

@keyframes beaconWave {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Tooltip Badges */
.floating-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(15, 23, 42, 0.95);
  color: #FEF3C7;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.floating-share-btn:hover .floating-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Share Toast Message */
.share-toast {
  position: fixed;
  bottom: 95px;
  right: 26px;
  background: #064E3B;
  color: #FEF08A;
  border: 1.5px solid #10B981;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  z-index: 100000;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 320px;
}

.share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .campus-grid {
    grid-template-columns: 1fr;
  }
  .parchment-letter {
    padding: 24px 18px;
  }
  .wax-seal {
    right: 18px;
  }
  .floating-share-dock {
    bottom: 20px;
    right: 18px;
    gap: 10px;
  }
  .floating-share-btn {
    width: 50px;
    height: 50px;
  }
  .floating-tooltip {
    display: none; /* Hide hover tooltip on touch devices */
  }
}

/* ==========================================================================
   FLOATING SOUND SWITCH BUTTON (TOP-RIGHT CORNER)
   ========================================================================== */
.floating-audio-ctrl {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid var(--gold-primary);
  border-radius: 999px;
  padding: 8px 18px;
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 20px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.floating-audio-ctrl:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--gold-glow);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.floating-audio-ctrl.playing {
  background: linear-gradient(135deg, rgba(15, 81, 50, 0.95), rgba(6, 78, 59, 0.95));
  border-color: #10B981;
}

.floating-audio-ctrl.paused {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(212, 175, 55, 0.4);
  color: #94A3B8;
}

.audio-ctrl-icon {
  font-size: 1.15rem;
}

.audio-ctrl-text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.audio-ctrl-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.audio-ctrl-waves span {
  width: 3px;
  background: #FEF08A;
  border-radius: 2px;
  animation: waveBarBounce 1s ease-in-out infinite alternate;
}

.audio-ctrl-waves span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.audio-ctrl-waves span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.audio-ctrl-waves span:nth-child(3) { height: 60%; animation-delay: 0.2s; }

.floating-audio-ctrl.paused .audio-ctrl-waves span {
  animation: none;
  height: 3px;
  background: #64748B;
}

@keyframes waveBarBounce {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* ==========================================================================
   WELCOME SIR SYED DAY POP-UP CARD
   ========================================================================== */
.welcome-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(10px);
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.welcome-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.welcome-modal-card {
  position: relative;
  max-width: 530px;
  width: 100%;
  background: linear-gradient(155deg, #091710, #0B1120 40%, #150B1B);
  border: 2px solid var(--gold-primary);
  border-radius: 26px;
  padding: 36px 26px 30px 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.95), 0 0 60px rgba(212, 175, 55, 0.35);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.welcome-modal-overlay.active .welcome-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #CBD5E1;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(220, 38, 38, 0.8);
  color: #FFF;
  transform: rotate(90deg);
}

.modal-portrait-arch {
  position: relative;
  width: 100px;
  height: 125px;
  margin: 0 auto 16px auto;
  border-radius: 60px 60px 12px 12px;
  padding: 5px;
  background: linear-gradient(145deg, #F59E0B, #B45309, #D4AF37);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.45);
}

.modal-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 54px 54px 8px 8px;
  display: block;
}

.modal-crest-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #060910;
  border: 1px solid var(--gold-primary);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}

.modal-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-glow);
  margin-bottom: 6px;
}

.modal-eyebrow a {
  color: inherit;
  text-decoration: underline;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFF;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.modal-subtitle {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 18px;
}

.modal-subtitle a {
  color: var(--gold-glow);
  font-weight: 700;
  text-decoration: underline;
}

.modal-quote-box {
  background: rgba(15, 81, 50, 0.2);
  border-left: 3px solid var(--gold-primary);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 0.88rem;
  color: #FEF08A;
  line-height: 1.5;
  margin-bottom: 22px;
  text-align: left;
}

.btn-enter-memorial {
  width: 100%;
  background: linear-gradient(135deg, #0F5132, #10B981, #064E3B);
  color: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), 0 0 20px rgba(212, 175, 55, 0.25);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-enter-memorial:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.6), 0 0 30px rgba(254, 240, 138, 0.4);
  background: linear-gradient(135deg, #14532D, #059669);
}

.modal-footer-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #94A3B8;
}

.modal-footer-note a {
  color: var(--gold-glow);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   SECTION: WHY WE CELEBRATE SIR SYED DAY & BIOGRAPHICAL PORTFOLIO
   ========================================================================== */
.biography-section {
  padding: 50px 0 35px 0;
  position: relative;
}

.why-celebrate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin: 28px 0 45px 0;
}

.why-card {
  background: rgba(15, 23, 42, 0.85);
  border-top: 3.5px solid var(--gold-primary);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7), 0 0 25px rgba(212, 175, 55, 0.2);
}

.why-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.why-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #FFF;
  margin-bottom: 8px;
}

.why-card-desc {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.65;
}

/* Detailed Portfolio Grid */
.portfolio-header-box {
  text-align: center;
  margin-bottom: 30px;
}

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

.portfolio-card {
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.92), rgba(15, 81, 50, 0.22));
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: 0 12px 35px rgba(0,0,0,0.55);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-glow);
  box-shadow: 0 18px 45px rgba(0,0,0,0.75), 0 0 30px rgba(212, 175, 55, 0.3);
}

.portfolio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.portfolio-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gold-glow);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(15, 81, 50, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 3px 10px;
  border-radius: 999px;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-period {
  font-size: 0.8rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.65;
  flex-grow: 1;
}

.portfolio-bullet-list {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #E2E8F0;
  line-height: 1.6;
}

.portfolio-bullet-list li {
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .floating-audio-ctrl {
    top: 10px;
    right: 12px;
    padding: 6px 12px;
  }
  .audio-ctrl-text {
    display: none; /* Icon-only on mobile to save header space */
  }
  .welcome-modal-card {
    padding: 28px 18px 22px 18px;
  }
  .modal-title {
    font-size: 1.45rem;
  }
  .scroll-popup-card, .pledge-modal-card {
    padding: 26px 16px 20px 16px;
  }
  .scroll-popup-title {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   SCROLL POP-UP 1: SIR SYED'S LAST & MOST VITAL MESSAGE MODAL
   ========================================================================== */
.scroll-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  z-index: 100004;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scroll-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.scroll-popup-card {
  position: relative;
  max-width: 580px;
  width: 100%;
  background: linear-gradient(160deg, #091710 0%, #0B1120 45%, #180C14 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 24px;
  padding: 34px 26px 28px 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(212, 175, 55, 0.35);
  transform: scale(0.88) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  max-height: 90vh;
}

.scroll-popup-overlay.active .scroll-popup-card {
  transform: scale(1) translateY(0);
}

.scroll-popup-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.scroll-popup-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  color: #FFF;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.scroll-popup-subtitle {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Historic Letter Body inside Pop-up */
.parchment-quote-box {
  background: rgba(254, 240, 138, 0.06);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 20px 20px 16px 20px;
  text-align: left;
  position: relative;
  margin-bottom: 20px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.parchment-quote-box p {
  color: #F8FAFC;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.parchment-quote-box p strong {
  color: var(--gold-glow);
}

.parchment-quote-box .urdu-highlight {
  font-family: var(--font-urdu);
  font-size: 1.25rem;
  color: #FEF08A;
  direction: rtl;
  text-align: center;
  padding: 10px 0 6px 0;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  margin-top: 10px;
  line-height: 1.8;
}

.parchment-quote-author {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-align: right;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   SCROLL POP-UP 2: THE SOLEMN PLEDGE POP-UP CARD & LIVE COUNTER
   ========================================================================== */
.pledge-modal-card {
  position: relative;
  max-width: 560px;
  width: 100%;
  background: linear-gradient(160deg, #061E14 0%, #0A1424 45%, #180918 100%);
  border: 2px solid #10B981;
  border-radius: 24px;
  padding: 34px 26px 28px 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 60px rgba(16, 185, 129, 0.35);
  transform: scale(0.88) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  max-height: 90vh;
}

.scroll-popup-overlay.active .pledge-modal-card {
  transform: scale(1) translateY(0);
}

.pledge-points-list {
  background: rgba(6, 78, 59, 0.25);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 18px;
}

.pledge-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: #F1F5F9;
  line-height: 1.55;
}

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

.pledge-point-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.3);
  border: 1px solid #10B981;
  color: #A7F3D0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

.pledge-live-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--gold-primary);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FEF08A;
}

.pledge-live-counter-pill .live-dot {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.btn-pledge-action-gold {
  width: 100%;
  background: linear-gradient(135deg, #10B981, #059669, #047857);
  color: #FFFFFF;
  border: 2px solid #34D399;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), 0 0 20px rgba(52, 211, 153, 0.25);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-pledge-action-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.6), 0 0 30px rgba(167, 243, 208, 0.4);
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-pledge-action-gold:disabled {
  background: #064E3B;
  border-color: #10B981;
  color: #A7F3D0;
  cursor: default;
  transform: none;
  box-shadow: none;
}



