/* ====================================
   Wedding Website - Dusty Rose & Gold
   ==================================== */

:root {
  /* Color Palette - Dusty Rose & Gold */
  --dusty-rose: #D4A5A5;
  --dusty-rose-light: #E8C4C4;
  --dusty-rose-dark: #B8898A;
  --gold: #C9A962;
  --gold-light: #E5D4A1;
  --gold-dark: #A68B45;
  --cream: #FDF8F5;
  --cream-dark: #F5EBE6;
  --white: #FFFFFF;
  --text-dark: #4A3F3F;
  --text-light: #7A6B6B;
  --text-muted: #9A8B8B;
  
  /* Typography - Romantic Fonts */
  --ff-script: 'Great Vibes', cursive;
  --ff-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --ff-heading-zh: 'LXGW WenKai', 'ZCOOL KuaiLe', cursive, serif;
  --ff-body: 'Cormorant Garamond', 'Inter', Georgia, serif;
  --ff-body-zh: 'LXGW WenKai', 'ZCOOL KuaiLe', cursive, sans-serif;
  
  /* Spacing */
  --section-padding: 100px;
  --container-width: 1200px;
  
  /* Effects */
  --shadow-soft: 0 4px 20px rgba(180, 137, 138, 0.15);
  --shadow-medium: 0 8px 40px rgba(180, 137, 138, 0.2);
  --shadow-dreamy: 0 8px 32px rgba(212, 165, 165, 0.25), 0 0 80px rgba(232, 196, 196, 0.1);
  --transition: all 0.3s ease;
  --radius: 16px;
}





/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body-zh);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ====================================
   Navigation
   ==================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(180, 137, 138, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(180, 137, 138, 0.15);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dusty-rose-dark);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-family: var(--ff-body-zh);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 10px 18px;
  border-radius: 30px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--dusty-rose-dark);
  background: rgba(212, 165, 165, 0.15);
}

.nav-link.nav-cta {
  background: linear-gradient(135deg, var(--dusty-rose), var(--dusty-rose-dark));
  color: var(--white);
  padding: 10px 24px;
}

.nav-link.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 165, 165, 0.4);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dusty-rose-light) 0%, var(--cream) 50%, var(--gold-light) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a5a5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Floral Decorations */
.floral-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.floral-top-left {
  top: 0;
  left: 0;
  background: radial-gradient(ellipse at top left, rgba(212, 165, 165, 0.4) 0%, transparent 70%);
  width: 300px;
  height: 300px;
}

.floral-top-right {
  top: 0;
  right: 0;
  background: radial-gradient(ellipse at top right, rgba(201, 169, 98, 0.3) 0%, transparent 70%);
  width: 250px;
  height: 250px;
}

.floral-bottom-left {
  bottom: 0;
  left: 0;
  background: radial-gradient(ellipse at bottom left, rgba(201, 169, 98, 0.3) 0%, transparent 70%);
  width: 250px;
  height: 250px;
}

.floral-bottom-right {
  bottom: 0;
  right: 0;
  background: radial-gradient(ellipse at bottom right, rgba(212, 165, 165, 0.4) 0%, transparent 70%);
  width: 300px;
  height: 300px;
}

/* Hero Layout Wrapper */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  z-index: 10;
  padding: 20px 40px;
  max-width: 1200px;
  width: 100%;
}

.hero-content {
  text-align: left;
  flex: 1;
  max-width: 500px;
  animation: fadeInUp 1s ease-out;
}

.hero-image-side {
  flex-shrink: 0;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Hero Arched Image */
.hero-arch-image {
  width: 320px;
  height: 450px;
  position: relative;
  border-radius: 180px 180px 0 0;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(180, 137, 138, 0.35);
  border: 8px solid var(--white);
}

.hero-arch-image::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--gold);
  border-radius: 195px 195px 0 0;
  pointer-events: none;
}

.hero-arch-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(74, 63, 63, 0.1));
  pointer-events: none;
}

.hero-arch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-family: var(--ff-script);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: none;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.hero-names {
  font-family: var(--ff-heading);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-names .ampersand {
  display: block;
  font-size: 0.5em;
  color: var(--gold);
  margin: 10px 0;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin: 30px 0;
}

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

.divider-heart {
  color: var(--dusty-rose);
  font-size: 1.2rem;
}

.hero-date {
  font-family: var(--ff-script);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.hero-venue {
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--dusty-rose), var(--dusty-rose-dark));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(212, 165, 165, 0.4);
  transition: var(--transition);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 165, 165, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--dusty-rose);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--dusty-rose);
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

/* ====================================
   Main Content & Sections
   ==================================== */
.main-content {
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--section-padding) 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--ff-heading-zh);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gold-dark);
  letter-spacing: 0.15em;
  text-transform: none;
  font-family: var(--ff-script);
}

/* ====================================
   About Section
   ==================================== */
.about-section {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--gold-light);
  border-radius: var(--radius);
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
}

.about-text h3 {
  font-family: var(--ff-heading-zh);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-text p {
  font-family: var(--ff-body-zh);
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.9;
}

.about-signature {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dark);
}

.about-signature span {
  font-family: var(--ff-heading-zh);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--dusty-rose-dark);
}

/* ====================================
   Journey Timeline (inside About Section)
   ==================================== */
.journey-wrapper {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--cream-dark);
}

.journey-title {
  font-family: var(--ff-heading-zh);
  font-size: 1.8rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
}

.journey-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.journey-timeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}

.journey-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.journey-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 0 10px 40px rgba(180, 137, 138, 0.25);
  position: relative;
}

.journey-left .journey-photo {
  border-color: var(--gold-light);
}

.journey-right .journey-photo {
  border-color: var(--dusty-rose-light);
}

.journey-photo::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}

.journey-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-name {
  margin-top: 15px;
  font-family: var(--ff-heading-zh);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.journey-line {
  position: relative;
  width: 200px;
  height: 300px;
  flex-shrink: 0;
}

.timeline-path {
  width: 100%;
  height: 100%;
}

.timeline-path svg {
  width: 100%;
  height: 100%;
}

.timeline-meeting-point {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(180, 137, 138, 0.3);
  border: 2px solid var(--dusty-rose-light);
}

.meeting-year {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dusty-rose-dark);
  line-height: 1;
}

.meeting-heart {
  color: var(--dusty-rose);
  font-size: 1.2rem;
  margin-top: 5px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.journey-caption {
  text-align: center;
  font-family: var(--ff-body-zh);
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 30px;
  font-style: italic;
}

/* Journey Section Responsive */
@media (max-width: 768px) {
  .journey-timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  
  .journey-person {
    order: 1;
  }
  
  .journey-left {
    order: 1;
  }
  
  .journey-line {
    order: 2;
    width: 100px;
    height: 200px;
    transform: rotate(0);
  }
  
  .journey-right {
    order: 3;
  }
  
  .timeline-path svg {
    transform: rotate(90deg);
  }
  
  .journey-photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .journey-photo {
    width: 100px;
    height: 100px;
  }
  
  .journey-name {
    font-size: 1rem;
  }
  
  .meeting-year {
    font-size: 1.2rem;
  }
  
  .timeline-meeting-point {
    padding: 12px 20px;
  }
}

/* ====================================
   Wedding Info Section
   ==================================== */
.wedding-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

/* Countdown Timer */
.countdown-wrapper {
  background: linear-gradient(135deg, var(--dusty-rose) 0%, var(--dusty-rose-dark) 100%);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  margin-bottom: 60px;
  box-shadow: var(--shadow-medium);
}

.countdown-title {
  font-family: var(--ff-heading-zh);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 30px;
  font-weight: 500;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px 25px;
  min-width: 90px;
  text-align: center;
}

.countdown-number {
  display: block;
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-family: var(--ff-body-zh);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

.countdown-separator {
  font-size: 2rem;
  color: var(--white);
  opacity: 0.5;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.info-card h3 {
  font-family: var(--ff-heading-zh);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.info-card p {
  font-family: var(--ff-body-zh);
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.info-card p strong {
  color: var(--text-dark);
}

/* Schedule Timeline */
.schedule-section {
  margin-bottom: 60px;
}

.schedule-title,
.map-title {
  font-family: var(--ff-heading-zh);
  font-size: 1.5rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 95px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--dusty-rose-light), var(--gold-light));
}

.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 88px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--dusty-rose);
  border-radius: 50%;
}

.timeline-time {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dusty-rose-dark);
  text-align: right;
}

.timeline-content {
  flex: 1;
  padding-left: 30px;
}

.timeline-content h4 {
  font-family: var(--ff-heading-zh);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.timeline-content p {
  font-family: var(--ff-body-zh);
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Map Section */
.map-section {
  text-align: center;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ====================================
   Gallery Section
   ==================================== */
.gallery-section {
  background: var(--white);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(74, 63, 63, 0.3));
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ====================================
   RSVP Section
   ==================================== */
.rsvp-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.rsvp-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 40px;
  box-shadow: var(--shadow-medium);
}

.rsvp-deadline {
  text-align: center;
  font-family: var(--ff-body-zh);
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cream-dark);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--ff-body-zh);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--ff-body-zh);
  color: var(--text-dark);
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dusty-rose);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--dusty-rose), var(--dusty-rose-dark));
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--ff-body-zh);
  letter-spacing: 0.05em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(212, 165, 165, 0.4);
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 165, 165, 0.5);
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.form-note a {
  color: var(--dusty-rose-dark);
  text-decoration: underline;
}

/* ====================================
   Footer
   ==================================== */
.footer {
  background: linear-gradient(135deg, var(--dusty-rose-dark) 0%, var(--dusty-rose) 100%);
  padding: 60px 20px;
  text-align: center;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-names {
  font-family: var(--ff-script);
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-date {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.footer-message {
  font-family: var(--ff-body-zh);
  font-size: 1rem;
  color: var(--white);
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px;
  }
  
  /* Navigation */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    box-shadow: var(--shadow-medium);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-link {
    display: block;
    text-align: center;
    padding: 15px;
  }
  
  /* Hero */
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 20px;
  }
  
  .hero-content {
    text-align: center;
    order: 2;
  }
  
  .hero-image-side {
    order: 1;
  }
  
  .hero-arch-image {
    width: 250px;
    height: 350px;
    border-radius: 140px 140px 0 0;
    border-width: 6px;
  }
  
  .hero-arch-image::before {
    border-radius: 155px 155px 0 0;
  }
  
  .hero-names {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  
  .hero-names .ampersand {
    display: inline;
    margin: 0 10px;
  }
  
  .hero-divider {
    justify-content: center;
  }
  
  /* About */
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image img {
    height: 350px;
  }
  
  .about-image::before {
    display: none;
  }
  
  /* Info Cards */
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Timeline */
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item::after {
    left: 8px;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 10px;
    padding-left: 40px;
  }
  
  .timeline-time {
    text-align: left;
    width: auto;
  }
  
  .timeline-content {
    padding-left: 0;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* RSVP */
  .rsvp-card {
    padding: 40px 25px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 50px;
  }
  
  .nav-container {
    height: 60px;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }
  
  .hero-arch-image {
    width: 200px;
    height: 280px;
    border-radius: 110px 110px 0 0;
    border-width: 5px;
  }
  
  .hero-arch-image::before {
    border-radius: 120px 120px 0 0;
  }
  
  .countdown-item {
    padding: 15px 18px;
    min-width: 70px;
  }
  
  .countdown-number {
    font-size: 1.8rem;
  }
  
  .countdown-separator {
    font-size: 1.5rem;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* ====================================
   Falling Flower Petals
   ==================================== */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -60px;
  opacity: 0;
  pointer-events: none;
  animation: petalFall linear forwards;
  filter: blur(0.5px);
}

.petal svg {
  width: 100%;
  height: 100%;
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(0deg) scale(0.8);
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--petal-drift, 80px)) translateY(110vh) rotate(var(--petal-rotation, 720deg)) scale(0.4);
  }
}

/* Petal sway variations */
.petal:nth-child(odd) {
  --petal-drift: -60px;
  --petal-rotation: -540deg;
}

.petal:nth-child(even) {
  --petal-drift: 90px;
  --petal-rotation: 660deg;
}

.petal:nth-child(3n) {
  --petal-drift: -120px;
  --petal-rotation: 480deg;
}

.petal:nth-child(5n) {
  --petal-drift: 150px;
  --petal-rotation: -720deg;
}

/* ====================================
   Dreamy Glow Effects
   ==================================== */

/* Soft glow on hero section */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,165,165,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Sparkle effect on section headers */
.section-header::after {
  content: '✦';
  display: block;
  font-size: 1rem;
  color: var(--gold-light);
  margin-top: 15px;
  letter-spacing: 1.5em;
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Romantic divider ornament */
.section-header .section-subtitle::before,
.section-header .section-subtitle::after {
  content: '~';
  margin: 0 10px;
  color: var(--dusty-rose-light);
  font-weight: 300;
}

/* Dreamy card hover glow */
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dreamy);
}

/* Gallery dreamy hover */
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(0.95);
}

/* Soft romantic border for RSVP card */
.rsvp-card {
  position: relative;
  border: 1px solid rgba(212, 165, 165, 0.3);
}

.rsvp-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: calc(var(--radius) + 3px);
  pointer-events: none;
}

/* Hero arch image dreamy glow */
.hero-arch-image {
  box-shadow: 0 25px 80px rgba(180, 137, 138, 0.35), 0 0 60px rgba(212, 165, 165, 0.15);
}

/* Footer romantic sparkle */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--dusty-rose-light), var(--gold-light), transparent);
}

.footer {
  position: relative;
}

/* Soft text shadow for headings */
.hero-names {
  text-shadow: 0 2px 20px rgba(212, 165, 165, 0.2);
}

/* Countdown dreamy style */
.countdown-wrapper {
  position: relative;
  overflow: hidden;
}

.countdown-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: countdownGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes countdownGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10%, -5%) scale(1.1); }
  66% { transform: translate(-5%, 10%) scale(0.95); }
}

/* About signature romantic style */
.about-signature span {
  font-family: var(--ff-script);
  font-size: 1.8rem;
  font-style: normal;
  color: var(--dusty-rose-dark);
}

/* ====================================
   Journey Story Cards
   ==================================== */
.journey-stories {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.journey-story-card {
  display: flex;
  align-items: center;
  gap: 50px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.journey-story-card.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.journey-story-card.reverse {
  flex-direction: row-reverse;
}

.journey-story-image {
  flex-shrink: 0;
  width: 380px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-dreamy);
}

.journey-story-image::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--gold-light);
  border-radius: 26px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.journey-story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(74, 63, 63, 0.08));
  pointer-events: none;
  z-index: 1;
}

.journey-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.journey-story-card:hover .journey-story-image img {
  transform: scale(1.05);
}

.journey-story-text {
  flex: 1;
}

.journey-story-title {
  font-family: var(--ff-script);
  font-size: 1.8rem;
  color: var(--dusty-rose-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.journey-story-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 10px;
}

.journey-story-card.reverse .journey-story-title::after {
  background: linear-gradient(270deg, var(--gold), transparent);
  margin-left: auto;
}

.journey-story-card.reverse .journey-story-text {
  text-align: right;
}

.journey-story-text p {
  font-family: var(--ff-body-zh);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 2;
  letter-spacing: 0.02em;
}

/* Journey Story Cards Responsive */
@media (max-width: 768px) {
  .journey-story-card,
  .journey-story-card.reverse {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .journey-story-card.reverse .journey-story-text {
    text-align: center;
  }

  .journey-story-card.reverse .journey-story-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .journey-story-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .journey-story-image {
    width: 100%;
    max-width: 400px;
    height: 220px;
  }

  .journey-stories {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .journey-story-image {
    height: 180px;
  }

  .journey-story-title {
    font-size: 1.5rem;
  }
}

/* Mobile petal adjustments */
@media (max-width: 768px) {
  .petals-container .petal {
    transform: scale(0.7);
  }
  
  .hero::after {
    width: 300px;
    height: 300px;
  }
}
/* ====================================
   Opening Animation Styles
   ==================================== */

/* 開場動畫覆蓋層（延遲到 8.5 秒後淡出） */
.opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10000;
  overflow: hidden;
  animation: fadeOut 1s ease-out 8.5s forwards;
  pointer-events: auto;
  cursor: pointer;
}

/* 地圖背景 */
.map-background {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #FDF8F5 0%, #F0E6DF 40%, #F5EBE6 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🌟 新增 map-wrapper：鎖定比例與基準點，解決響應式跑位 */
.map-wrapper {
  position: relative;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* SVG 世界地圖 */
.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
}

/* 位置標記脈衝動畫 */
.ping-ring {
  animation: pingRing 2s ease-out infinite;
  transform-origin: center;
}

@keyframes pingRing {
  0%   { r: 6;  opacity: 0.8; }
  100% { r: 20; opacity: 0; }
}

/* 飛行路線繪製動畫 */
.flight-path-boy {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawPath 3.5s ease-in-out forwards;
}

/* 🌟 女孩路線延遲 1.5 秒畫出 */
.flight-path-girl {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawPath 3.5s ease-in-out 1.5s both;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

/* 🌟 小人物角色基礎樣式 - 修正微調位置使其站在座標中心 */
.character {
  position: absolute;
  width: 50px;
  height: 70px;
  z-index: 10;
  text-align: center;
  margin-left: -25px; /* 寬度的一半 */
  margin-top: -60px;  /* 高度微調，讓腳踩在點上 */
}

/* 角色名字標籤 */
.character-label {
  display: block;
  margin-top: 4px;
  font-family: var(--ff-body-zh);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

/* 🗺️ 男生初始位置 - 中國 */
.character.boy {
  left: 72%;
  top: 26%;
  animation: moveBoyToGermany 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

/* 🗺️ 🌟 女生初始位置 - 台灣 (延遲 1.5 秒才起飛) */
.character.girl {
  left: 77.6%;
  top: 34%;
  animation: moveGirlToGermany 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) 1.5s both;
}

/* 小人物圖示 */
.character-icon {
  width: 100%;
  height: 100%;
  position: relative;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.character-head {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.character-body {
  width: 20px;
  height: 22px;
  border-radius: 50% 50% 60% 60%;
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}

/* 男生顏色 */
.character.boy .character-head { background: linear-gradient(135deg, #4A9FDB 0%, #2E7DB5 100%); }
.character.boy .character-body { background: linear-gradient(135deg, #5AB0EC 0%, #3A8EC6 100%); }

/* 女生顏色 */
.character.girl .character-head { background: linear-gradient(135deg, #E89AC7 0%, #D67BA8 100%); }
.character.girl .character-body { background: linear-gradient(135deg, #F5AAD6 0%, #E68BB9 100%); }

/* 🗺️ 男生移動動畫 */
@keyframes moveBoyToGermany {
  0% { left: 72%; top: 26%; transform: scale(1) translateY(0); }
  50% { left: 57%; top: 10%; transform: scale(1.2) translateY(-20px); }
  100% { left: 46.8%; top: 16%; transform: scale(1) translateY(0); }
}

/* 🗺️ 女生移動動畫 */
@keyframes moveGirlToGermany {
  0% { left: 77.6%; top: 34%; transform: scale(1) translateY(0); }
  50% { left: 60%; top: 12%; transform: scale(1.2) translateY(-20px); }
  100% { left: 46.8%; top: 16%; transform: scale(1) translateY(0); }
}

/* 愛心動畫容器 (男生抵達約4s，女生抵達約 1.5+4 = 5.5s，所以設定延遲 5.5s 出現) */
.heart-animation {
  position: absolute;
  left: 46.8%;
  top: 16%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: showHeart 1.5s ease-out 5.5s forwards;
  z-index: 20;
  text-align: center;
}

.heart-svg {
  width: 60px;
  height: 60px;
  fill: #E74C3C;
  filter: drop-shadow(0 4px 12px rgba(231, 76, 60, 0.4));
}

.heart-text {
  display: block;
  margin-top: 6px;
  font-family: var(--ff-body-zh);
  font-size: 13px;
  font-weight: 600;
  color: var(--dusty-rose-dark);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(255,255,255,0.9);
}

/* 跳過提示 */
.skip-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-body-zh);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeIn 0.5s ease 2s forwards;
}

@keyframes fadeIn {
  to { opacity: 0.6; }
}

@keyframes showHeart {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  70% { transform: translate(-50%, -50%) scale(0.9); }
  85% { transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes fadeOut {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* ====================================
   清理後的手機優化 (Mobile Optimization)
   ==================================== */
@media (max-width: 768px) {
  /* 讓地圖再稍微寬一點 */
  .map-wrapper {
    width: 95%;
  }

  /* 配合縮小比例微調人物基準點 */
  .character {
    width: 40px;
    height: 55px;
    margin-left: -20px;
    margin-top: -45px;
  }
  
  .character-head { width: 22px; height: 22px; }
  .character-body { width: 16px; height: 18px; top: 18px; }
  .character-label { font-size: 10px; }
  .heart-svg { width: 45px; height: 45px; }
  .heart-text { font-size: 11px; }
  
  .world-map-svg text {
    font-size: 8px !important;
  }
}
