:root {
  --cream: #fdf8f0;
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --dark: #1a1208;
  --brown: #5c3d1e;
  --text: #3b2a14;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  overflow-x: hidden;
  cursor: default;
}

/* ── POPUP OVERLAY ── */
#popupOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 4, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
#popupOverlay.active {
  display: flex;
}
.popup-box {
  background: #1a1208;
  border: 1px solid #c9a96e;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 360px;
  width: 90%;
  position: relative;
  animation: popupIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.popup-heart {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  animation: heartbeat 1s ease infinite;
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.popup-title {
  font-family: "Cinzel", serif;
  color: #c9a96e;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.popup-text {
  font-family: "Cormorant Garamond", serif;
  color: #f5f0e8;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
}
.popup-bar {
  height: 2px;
  background: #c9a96e33;
  margin-top: 1.5rem;
  border-radius: 1px;
  overflow: hidden;
}
.popup-bar-fill {
  height: 100%;
  background: #c9a96e;
  width: 100%;
  transform-origin: left;
  animation: barDrain 3s linear forwards;
}
@keyframes barDrain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* ─── PETALS ─── */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: #1a1208;
  overflow: hidden;
  z-index: 1;
}

/* Hero background video */
#heroBgVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
}

/* Video yo'q bo'lganda gradient fon */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(249, 237, 224, 0.25) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 40% at 20% 100%,
      rgba(243, 232, 208, 0.2) 0%,
      transparent 60%
    );
  z-index: 1;
  pointer-events: none;
}

/* Video bo'lsa matn oq, bo'lmasa qoramtir */
#hero .hero-names {
  color: #fff;
}
#hero .save-tag {
  color: var(--gold-light);
}
#hero .hero-date {
  color: var(--gold-light);
}
#hero .hero-location {
  color: #e8d5a3;
}

.hero-ornament {
  width: 320px;
  max-width: 90vw;
  opacity: 0;
  animation: fadeDown 1.2s ease forwards 0.3s;
}

.save-tag {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 16px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.8s;
}

.hero-names {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(64px, 14vw, 130px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  color: var(--dark);
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 1s;
}

.hero-names span {
  color: var(--gold);
}

.hero-ampersand {
  display: block;
  font-size: clamp(40px, 9vw, 80px);
  color: var(--gold-light);
  line-height: 1;
}

.hero-date {
  font-family: "Cinzel", serif;
  font-size: clamp(13px, 2.5vw, 18px);
  letter-spacing: 4px;
  color: var(--brown);
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.4s;
}

.hero-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px auto;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.6s;
}

.hero-location {
  font-size: clamp(14px, 2vw, 17px);
  font-style: italic;
  color: var(--brown);
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.8s;
  letter-spacing: 1px;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
  font-family: "Cinzel", serif;
  opacity: 0;
  animation: fadeUp 1s ease forwards 2.5s;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── SECTIONS ─── */
section {
  position: relative;
  z-index: 1;
  padding: 64px 20px;
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.section-label {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 300;
  font-style: italic;
  color: var(--dark);
  text-align: center;
  line-height: 1;
  margin-bottom: 48px;
}

.gold-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 48px;
}

/* ─── INVITATION TEXT ─── */
#invite {
  background: linear-gradient(
    180deg,
    var(--cream) 0%,
    #f5ecd8 50%,
    var(--cream) 100%
  );
  text-align: center;
}

.invite-text {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.9;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto;
  font-style: italic;
}

.invite-highlight {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 600;
  color: var(--dark);
  display: block;
  margin: 20px 0;
  font-style: normal;
}

/* ─── COUNTDOWN ─── */
#countdown-sec {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 100px 20px;
}

#countdown-sec .section-title {
  color: var(--gold-light);
}

.countdown-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.cd-num {
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  font-family: "Cormorant Garamond", serif;
  transition: transform 0.3s;
}

.cd-label {
  font-family: "Cinzel", serif;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 8px;
}

.cd-sep {
  font-size: clamp(40px, 6vw, 70px);
  color: var(--gold);
  align-self: flex-start;
  padding-top: 8px;
  opacity: 0.4;
  font-weight: 300;
}

/* ─── DETAILS CARDS ─── */
#details {
  background: var(--cream);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 8px;
}

.detail-card {
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  padding: 40px 14px;
  text-align: center;
  background: #fffdf8;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold-light),
    var(--gold),
    var(--gold-light)
  );
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(201, 169, 110, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  opacity: 0.7;
}

.card-title {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 14px;
}

.card-main {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 600;
  font-style: italic;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.card-sub {
  font-size: 20px;
  color: var(--brown);
  line-height: 1.6;
}

/* ─── TIMELINE ─── */
#timeline {
  background: linear-gradient(180deg, var(--cream) 0%, #f0e8d8 100%);
  text-align: center;
}

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

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.tl-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 04px;
  position: relative;
}

.tl-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.tl-time {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  color: var(--gold);
  min-width: 110px;
  text-align: right;
}

.tl-item:nth-child(odd) .tl-time {
  text-align: left;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--gold);
  flex-shrink: 0;
  z-index: 2;
}

.tl-desc {
  min-width: 110px;
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
}

.tl-item:nth-child(odd) .tl-desc {
  text-align: right;
}

/* ─── DRESS CODE ─── */
#dresscode {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
}

#dresscode .section-title {
  color: var(--cream);
}
#dresscode .section-label {
  color: var(--gold);
}
#dresscode .gold-line {
  opacity: 0.5;
}

.dress-text {
  font-size: clamp(18px, 2.5vw, 22px);
  font-style: italic;
  color: #c8b99a;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.dress-code-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 16px 48px;
  font-family: "Cinzel", serif;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 6px;
  color: var(--gold);
}

.color-swatches {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.swatch-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 169, 110, 0.4);
  display: block;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.swatch-name {
  font-family: "Cinzel", serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: #c8b99a;
}

/* ─── LOCATION ─── */
#location {
  background: var(--cream);
  text-align: center;
}

.location-card {
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  padding: 56px 40px;
  max-width: 560px;
  margin: 0 auto;
  background: #fffdf8;
  position: relative;
}

.location-name {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 12px;
}

.location-addr {
  font-size: 17px;
  color: var(--brown);
  margin-bottom: 24px;
  font-style: italic;
}

.map-btn {
  display: inline-block;
  background: var(--dark);
  color: var(--gold-light);
  padding: 14px 40px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.map-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ─── MAP VISUAL ─── */
.map-visual {
  margin: 32px auto 0;
  max-width: 540px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #e8e0d0;
}

.map-visual img {
  width: 100%;
  height: 100%;
}

.map-pin-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--gold-light);
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 3px;
  padding: 6px 16px;
  white-space: nowrap;
  border-radius: 2px;
}

/* ─── RSVP ─── */
#rsvp {
  background: linear-gradient(180deg, #f0e8d8 0%, var(--cream) 100%);
  text-align: center;
}

.rsvp-box {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  padding: 56px 40px;
  background: #fffdf8;
}

.rsvp-desc {
  font-size: 18px;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 36px;
  line-height: 1.7;
}

.rsvp-form .field {
  margin-bottom: 24px;
  text-align: left;
}

.rsvp-form input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9a96e;
  background: transparent;
  padding: 10px 0;
  font-size: 18px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s;
}

.rsvp-form input[type="text"]::placeholder {
  color: #b0956a;
}
.rsvp-form input[type="text"]:focus {
  border-bottom-color: var(--dark);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.radio-label input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.field-label {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.rsvp-submit {
  background: var(--dark);
  color: var(--gold-light);
  border: none;
  padding: 16px 56px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 5px;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 16px;
  transition: all 0.3s ease;
}

.rsvp-submit:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ─── SUCCESS MSG ─── */
.success-msg {
  display: none;
  font-size: 24px;
  font-style: italic;
  color: var(--dark);
  padding: 32px;
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  background: #fffdf8;
}

/* ─── GALLERY ─── */
#gallery {
  background: var(--cream);
  padding-bottom: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.gender-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 8vw, 32px);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  line-height: 1;
  margin-top: 24px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: #e8e0d0;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: unset;
}
.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  border-radius: 4px;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(26, 18, 8, 0.55) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.4s;
}

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

.gallery-overlay span {
  color: var(--gold-light);
  font-size: 20px;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 2, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

#lightbox.open {
  display: flex;
}

#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  cursor: default;
  object-fit: contain;
}

.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s;
}

.lb-close:hover {
  background: var(--gold);
  color: var(--dark);
}

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}
.lb-prev:hover,
.lb-next:hover {
  background: rgba(201, 169, 110, 0.2);
}

/* ─── VIDEO ─── */
#video-sec {
  background: linear-gradient(180deg, var(--cream) 0%, #f0e8d8 100%);
}

.video-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 16/9;
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.video-wrap video,
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1208 0%, #2d1f0a 100%);
  cursor: pointer;
  transition: background 0.3s;
}

.video-placeholder:hover {
  background: linear-gradient(135deg, #241908 0%, #3d2a0e 100%);
}

.vp-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.3);
  position: absolute;
  animation: vRing 2s ease-in-out infinite;
}

@keyframes vRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.1;
  }
}

.vp-play svg {
  width: 72px;
  height: 72px;
}

.vp-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-style: italic;
  color: var(--gold-light);
  margin-top: 20px;
}

.vp-sub {
  font-family: "Cinzel", serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(201, 169, 110, 0.45);
  margin-top: 8px;
  text-align: center;
  padding: 0 20px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  text-align: center;
  padding: 56px 20px;
  color: #7a6240;
}

.footer-names {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 15px;
  font-style: italic;
  color: #7a6240;
  margin-bottom: 32px;
}

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

.footer-small {
  font-family: "Cinzel", serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: #5a4825;
}

/* ─── FLOATING MUSIC ─── */
#music-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

#music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(201, 169, 110, 0.5);
}

#music-btn svg {
  width: 22px;
  height: 22px;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── KEYFRAMES ─── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes petalDrift {
  0% {
    transform: translateY(-10px) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(110vh) rotate(720deg) translateX(60px);
    opacity: 0;
  }
}

@keyframes numFlip {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-12px);
    opacity: 0;
  }
  51% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .tl-item {
    flex-direction: column !important;
    gap: 8px;
  }
  .tl-item:nth-child(odd) {
    flex-direction: column !important;
  }
  .tl-time,
  .tl-desc {
    text-align: center !important;
    min-width: unset;
  }
  .timeline-line {
    display: none;
  }
  .rsvp-box {
    padding: 36px 20px;
  }
  .location-card {
    padding: 40px 20px;
  }
  #music-btn {
    bottom: 20px;
    right: 20px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.tall {
    grid-row: span 1;
  }
  .gallery-item.wide {
    grid-column: span 1;
    aspect-ratio: 1;
  }
  section {
    padding: 48px 16px;
  }
  .section-title {
    margin-bottom: 24px;
  }
  .gold-line {
    margin: 0 auto 24px;
  }
  .footer-tagline {
    margin-bottom: 16px;
  }
  .footer-divider {
    margin: 24px auto;
  }
  #gallery {
    padding-bottom: 40px;
  }
}
