/* ============================================================
   SINH NHẬT — CHAN CHAN — Elegant · Feminine · Luxury · Soft Blue
   Palette: Soft Blue / Ice Blue #E8F0F4 | Navy #173A5C & #102E4B | Ivory #F8F6F0 | Champagne Gold #D5B477 & #E2C995 | Text #526B7C
   ============================================================ */
:root {
  /* Core Color System */
  --bg-main: #E8F0F4;
  --bg-soft-1: #EAF2F6;
  --bg-soft-2: #DCE8EE;
  
  --navy: #173A5C;
  --navy-deep: #102E4B;
  --navy-soft: #204B73;
  --navy-glow: rgba(23, 58, 92, 0.12);
  
  --ivory: #F8F6F0;
  --ivory-pure: #FAF8F3;
  --ivory-card: #FDFBF7;
  --ivory-tint: #F2F6F9;
  
  --gold: #D5B477;
  --gold-light: #E2C995;
  --gold-pale: #F5ECD9;
  --gold-deep: #B38E46;
  --gold-glow: rgba(213, 180, 119, 0.28);
  
  --text-primary: #173A5C;
  --text-heading: #102E4B;
  --text-secondary: #526B7C;
  --text-muted: #6E8594;
  --text-light: #F8F6F0;
  
  --line-gold: rgba(213, 180, 119, 0.42);
  --line-gold-soft: rgba(213, 180, 119, 0.22);
  --line-soft: rgba(23, 58, 92, 0.12);
  
  --shadow-soft: 0 12px 35px rgba(23, 58, 92, 0.08);
  --shadow-card: 0 14px 40px rgba(16, 46, 75, 0.09), 0 2px 8px rgba(213, 180, 119, 0.08);
  --shadow-glow: 0 0 20px rgba(213, 180, 119, 0.32);

  /* Legacy mappings to preserve structure */
  --white: #F8F6F0;
  --pearl: #FAF8F3;
  --ink: #173A5C;
  --ink-soft: #526B7C;
  --rose: #173A5C;
  --rose-deep: #102E4B;
  --rose-soft: #E2C995;
  --rose-pale: rgba(232, 240, 244, 0.6);
  --line: rgba(213, 180, 119, 0.25);

  --font-serif: 'Cormorant Garamond', serif;
  --font-letter: 'Lora', 'Cormorant Garamond', serif;
  --font-script: 'Alex Brush', cursive;
  --font-script2: 'Great Vibes', cursive;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Cinzel', var(--font-serif), serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --reveal-dur: 1.4s;

  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-main);
}
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: linear-gradient(180deg,
    #EAF2F6 0%,
    #E8F0F4 18%,
    #DCE8EE 38%,
    #EAF2F6 58%,
    #DCE8EE 78%,
    #E8F0F4 100%);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.script { font-family: var(--font-script2); font-weight: 400; }

/* ============ REVEAL ON SCROLL ============ */
.reveal,
.reveal-fade,
.reveal-fade-down,
.reveal-zoom,
.reveal-left,
.reveal-right,
.reveal-flip {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 1.8s cubic-bezier(0.12, 1, 0.28, 1), transform 1.8s cubic-bezier(0.12, 1, 0.28, 1);
}
.reveal-left { transform: translate3d(-35px, 0, 0); }
.reveal-right { transform: translate3d(35px, 0, 0); }
.reveal-fade-down { transform: translate3d(0, -28px, 0); }
.reveal-zoom { transform: scale(0.94) translateZ(0); }
.reveal-flip { transform: perspective(800px) rotateX(14deg) translateY(20px); }
.reveal { transform: translate3d(0, 32px, 0); }
.reveal-fade { transform: none; }

.reveal.is-visible,
.reveal-fade.is-visible,
.reveal-fade-down.is-visible,
.reveal-zoom.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-flip.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
}

.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }
.delay-3 { transition-delay: .45s; }
.delay-4 { transition-delay: .6s; }

/* ============ PARALLAX FLOATING CARDS ============ */
.parallax-float {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============ DYNAMIC INTERACTION: 3D TILT EFFECT ============ */
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
  will-change: transform;
}
.tilt-card:hover {
  z-index: 10;
}

/* ============ RIPPLE / TAP GLOW EFFECT ============ */
.tap-glow {
  position: relative;
  overflow: hidden;
}
.tap-glow::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 180, 119, 0.5) 0%, rgba(213, 180, 119, 0) 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.tap-glow:active::after {
  width: 250px; height: 250px;
  opacity: 1;
  transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.6s ease-out;
}

/* ============ GLOWING PULSE ============ */
@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 58, 92, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(23, 58, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 58, 92, 0); }
}
.pulse-gold {
  animation: goldPulse 2.5s infinite;
}

/* ============ MAIN WRAPPER ============ */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ============ AMBIENT LAYER — CRYSTAL ICE-BLUE & NAVY REFLECTIONS ============ */
.ambient-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient-star {
  position: absolute;
  bottom: -14vh;
  border-radius: 50%;
  border: none;
  /* Bong bóng ánh pha lê xanh băng & navy dịu nhẹ, giảm bớt ánh vàng */
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.4) 16%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 70% 74%, rgba(23, 58, 92, 0.16) 0%, rgba(23, 58, 92, 0.04) 22%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 50%, rgba(232, 240, 244, 0.25) 45%, rgba(16, 46, 75, 0.16) 80%, rgba(23, 58, 92, 0.22) 96%, rgba(255, 255, 255, 0.85) 100%);
  box-shadow:
    inset 0 0 5px 1px rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(16, 46, 75, 0.12),
    0 4px 12px rgba(23, 58, 92, 0.06);
  animation: bubbleFloat linear infinite;
  pointer-events: none;
}
@keyframes bubbleFloat {
  0%   { transform: translateY(0)      translateX(0px);  opacity: 0;   }
  4%   { opacity: 0.78; }
  20%  { transform: translateY(-20vh)  translateX(12px); opacity: 0.78; }
  38%  { transform: translateY(-38vh)  translateX(-6px); opacity: 0.74; }
  55%  { transform: translateY(-55vh)  translateX(14px); opacity: 0.78; }
  70%  { transform: translateY(-70vh)  translateX(-4px); opacity: 0.70; }
  84%  { transform: translateY(-84vh)  translateX(8px);  opacity: 0.65; }
  95%  { opacity: 0.20; }
  100% { transform: translateY(-112vh) translateX(0px);  opacity: 0;   }
}

/* ============ BACKGROUND DECOR ASSETS (BOTANICAL LINE-ART — MOBILE FIRST) ============ */
.main-content {
  position: relative;
  overflow-x: hidden;
}

.bg-decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Base Mobile Styles: Rõ nét vừa phải, thanh thoát, không che khuất chữ/số */
.bg-decor__item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.48;                      /* Độ rõ nét thanh nhã 0.45 - 0.55 */
  mix-blend-mode: multiply;           /* Tiệp tự nhiên vào nền giấy kem */
  filter: contrast(110%) brightness(96%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: -1;
  max-width: none;
}

/* 1. Thân mời (trên trái): bg1.png */
.bg-decor__item--1 {
  top: 96vh;
  left: -50px;
  width: 185px;
  transform: rotate(-10deg);
}

/* 2. Giữa Lịch & Dresscode (cao hơn một chút, ôm mép phải chuyển tiếp): bg3.png */
.bg-decor__item--2 {
  top: 192vh;
  right: -58px;
  width: 185px;
  opacity: 0.45;
  transform: rotate(18deg);
}

/* 3. Thư ngỏ (trái): bg4.png */
.bg-decor__item--3 {
  top: 278vh;
  left: -55px;
  width: 195px;
  transform: rotate(190deg) scaleX(-1);
}

/* 4. Bản đồ & Kỷ niệm (phải): bg1.png */
.bg-decor__item--4 {
  top: 350vh;
  right: -52px;
  width: 190px;
  transform: rotate(-25deg);
}

/* 5. Sổ lưu bút & RSVP (phải): bg2.png */
.bg-decor__item--5 {
  top: 425vh;
  right: -55px;
  width: 205px;
  transform: rotate(12deg);
}

/* 6. Chân trang gần Footer (trái): bg4.png */
.bg-decor__item--6 {
  top: 495vh;
  left: -55px;
  width: 200px;
  transform: rotate(-15deg);
}

/* Responsive Desktop (min-width: 768px): Phóng to & lấp đầy không gian hai bên */
@media (min-width: 768px) {
  .bg-decor__item {
    opacity: 0.52;
  }
  .bg-decor__item--1 {
    top: 102vh;
    left: -70px;
    width: 270px;
    transform: rotate(-12deg) scale(1.05);
  }
  .bg-decor__item--2 {
    top: 192vh;
    right: -85px;
    width: 270px;
    opacity: 0.48;
    transform: rotate(20deg) scale(1.05);
  }
  .bg-decor__item--3 {
    top: 285vh;
    left: -80px;
    width: 290px;
    transform: rotate(190deg) scaleX(-1) scale(1.05);
  }
  .bg-decor__item--4 {
    top: 360vh;
    right: -75px;
    width: 280px;
    transform: rotate(-30deg) scale(1.05);
  }
  .bg-decor__item--5 {
    top: 435vh;
    right: -80px;
    width: 300px;
    transform: rotate(12deg) scale(1.05);
  }
  .bg-decor__item--6 {
    top: 508vh;
    left: -75px;
    width: 290px;
    transform: rotate(-15deg) scale(1.05);
  }
}

/* ============ 1. INTRO — LUXURY ENVELOPE OPENING ============ */
.intro-envelope {
  position: fixed; inset: 0; z-index: 1000;
  overflow: hidden;
  background: #081C30 url('../assets/images/intro-bg.png') center center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
  padding: 24px 16px;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), filter 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s ease;
  pointer-events: auto;
}
.intro-envelope::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(16, 58, 98, 0.35) 0%, rgba(4, 15, 26, 0.75) 100%);
  pointer-events: none;
  z-index: 0;
}
.intro-envelope.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(10px);
  visibility: hidden;
  pointer-events: none;
}

/* Intro Background Decorative Assets (2 góc) */
.intro-decor {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.intro-decor__item {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
  transition: transform 0.8s ease;
}
.intro-decor__item--tl {
  top: -35px;
  left: -45px;
  width: 220px;
  transform: rotate(-10deg);
}
.intro-decor__item--br {
  bottom: -38px;
  right: -45px;
  width: 225px;
  transform: rotate(-15deg);
}

@media (min-width: 768px) {
  .intro-decor__item {
    opacity: 0.46;
  }
  .intro-decor__item--tl { width: 285px; top: -50px; left: -60px; }
  .intro-decor__item--br { width: 295px; bottom: -50px; right: -60px; }
}

.intro-envelope__container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  width: 100%; max-width: 440px; height: auto; max-height: 90vh;
  position: relative; z-index: 2;
}

/* Header Text (You are invited to / Happy Birthday) */
.envelope-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2px;
}
.envelope-header__eyebrow {
  font-family: var(--font-head);
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.envelope-header__title {
  font-family: var(--font-script2);
  font-size: clamp(2.8rem, 9vw, 3.8rem);
  font-weight: 400;
  color: #F8F6F0;
  line-height: 1.1;
  filter: drop-shadow(0 3px 12px rgba(213, 180, 119, 0.35)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

/* Envelope Main Box */
.envelope-box {
  position: relative;
  width: min(88vw, 340px);
  height: 215px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.42));
  transition: transform 0.35s ease, filter 0.35s ease;
}
.envelope-box:hover {
  transform: translateY(-3px) scale(1.015);
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.52));
}

/* SVG Decorative Borders */
.envelope-svg-border {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* Envelope Inner Cavity Background */
.envelope-bg {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(165deg, #0F2D4A 0%, #071828 100%);
  border: 1.2px solid rgba(186, 150, 91, 0.35);
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.6), 0 12px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1;
}

/* The Letter / Card Inside */
.envelope-card {
  position: absolute;
  top: 10px; left: 14px; right: 14px; bottom: 10px;
  background: linear-gradient(150deg, #ECE6DC 0%, #E0D9CC 100%);
  border-radius: 8px;
  border: 1.1px solid rgba(186, 150, 91, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  z-index: 2;
  transform-origin: center center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.85s ease, z-index 0.01s;
}
.envelope-card__icon {
  color: var(--gold-deep);
  margin-bottom: 4px;
  opacity: 0.9;
}
.envelope-card__tag {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
  opacity: 0.9;
}
.envelope-card__name {
  font-family: var(--font-script2);
  font-size: 2.3rem;
  color: var(--navy-deep);
  line-height: 1.1;
  font-weight: 400;
}
.envelope-card__line {
  width: 45px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(186, 150, 91, 0.6), transparent);
  margin: 6px 0;
}
.envelope-card__date {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-style: italic;
}

/* Flap (Nắp phong thư) */
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, #1C4670 0%, #123354 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 5;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.01s linear 0.35s;
}

/* Envelope Front Pocket */
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(145deg, #183F66 0%, #113050 55%, #0A2036 100%);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  border-bottom: 1.2px solid rgba(186, 150, 91, 0.45);
}

/* Envelope Guest Text */
.envelope-guest {
  position: absolute;
  right: 22px; bottom: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  color: var(--gold-light);
  z-index: 6;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}
.envelope-guest span {
  font-family: var(--font-script2);
  font-style: normal;
  font-size: 1.35em;
  font-weight: 600;
  color: #F8F6F0;
  padding-left: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Prompt Below Envelope */
.envelope-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.88rem, 2.5vw, 0.98rem);
  color: var(--gold-light);
  text-align: center;
  margin-top: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  animation: promptPulse 2s ease-in-out infinite;
}
@keyframes promptPulse {
  0%, 100% { opacity: 0.75; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* STAGE 1: OPEN FLAP */
.intro-envelope.is-opening .envelope-prompt {
  opacity: 0;
  animation: none;
  transition: opacity 0.3s ease;
}
.intro-envelope.is-opening .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
}

/* STAGE 2: CARD SLIDES UP */
.intro-envelope.is-sliding-up .envelope-card {
  transform: translateY(-120%) scale(0.96);
  z-index: 2;
  box-shadow: 0 14px 30px rgba(16, 46, 75, 0.16);
}

/* STAGE 3: CARD FALLS TO CENTER RESTING IN FULL VIEW */
.intro-envelope.is-card-center .envelope-card {
  transform: translateY(-12px) scale(0.98);
  z-index: 100;
  box-shadow: 0 16px 36px rgba(16, 46, 75, 0.2);
}

@media (max-width: 480px) {
  .intro-envelope.is-card-center .envelope-card {
    transform: translateY(-6px) scale(0.95);
  }
}

/* ============ MUSIC TOGGLE ============ */
.music-toggle {
  position: fixed;
  bottom: clamp(16px, 4vw, 24px);
  right: clamp(16px, 4vw, 24px);
  z-index: 990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.2px solid var(--gold);
  background: rgba(248, 246, 240, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 46, 75, 0.14);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.music-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(16, 46, 75, 0.22);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-toggle__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
}

/* Khi đang phát nhạc */
.music-toggle.is-playing {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--gold);
  animation: musicPulseGlow 2.2s ease-in-out infinite;
}

.music-toggle.is-playing .music-toggle__icon {
  animation: musicIconSpin 4.5s linear infinite;
}

@keyframes musicIconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes musicPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(23, 58, 92, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(23, 58, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 58, 92, 0); }
}

/* ============ SHARED STYLES ============ */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--gold-deep);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(34px, 8vw, 52px);
  text-align: center;
  color: var(--navy-deep);
  margin: 6px 0 22px;
}
.hr-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 18px auto;
  opacity: 0.7;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.2px solid var(--gold);
  color: var(--navy);
  background: var(--ivory);
  font-size: 12px;
  letter-spacing: .12em;
  padding: 11px 22px;
  border-radius: 30px;
  margin-top: 20px;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 46, 75, 0.2);
}

.btn-fill {
  width: 100%;
  padding: 13px 20px;
  border: 1.2px solid var(--gold);
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(135deg, #173A5C 0%, #102E4B 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: clamp(12px, 3.2vw, 13.5px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(16, 46, 75, .22);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.btn-fill:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1D4973 0%, #153B5E 100%);
  border-color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(16, 46, 75, .32), 0 0 12px rgba(213, 180, 119, 0.2);
}
.btn-fill:disabled { opacity: .6; cursor: not-allowed; }

section { position: relative; padding: 60px 20px; max-width: 720px; margin: 0 auto; }

/* ============ 2. HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  padding: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero__img-wrap { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(16, 46, 75, 0.05) 0%,
    rgba(16, 46, 75, 0.25) 45%,
    rgba(10, 30, 50, 0.78) 80%,
    rgba(10, 30, 50, 0.92) 100%);
}
.hero__sparks { position: absolute; inset: 0; pointer-events: none; }

/* Sparkles trang trí góc trên */
.hero__sparkle {
  position: absolute;
  z-index: 2;
  color: var(--gold-light);
  font-size: clamp(20px, 5vw, 28px);
  text-shadow: 0 0 12px rgba(226, 201, 149, 0.9);
  pointer-events: none;
  animation: sparkleTwinkle 2.8s ease-in-out infinite alternate;
}
.hero__sparkle--tl { top: 25%; left: 8%; }
.hero__sparkle--tr { top: 12%; right: 10%; }
@keyframes sparkleTwinkle {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.hero__bottom {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 20px 48px;
  color: var(--ivory-pure);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 2.8vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 4px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 2px 6px rgba(10, 30, 50, 0.6);
}

.hero__name {
  font-family: var(--font-script2);
  font-size: clamp(48px, 14vw, 84px);
  color: #FAF8F3;
  line-height: 1.05;
  text-shadow: 0 3px 20px rgba(10, 30, 50, 0.7), 0 0 30px rgba(213, 180, 119, 0.35);
  margin-bottom: 8px;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 180px;
  margin: 2px 0 10px;
}
.hero__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.hero__divider-diamond {
  font-size: 8px;
  color: var(--gold-light);
  opacity: 0.9;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 4vw, 20px);
  color: var(--ivory);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-shadow: 0 2px 6px rgba(10, 30, 50, 0.6);
}

.hero__date-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
  width: 100%;
}
.hero__date-line {
  width: 36px;
  height: 1px;
  background: var(--gold-light);
  opacity: 0.8;
}
.hero__date-text {
  font-family: var(--font-sans);
  font-size: clamp(13px, 3.5vw, 15px);
  letter-spacing: 0.38em;
  color: var(--gold-light);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(10, 30, 50, 0.6);
}

.hero__scroll-arrow {
  color: var(--gold-light);
  animation: bounceDown 2s ease-in-out infinite;
  cursor: pointer;
  margin-top: 4px;
}
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ============ 3. INVITE — Phong cách Thiệp Mời Liền Mạch (Không Card Nền) ============ */
.invite {
  max-width: 560px;
  padding-top: 36px;
  padding-bottom: 48px;
}
.invite__card {
  position: relative;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 16px !important;
  text-align: center;
}

/* Top Decoration */
.invite__flourish-top {
  color: var(--gold);
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  opacity: 0.95;
}
.invite__flourish-top svg {
  max-width: 100%;
  height: auto;
}

/* Cake Icon */
.invite__cake-icon {
  color: var(--gold);
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.95;
}

/* Greeting: THÂN MỜI & Tên Khách */
.invite__greeting-group {
  margin-bottom: 26px;
}
.invite__label {
  font-family: var(--font-sans);
  font-size: clamp(11.5px, 2.8vw, 13px);
  letter-spacing: 0.38em;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.invite__guest-wrap {
  display: inline-block;
}
.invite__to-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(34px, 8.5vw, 48px);
  color: var(--gold-deep);
  line-height: 1.15;
  font-weight: 600;
}

/* Invitation Text & Main Focal Point */
.invite__celebrant-group {
  margin-bottom: 28px;
}
.invite__sub-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 2.6vw, 12px);
  letter-spacing: 0.24em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.invite__celebrant-name {
  font-family: var(--font-script2), var(--font-serif);
  font-style: italic;
  font-size: clamp(52px, 14vw, 76px);
  color: var(--navy-deep);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  filter: drop-shadow(0 2px 8px rgba(23, 58, 92, 0.12));
}

/* Birthday Information */
.invite__event-time {
  font-family: var(--font-sans);
  font-size: clamp(11.5px, 2.8vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 30px;
}
.invite__event-time strong {
  color: var(--navy-deep);
  font-weight: 700;
}

/* 3-Column Date Block */
.invite__date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3.8vw, 24px);
  margin: 0 auto 30px;
  max-width: 380px;
}
.invite__date-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(98px, 26vw, 126px);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 8px 0;
  box-sizing: border-box;
}
.invite__date-text {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 2.6vw, 12px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--navy);
  white-space: nowrap;
  display: block;
  text-align: center;
  width: 100%;
  line-height: 1.2;
}
.invite__date-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}
.invite__day-num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 12vw, 68px);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1;
}

/* Venue Block */
.invite__venue-block {
  margin-bottom: 26px;
}
.invite__venue-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.invite__venue-name {
  font-family: var(--font-sans);
  font-size: clamp(15px, 4vw, 18.5px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy-deep);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.invite__venue-address {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Action Button: CHỈ ĐƯỜNG */
.invite__btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.invite__btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 30px;
  border: 1.2px solid var(--gold);
  border-radius: 30px;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  box-shadow: 0 2px 10px rgba(213, 180, 119, 0.12);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.invite__btn-directions:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(213, 180, 119, 0.25);
}

/* ============ 4. CALENDAR & DRESSCODE ============ */
.calendar-timeline-section {
  padding-top: 30px;
  padding-bottom: 40px;
}
.calendar-wrap {
  margin-bottom: 30px;
  text-align: center;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.calendar__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 22px;
}
.calendar__single-title {
  font-family: var(--font-script2);
  font-size: clamp(38px, 9.5vw, 52px);
  color: var(--navy-deep);
  line-height: 1.1;
  font-weight: 400;
  filter: drop-shadow(0 2px 8px rgba(23, 58, 92, 0.15));
}
.calendar__title-line {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-top: 6px;
  border-radius: 2px;
  opacity: 0.85;
}

/* Card lịch: Hoàn toàn trong suốt không background, không border, không shadow */
.calendar__card {
  position: relative;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 8px;
  max-width: 380px;
  margin: 0 auto;
}
.calendar__card::before {
  display: none !important;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: var(--font-sans);
  font-size: clamp(11.5px, 2.9vw, 13px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: center;
  opacity: 0.9;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 8px;
  font-size: clamp(14px, 3.8vw, 15.5px);
  font-family: var(--font-sans);
  color: var(--text-primary);
  text-align: center;
}
.calendar__grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  font-weight: 500;
  opacity: 0.9;
}
.calendar__grid .is-empty {
  height: 38px;
}

/* Highlight ngày 30 */
.calendar__grid .is-target {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar__heart-wrap {
  position: relative;
  width: 50px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar__heart-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 48px;
  height: 44px;
  color: var(--gold);
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(213, 180, 119, 0.45));
  animation: heartPulse 1.8s ease-in-out infinite;
}
.calendar__target-num {
  position: relative;
  z-index: 2;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1;
}
@keyframes heartPulse {
  0%, 100% { transform: translate(-50%, -46%) scale(1); }
  50% { transform: translate(-50%, -46%) scale(1.16); }
}

/* ============ DRESSCODE SECTION ============ */
.dresscode {
  max-width: 440px;
  margin: 28px auto 0;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

.dresscode__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dresscode__line {
  flex: 1;
  max-width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.dresscode__desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(14px, 3.9vw, 15.5px);
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: 0.015em;
  max-width: 380px;
  margin: 0 auto;
}

.dresscode__desc strong {
  color: var(--navy-deep);
  font-style: normal;
  font-weight: 700;
}

/* ============ 5. STANDING PHOTO PARALLAX + COUNTDOWN ============ */
.standing-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}
@media (min-width: 641px) {
  .standing-section {
    min-height: 460px;
    max-height: 520px;
  }
}

.standing-section__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform;
}

.standing-section__overlay {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory-pure);
  padding: 36px 20px;
  min-height: 420px;
  background: linear-gradient(180deg,
    rgba(16, 46, 75, 0.65) 0%,
    rgba(10, 30, 50, 0.88) 100%);
}
@media (min-width: 641px) {
  .standing-section__overlay {
    min-height: 460px;
  }
}

.standing-photo__quote-decor {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  margin-bottom: 16px;
  opacity: 0.9;
}
.standing-photo__line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.standing-photo__diamond {
  font-size: 10px;
  color: var(--gold-light);
}

.standing-photo__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(23px, 6vw, 32px);
  color: var(--ivory-pure);
  max-width: 580px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(10, 30, 50, 0.65);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.countdown-luxury {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 1.6vw, 10px);
  max-width: 260px;
  margin: 0 auto 16px;
}
.countdown-luxury__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
}
.countdown-luxury__num {
  font-family: var(--font-sans);
  font-size: clamp(19px, 4.4vw, 26px);
  font-weight: 600;
  color: #FAF8F3;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(10, 30, 50, 0.5);
}
.countdown-luxury__label {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-top: 4px;
  font-weight: 600;
}
.countdown-luxury__sep {
  font-family: var(--font-serif);
  font-size: clamp(13px, 3vw, 18px);
  color: var(--gold-light);
  margin-top: 1px;
  opacity: 0.85;
}

.standing-photo__sub {
  font-size: clamp(11.5px, 2.8vw, 13px);
  letter-spacing: 0.15em;
  color: var(--gold-pale);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(10, 30, 50, 0.5);
  margin-top: 4px;
}

/* ============ 6. LETTER — Luxury Frame ============ */
.letter { position: relative; overflow: visible; }
.letter__swirl { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); color: var(--gold); opacity: .8; }

.letter__card {
  position: relative;
  background: var(--ivory);
  border-radius: 4px;
  padding: 52px 36px 44px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-gold);
}
.letter__card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(213, 180, 119, 0.35);
  pointer-events: none;
  border-radius: 2px;
}
.letter__card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(213, 180, 119, 0.25);
  pointer-events: none;
  border-radius: 2px;
}
.letter__corner {
  position: absolute;
  color: var(--gold);
  opacity: 0.75;
  width: 28px; height: 28px;
}
.letter__corner--tl { top: 20px; left: 20px; }
.letter__corner--tr { top: 20px; right: 20px; transform: scaleX(-1); }
.letter__corner--bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.letter__corner--br { bottom: 20px; right: 20px; transform: scale(-1); }

.letter__header-decor {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 24px; color: var(--gold); opacity: 0.85;
}
.letter__header-line { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.letter__header-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.letter__header-icon { font-size: 14px; color: var(--gold); }

.letter__paragraph {
  font-family: var(--font-letter);
  font-size: 15.5px;
  line-height: 1.88;
  text-align: justify;
  text-align-last: left;
  letter-spacing: 0.01em;
  color: var(--navy-soft);
  margin-bottom: 18px;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1;
}
.letter__sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 28px;
  padding-top: 18px;
  padding-right: 18px;
  border-top: 1px solid var(--line-gold-soft);
}
.letter__closing { font-size: 13px; letter-spacing: .08em; color: var(--text-secondary); }
.letter__author { font-size: 32px; color: var(--navy-deep); margin-top: 2px; }

/* ============ 7. BỘ ĐÔI ẢNH KỶ NIỆM ============ */
.dual-photos-section {
  padding: 30px 0 0;
  max-width: 560px;
  margin: 0 auto;
  overflow: visible;
}
.dual-photos {
  position: relative;
  width: 100%;
  padding: 30px 16px 26px;
  box-sizing: border-box;
  overflow: visible;
}

.dual-photos__decor-frame {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  right: 18px;
  border: 1.2px solid var(--line-gold);
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.dual-photos__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold);
  border-style: solid;
}
.dual-photos__corner--tl {
  top: -7px; left: -7px;
  border-width: 1.8px 0 0 1.8px;
}
.dual-photos__corner--br {
  bottom: -7px; right: -7px;
  border-width: 0 1.8px 1.8px 0;
}

/* Nét vẽ nghệ thuật & lấp lánh xung quanh ảnh */
.dual-photos__sparkle {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
  z-index: 3;
  animation: sparkleTwinkle 2.6s ease-in-out infinite alternate;
}
.dual-photos__sparkle--1 {
  top: 8px; left: 8%;
  font-size: 18px;
  animation-delay: 0.2s;
}
.dual-photos__sparkle--2 {
  bottom: 12px; left: 6%;
  font-size: 15px;
  animation-delay: 1.1s;
}
.dual-photos__sparkle--3 {
  top: 10px; right: 8%;
  font-size: 16px;
  animation-delay: 0.6s;
}

.dual-photos__doodle-heart {
  position: absolute;
  bottom: 8px;
  right: 10%;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
  z-index: 3;
  animation: doodleFloat 3.5s ease-in-out infinite alternate;
}
@keyframes doodleFloat {
  0% { transform: translateY(0) rotate(-8deg); }
  100% { transform: translateY(-6px) rotate(6deg); }
}

.dual-photos__badge {
  position: absolute;
  top: 4px;
  right: 14%;
  z-index: 4;
  background: var(--ivory);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(16, 46, 75, 0.12);
  pointer-events: none;
  animation: badgeSway 4s ease-in-out infinite alternate;
}
@keyframes badgeSway {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg) translateY(-3px); }
}

.dual-photos__bokeh {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}
.dual-photos__bokeh--1 {
  top: 4px; right: 12%;
  width: 20px; height: 20px;
  background: var(--gold-light);
  opacity: 0.55;
}
.dual-photos__bokeh--2 {
  bottom: 10px; left: 4%;
  width: 22px; height: 22px;
  background: var(--bg-soft-2);
  opacity: 0.65;
}

.dual-photos__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dual-photos__card {
  position: relative;
  background: var(--ivory-pure);
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(16, 46, 75, 0.14), 0 0 0 1px var(--line-gold-soft);
  overflow: visible;
  transition: transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
  cursor: zoom-in;
}
.dual-photos__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.dual-photos__card--left {
  width: 53%;
  aspect-ratio: 3 / 4;
  z-index: 1;
  animation: floatLeftCard 6s ease-in-out infinite alternate;
}
.dual-photos__card--right {
  width: 53%;
  aspect-ratio: 3 / 4;
  margin-left: -14%;
  z-index: 2;
  animation: floatRightCard 6.8s ease-in-out infinite alternate;
}

@keyframes floatLeftCard {
  0%   { transform: rotate(-5deg) translateY(-4px); }
  100% { transform: rotate(-2.5deg) translateY(3px); }
}
@keyframes floatRightCard {
  0%   { transform: rotate(5deg) translateY(7px); }
  100% { transform: rotate(2.5deg) translateY(-2px); }
}

.dual-photos__card:hover {
  z-index: 10 !important;
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 18px 40px rgba(16, 46, 75, 0.22);
}

/* ============ 8. ĐƯỜNG ĐẾN BỮA TIỆC ============ */
.location-section {
  padding: 30px 16px 50px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.location-map-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: var(--ivory);
  box-shadow: var(--shadow-card), inset 0 0 0 3px rgba(248, 246, 240, 0.8);
  margin: 18px 0 24px;
}
.location-map-iframe {
  display: block;
  width: 100%;
  height: 280px;
}

.location-actions {
  display: flex;
  justify-content: center;
}
.btn-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #173A5C 0%, #102E4B 100%);
  color: var(--ivory-pure);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 13px 28px;
  border-radius: 30px;
  border: 1px solid var(--gold);
  box-shadow: 0 8px 20px rgba(16, 46, 75, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-location:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1A4269 0%, #173A5C 100%);
  color: var(--gold-light);
  box-shadow: 0 12px 28px rgba(16, 46, 75, 0.32), 0 0 15px rgba(213, 180, 119, 0.2);
}

/* ============ 9. RSVP ============ */
.rsvp { text-align: center; }
.rsvp__cap { color: var(--gold); margin-bottom: 10px; }
.rsvp__form {
  text-align: left;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
}
.field input, .field textarea, .select-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-gold-soft);
  background: #FAFBFD;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field input:focus, .field textarea:focus, .select-field:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(213, 180, 119, 0.2);
}
.rsvp__status {
  text-align: center;
  font-size: 13px;
  color: var(--navy-deep);
  margin-top: 6px;
  font-weight: 500;
}
.rsvp__status:empty {
  display: none;
  margin: 0;
  min-height: 0;
}

/* ============ GỬI QUÀ MỪNG SINH NHẬT ============ */
.gift-trigger-wrap {
  display: flex;
  justify-content: center;
  margin-top: -6px;
  width: 100%;
  box-sizing: border-box;
}

.btn-gift-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 30px;
  background: #FFFFFF;
  border: 1.2px solid var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: clamp(12px, 3.2vw, 13.5px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 46, 75, 0.08);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  box-sizing: border-box;
}

.btn-gift-open:hover {
  background: #F8F6F0;
  border-color: var(--gold-deep);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 46, 75, 0.15), 0 0 10px rgba(213, 180, 119, 0.2);
}

.btn-gift-open .btn-gift-icon {
  font-size: 16px;
  line-height: 1;
}

/* MODAL GỬI QUÀ */
.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.gift-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gift-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 48, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gift-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  background: #F8F6F0;
  border-radius: 20px;
  border: 1.2px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(213, 180, 119, 0.15);
  padding: 20px 14px 16px;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 400px) {
  .gift-modal__dialog {
    padding: 18px 10px 14px;
    border-radius: 16px;
  }
}

.gift-modal.is-open .gift-modal__dialog {
  transform: scale(1) translateY(0);
}

.gift-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(23, 58, 92, 0.08);
  border: none;
  color: var(--navy-deep);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gift-modal__close:hover {
  background: var(--navy-deep);
  color: #FFFFFF;
  transform: rotate(90deg);
}

.gift-modal__header {
  margin-bottom: 10px;
}

.gift-modal__title {
  font-size: clamp(23px, 6vw, 27px);
  color: var(--navy-deep);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 5px;
}

.gift-modal__header-line {
  width: 30px;
  height: 1.5px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* BODY 2 CỘT (CẢ DESKTOP & MOBILE - KHÔNG CÓ VẠCH KẺ, TỐI ƯU CHIỀU NGANG) */
.gift-modal__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 10px;
}

@media (max-width: 380px) {
  .gift-modal__body {
    gap: 8px;
  }
}

.gift-modal__qr-col {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 380px) {
  .gift-modal__qr-col {
    flex: 0 0 96px;
  }
}

.gift-modal__qr-img {
  width: 100%;
  max-width: 110px;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(213, 180, 119, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
  padding: 3px;
  box-sizing: border-box;
}

.gift-modal__info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  justify-content: center;
  min-width: 0;
}

.gift-modal__bank {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.gift-modal__name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-deep);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.gift-modal__stk-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  white-space: nowrap;
  margin: 1px 0;
}

.gift-modal__stk {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 2.8vw, 12px);
  font-weight: 700;
  color: var(--navy-deep);
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.gift-modal__branch {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
}

.btn-copy-stk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 5px;
  background: rgba(23, 58, 92, 0.09);
  color: var(--navy);
  border: 1px solid rgba(213, 180, 119, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-copy-stk .icon-copy {
  display: inline-block;
}

.btn-copy-stk .icon-check {
  display: none;
}

.btn-copy-stk:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.btn-copy-stk.is-copied {
  background: #2E7D32;
  border-color: #2E7D32;
  color: #FFFFFF;
}

.btn-copy-stk.is-copied .icon-copy {
  display: none;
}

.btn-copy-stk.is-copied .icon-check {
  display: inline-block;
}

.gift-modal__thank {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* ============ 10. GUESTBOOK ============ */
section.guestbook {
  text-align: center;
  padding-left: 16px;
  padding-right: 16px;
  max-width: 620px;
  margin: 0 auto;
}
.guestbook__box {
  position: relative;
  margin: 22px auto 0;
  max-width: 500px;
  background: var(--ivory);
  border-radius: 18px;
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.guestbook__box::before,
.guestbook__box::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}
.guestbook__box::before {
  top: 0;
  background: linear-gradient(180deg, rgba(248, 246, 240, 0.95) 0%, rgba(248, 246, 240, 0) 100%);
}
.guestbook__box::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(248, 246, 240, 0.95) 0%, rgba(248, 246, 240, 0) 100%);
}
.guestbook__box-inner {
  position: relative;
  height: 330px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.guestbook__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow-y: auto;
  padding: 18px 14px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-light) transparent;
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: scroll-position;
}
.guestbook__list::-webkit-scrollbar {
  width: 4px;
}
.guestbook__list::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
.guestbook__entry {
  width: 100%;
  background: #FAFBFD;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--line-gold-soft);
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  contain: content;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.guestbook__entry:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(23, 58, 92, 0.06);
}
.guestbook__entry-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 15px;
  line-height: 1.25;
}
.guestbook__entry-msg {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 5px;
  line-height: 1.5;
  word-break: break-word;
}
.guestbook__entry-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.gb-badge {
  font-size: 9.5px;
  padding: 2.5px 8px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.gb-badge--yes {
  background: #E4EFF6;
  color: #173A5C;
  border: 1px solid rgba(23, 58, 92, 0.2);
}
.gb-badge--no {
  background: #F8EBEF;
  color: #8C3B4D;
  border: 1px solid rgba(140, 59, 77, 0.2);
}
.guestbook__entry-time {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.85;
}
.guestbook__empty {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 50px 16px;
  font-style: italic;
}

/* ============ 11. FOOTER ============ */
.footer-wrap {
  position: relative;
  background-image: url('../assets/images/photo4.jpg');
  background-size: cover;
  background-position: center 15%;
  border-top: 1px solid var(--line-gold);
  overflow: hidden;
  min-height: 520px;
}
@media (min-width: 641px) {
  .footer-wrap {
    min-height: 580px;
    background-position: center 20%;
  }
}

.footer-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(16, 46, 75, 0.15) 0%,
    rgba(16, 46, 75, 0.55) 45%,
    rgba(10, 30, 50, 0.94) 100%);
  z-index: 1;
}

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  min-height: 520px;
  box-sizing: border-box;
  padding: 240px 24px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  max-width: none;
}
@media (min-width: 641px) {
  .footer {
    min-height: 580px;
    padding: 280px 24px 54px;
  }
}

.footer__names {
  font-family: var(--font-script2);
  font-size: clamp(48px, 9vw, 68px);
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-shadow: 0 3px 16px rgba(10, 30, 50, 0.8);
  margin-bottom: 6px;
}

.footer__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(12.5px, 3.2vw, 15px);
  color: var(--ivory);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(10, 30, 50, 0.7);
  max-width: 440px;
  line-height: 1.6;
}

/* Thẻ Designed */
.designed-bar {
  position: relative;
  z-index: 10;
  background: var(--ivory);
  border-top: 1px solid var(--line-gold-soft);
  padding: 8px 16px;
  text-align: center;
}
.footer__designed {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.95;
  letter-spacing: 0.04em;
  margin: 0;
}
.footer__designed a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}
.footer__designed a:hover {
  color: var(--gold-deep);
}

/* ============ LIGHTBOX GALLERY ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  user-select: none;
}
.lightbox.is-open {
  opacity: 1; visibility: visible;
}
.lightbox__overlay {
  position: absolute; inset: 0;
  background: rgba(10, 30, 50, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox__content {
  position: relative; z-index: 1;
  max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox__img-container {
  position: relative;
  max-width: 90vw;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 72vh;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transition: opacity 0.22s ease, transform 0.22s ease;
  object-fit: contain;
}
.lightbox__img.is-animating {
  opacity: 0.35;
  transform: scale(0.97);
}

.lightbox__close {
  position: absolute;
  top: -46px; right: 0;
  background: rgba(248, 246, 240, 0.2);
  border: 1px solid var(--gold);
  color: var(--ivory-pure);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.lightbox__close:hover {
  background: rgba(248, 246, 240, 0.35);
  transform: scale(1.08);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(23, 58, 92, 0.65);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox__nav:hover {
  background: var(--navy);
  transform: translateY(-50%) scale(1.1);
}
.lightbox__nav--prev {
  left: -56px;
}
.lightbox__nav--next {
  right: -56px;
}

.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  margin-top: 14px;
  padding: 0 8px;
  box-sizing: border-box;
}
.lightbox__caption {
  color: var(--ivory-pure);
  font-size: 13.5px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: left;
}
.lightbox__counter {
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(23, 58, 92, 0.6);
  border: 1px solid var(--line-gold-soft);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lightbox__nav {
    width: 38px; height: 38px;
    background: rgba(16, 46, 75, 0.75);
  }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox__close { top: -44px; right: 2px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  section.invite {
    padding-top: 28px;
    padding-bottom: 38px;
    padding-left: 12px;
    padding-right: 12px;
  }
  section.calendar-timeline-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .invite__card {
    padding: 0 4px !important;
  }
  .invite__greeting-group {
    margin-bottom: 22px;
  }
  .invite__celebrant-group {
    margin-bottom: 24px;
  }
  .invite__event-time {
    margin-bottom: 26px;
  }
  .invite__date-row {
    gap: 8px;
    margin-bottom: 28px;
  }
  .invite__date-col {
    width: 88px;
  }
  .invite__day-num {
    font-size: 44px;
  }
  .invite__venue-block {
    margin-bottom: 22px;
  }
  .invite__btn-wrap {
    margin-bottom: 20px;
  }
  .invite__btn-directions {
    padding: 9px 26px;
  }
  .calendar__card {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .letter__card {
    padding: 44px 20px 34px;
  }
}

@media (min-width: 760px) {
  section { padding: 80px 20px; }
  .hero { min-height: 100vh; }
}
