/* style.css – Premium Dark Wedding Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #dfba6b;
  --gold-accent: #f3c66f;
  --orange-gradient: linear-gradient(135deg, #ffbd59 0%, #ff914d 100%);
  --deep-navy: #0e1626;
  --card-bg: rgba(19, 30, 49, 0.7);
  --card-border: rgba(223, 186, 107, 0.2);
  --text-main: #f0ede8;
  --text-muted: #a4b3c6;
}

body {
  background: var(--deep-navy);
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Body is locked (no scroll) until the invitation is opened */
body.locked {
  overflow: hidden;
  height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
}

.loader-icon {
  font-size: 3rem;
  color: var(--gold);
  animation: pulseSpin 2s infinite;
}

@keyframes pulseSpin {
  0% {
    transform: scale(0.8) rotate(0);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }

  100% {
    transform: scale(0.8) rotate(360deg);
    opacity: 0.7;
  }
}

.loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 6px;
  color: var(--text-main);
  margin-top: 12px;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(223, 186, 107, 0.15);
  margin: 20px auto 0;
  border-radius: 4px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 40px;
  height: 100%;
  background: var(--gold);
  animation: slideBar 1.8s infinite;
}

@keyframes slideBar {
  0% {
    transform: translateX(-40px);
  }

  100% {
    transform: translateX(120px);
  }
}

/* ============================= */
/* INVITATION COVER (gate)       */
/* ============================= */
#invitation-cover {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(rgba(14, 22, 36, 0.75), rgba(7, 11, 19, 0.94)),
    url('assets/Firefly.png') no-repeat center center;
  background-size: cover;
}

.cover-content {
  max-width: 460px;
  width: 100%;
}

.cover-frame {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 56px 32px;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
}

.cover-ornament {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.cover-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.cover-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-main);
  line-height: 1.25;
}

.cover-names .ampersand {
  color: var(--gold);
  font-style: italic;
  display: block;
  font-size: 1.4rem;
  margin: 6px 0;
  font-family: 'Cormorant Garamond', serif;
}

.cover-sub {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 32px;
}

.btn-invite {
  background: var(--gold);
  color: var(--deep-navy);
  border-color: var(--gold);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.btn-invite i {
  margin-right: 8px;
}

.btn-invite:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .cover-names {
    font-size: 2.2rem;
  }

  .cover-frame {
    padding: 40px 20px;
  }
}

/* ============================= */
/* RING / SPARKLE PARTICLE LAYER */
/* ============================= */
#ring-particles-container {
  position: fixed;
  inset: 0;
  z-index: 2; /* Sits above background, below interactive contents */
  pointer-events: none;
  overflow: hidden;
}

.ring-particle {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 8px rgba(223, 186, 107, 0.4);
}

/* Gold gem dot on top of the ring */
.ring-particle::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--gold-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-accent);
}

.ring-particle.spark {
  border: none;
  box-shadow: none;
  color: var(--gold-accent);
  text-shadow: 0 0 8px rgba(243, 198, 111, 0.7);
}

.ring-particle.spark::before {
  content: none;
}

/* Floating Music Button */
.floating-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.floating-btn.playing {
  background: var(--gold);
  color: var(--deep-navy);
  border-color: var(--gold);
}

.music-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(14, 22, 38, 0.9);
  color: var(--text-main);
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  border: 1px solid var(--card-border);
}

.floating-btn:hover .music-tooltip {
  opacity: 1;
}

/* Sections */
section {
  padding: 90px 0;
  position: relative;
}

.bg-soft,
.bg-blush,
.bg-lilac {
  background: transparent;
  /* Uniformly dark canvas per references */
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--text-main);
}

.section-title p {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 4px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 12px;
}

/* Elegant Simple Sparkle Line */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto;
}

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

.gold-divider .star {
  color: var(--gold);
  font-size: 0.8rem;
}

/* HERO SECTION */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(14, 22, 36, 0.6), rgba(14, 22, 36, 0.9)),
    url('assets/Firefly.png') no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.hero-container {
  max-width: 800px;
  padding: 20px;
  position: relative;
  z-index: 3;
}

.arabic {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.arabic-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.subtitle {
  letter-spacing: px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}

.couple-names h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text-main);
  margin: 20px 0;
  line-height: 1.2;
}

.couple-names h1 span.ampersand {
  color: var(--gold);
  display: block;
  font-size: 2.2rem;
  margin: 8px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.hero-details p {
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.hero-details .venue {
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 16px;
  font-size: 0.85rem;
}

.scroll-indicator {
  margin-top: 60px;
  animation: bounce 2.4s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.scroll-indicator i {
  color: var(--gold);
  font-size: 1.4rem;
}

/* Verses */
.verse-card {
  text-align: center;
  padding: 50px 30px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  max-width: 800px;
  margin: 0 auto;
}

.verse-arabic {
  font-family: 'Amiri', serif;
  font-size: 3rem;
  color: var(--gold);
}

.verse-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-style: italic;
  color: var(--text-main);
  margin: 16px 0 8px;
}

.verse-source {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Profile Section */
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.profile-card {
  text-align: center;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 48px 32px;
  border: 1px solid var(--card-border);
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 2px solid var(--gold);
  padding: 4px;
}

.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--text-main);
}

.profile-tag {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin: 8px 0 20px;
}

.profile-parents {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.profile-parents span {
  color: var(--text-main);
  font-weight: 500;
}

/* Countdown Grid */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 650px;
  margin: 0 auto;
}

.countdown-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px 8px;
  text-align: center;
  border: 1px solid var(--card-border);
  position: relative;
}

/* Corner Accents matching reference image 3 */
.countdown-box::before,
.countdown-box::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(223, 186, 107, 0.4);
}

.countdown-box::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.countdown-box::after {
  bottom: 8px;
  right: 8px;
  border-left: 0;
  border-top: 0;
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  font-weight: 400;
  background: var(--orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-top: 12px;
}

/* Event Cards */
.event-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 32px;
  border: 1px solid var(--card-border);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.event-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.event-badge span {
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  font-size: 0.75rem;
  border: 1px solid var(--card-border);
  padding: 6px 16px;
  border-radius: 4px;
  text-transform: uppercase;
}

.event-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 32px;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.event-info-item {
  display: flex;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-info-item:last-child {
  border-bottom: none;
}

.event-info-item .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-right: 20px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.event-info-item .details-wrap {
  display: flex;
  flex-direction: column;
}

.event-info-item .label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}

.event-info-item .value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-main);
  margin-top: 4px;
}

.event-info-item .sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Action Buttons */
.event-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
  text-transform: uppercase;
}

.btn-gold {
  background: transparent;
  color: var(--text-main);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--deep-navy);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* RSVP / WhatsApp button — now filled by default with a richer hover state */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%);
  border-color: #1ebe5d;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1ebe5d 0%, #159647 100%);
  border-color: #159647;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.btn-lg {
  padding: 16px 40px;
}

/* RSVP Area */
.rsvp-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  margin-top: 40px;
  border: 1px solid var(--card-border);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--text-main);
  margin-top: 12px;
}

.rsvp-section p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 12px auto 28px;
  font-size: 0.9rem;
}

/* Gallery Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.85);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.gallery-wide {
  grid-column: span 2;
}

/* Dark Footer Architecture */
#footer {
  color: var(--text-main);
  padding: 80px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #070b13;
  z-index: 1;
}

#footer .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  letter-spacing: 8px;
  color: var(--gold);
}

#footer .thanks {
  font-size: 2.2rem;
  font-family: 'Cormorant Garamond', serif;
  margin: 24px 0 12px;
  color: var(--text-main);
}

#footer .dua {
  font-size: 0.95rem;
  color: var(--gold-accent);
  margin-top: 20px;
  font-style: italic;
}

#footer .copy {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 48px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Responsive Media Controls */
@media (max-width: 800px) {
  .couple-names h1 {
    font-size: 3.5rem;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .countdown-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 320px;
  }

  .event-card {
    padding: 32px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .couple-names h1 {
    font-size: 2.8rem;
  }

  .section-title h2 {
    font-size: 2.4rem;
  }

  .verse-arabic {
    font-size: 2.2rem;
  }

  .profile-name {
    font-size: 2.2rem;
  }
}

/* Lightbox Premium Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(14, 22, 38, 0.95);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--text-main);
  font-size: 40px;
  font-weight: 300;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-close:hover {
  color: var(--gold);
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: var(--text-main);
  font-weight: bold;
  font-size: 28px;
  transition: 0.3s;
  user-select: none;
  z-index: 10001;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold);
}

@media (max-width: 768px) {

  .lightbox-prev,
  .lightbox-next {
    font-size: 22px;
    padding: 12px;
  }

  .lightbox-close {
    top: 16px;
    right: 20px;
    font-size: 32px;
  }
}