/* === Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #0a0a0a;
  color: #f5f0e8;
  overflow-x: hidden;
}

/* === Particles === */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #c9a84c;
  border-radius: 50%;
  opacity: 0;
  animation: float 8s infinite;
}
@keyframes float {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* === Cover === */
.cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cover-inner {
  padding: 40px;
}
.cover-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 20px;
}
.cover-ornament {
  font-size: 2rem;
  color: #c9a84c;
  margin: 20px 0;
  opacity: 0.6;
}
.cover-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}
.cover-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: #f5f0e8;
  line-height: 1.2;
  margin-bottom: 16px;
}
.cover-date {
  font-size: 1rem;
  letter-spacing: 4px;
  color: #c9a84c;
  font-weight: 300;
  margin-bottom: 40px;
}
.btn-open {
  padding: 16px 48px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-open::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.btn-open:hover::before { left: 100%; }
.btn-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}

/* === Content === */
.content {
  display: none;
  position: relative;
  z-index: 1;
}
.content.show { display: block; }

/* === Section Common === */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  color: #c9a84c;
  letter-spacing: 2px;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: radial-gradient(ellipse at center, #141210 0%, #0a0a0a 70%);
}
.hero-frame {
  border: 1px solid rgba(201,168,76,0.3);
  padding: 60px 50px;
  max-width: 600px;
  position: relative;
}
.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: #c9a84c;
  border-style: solid;
}
.hero-frame::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.hero-frame::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}
.ornament-top, .ornament-bottom {
  color: #c9a84c;
  font-size: 1.5rem;
  opacity: 0.5;
  margin: 10px 0;
}
.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 24px;
}
.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.3;
}
.name-groom, .name-bride {
  display: block;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-style: italic;
  color: #f5f0e8;
}
.ampersand {
  display: block;
  font-size: 2rem;
  color: #c9a84c;
  margin: 8px 0;
  font-style: italic;
}
.hero-invite {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.8;
  margin-top: 24px;
  font-weight: 300;
}

/* === Couple === */
.couple {
  padding: 100px 24px;
  background: #0d0d0b;
}
.couple-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.couple-card { text-align: center; flex: 1; min-width: 200px; max-width: 280px; }
.couple-photo { margin-bottom: 20px; }
.photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1814, #2a2520);
  border: 2px solid rgba(201,168,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: #c9a84c;
  margin: 0 auto;
}
.couple-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #f5f0e8;
  margin-bottom: 6px;
}
.couple-card p {
  font-size: 0.85rem;
  color: #888;
  font-weight: 300;
}
.couple-divider { flex-shrink: 0; }
.divider-heart {
  font-size: 1.5rem;
  color: #c9a84c;
  opacity: 0.6;
}

/* === Countdown === */
.countdown-section {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a, #0d0d0b);
}
.countdown-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #999;
  font-style: italic;
  margin-bottom: 40px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.countdown-item {
  width: 100px;
  padding: 20px 10px;
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.05);
}
.countdown-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #c9a84c;
  line-height: 1;
  margin-bottom: 6px;
}
.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
}

/* === Events === */
.events {
  padding: 100px 24px;
  background: #0a0a0a;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.event-card {
  text-align: center;
  padding: 40px 30px;
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.03);
  transition: all 0.3s;
}
.event-card:hover {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.06);
}
.event-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.event-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #c9a84c;
  margin-bottom: 14px;
}
.event-time {
  font-size: 1rem;
  font-weight: 500;
  color: #f5f0e8;
  margin-bottom: 8px;
}
.event-venue {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 4px;
}
.event-address {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
  font-weight: 300;
}
.btn-map {
  display: inline-block;
  padding: 8px 24px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a84c;
  border: 1px solid rgba(201,168,76,0.4);
  text-decoration: none;
  transition: all 0.3s;
}
.btn-map:hover {
  background: rgba(201,168,76,0.1);
  border-color: #c9a84c;
}

/* === Venue === */
.venue {
  padding: 100px 24px;
  background: #0d0d0b;
  text-align: center;
}
.venue-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 50px 40px;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.04);
}
.venue-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #c9a84c;
  margin-bottom: 10px;
}
.venue-address {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 6px;
  font-weight: 300;
}
.venue-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 28px;
  font-weight: 300;
}
.btn-map-large {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
  text-decoration: none;
  transition: all 0.3s;
}
.btn-map-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}

/* === Gallery === */
.gallery {
  padding: 100px 24px;
  background: #0d0d0b;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 0 auto;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,0.15);
  transition: all 0.4s;
}
.gallery-item img:hover {
  border-color: rgba(201,168,76,0.4);
  transform: scale(1.03);
}
/* === Story === */
.story {
  padding: 80px 24px;
  text-align: center;
  background: #0a0a0a;
}
.story-text {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 16px;
  font-weight: 300;
  font-style: italic;
}
.gallery-item { overflow: hidden; }
.gallery-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1814, #2a2520);
  border: 1px solid rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #666;
  transition: all 0.4s;
}
.gallery-placeholder:hover {
  border-color: rgba(201,168,76,0.4);
  transform: scale(1.03);
}

/* === RSVP === */
.rsvp {
  padding: 100px 24px;
  background: #0a0a0a;
  text-align: center;
}
.rsvp-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-top: -30px;
  margin-bottom: 40px;
  font-weight: 300;
}
.rsvp-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  padding: 16px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #f5f0e8;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  outline: none;
  transition: border-color 0.3s;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: #c9a84c;
}
.rsvp-form select { cursor: pointer; }
.rsvp-form select option { background: #1a1a1a; color: #f5f0e8; }
.rsvp-form textarea { resize: vertical; }
.btn-rsvp {
  padding: 16px 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}

/* === Wishes === */
.wishes {
  padding: 80px 24px;
  background: #0d0d0b;
}
.wishes-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c9a84c33 transparent;
}
.wish-item {
  padding: 20px 24px;
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.03);
}
.wish-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #c9a84c;
  margin-bottom: 6px;
}
.wish-message {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 300;
  line-height: 1.6;
}
.wish-time {
  font-size: 0.75rem;
  color: #555;
  margin-top: 8px;
}

/* === Footer === */
.footer {
  padding: 60px 24px;
  text-align: center;
  background: #0a0a0a;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.footer-ornament {
  font-size: 1.5rem;
  color: #c9a84c;
  opacity: 0.4;
  margin-bottom: 20px;
}
.footer-thanks {
  font-size: 0.9rem;
  color: #888;
  font-weight: 300;
  margin-bottom: 10px;
}
.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: #c9a84c;
  margin-bottom: 20px;
}
.footer-copy {
  font-size: 0.75rem;
  color: #444;
}

/* === Music Toggle === */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: #c9a84c;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-toggle:hover {
  background: rgba(201,168,76,0.25);
}
.music-toggle.playing {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
}

/* === Scroll Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Mobile === */
@media (max-width: 768px) {
  .hero-frame { padding: 40px 24px; }
  .couple-grid { flex-direction: column; }
  .couple-divider { transform: rotate(90deg); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .countdown-item { width: 75px; }
}

@media (max-width: 480px) {
  .countdown { gap: 12px; }
  .countdown-item { width: 65px; padding: 14px 6px; }
  .countdown-number { font-size: 2rem; }
}
