*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rose: #e8a0bf;
  --rose-dark: #c76b96;
  --gold: #d4a853;
  --cream: #fff8f3;
  --blush: #fde8ef;
  --text: #3d2c35;
  --text-light: #6b5560;
  --shadow: 0 8px 32px rgba(199, 107, 150, 0.15);
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(61, 44, 53, 0.45) 0%,
    rgba(199, 107, 150, 0.55) 50%,
    rgba(61, 44, 53, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: fadeUp 1.2s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--blush);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

#hero-title-name {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #f5d78e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(199, 107, 150, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(199, 107, 150, 0.5);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-hint span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* Site tabs */
.site-tabs {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 160, 191, 0.3);
  box-shadow: 0 4px 20px rgba(199, 107, 150, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-tab {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.site-tab:hover {
  background: var(--blush);
  color: var(--rose-dark);
}

.site-tab.active {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  color: #fff;
  box-shadow: 0 4px 14px rgba(199, 107, 150, 0.35);
}

.site-content {
  min-height: 50vh;
}

.tab-panel {
  display: none;
  animation: tabFade 0.35s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Video section */
.video-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.video-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 160, 191, 0.2);
}

.video-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.video-card-title:empty {
  display: none;
}

.video-player {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a2e;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-player .video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #2d2d44, #1a1a2e);
}

.video-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-light);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-empty .video-placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* Message */
.message {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
}

.message-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid rgba(232, 160, 191, 0.2);
}

.message-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.message-card h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--rose-dark);
  margin-bottom: 1.5rem;
}

.message-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.message-highlight {
  font-weight: 700;
  color: var(--rose-dark) !important;
  font-size: 1.15rem !important;
}

.hearts-row {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.hearts-row span {
  animation: heartFloat 2s ease-in-out infinite;
}

.hearts-row span:nth-child(2) { animation-delay: 0.2s; }
.hearts-row span:nth-child(3) { animation-delay: 0.4s; }
.hearts-row span:nth-child(4) { animation-delay: 0.6s; }
.hearts-row span:nth-child(5) { animation-delay: 0.8s; }

@keyframes heartFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Section titles */
.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--rose-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Featured */
.featured {
  padding: 5rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.featured-large {
  grid-row: span 2;
}

.featured-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.4s;
}

.featured-item:hover {
  transform: scale(1.02);
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
}

.featured-large img {
  min-height: 460px;
}

.featured-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(61, 44, 53, 0.75));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Gallery */
.gallery {
  padding: 5rem 0;
  background: var(--blush);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(199, 107, 150, 0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wish */
.wish {
  padding: 5rem 0;
}

.wish-card {
  background: linear-gradient(135deg, var(--rose-dark), #a8557a);
  color: #fff;
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(199, 107, 150, 0.35);
}

.wish-card h2 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.wish-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto 1rem;
}

.wish-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem !important;
  margin-top: 1.5rem !important;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-hearts {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-tabs {
    justify-content: flex-start;
    padding: 0.5rem 0.75rem;
  }

  .site-tab {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-large {
    grid-row: auto;
  }

  .featured-large img {
    min-height: 280px;
  }

  .message-card,
  .wish-card {
    padding: 2rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
