:root {
  --bg-deep: #140a2e;
  --bg-mid: #2a1d52;
  --bg-soft: #4b3b74;
  --gold: #d8b56d;
  --gold-soft: #f0dfb2;
  --white: #f8f6ff;
  --silver: rgba(235, 233, 247, 0.78);
  --glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(216, 181, 109, 0.65);
  --shadow: 0 20px 40px rgba(7, 5, 20, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, #493a73 0%, #1a1235 40%, #0f0824 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand,
.kicker {
  font-family: "Playfair Display", serif;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--gold-soft);
  margin: 0 0 2rem;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: linear-gradient(90deg, rgba(20, 10, 46, 0.62), rgba(54, 37, 96, 0.3));
  border-bottom: 1px solid rgba(216, 181, 109, 0.25);
}

.navbar {
  width: min(1200px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.menu-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 2.4rem;
  height: 2.4rem;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 15, 54, 0.95);
  border-bottom: 1px solid rgba(216, 181, 109, 0.2);
  display: none;
  flex-direction: column;
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--gold-soft);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem 1rem 2rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../Uploads/IMG_0168.jpg.jpeg") center/cover no-repeat;
  filter: blur(30px) saturate(1.1) brightness(0.45);
  transform: scale(1.12);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(16, 7, 38, 0.88));
  z-index: -1;
}

.hero-content {
  max-width: 860px;
}

.hero-image-wrap {
  margin-bottom: 1.4rem;
}

.hero-image-frame {
  width: min(72vw, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  padding: 0.6rem;
  border: 2px solid var(--border-glow);
  box-shadow: 0 0 30px rgba(216, 181, 109, 0.6), 0 0 75px rgba(130, 95, 220, 0.45);
  position: relative;
  background: linear-gradient(145deg, rgba(216, 181, 109, 0.25), rgba(79, 53, 136, 0.3));
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.floral-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(216, 181, 109, 0.5);
  animation: spin 24s linear infinite;
}

.floral-ring-2 {
  inset: -24px;
  animation-direction: reverse;
  animation-duration: 30s;
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.kicker {
  color: var(--gold-soft);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.88rem;
  margin: 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin: 0.8rem 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.7vw, 1.5rem);
  color: var(--silver);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-gold {
  background: linear-gradient(120deg, #cda95c, #e5c982);
  color: #26193f;
  box-shadow: 0 10px 24px rgba(216, 181, 109, 0.38);
}

.btn-outline-gold {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(216, 181, 109, 0.7);
  color: var(--gold-soft);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  border-radius: 1.1rem;
}

.event-details {
  background: linear-gradient(180deg, rgba(25, 14, 53, 0.6), rgba(45, 28, 86, 0.45));
}

.accounting-decor {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.25rem;
  color: rgba(216, 181, 109, 0.8);
  margin-bottom: 1.5rem;
  animation: floatIcons 5s ease-in-out infinite;
}

@keyframes floatIcons {
  50% {
    transform: translateY(-6px);
  }
}

.details-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.detail-card {
  padding: 1.2rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.detail-card i {
  color: var(--gold);
  font-size: 1.35rem;
}

.detail-card h3 {
  margin: 0.65rem 0 0.4rem;
}

.detail-card p {
  margin: 0;
  color: var(--silver);
  line-height: 1.5;
}

.about-grid {
  display: grid;
  gap: 1rem;
}

.about-story,
.legacy-card {
  padding: 1.3rem;
}

.about-story p {
  color: var(--silver);
  line-height: 1.7;
}

.legacy-card h3 {
  margin-top: 0;
  color: var(--gold-soft);
}

.legacy-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.legacy-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--silver);
}

.legacy-card i {
  color: var(--gold);
  margin-top: 0.2rem;
}

.quote {
  margin: 2rem auto;
  max-width: 820px;
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--gold-soft);
  font-style: italic;
  border-left: 4px solid rgba(216, 181, 109, 0.6);
  border-right: 4px solid rgba(216, 181, 109, 0.6);
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background: rgba(25, 16, 49, 0.55);
}

.timeline h3 {
  margin: 0 0 1rem;
  color: var(--gold-soft);
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  position: relative;
  padding-bottom: 1.05rem;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 15px;
  bottom: 0;
  width: 2px;
  background: rgba(216, 181, 109, 0.55);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe9b9, #ca9e4f);
  box-shadow: 0 0 12px rgba(216, 181, 109, 0.7);
  margin-top: 3px;
}

.timeline-item h4 {
  margin: 0 0 0.3rem;
}

.timeline-item p {
  margin: 0;
  color: var(--silver);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  margin: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(138, 106, 217, 0.7);
  box-shadow: 0 0 18px rgba(124, 92, 203, 0.6);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.countdown {
  text-align: center;
  background: linear-gradient(180deg, rgba(33, 20, 67, 0.72), rgba(17, 9, 38, 0.8));
}

.timer-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
  margin: 0 auto;
}

.timer-card {
  border-radius: 0.95rem;
  padding: 1rem 0.7rem;
  background: linear-gradient(150deg, rgba(99, 63, 185, 0.45), rgba(216, 181, 109, 0.25));
  border: 1px solid rgba(216, 181, 109, 0.6);
  box-shadow: 0 0 18px rgba(137, 107, 212, 0.4);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(216, 181, 109, 0.5);
  }
}

.timer-card span {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--gold-soft);
}

.timer-card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown-message {
  margin-top: 1rem;
  color: var(--gold-soft);
}

.venue-grid {
  display: grid;
  gap: 1rem;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 1rem;
}

.venue-info {
  padding: 1.2rem;
}

.venue-info h3,
.venue-info h4 {
  color: var(--gold-soft);
}

.venue-info p,
.venue-info li {
  color: var(--silver);
  line-height: 1.65;
}

.venue-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.venue-info i {
  color: var(--gold);
  margin-right: 0.45rem;
}

.share-strip {
  padding: 1rem;
  text-align: center;
}

.share-strip h3 {
  margin: 0 0 0.75rem;
  color: var(--gold-soft);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.share-buttons a,
.share-buttons button,
.circle-btn {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(216, 181, 109, 0.75);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.share-buttons a:hover,
.share-buttons button:hover,
.circle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(216, 181, 109, 0.3);
}

.floating-controls {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.6rem;
  z-index: 90;
}

#back-to-top {
  opacity: 0;
  visibility: hidden;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.site-footer {
  padding: 2rem 1rem 2.4rem;
  text-align: center;
  color: rgba(245, 242, 255, 0.85);
  border-top: 1px solid rgba(216, 181, 109, 0.2);
  background: rgba(10, 6, 22, 0.56);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 3, 18, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 200;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  width: min(90vw, 780px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 1rem;
  border: 2px solid rgba(216, 181, 109, 0.8);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.2rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (min-width: 700px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
  }

  .nav-links a {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .venue-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .timer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-card:nth-child(4),
  .detail-card:nth-child(5) {
    grid-column: span 1;
  }
}
