/* ════════════════════════════════
   UI — 공통 컴포넌트
   (섹션 기반, 스크롤 reveal, 프로그레스바,
    네비 닷, 모달, 파티클, 포토 스트립)
   ════════════════════════════════ */

/* ── Section Base ── */
.section {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

/* ── Section Header (공통) ── */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-block;
  background: var(--blush);
  color: var(--rose-dk);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}

.section-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(.22,1,.36,1),
    transform 0.8s cubic-bezier(.22,1,.36,1);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.50s; }


/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,27,46,0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: 28px;
  padding: 36px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  transform: scale(0.85) translateY(16px);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 20px 70px rgba(0,0,0,0.22);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-emoji {
  font-size: 52px;
  display: block;
  margin-bottom: 14px;
}

.modal-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  white-space: pre-line;
}

.modal-close {
  margin-top: 22px;
  padding: 13px 36px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dk));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 6px 18px rgba(224,122,150,0.42);
}

/* ── Floating Particles ── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  opacity: 0;
  animation: floatUp var(--dur, 8s) ease-in var(--delay, 0s) infinite;
}

@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(100vh) rotate(0deg) scale(0.5); }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-10vh) rotate(360deg) scale(1.2); }
}

