:root {
  /* Luxury Emerald Green & Golden Yellow Palette */
  --emerald-950: #02100c;
  --emerald-900: #041d16;
  --emerald-800: #073327;
  --emerald-700: #0b4c3a;
  --emerald-600: #0f6d52;
  --emerald-500: #10b981;

  --gold-100: #fff9db;
  --gold-200: #ffec99;
  --gold-300: #ffe066;
  --gold-400: #f5c542;
  --gold-500: #d4af37;
  --gold-600: #9f791c;

  --text-main: #f8fafc;
  --text-muted: #b5dfd0;
  --card-border: rgba(245, 197, 66, 0.26);
  --card-border-hover: rgba(255, 224, 102, 0.85);
}

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

html,
body {
  min-height: 100%;
  background-color: var(--emerald-950);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  position: relative;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(245, 197, 66, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #021510 0%, #05261d 50%, #010e0a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem 2.5rem;
}

/* Fullscreen Canvas for Floating Gold & Emerald Nur Particles */
#nur-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Geometric Mandalas & Lanterns */
.ambient-geometry {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.mandala {
  position: absolute;
  width: min(680px, 115vw);
  height: min(680px, 115vw);
  will-change: transform;
  opacity: 0.4;
}

.mandala-top {
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  animation: rotateMandalaTop 95s linear infinite;
}

.mandala-bottom {
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  animation: rotateMandalaBottom 115s linear infinite;
  opacity: 0.24;
}

@keyframes rotateMandalaTop {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes rotateMandalaBottom {
  from { transform: translateX(-50%) rotate(360deg); }
  to { transform: translateX(-50%) rotate(0deg); }
}

/* Swinging Hanging Lanterns */
.lantern {
  position: absolute;
  top: -10px;
  width: 64px;
  transform-origin: top center;
  will-change: transform;
  filter: drop-shadow(0 0 18px rgba(245, 197, 66, 0.4));
}

.lantern-left {
  left: max(4%, calc(50% - 310px));
  animation: lanternSwing 5.5s ease-in-out infinite alternate;
}

.lantern-right {
  right: max(4%, calc(50% - 310px));
  animation: lanternSwing 6.8s ease-in-out infinite alternate-reverse;
}

.lantern-core {
  animation: lanternPulse 2.6s ease-in-out infinite alternate;
}

@keyframes lanternSwing {
  0% { transform: rotate(-4deg); }
  100% { transform: rotate(4deg); }
}

@keyframes lanternPulse {
  0% { opacity: 0.65; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.12); }
}

/* Main Mihrab Card */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
}

.mihrab-card {
  position: relative;
  background: linear-gradient(165deg, rgba(6, 44, 34, 0.82) 0%, rgba(2, 20, 15, 0.92) 100%);
  border: 1px solid var(--card-border);
  border-radius: 38px 38px 30px 30px;
  padding: 1.8rem 1.5rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 30px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(16, 185, 129, 0.14),
    inset 0 1px 1px rgba(255, 236, 153, 0.3);
  overflow: hidden;
  animation: cardEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mihrab-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 197, 66, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.arch-ornament {
  width: 100%;
  max-width: 320px;
  margin: -0.4rem auto 0.5rem;
}

.arch-ornament svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Bismillah Badge */
.bismillah-badge {
  text-align: center;
  margin-bottom: 0.9rem;
}

.bismillah-text {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  color: var(--gold-300);
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(245, 197, 66, 0.4);
  display: inline-block;
  padding: 0.15rem 1.1rem;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.06);
  border: 1px solid rgba(245, 197, 66, 0.18);
}

/* =========================================================
   LUXURY MULTI-LAYERED ORBITAL LOGO SHOWCASE
   ========================================================= */
.logo-stage {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 0.2rem auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Breathing Aura Ripples */
.aura-ripple {
  position: absolute;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 66, 0.45);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  pointer-events: none;
  will-change: transform, opacity;
}

.aura-ripple-1 {
  animation: auraBreath 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.aura-ripple-2 {
  animation: auraBreath 4s cubic-bezier(0.16, 1, 0.3, 1) 2s infinite;
}

@keyframes auraBreath {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

/* Orbital SVG Rings */
.orbital-ring {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.orbital-outer {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.35));
  animation: orbitClockwise 28s linear infinite;
}

.orbital-inner {
  width: 170px;
  height: 170px;
  filter: drop-shadow(0 0 8px rgba(255, 226, 122, 0.5));
  animation: orbitCounterClockwise 16s linear infinite;
}

@keyframes orbitClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Center Medallion with Spinning Liquid Gold Conic Border */
.logo-medallion {
  position: relative;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.65),
    0 0 32px rgba(245, 197, 66, 0.32);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}

.logo-stage:hover .logo-medallion {
  transform: scale(1.06);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.75),
    0 0 42px rgba(245, 197, 66, 0.55);
}

.liquid-gold-border {
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg,
    #0b4c3a 0deg,
    #f5c542 70deg,
    #fff9db 115deg,
    #d4af37 160deg,
    #0b4c3a 220deg,
    #f5c542 290deg,
    #fff9db 330deg,
    #0b4c3a 360deg
  );
  animation: spinLiquidGold 6s linear infinite;
  will-change: transform;
}

@keyframes spinLiquidGold {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--emerald-900);
  z-index: 1;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.55);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  transform: scale(1.08);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.logo-stage:hover .brand-logo-img {
  transform: scale(1.16);
  filter: contrast(1.05) brightness(1.05);
}

/* Channel Title & Equalizer */
.channel-header {
  text-align: center;
  margin-bottom: 1.55rem;
}

.channel-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 5.2vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(
    90deg,
    var(--gold-200) 0%,
    var(--gold-400) 30%,
    #ffffff 50%,
    var(--gold-400) 70%,
    var(--gold-200) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldTextShine 5.5s linear infinite;
  margin-bottom: 0.35rem;
}

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

.channel-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

/* Audio Wave Equalizer Bar */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 18px;
  padding: 0 12px;
}

.equalizer span {
  width: 2.5px;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(to top, var(--emerald-500), var(--gold-300));
  animation: soundWave 1.1s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.equalizer span:nth-child(1) { animation-duration: 0.75s; height: 45%; }
.equalizer span:nth-child(2) { animation-duration: 0.95s; height: 75%; }
.equalizer span:nth-child(3) { animation-duration: 0.65s; height: 95%; }
.equalizer span:nth-child(4) { animation-duration: 1.1s; height: 60%; }
.equalizer span:nth-child(5) { animation-duration: 0.8s; height: 100%; }
.equalizer span:nth-child(6) { animation-duration: 0.7s; height: 85%; }
.equalizer span:nth-child(7) { animation-duration: 1.05s; height: 100%; }
.equalizer span:nth-child(8) { animation-duration: 0.85s; height: 65%; }
.equalizer span:nth-child(9) { animation-duration: 0.68s; height: 90%; }
.equalizer span:nth-child(10) { animation-duration: 0.92s; height: 70%; }
.equalizer span:nth-child(11) { animation-duration: 0.78s; height: 45%; }

@keyframes soundWave {
  0% { transform: scaleY(0.3); opacity: 0.55; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* =========================================================
   SLEEK, MINIMAL & LUXURY SOCIAL MEDIA LINKS
   ========================================================= */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(10, 68, 52, 0.5) 0%, rgba(3, 25, 19, 0.85) 100%);
  border: 1px solid rgba(245, 197, 66, 0.26);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease;
  will-change: transform;
  opacity: 0;
  animation: slideUpLink 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.18s; }
.link-card:nth-child(3) { animation-delay: 0.26s; }
.link-card:nth-child(4) { animation-delay: 0.34s; }

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

/* Animated Golden Shimmer Sweep */
.link-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 226, 122, 0.18),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.link-card:hover::after,
.link-card:focus-visible::after {
  left: 140%;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px) scale(1.012);
  border-color: var(--card-border-hover);
  box-shadow:
    0 16px 32px -10px rgba(0, 0, 0, 0.75),
    0 0 22px rgba(245, 197, 66, 0.24),
    inset 0 0 14px rgba(16, 185, 129, 0.18);
  outline: none;
}

.link-card:active {
  transform: translateY(-1px) scale(0.992);
}

/* Dynamic Pointer Spotlight Glow */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    240px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(245, 197, 66, 0.16),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.link-card:hover .card-glow {
  opacity: 1;
}

/* Icon Box inside Link Card */
.link-icon-box {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.16), rgba(16, 185, 129, 0.18));
  border: 1px solid rgba(245, 197, 66, 0.38);
  color: var(--gold-300);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.link-icon-box svg {
  width: 22px;
  height: 22px;
}

.link-card:hover .link-icon-box {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--emerald-950);
  border-color: var(--gold-200);
}

.link-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
}

.link-title {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--gold-100);
  letter-spacing: 0.03em;
  transition: color 0.25s ease, transform 0.25s ease;
}

.link-card:hover .link-title {
  color: #ffffff;
  transform: translateX(3px);
}

.link-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 197, 66, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.2);
  transition: all 0.3s ease;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  color: var(--gold-300);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.link-card:hover .link-action {
  background: rgba(245, 197, 66, 0.2);
  border-color: var(--gold-300);
}

.link-card:hover .arrow-icon {
  transform: translate(2px, -2px);
  color: var(--gold-100);
}

/* Footer */
.card-footer {
  margin-top: 1.65rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.7rem;
}

.ornate-divider span {
  height: 1px;
  width: 65px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 66, 0.5), transparent);
}

.spiritual-verse {
  font-family: 'Amiri', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--gold-200);
  margin-bottom: 0.35rem;
  opacity: 0.92;
}

.copyright {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(181, 223, 208, 0.55);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  body {
    padding: 1.2rem 0.85rem 2rem;
  }

  .mihrab-card {
    padding: 1.5rem 1.15rem 1.7rem;
    border-radius: 30px;
  }

  .logo-stage {
    width: 180px;
    height: 180px;
  }

  .orbital-inner {
    width: 156px;
    height: 156px;
  }

  .logo-medallion {
    width: 122px;
    height: 122px;
  }

  .lantern {
    width: 50px;
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
