/* ============================================================
   THÔI NÔI INVITATION — Soft Pastel Baby Blue Edition
   ============================================================ */

:root {
  --cream: #f4f9fd;
  --band-1: #e9f4fc;
  --band-2: #d6ecfb;
  --band-3: #b9ddf8;
  --band-4: #8ec5f2;
  --brown-mid: #5b9ed6;
  --brown: #8ec5f2;
  --brown-deep: #2e6ea6;
  --brown-darker: #1d4d77;
  --text-dark: #1e3a56;
  --text-soft: #4a7094;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(46, 110, 166, 0.16);

  --font-cute: 'Baloo 2', 'Fredoka', cursive, sans-serif;
  --font-round: 'Fredoka', 'Comfortaa', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(180deg,
      var(--cream) 0%,
      var(--band-1) 8%,
      var(--band-2) 18%,
      var(--band-1) 27%,
      var(--band-3) 36%,
      var(--band-2) 46%,
      var(--band-4) 55%,
      var(--band-3) 64%,
      var(--band-1) 73%,
      var(--band-2) 82%,
      var(--band-4) 91%,
      var(--brown-deep) 100%);
}

/* Khóa cuộn trang khi ở màn hình intro để không bị trượt lên xuống/trái phải */
body.intro-active {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  touch-action: none !important;
  position: fixed;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

#floating-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* ============================================================
   INTRO SCREEN (BG-INTRO + PASTEL BLUE DECOR)
   ============================================================ */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/images/bg-intro.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden !important;
  touch-action: none;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, visibility;
}

#intro-screen.closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg-layer {
  position: absolute;
  inset: 0;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.intro-deco {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}

/* 1. Multiple Clouds (bg2) placed at top - Kích thước lớn hơn */
.intro-cloud {
  z-index: 2;
  pointer-events: none;
}

.intro-cloud-1 {
  top: 0%;
  left: -6%;
  width: clamp(140px, 35vw, 210px);
  animation: cloudDrift1 6.5s ease-in-out infinite;
}

.intro-cloud-2 {
  top: 4%;
  right: -2%;
  width: clamp(120px, 30vw, 175px);
  z-index: 1;
  animation: cloudDrift2 7.5s ease-in-out infinite;
}

.intro-cloud-3 {
  top: 11%;
  left: 36%;
  width: clamp(130px, 32vw, 185px);
  opacity: 0.95;
  animation: cloudDrift1 8s ease-in-out infinite reverse;
}

.intro-cloud-4 {
  top: 20%;
  left: 2%;
  width: clamp(100px, 24vw, 145px);
  opacity: 0.85;
  z-index: 1;
  animation: cloudDrift2 6s ease-in-out infinite;
}

@keyframes cloudDrift1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -6px, 0); }
}

@keyframes cloudDrift2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-8px, 6px, 0); }
}

/* 2. Top BOY blocks decor (bg6) placed at top - Đưa xuống thấp hơn */
.intro-bg6-top {
  top: clamp(45px, 8vh, 85px);
  left: 6%;
  width: clamp(120px, 30vw, 170px);
  z-index: 3;
  animation: floatGentle 5s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

/* 3. Flying Bear Plane (bg5) placed at top-right - Đưa xuống thấp hơn */
.intro-bg5-plane {
  top: clamp(75px, 14vh, 135px);
  right: clamp(8px, 2.5vw, 22px);
  width: clamp(120px, 30vw, 168px);
  z-index: 4;
  animation: planeHover 3.5s ease-in-out infinite;
}

@keyframes planeHover {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(3deg); }
}

/* 4. Number 1 Balloon (bg1) on the left */
.intro-bg1-num1 {
  bottom: clamp(170px, 27vh, 240px);
  left: clamp(12px, 3.5vw, 26px);
  width: clamp(70px, 17vw, 95px);
  z-index: 3;
  animation: balloonBob 3.8s ease-in-out infinite;
}

@keyframes balloonBob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(-2deg); }
}

/* 5. Dinosaur Car (bg4) — Larger size at bottom */
.intro-bg4-car {
  bottom: clamp(10px, 1.5vh, 25px);
  left: clamp(0px, 1.5vw, 15px);
  width: clamp(240px, 66vw, 350px);
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
  animation: carIdle 2.5s ease-in-out infinite;
}

@keyframes carIdle {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -4px, 0) rotate(0.8deg); }
}

/* ── OPENING ANIMATIONS TRIGGERED VIA .open (Ultra-smooth 60fps) ── */
#intro-screen.open .intro-bg4-car {
  transform: translate3d(-140vw, 0, 0) rotate(-4deg);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.9s ease;
}

#intro-screen.open .intro-bg5-plane {
  transform: translate3d(130vw, -100px, 0) rotate(18deg);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.9s ease;
}

#intro-screen.open .intro-cloud-1,
#intro-screen.open .intro-cloud-3 {
  transform: translate3d(-120px, -50px, 0);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease;
}

#intro-screen.open .intro-cloud-2,
#intro-screen.open .intro-cloud-4 {
  transform: translate3d(120px, -50px, 0);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease;
}

#intro-screen.open .intro-bg6-top {
  transform: translate3d(0, -100px, 0);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease;
}

#intro-screen.open .intro-bg1-num1 {
  transform: translate3d(-100px, -80px, 0) rotate(-20deg);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.9s ease;
}

#intro-screen.open .intro-content-wrap {
  transform: translate3d(0, -25px, 0) scale(0.96);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.7s ease;
}

/* ── CENTER INVITATION CONTENT (Tinh tế, dễ thương, không background riêng) ── */
.intro-content-wrap {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: min(340px, 88vw);
  margin: 0 auto;
  user-select: none;
  background: transparent;
  padding: 10px 16px;
  will-change: transform, opacity;
}

.intro-badge {
  font-family: var(--font-cute);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 3.2px;
  color: #205584;
  margin-bottom: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(255, 255, 255, 0.7);
}

.intro-title-main {
  font-family: var(--font-cute);
  font-size: clamp(40px, 11.5vw, 58px);
  font-weight: 800;
  color: #164673;
  line-height: 1.12;
  margin: 2px 0 2px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.95), 0 4px 16px rgba(46, 110, 166, 0.2);
  letter-spacing: -0.3px;
}

.intro-subtitle-nick {
  font-family: var(--font-cute);
  font-weight: 700;
  font-size: 18px;
  color: #2e6ea6;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.intro-guest-line {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: #1e3a56;
  margin-bottom: 18px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.intro-guest-hl {
  font-family: var(--font-cute);
  font-weight: 700;
  color: #164673;
  font-size: 17px;
}

.intro-tap-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro-tap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(225, 242, 255, 0.9));
  border: 1.5px solid rgba(142, 197, 242, 0.7);
  box-shadow: 0 8px 24px rgba(46, 110, 166, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.5);
  color: #1a4d78;
  font-family: var(--font-cute);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pulseButtonPill 2.8s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@keyframes pulseButtonPill {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(46, 110, 166, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(46, 110, 166, 0.32), 0 0 0 5px rgba(255, 255, 255, 0.7);
  }
}

.intro-tap-btn:hover {
  transform: scale(1.06);
}

.tap-icon {
  font-size: 17px;
}

.intro-tap-hint {
  margin-top: 9px;
  font-size: 12px;
  color: #4a7094;
  font-weight: 600;
  letter-spacing: 0.4px;
  opacity: 0.85;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

#transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--band-3) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

/* ============================================================
   MAIN PAGE
   ============================================================ */
#main-page {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px) scale(0.99);
  transition: opacity 1s cubic-bezier(.2, .7, .3, 1), transform 1s cubic-bezier(.2, .7, .3, 1);
}

#main-page.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-inner {
  text-align: center;
  padding: 0 20px;
  max-width: 640px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--brown-mid);
  text-transform: uppercase;
}

.section-decor-line {
  width: 50px;
  height: 4px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brown-deep), var(--brown));
  margin: 10px auto 12px;
}

.section-round-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--text-dark);
}

[data-aos] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.3s cubic-bezier(.2, .6, .25, 1), transform 1.3s cubic-bezier(.2, .6, .25, 1);
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}

[data-aos].aos-in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ---------- Music Toggle (Floating Bottom-Right, Simple & Cute) ---------- */
.music-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brown-deep);
  color: var(--white);
  border: 3px solid var(--white);
  box-shadow: 0 8px 24px rgba(46, 110, 166, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.4), background-color 0.3s ease;
}

.music-toggle-btn.active-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.music-toggle-btn.active-show:hover {
  transform: scale(1.12);
  background: var(--brown-darker);
}

.music-disc-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-disc-icon svg {
  width: 100%;
  height: 100%;
}

.music-toggle-btn .icon-mute {
  display: none;
}

.music-toggle-btn.muted .icon-note {
  display: none;
}

.music-toggle-btn.muted .icon-mute {
  display: block;
}

.music-toggle-btn.playing {
  animation: cuteBobSpin 4s ease-in-out infinite;
  background: var(--brown-darker);
}

@keyframes cuteBobSpin {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.08) rotate(180deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

.music-pulse-glow {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(142, 197, 242, 0.6);
  opacity: 0;
  pointer-events: none;
}

.music-toggle-btn.playing .music-pulse-glow {
  animation: glowPulse 2.2s ease-out infinite;
}

@keyframes glowPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  padding: 40px 20px 24px;
  text-align: center;
  overflow: hidden;
}

.hero-deco-cloud {
  position: absolute;
  width: 140px;
  opacity: 0.8;
}

.hero-deco-cloud.cl1 {
  top: 5%;
  left: -6%;
  animation: cloudDrift 20s ease-in-out infinite;
}

.hero-deco-cloud.cl2 {
  top: 13%;
  right: -8%;
  width: 110px;
  animation: cloudDrift 24s ease-in-out infinite reverse;
}

.hero-deco-bear {
  position: absolute;
  width: 90px;
  bottom: 2%;
  right: 4%;
  opacity: 0.85;
  animation: floatSlow 7s ease-in-out infinite;
}

.hero-badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-badge {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 30px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
}

.badge-1 {
  background: var(--white);
  color: var(--brown-deep);
  transform: rotate(-4deg);
}

.badge-2 {
  background: var(--brown-deep);
  color: var(--white);
  transform: rotate(3deg);
}

.hero-happy {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(40px, 12vw, 68px);
  line-height: 1.02;
  color: var(--brown-deep);
  letter-spacing: 1px;
  text-shadow: 3px 4px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(46, 110, 166, 0.2);
  margin-bottom: 6px;
}

.hero-name-wrap {
  margin-top: 10px;
}

.hero-name-prefix {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.hero-name {
  font-family: var(--font-script);
  font-size: clamp(50px, 14vw, 82px);
  color: var(--brown-darker);
  line-height: 1;
  margin: 2px 0;
}

.hero-name-nick {
  display: block;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: clamp(16px, 3.4vw, 20px);
  color: var(--brown-mid);
  letter-spacing: 3px;
  margin-top: 2px;
}

.hero-name-date {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
  letter-spacing: 3px;
  margin-top: 6px;
}

.hero-photo-frame {
  position: relative;
  max-width: 300px;
  margin: 24px auto 0;
}

.hero-photo-scallop {
  border-radius: 50% 50% 10% 10% / 32% 32% 6% 6%;
  overflow: hidden;
  border: 8px solid var(--white);
  outline: 3px dashed var(--brown);
  outline-offset: 6px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
  cursor: zoom-in;
}

.hero-photo-scallop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-star {
  position: absolute;
  animation: twinkle 2.4s ease-in-out infinite;
}

.hero-photo-star.s1 {
  width: 36px;
  top: -16px;
  left: -16px;
}

.hero-photo-star.s2 {
  width: 24px;
  bottom: 10%;
  right: -14px;
  animation-delay: -1s;
}

.hero-heart-deco {
  position: absolute;
  font-size: 26px;
  animation: floatSlow 4s ease-in-out infinite;
}

.hero-heart-deco.h1 {
  top: -6%;
  right: 6%;
  animation-delay: -1s;
}

.hero-heart-deco.h2 {
  bottom: 4%;
  left: -8%;
  animation-delay: -2s;
}

.hero-photo-badge {
  position: absolute;
  bottom: -16px;
  right: -4px;
  background: var(--brown-deep);
  color: var(--white);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-6deg);
}

/* ============================================================
   INFO SECTION (MATCHING IMAGE 1 & IMAGE 2 - SOFT PASTEL BLUE THEME)
   ============================================================ */
.info-section {
  position: relative;
  padding: 28px 16px 20px;
  text-align: center;
}

.info-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 620px;
  margin: 0 auto 12px;
  padding: 0 4px;
}

.info-title-365 {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  color: var(--brown-darker);
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow: 2px 2px 0 #fff;
}

.info-quote-deco {
  font-family: serif;
  font-size: clamp(40px, 10vw, 54px);
  color: var(--brown-deep);
  line-height: 0.6;
  opacity: 0.85;
}

.info-panel {
  margin-top: 8px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.info-left {
  flex: 0 1 38%;
  z-index: 1;
  position: relative;
}

.info-left-card {
  background: var(--white);
  border-radius: 18px;
  padding: 14px 10px;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 2.5px solid var(--brown-deep);
}

.info-card-star {
  position: absolute;
  width: 22px;
  top: -10px;
  right: -6px;
  animation: twinkle 2.6s ease-in-out infinite;
}

.info-left-name {
  font-family: var(--font-script);
  font-size: clamp(22px, 5.2vw, 30px);
  color: var(--brown-darker);
  font-style: italic;
  text-align: center;
  line-height: 1.1;
}

.info-left-nick {
  font-family: var(--font-script);
  font-size: clamp(14px, 3.6vw, 19px);
  color: var(--brown-deep);
  font-style: italic;
  text-align: center;
  margin-top: 2px;
}

.info-left-divider {
  width: 100%;
  height: 2px;
  background: var(--brown-deep);
  opacity: 0.5;
  margin: 8px 0 10px;
}

.info-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(13px, 3.6vw, 16px);
  color: var(--brown-darker);
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-round);
}

.info-stat-icon {
  width: clamp(20px, 4.8vw, 26px);
  height: clamp(20px, 4.8vw, 26px);
  flex-shrink: 0;
}

.info-stat span {
  letter-spacing: 0.5px;
}

.info-right {
  flex: 0 1 62%;
  z-index: 3;
  margin-left: -20px;
  position: relative;
}

/* Cute Polaroid Photo Frame (Right photo in Image 1: Much Larger & Taller) */
.cute-photo-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #fff;
  padding: 12px 12px 28px;
  border-radius: 6px;
  border: 2.5px solid var(--band-3);
  box-shadow: 0 14px 32px rgba(46, 110, 166, 0.22);
  transform: rotate(3.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
}

.cute-photo-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.cute-photo-quote {
  position: absolute;
  top: -24px;
  left: -14px;
  font-family: serif;
  font-size: clamp(48px, 11vw, 66px);
  color: var(--brown-deep);
  line-height: 1;
  pointer-events: none;
}

.cute-photo-frame img {
  width: 100%;
  aspect-ratio: 3/4.2;
  height: clamp(260px, 50vw, 340px);
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.info-photo-plane {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.info-invite {
  text-align: center;
  margin-top: 26px;
}

.info-invite-pill {
  display: inline-block;
  background: var(--brown-deep);
  color: var(--white);
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 30px;
  letter-spacing: 1px;
}

.info-invite-name {
  font-family: var(--font-script);
  font-size: clamp(30px, 7vw, 42px);
  color: var(--brown-darker);
  margin-top: 12px;
}

.info-invite-name span {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 0.5em;
  color: var(--brown-mid);
  display: block;
  letter-spacing: 2px;
  margin-top: 2px;
}

.info-invite-text {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 8px;
  line-height: 1.6;
}

/* Image 2 horizontal banner photo frame */
.invite-banner-frame {
  margin-top: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  cursor: zoom-in;
}

.invite-scallop-outer {
  background: var(--brown-deep);
  padding: 8px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(46, 110, 166, 0.22);
}

.invite-scallop-inner {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.invite-scallop-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.invite-banner-frame:hover img {
  transform: scale(1.03);
}

.info-quote {
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.br-desktop {
  display: none;
}

@media (min-width: 640px) {
  .br-desktop {
    display: inline;
  }
}

/* ============================================================
   EVENT / COUNTDOWN / CALENDAR / MAP
   ============================================================ */
.event-section {
  padding: 32px 20px 28px;
  text-align: center;
}

.event-datetime {
  margin-top: 18px;
}

.event-time {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-soft);
}

.event-date {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(26px, 6vw, 34px);
  color: var(--brown-darker);
  letter-spacing: 2px;
  margin-top: 2px;
}

.countdown-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.cd-box {
  background: var(--white);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 64px;
  box-shadow: var(--shadow-soft);
}

.cd-box span {
  display: block;
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 700;
  color: var(--brown-deep);
}

.cd-box small {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 1px;
}

.calendar-card {
  margin-top: 22px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.calendar-month {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  font-size: 12px;
  color: var(--text-soft);
  padding: 5px 0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
}

.cal-cell.head {
  color: var(--brown-mid);
  font-weight: 700;
  font-size: 11px;
}

.cal-cell.today {
  background: var(--brown-deep);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(46, 110, 166, 0.4);
}

.cal-cell.empty {
  visibility: hidden;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.pin-icon {
  width: 28px;
  flex-shrink: 0;
}

.event-loc-name {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
}

.event-loc-addr {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

.btn-direction {
  display: inline-block;
  margin-top: 14px;
  background: var(--brown-deep);
  color: var(--white);
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-direction:hover {
  transform: translateY(-3px);
  background: var(--brown-darker);
}

.event-map {
  margin-top: 18px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--white);
}

.event-map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

/* ============================================================
   ALBUM — MATCHING IMAGE 3 (STRICTLY NO ROUNDED CORNERS)
   ============================================================ */
.album-section {
  padding: 32px 20px 28px;
  text-align: center;
}

.album-grid-layout {
  margin-top: 20px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-grid-layout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  /* No rounded corners as per prompt */
  transition: transform 0.4s ease;
}

.zoomable-trigger {
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 0;
}

.zoomable-trigger:hover img {
  transform: scale(1.03);
}

/* Row 1: Full width top image */
.album-row-top {
  width: 100%;
  aspect-ratio: 16/9;
}

/* Row 2 & Row 3: 2 Cột 2 ảnh dọc song song */
.album-row-mid,
.album-row-bot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.album-item-pair {
  width: 100%;
  aspect-ratio: 3/4.2;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-section {
  position: relative;
  padding: 36px 20px 28px;
  text-align: center;
  overflow: hidden;
}

.rsvp-deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}

.rsvp-deco-circle.c1 {
  width: 160px;
  height: 160px;
  background: var(--band-3);
  top: -40px;
  left: -50px;
}

.rsvp-deco-circle.c2 {
  width: 120px;
  height: 120px;
  background: var(--brown-mid);
  bottom: -30px;
  right: -40px;
}

.rsvp-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
  position: relative;
  z-index: 2;
}

.rsvp-form {
  margin-top: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  text-align: left;
}

.fg {
  margin-bottom: 14px;
}

.fg label {
  display: block;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 13px;
  color: var(--brown-deep);
  margin-bottom: 5px;
}

.fg input,
.fg textarea,
.fg select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--band-3);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  outline: none;
  border-color: var(--brown-deep);
  box-shadow: 0 0 0 4px rgba(142, 197, 242, 0.35);
}

.fg textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-rsvp {
  width: 100%;
  padding: 13px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--brown-deep), var(--brown-mid));
  color: var(--white);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-rsvp:hover {
  transform: translateY(-2px);
}

.btn-rsvp:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-msg {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

/* ============================================================
   GUESTBOOK (Continuous Infinite Marquee)
   ============================================================ */
.guestbook-section {
  padding: 36px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#gb-loading,
#gb-empty {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-soft);
}

.gb-marquee-wrapper {
  margin-top: 24px;
  width: 100%;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  padding: 10px 0 20px;
}

.gb-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.gb-track-inner {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  animation: gbMarqueeContinuous 32s linear infinite;
}

/* Pause animation on hover or when user touches */
.gb-marquee-wrapper:hover .gb-track-inner,
.gb-track-inner.paused {
  animation-play-state: paused;
}

@keyframes gbMarqueeContinuous {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gb-card {
  flex: 0 0 260px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(142, 197, 242, 0.45);
  border-radius: 20px;
  padding: 18px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(46, 110, 166, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  user-select: none;
}

.gb-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 32px rgba(46, 110, 166, 0.2);
  background: #ffffff;
}

.gb-name {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gb-msg {
  font-size: 13.5px;
  color: var(--text-dark);
  margin-top: 8px;
  line-height: 1.55;
  word-break: break-word;
}

.gb-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-soft);
  border-top: 1px dashed rgba(142, 197, 242, 0.5);
  padding-top: 10px;
}

.gb-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
}

.gb-badge.a {
  background: var(--band-2);
  color: var(--brown-darker);
}

.gb-badge.n {
  background: #f3dede;
  color: #8a4c4c;
}

/* ============================================================
   FOOTER (Background Image footer.jpg ~ 3:4 Ratio)
   ============================================================ */
.footer {
  position: relative;
  max-width: 460px;
  margin: 20px auto 0;
  aspect-ratio: 3 / 4;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 16px 24px;
  text-align: center;
  background-image: url('../assets/images/footer.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 10px 30px rgba(46, 110, 166, 0.15);
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(244, 249, 253, 0.05) 0%,
    rgba(46, 110, 166, 0.25) 45%,
    rgba(17, 48, 77, 0.88) 100%
  );
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.footer-ty {
  font-family: var(--font-script);
  font-size: clamp(32px, 7.5vw, 40px);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.footer-name {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(16px, 4vw, 19px);
  letter-spacing: 2px;
  color: var(--white);
  margin-top: 3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.footer-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 2px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.footer-deco-line {
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
  margin: 10px auto;
}

.footer-quote {
  font-style: italic;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.lightbox-modal.active .lightbox-container img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: -6px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: none;
  font-size: 32px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .hero-section {
    padding: 60px 20px 40px;
  }

  .event-map iframe {
    height: 300px;
  }
}

@media (max-width: 380px) {
  .balloon-cluster {
    width: 200px;
    height: 230px;
  }

  .balloon {
    width: 72px;
    height: 88px;
  }

  .hero-name {
    font-size: 56px;
  }

  .gb-card {
    flex-basis: 210px;
  }
}