/* ==========================================================================
   WEDDING INVITATION THEME: SAGE & EMERALD GREEN (XANH TỰ NHIÊN & SANG TRỌNG)
   ========================================================================== */

:root {
  /* Green Theme Palette */
  --primary-green: #244d3d;       /* Forest / Deep Emerald */
  --primary-hover: #1b3d30;
  --secondary-green: #4d7c66;     /* Muted Sage / Eucalyptus */
  --light-green: #e9f1ec;         /* Soft Green tint for cards/backgrounds */
  --accent-gold: #c5a059;         /* Elegant Champagne Gold */
  --accent-gold-light: #f4ecdc;
  
  /* Neutral colors */
  --bg-main: #fcfdfc;
  --bg-alt: #f3f7f4;
  --text-dark: #24332c;
  --text-muted: #5e6f66;
  --text-light: #ffffff;
  --border-color: #dbe6df;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cursive: 'Alex Brush', cursive;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-alt-serif: 'Cormorant Garamond', serif;

  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(36, 77, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(36, 77, 61, 0.1);
  --shadow-lg: 0 16px 40px rgba(36, 77, 61, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

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

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ---------------- CANVAS FALLING LEAVES ---------------- */
#falling-leaves-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* ---------------- CONTAINER & UTILITIES ---------------- */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

/* Section Header Typography */
.section-header {
  margin-bottom: 50px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary-green);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.title-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.title-decor::before, .title-decor::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.6;
}

.section-desc {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(36, 77, 61, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 77, 61, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---------------- AUDIO FLOATING CONTROL ---------------- */
.audio-control-wrap {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-green);
  color: #fff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
}

.audio-btn.playing {
  animation: rotateMusic 6s linear infinite;
  background-color: var(--secondary-green);
}

@keyframes rotateMusic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.audio-tooltip {
  background-color: rgba(36, 77, 61, 0.95);
  color: #ffffff;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
  white-space: nowrap;
}

.audio-control-wrap:hover .audio-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ---------------- BACK TO TOP BUTTON ---------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--primary-green);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.back-to-top-btn:hover {
  background-color: var(--primary-green);
  color: #ffffff;
  transform: translateY(-4px);
}

/* ---------------- NAVIGATION BAR ---------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  z-index: 900;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-cursive);
  font-size: 2.2rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar.scrolled .nav-logo {
  color: var(--primary-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  position: relative;
  padding-bottom: 4px;
}

.navbar.scrolled .nav-links li a {
  color: var(--text-dark);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

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

.nav-links li a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar.scrolled .nav-toggle {
  color: var(--primary-green);
}

/* ---------------- HERO BANNER SECTION ---------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1e3f32 url('../images/header-bg.jpg') center center / cover no-repeat;
  color: #ffffff;
  padding: 120px 20px 80px;
}

@media (min-width: 769px) {
  .hero-section {
    background-attachment: fixed;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 42, 32, 0.45) 0%, rgba(28, 58, 45, 0.55) 50%, rgba(16, 33, 25, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}

.hero-subheading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.hero-subheading .line {
  height: 1px;
  width: 60px;
  background-color: var(--accent-gold);
}

.hero-subheading .subtext {
  font-size: 1rem;
  letter-spacing: 5px;
  font-weight: 500;
  color: var(--accent-gold-light);
}

.couple-title {
  font-family: var(--font-cursive);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.couple-title .heart-amp {
  font-family: var(--font-alt-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-gold);
  margin: 0 10px;
}

.hero-quote {
  font-family: var(--font-alt-serif);
  font-style: italic;
  font-size: 1.35rem;
  opacity: 0.95;
  margin-bottom: 30px;
  color: #e3ede6;
}

.wedding-badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 28px;
  border-radius: var(--radius-full);
  margin-bottom: 40px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.badge-date {
  font-weight: 700;
  color: var(--accent-gold-light);
  letter-spacing: 2px;
}

.badge-divider {
  color: var(--accent-gold);
}

/* Hero Countdown */
.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transition: var(--transition);
}

.countdown-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold-light);
  font-weight: 600;
}

.countdown-separator {
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: -15px;
}

.hero-action-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-action-btns .btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-action-btns .btn-outline:hover {
  background-color: #ffffff;
  color: var(--primary-green);
}

.scroll-down-hint {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
}

.scroll-down-hint:hover {
  color: #ffffff;
}

.bounce {
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ---------------- INVITATION LETTER SECTION ---------------- */
.letter-section {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  padding: 70px 0;
}

.floral-icon {
  font-size: 2.2rem;
  color: var(--secondary-green);
  margin-bottom: 10px;
}

.letter-text {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-alt-serif);
  font-size: 1.35rem;
  color: var(--text-dark);
  line-height: 1.9;
  font-style: italic;
}

/* ---------------- COUPLE SECTION ---------------- */
.couple-section {
  background-color: var(--bg-main);
}

.couple-cards-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.couple-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.couple-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.couple-img-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--secondary-green), var(--accent-gold));
}

.couple-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
}

.couple-tag {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.couple-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.couple-role {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.couple-desc {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  padding: 0 10px;
}

.family-info {
  background-color: var(--light-green);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: left;
}

.family-info p {
  margin-bottom: 5px;
}

.location-badge {
  color: var(--secondary-green);
  font-weight: 500;
  margin-top: 6px;
}

.couple-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.couple-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.couple-social a:hover {
  background-color: var(--primary-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.couple-heart-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.double-happiness-icon {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--accent-gold);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
}

.forever-text {
  font-family: var(--font-cursive);
  font-size: 1.5rem;
  color: var(--secondary-green);
  margin-top: 8px;
}

/* ---------------- LOVE STORY TIMELINE ---------------- */
.story-section {
  background-color: var(--bg-alt);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--secondary-green) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 45px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 45px;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border: 3px solid var(--secondary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-green);
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -18px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -18px;
}

.timeline-date {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--secondary-green);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

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

.timeline-content:hover .timeline-img img {
  transform: scale(1.05);
}

.timeline-content h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------- EVENTS SECTION ---------------- */
.event-section {
  background-color: var(--bg-main);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-bottom: 50px;
}

.event-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(36, 77, 61, 0.9);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.event-badge.primary-badge {
  background: rgba(197, 160, 89, 0.95);
  color: #ffffff;
}

.event-photo {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.event-card:hover .event-photo img {
  transform: scale(1.05);
}

.event-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-venue-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-green);
  margin-bottom: 16px;
  line-height: 1.35;
}

.event-time-row, .event-address-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.event-time-row i, .event-address-row i {
  color: var(--secondary-green);
  font-size: 1.1rem;
  margin-top: 4px;
}

.event-notes {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 20px;
}

.event-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Dress Code box */
.dresscode-box {
  background: var(--light-green);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.dresscode-title {
  color: var(--primary-green);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.color-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

/* ---------------- PHOTO GALLERY SECTION ---------------- */
.album-section {
  background-color: var(--bg-alt);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  height: 280px;
}

.gallery-item.large {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(36, 77, 61, 0.6);
  backdrop-filter: blur(2px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-overlay i {
  font-size: 2rem;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery-overlay span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  transform: translateY(10px);
  transition: var(--transition);
}

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

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

.gallery-item:hover .gallery-overlay i,
.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* ---------------- LIGHTBOX MODAL ---------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 29, 23, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  margin: 0 auto;
}

.lightbox-caption {
  color: #ffffff;
  font-family: var(--font-alt-serif);
  font-size: 1.3rem;
  margin-top: 15px;
  font-style: italic;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary-green);
  color: #ffffff;
}

.lightbox-close {
  top: 25px;
  right: 25px;
}

.lightbox-prev {
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------------- RSVP FORM SECTION ---------------- */
.rsvp-section {
  background: linear-gradient(135deg, #1d3d30 0%, #2a5342 100%);
  color: #ffffff;
}

.rsvp-section .section-title {
  color: #ffffff;
}

.rsvp-section .section-subtitle {
  color: var(--accent-gold-light);
}

.rsvp-section .section-desc {
  color: #d1ded6;
}

.rsvp-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  max-width: 850px;
  margin: 0 auto;
}

.rsvp-card .section-title {
  color: var(--primary-green);
}

.rsvp-card .section-subtitle {
  color: var(--secondary-green);
}

.rsvp-card .section-desc {
  color: var(--text-muted);
}

.rsvp-form {
  margin-top: 35px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 3px rgba(82, 121, 111, 0.2);
}

.radio-options {
  display: flex;
  gap: 15px;
  padding-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.radio-label input {
  accent-color: var(--primary-green);
}

.rsvp-alert {
  display: none;
  background-color: #eaf6ee;
  border-left: 5px solid #2d8a4e;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-top: 25px;
  align-items: center;
  gap: 15px;
  color: #1e5a32;
  animation: fadeIn 0.4s ease;
}

.rsvp-alert i {
  font-size: 1.8rem;
}

.rsvp-alert h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ---------------- GOOGLE FORM EMBED STYLES ---------------- */
.google-form-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.google-form-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background-color: var(--light-green);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.form-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-green);
}

.form-badge i {
  color: #4285F4;
  font-size: 1.2rem;
}

.google-form-frame-wrap {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 850px;
}

.google-form-frame-wrap iframe {
  width: 100%;
  min-height: 850px;
  border: none;
  display: block;
}

.google-form-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #f0f7f3;
  border-left: 4px solid #107c41;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.notice-icon {
  font-size: 1.6rem;
  color: #107c41;
  flex-shrink: 0;
}

.notice-text strong {
  color: var(--primary-green);
}

.notice-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-green);
}

/* ---------------- WISHES & GUESTBOOK SECTION ---------------- */
.wishes-section {
  background-color: var(--bg-alt);
}

.wishes-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 35px;
  align-items: start;
}

.wish-form-card, .wish-wall-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.wish-form-card h3, .wish-wall-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-green);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-sub-hint {
  font-size: 0.85rem;
  color: var(--secondary-green);
  margin-top: -12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.wish-wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.wish-wall-header h3 {
  margin-bottom: 0;
}

.refresh-wishes-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wish-loading {
  text-align: center;
  padding: 30px;
  color: var(--secondary-green);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wishes-list {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Custom Scrollbar */
.wishes-list::-webkit-scrollbar {
  width: 6px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background-color: var(--secondary-green);
  border-radius: 4px;
}

.wish-item {
  background: var(--light-green);
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--secondary-green);
  animation: fadeIn 0.4s ease;
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wish-author {
  font-weight: 700;
  color: var(--primary-green);
  font-size: 0.95rem;
}

.wish-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wish-text {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ---------------- WEDDING GIFT SECTION ---------------- */
.gift-section {
  background-color: var(--bg-main);
}

.gift-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.bank-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.bank-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.bank-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.bank-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 12px;
}

.bank-card-header h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-green);
}

.bank-sub {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.qr-box {
  background: #ffffff;
  border: 2px dashed var(--secondary-green);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.qr-img {
  width: 170px;
  height: 170px;
}

.qr-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bank-info-table {
  width: 100%;
  background: var(--light-green);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 0.88rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .label {
  color: var(--text-muted);
}

.info-row .val {
  font-weight: 600;
  color: var(--text-dark);
}

.font-mono {
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--primary-green);
}

/* ---------------- FOOTER SECTION ---------------- */
.footer-section {
  position: relative;
  background: url('../images/header-bg.jpg') center/cover no-repeat;
  padding: 100px 20px 40px;
  color: #ffffff;
  text-align: center;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 38, 29, 0.9);
  z-index: 1;
}

.footer-section .container {
  position: relative;
  z-index: 2;
}

.footer-emblem {
  font-family: var(--font-cursive);
  font-size: 3.5rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.thank-you-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.thank-you-text {
  max-width: 600px;
  margin: 0 auto 25px;
  font-family: var(--font-alt-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: #e5eee8;
  line-height: 1.8;
}

.footer-date {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 4px;
  color: var(--accent-gold-light);
  margin-bottom: 40px;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------------- TOAST NOTIFICATION ---------------- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 3000;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------------- SCROLL REVEAL ANIMATIONS ---------------- */
.reveal-fade, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-fade {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-active {
  opacity: 1;
  transform: translate(0, 0);
}

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

/* ---------------- RESPONSIVE DESIGN (MEDIA QUERIES) ---------------- */
@media (max-width: 992px) {
  .couple-cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .couple-heart-divider {
    margin: 15px 0;
  }

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

  .gallery-item.large {
    grid-column: span 1;
  }

  .wishes-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 65px);
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    gap: 20px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    color: var(--text-dark);
    font-size: 1.05rem;
  }

  .couple-title {
    font-size: 3.2rem;
  }

  .countdown-wrapper {
    gap: 8px;
  }

  .countdown-item {
    min-width: 65px;
    padding: 10px 12px;
  }

  .countdown-num {
    font-size: 1.6rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 55px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 2px !important;
  }

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

  .rsvp-card {
    padding: 35px 25px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 250px;
  }

  .audio-control-wrap {
    bottom: 15px;
    left: 15px;
  }

  .back-to-top-btn {
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .couple-title {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .letter-text {
    font-size: 1.15rem;
  }

  .events-grid, .gift-cards-grid {
    grid-template-columns: 1fr;
  }
}
 .anh-giua {
    display: block;
    margin-left: auto;
    margin-right: auto;
   align-items: center
  }
