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

/* Language Toggle */
.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
  background: white;
  color: var(--color-primary);
}

:root {
  --color-primary: #1a1a1a;
  --color-secondary: #d4a574;
  --color-accent: #8b7355;
  --color-light: #faf9f7;
  --color-muted: #6b6b6b;
  --color-champagne: #d4c4a8;
  --color-sage: #3a5a40;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: var(--color-primary);
  line-height: 1.6;
}

/* Panel Base Styles */
.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.panel-content {
  max-width: 800px;
  padding: 4rem 2rem;
  text-align: center;
}

/* Hero Panel with Video */
.hero-panel {
  background-color: var(--color-primary);
  color: white;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.pre-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.names {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  line-height: 1;
}

.tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: white;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Details Panel */
.details-panel {
  background-color: var(--color-champagne);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.invitation-text {
  font-size: 1.3rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.date {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 2rem auto;
}

.location {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.location-detail {
  font-size: 1.15rem;
  color: var(--color-muted);
}

/* Map Link */
.map-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  text-decoration: none;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.map-link:hover {
  color: var(--color-secondary);
}

.map-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-secondary);
  transition: all 0.3s ease;
  pointer-events: none;
}

.map-circle iframe {
  width: 200px;
  height: 200px;
  border: none;
  margin-left: -40px;
  margin-top: -40px;
  pointer-events: none;
}

.map-link:hover .map-circle {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.map-link span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Event Times - Large Style */
.event-time-large {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0.5rem 0;
  color: var(--color-primary);
}

/* Calendar Button - Same as RSVP */
.calendar-btn {
  display: inline-block;
  margin: 1.5rem 0 1rem;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--color-sage);
  color: white;
  border: 2px solid var(--color-sage);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-btn:hover {
  background: var(--color-sage);
  color: var(--color-champagne);
  text-shadow: 0 0 10px rgba(212, 196, 168, 0.8), 0 0 20px rgba(212, 196, 168, 0.5);
}

.rsvp-request {
  font-size: 1.15rem;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 2rem;
}

.event-times {
  margin: 1.5rem 0;
}

.event-time {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

/* Story Panel */
.story-panel {
  background-color: var(--color-primary);
  color: white;
}

.story-panel .section-title {
  color: white;
}

.story-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.story-text + .story-text {
  margin-top: 1.5rem;
}

/* Content with image behind text */
.content-with-image {
  position: relative;
  overflow: hidden;
}

.content-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.content-with-image > *:not(.content-bg-image) {
  position: relative;
  z-index: 1;
}

/* Registry Image */
.registry-image {
  margin-top: 2.5rem;
}

.registry-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* Schedule Styles */
.schedule {
  margin-top: 2rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-day {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.schedule-event {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  padding-right: 1rem;
}

.schedule-time {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* Gift Panel */
.gift-panel {
  background-color: #a8bfa0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--color-primary);
}

.gift-panel .section-title {
  color: var(--color-primary);
}

.gift-message {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.gift-options {
  margin: 2rem 0;
}

.gift-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: var(--color-primary);
  border: 3px solid var(--color-primary);
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.gift-btn:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(212, 196, 168, 0.8), 0 0 20px rgba(212, 196, 168, 0.5);
}

.gift-icon {
  font-size: 1.2rem;
}

.gift-note {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 2rem;
}

/* FAQ Styles */
.faq-list {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-muted);
}

/* RSVP Button */
.rsvp-btn {
  margin-top: 2rem;
  padding: 1.75rem 6rem;
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--color-sage);
  color: white;
  border: 3px solid var(--color-sage);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rsvp-btn:hover {
  background: var(--color-sage);
  color: var(--color-champagne);
  text-shadow: 0 0 10px rgba(212, 196, 168, 0.8), 0 0 20px rgba(212, 196, 168, 0.5);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-sage);
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* Autocomplete */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  border-bottom: 1px solid #eee;
}

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

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-secondary);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
}

.rsvp-success {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(168, 191, 160, 0.15) 0%, rgba(212, 196, 168, 0.15) 100%);
  border-radius: 8px;
  margin: 1rem 0;
}

.rsvp-success p {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-names {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.2em;
}

/* Responsive */
@media (max-width: 768px) {
  .panel-content {
    padding: 3rem 1.5rem;
  }

  .pre-title {
    font-size: 0.75rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .gift-btn {
    padding: 0.875rem 2rem;
  }

  .registry-image img {
    max-width: 70vw;
  }

  .rsvp-btn {
    padding: 1.25rem 3rem;
    font-size: 1.4rem;
  }
}

/* Smooth scroll sections */
@media (prefers-reduced-motion: no-preference) {
  .panel {
    scroll-snap-align: start;
  }

  body {
    scroll-snap-type: y proximity;
  }
}
