:root {
  --bg: #03140b; /* Very dark rich emerald green almost black */
  --bg-surface: #062b1a; /* Emerald green surface */
  --bg-card: #0a3a25; /* Lighter emerald for cards */
  --text: #f9f5eb; /* Creamy white */
  --text-muted: #c4bca2;
  --accent: #e5c158; /* Gold */
  --accent-gold: #d4af37;
  --accent-gold-light: #f3e5ab;
  --gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa801b 100%);
  --glass: rgba(10, 58, 37, 0.4); /* Translucent green */
  --glass-border: rgba(212, 175, 55, 0.25); /* Gold glass border */
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Islamic Pattern Overlay */
.pattern-overlay {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23d4af37" fill-opacity="0.03"><path d="M30 30L15 15 30 0l15 15-15 15zm0 30L15 45 30 30l15 15-15 15zM0 30L-15 15 0 0l15 15L0 30zm60 0L45 15 60 0l15 15-15 15z"/></g></g></svg>');
  pointer-events: none;
  z-index: -2;
}

/* Ambient glow */
.light-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.light-beam {
  position: absolute;
  width: 60vh;
  height: 60vh;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, rgba(3,20,11,0) 70%);
  border-radius: 50%;
  top: -10vh;
  left: -10vh;
  animation: floatLight 15s infinite alternate ease-in-out;
}
.light-beam:nth-child(2) {
  top: auto;
  bottom: -10vh;
  left: auto;
  right: -10vh;
  animation-duration: 20s;
  animation-delay: -5s;
}

@keyframes floatLight {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 10vh) scale(1.2); }
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin: 0;
}

/* Virtual Card Reveal - Emerald envelope style */
#experience-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: visibility 1.2s;
  overflow: hidden;
  background: #000;
}

.card-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--bg-surface);
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}

.panel-left {
  left: 0;
  border-right: 2px solid var(--accent-gold);
}
.panel-right {
  right: 0;
  border-left: 2px solid var(--accent-gold);
}

.islamic-border {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212,175,55,0.2);
  pointer-events: none;
}

#experience-overlay.opened .panel-left { transform: translateX(-100%); }
#experience-overlay.opened .panel-right { transform: translateX(100%); }

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 500px;
  transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.card-seal {
  width: 90px;
  height: 90px;
  background: var(--gradient);
  border-radius: 50%;
  margin: 0 auto -45px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border: 3px solid #fff;
  animation: sealPulse 3s infinite alternate;
}

.card-seal span {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: #03140b;
}

@keyframes sealPulse {
  from { transform: scale(1); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
  to { transform: scale(1.05); box-shadow: 0 15px 30px rgba(212,175,55,0.4); }
}

.card-invitation {
  background: var(--bg-card);
  padding: 5rem 3rem 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  position: relative;
}

.bismillah-small {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.card-invitation__label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--accent-gold-light);
  display: block;
  margin-bottom: 1rem;
}

.card-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 7vw, 4rem);
  line-height: 1.3;
  padding: 0.2em 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.card-invitation__line {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  margin: 1.5rem auto;
}

.card-invitation__date {
  font-family: 'Jost', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn--gold {
  background: var(--gradient);
  color: #03140b !important;
  border: none;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

#experience-overlay.opened .card-content {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
}

/* Petals */
#petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.petal {
  position: absolute;
  color: var(--accent-gold);
  opacity: 0.4;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Music Toggle */
.music-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.music-toggle:hover {
  transform: scale(1.1);
  border-color: var(--accent-gold);
}
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.music-bars span {
  width: 2px;
  background: var(--accent-gold);
  height: 3px;
  border-radius: 1px;
}
.music-toggle.playing span { animation: barAnim 0.6s infinite alternate; }
.music-toggle.playing span:nth-child(2) { animation-delay: 0.2s; }
.music-toggle.playing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes barAnim { to { height: 18px; } }

/* Hero Section */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 2rem;
  position: relative;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.hero__bismillah {
  font-family: 'Amiri', serif;
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.host-welcome {
  margin-bottom: 3rem;
}

.host-names {
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.3rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.host-address {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.divider-leaf {
  width: 100px;
  height: 20px;
  margin: 0 auto 1.5rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="none" stroke="%23d4af37" stroke-width="1.5"><path d="M0 10h40M60 10h40M45 5c5 0 5 10 10 10s5-10 10-10"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.welcome-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero__title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.hero__subtitle {
  font-size: 1.3rem;
  color: var(--accent-gold-light);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* General Sections */
.section {
  padding: 4rem 0;
  position: relative;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section__title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  text-align: center;
  margin-bottom: 4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Family Grid (The Couple) */
.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.family-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 4rem 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  transition: transform 0.4s;
}
.family-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.card-crown {
  width: 60px;
  height: 40px;
  margin: 0 auto 1.5rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none" stroke="%23d4af37" stroke-width="1.5"><path d="M30 5L15 35M30 5L45 35M10 20l20-15 20 15" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.family-card h3 {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
}

.relation-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold-light);
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.relation-and {
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin: 1rem 0;
}

.names {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.addr {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Jost', sans-serif;
}

.divider-small {
  width: 40px;
  height: 1px;
  background: var(--glass-border);
  margin: 1.5rem auto;
}

/* Event Section */
.event-section {
  background: var(--bg-surface);
  position: relative;
}
.event-section::before, .event-section::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}
.event-section::before { top: 0; }
.event-section::after { bottom: 0; opacity: 0.5; }

.event-container {
  max-width: 800px;
  margin: 0 auto;
}

.event-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 4rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
}

.event-arch-decor {
  width: 80px;
  height: 60px;
  margin: 0 auto 2rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 60" fill="none" stroke="%23d4af37" stroke-width="2"><path d="M10 60V30c0-16.6 13.4-30 30-30s30 13.4 30 30v30" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

.event-item {
  margin-bottom: 2.5rem;
}
.event-item .label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--accent-gold-light);
  display: block;
  margin-bottom: 0.8rem;
}
.event-item h3 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.golden-text {
  color: var(--accent-gold) !important;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
}
.event-item .venue {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.event-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.event-footer p {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--accent-gold);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.countdown__unit {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.countdown__value {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--accent-gold);
  line-height: 1;
}
.countdown__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Location Setting */
.location-card {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.location-content {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-content h3 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.location-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.location-image {
  flex: 1;
  background: #021a10;
  display: flex;
  position: relative;
  overflow: hidden;
}
.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.location-card:hover .location-image img {
  transform: scale(1.08);
}

/* Footer */
.footer {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  background: var(--bg);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--gradient);
}
.footer h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.footer p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .family-grid, .location-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .hero { padding-top: 5rem; }
  .countdown { gap: 1rem; }
  .countdown__unit { width: 80px; height: 80px; }
  .countdown__value { font-size: 1.8rem; }
  .card-invitation { padding: 4rem 1.5rem 2rem; }
  .location-content { padding: 3rem 1.5rem; }
}