/* ── Global Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Georgia', serif;
  background: #fff0f3;
  color: #5a2d3a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, .navbar, .footer {
  position: relative;
  z-index: 1;
}

/* ── Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: #ffe4ea;
  border-bottom: 1px solid #ffd0da;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-home-link {
  font-size: 19px;
  font-weight: 500;
  color: #5a2d3a;
  cursor: pointer;
  text-decoration: none;
}
.nav-home-link:hover { text-decoration: underline; }

.nailong-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #c47f8a;
  font-style: italic;
}

.star-icon { font-size: 12px; color: #e8a0af; }

.contact-btn {
  background: #e8798a;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.contact-btn:hover { background: #d4606f; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(90,45,58,0.18);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px 28px;
  min-width: 340px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 8px 40px rgba(200,100,120,0.18);
  position: relative;
  text-align: center;
}

.modal-title {
  font-size: 22px;
  color: #3d1a24;
  margin-bottom: 22px;
  font-family: 'Georgia', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-title .flower { color: #e8798a; font-size: 18px; }

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff5f7;
  border-radius: 16px;
  padding: 14px 18px;
  color: #3d1a24;
  text-decoration: none;
  transition: background 0.2s;
  text-align: left;
}
.modal-link:hover { background: #ffd8e0; }

.modal-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-link-icon svg { width: 22px; height: 22px; }

.modal-link-icon.linkedin { background: #fce4ec; }
.modal-link-icon.instagram { background: #fce4ec; }
.modal-link-icon.email { background: #fce4ec; }

.modal-link-text { display: flex; flex-direction: column; gap: 2px; }
.modal-link-label { font-size: 11px; color: #b07080; font-family: 'Georgia', serif; }
.modal-link-value { font-size: 14px; font-weight: 600; color: #3d1a24; font-family: 'Georgia', serif; }

.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  color: #c47f8a;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #5a2d3a; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: #c47f8a;
  font-style: italic;
  margin-top: auto;
}

/* ── Page header (used in sub-pages) ── */
.page-header {
  text-align: center;
  padding: 40px 20px 10px;
}
.page-header h1 {
  font-size: 42px;
  font-family: 'Georgia', serif;
  color: #3d1a24;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.page-header h1 .star-pink { color: #e8798a; font-size: 22px; }
.page-header .subtitle {
  font-size: 15px;
  color: #b07080;
  margin-top: 8px;
  font-style: italic;
}

/* ── Decorative background stars ── */
.deco-star {
  position: absolute;
  color: #e8a0af;
  pointer-events: none;
  user-select: none;
}

/* ── Card shared ── */
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(200,100,120,0.18);
  padding: 28px;
}

/* ── Falling petals (all pages) ── */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  border-radius: 50% 0 50% 0;
  background: #ffb7c5;
  opacity: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0.8; }
  80%  { opacity: 0.5; }
  100% { transform: translateY(100vh) rotate(360deg) translateX(60px); opacity: 0; }
}

/* ── Flower icon ── */
.flower-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  object-fit: contain;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tag / badge ── */
.tag {
  display: inline-block;
  background: #fff0f3;
  border: 1px solid #ffd0da;
  color: #b07080;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
}
