:root {
  --bg-dark: #020617;
  /* Deep Midnight */
  --bg-vibrant: #1e1b4b;
  /* Deep Indigo */
  --accent-primary: #7c3aed;
  /* Vibrant Violet */
  --accent-secondary: #0ea5e9;
  /* Sky Blue */
  --gold-light: #e2e8f0;
  /* Metallic Silver/White Gold */
  --gold-mid: #94a3b8;
  /* Steel Blue Silver */
  --gold-dark: #475569;
  /* Slate Gray */
  --text-light: #f8fafc;
  --text-sub: #cbd5e1;

  --font-serif: 'Playfair Display', serif;
  --font-display: 'Cinzel Decorative', serif;
  --font-script: 'Great Vibes', cursive;
}

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

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

/* Entry Overlay - Modern Creative Portal Theme */
#entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s;
}

#entry-overlay.hide {
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
}

.portal-bg {
  position: absolute;
  inset: 0;
  filter: blur(80px);
  opacity: 0.6;
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  animation: moveBlob 20s infinite alternate ease-in-out;
}
.b1 { background: var(--accent-primary); top: -10%; left: -10%; }
.b2 { background: var(--accent-secondary); bottom: -10%; right: -10%; animation-delay: -5s; }
.b3 { background: #4f46e5; top: 40%; left: 30%; animation-delay: -10s; }

@keyframes moveBlob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, -50px) scale(1.2); }
  66% { transform: translate(-50px, 100px) scale(0.8); }
  100% { transform: translate(0, 0) scale(1); }
}

.overlay-glass {
  position: relative;
  width: 90%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: rotateRing 15s linear infinite;
}

.orbital-ring::after {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px #fff;
}

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

.overlay-content {
  padding: 5rem 3rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  z-index: 10;
}

.creative-icon {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 2rem;
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; text-shadow: 0 0 20px #fff; }
}

.overlay-title.script-font {
  font-family: var(--font-script);
  font-size: 4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.overlay-subtitle {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 3rem;
}

.modern-btn {
  background: white;
  color: #020617;
  padding: 1.2rem 2.5rem;
  border: none;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.modern-btn:hover {
  letter-spacing: 4px;
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

/* Background Animation */
.royal-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(135deg, #020617 0%, #1e1b4b 50%, #020617 100%),
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 40%);
  background-attachment: fixed;
}

.pattern-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
  opacity: 0.3;
  animation: floatBG 20s ease-in-out infinite alternate;
}

@keyframes floatBG {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

/* Sparkling JS effect */
#sparkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sparkle-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(124, 58, 237, 0.8);
  animation: twinkle linear infinite;
  opacity: 0;
}

@keyframes twinkle {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }

  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* Hanging Lanterns - Now Glowing Orbs */
.lantern-container {
  position: absolute;
  top: -20px;
  z-index: 10;
  transform-origin: top center;
  animation: swing 10s ease-in-out infinite alternate;
}

.lantern-container.left {
  left: 10%;
  animation-delay: 0s;
}

.lantern-container.right {
  right: 10%;
  animation-delay: 3s;
}

.string {
  width: 1px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
  margin: 0 auto;
}

.lantern {
  font-size: 2.5rem;
  text-align: center;
  margin-top: -5px;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 1));
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
  }

  to {
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 1));
  }
}

@keyframes swing {
  from {
    transform: rotate(2deg);
  }

  to {
    transform: rotate(-2deg);
  }
}

/* Base Layout Container */
.royal-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  position: relative;
  z-index: 5;
}

.royal-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 7rem;
  width: 100%;
}

/* High Design Borders */
.ornate-border {
  position: relative;
  width: 100%;
  padding: 6rem 3rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(124, 58, 237, 0.1);
  text-align: center;
  border-radius: 40px;
}

.ornate-border.inner-light {
  background: rgba(30, 27, 75, 0.4);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.ornate-border.hero-card {
  padding: 4rem 2rem;
  max-width: 850px;
}

.corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(124, 58, 237, 0.5);
  border-radius: 20px;
}

.corner.tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.corner.tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.corner.bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.corner.br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

/* Hero Elements */
.bismillah {
  font-family: var(--font-display);
  font-size: 2.8rem;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
}

.tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--text-sub);
  margin-bottom: 4rem;
  opacity: 0.8;
}

.couple-names-block {
  margin: 4rem 0;
}

.royal-name {
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1.1;
  background: linear-gradient(to bottom, #fff, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  padding: 0.1em 0;
}

.royal-amp {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--text-light);
  margin: 0.5rem 0;
  opacity: 0.4;
}

.invitation-ornament {
  font-size: 4rem;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 3rem 0;
  opacity: 0.5;
}

.royal-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.royal-date .month,
.royal-date .year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 5px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.royal-date .day {
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: #fff;
  padding: 0 2.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.date-islamic {
  font-size: 1.2rem;
  color: var(--text-sub);
  letter-spacing: 3px;
  font-weight: 300;
}

/* Sections */
.section-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.section-heading.massive {
  font-size: 4.5rem;
  margin-bottom: 3rem;
}

.gold-line {
  width: 150px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  margin: 0 auto 4rem;
}

.gold-line.vertical {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--accent-primary), var(--accent-secondary), transparent);
}

.royal-grid {
  display: grid;
  gap: 5rem;
}

@media (min-width: 768px) {
  .royal-grid {
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
  }
}

.pillar-box h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.pillar-box p {
  color: var(--text-sub);
  font-size: 1.1rem;
  max-width: 350px;
  margin: 0 auto;
}

.pillar-divider {
  background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
  height: 200px;
  width: 1px;
  display: none;
}

@media (min-width: 768px) {
  .pillar-divider {
    display: block;
  }
}

/* Single Frame Couple Layout */
.ornate-border.single-frame {
  max-width: 950px;
}

.couple-unified-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .couple-unified-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
  }
}

.person-side {
  flex: 1;
}

.frame-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.panel-name {
  font-family: var(--font-display);
  font-size: 3rem;
  background: linear-gradient(to bottom, #fff, var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.diamond-divider {
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  transform: rotate(45deg);
  box-shadow: 0 0 20px var(--accent-primary);
}

.panel-desc {
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 2;
  font-weight: 300;
}

/* Event Cards */
.event-cards {
  display: grid;
  gap: 4rem;
  width: 100%;
}

@media (min-width: 768px) {
  .event-cards {
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
  }
}

.event-card {
  padding: 7rem 2.5rem 5rem;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.event-card:hover {
  transform: translateY(-20px);
  border-color: var(--accent-primary);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.2);
}

.ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(124, 58, 237, 0.1);
  padding: 1.2rem 0;
  font-family: var(--font-display);
  color: var(--accent-secondary);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.ribbon.gold {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-weight: 900;
}

.event-icon {
  font-size: 5rem;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 20px var(--accent-primary));
}

.event-details .time {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.event-details .venue {
  font-size: 1.1rem;
  color: var(--text-sub);
  margin-bottom: 3.5rem;
  font-weight: 300;
}

.royal-btn {
  padding: 1.4rem 4rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-family: var(--font-display);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 2px;
  transition: all 0.4s;
  border: none;
  font-weight: 700;
}

.royal-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

/* Footer */
.royal-footer {
  text-align: center;
  padding: 5rem 1rem 4rem;
  background: rgba(1, 4, 19, 0.9);
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  backdrop-filter: blur(15px);
}

.insha {
  font-family: var(--font-display);
  font-size: 2.2rem;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.diamond-divider.small {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  transform: rotate(45deg);
  margin: 1.5rem auto;
  box-shadow: 0 0 10px var(--accent-primary);
}

.footer-couple {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.footer-prayer {
  font-size: 0.95rem;
  color: var(--text-sub);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 1px;
}

.powered {
  margin-top: 3rem;
  opacity: 0.4;
  font-size: 0.75rem !important;
}

.powered a {
  color: var(--accent-secondary);
  text-decoration: none;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Music toggle */
.music-toggle {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 70px;
  height: 70px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.music-toggle.playing {
  animation: pulseNeon 2s infinite;
}

@keyframes pulseNeon {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }

  70% {
    box-shadow: 0 0 0 30px rgba(124, 58, 237, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

@media (max-width: 768px) {
  .section-heading.massive { font-size: 3.2rem; }
  .gold-line.vertical { display: none !important; }
  .frame-divider { 
    width: 100%;
    flex-direction: row;
    gap: 1rem;
    margin: 2rem 0;
  }
}

@media (max-width: 480px) {
  .royal-content { padding: 4rem 1rem; }
  .ornate-border { padding: 4rem 1.2rem; }
  .royal-name { font-size: 3.8rem; }
  .royal-date .day { font-size: 3.8rem; padding: 0 1rem; }
  .section-heading.massive { font-size: 2.2rem; }
}