@import url("https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700&display=swap");

:root {
  --warm-accent: #d78fa3;
}

/* 전체 래퍼: 가운데 고정 + 최대 너비 450px */
.wrap {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background: #fff;
  /* background: #F0F8FF; */
  /* background: #e3f2fd; */
  /* background: #d1e9f6; */
  /* background: #a2d2ff; */
  position: relative;
}

/* body는 가운데 정렬을 위해 배경만 담당 */
body {
  margin: 0;
  font-family: "Nanum Myeongjo", serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  background: #f8f8f8; /* 회색 배경으로 450px 박스 강조 효과 */
}

.intro {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: var(--intro-height, 100svh);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 0 24px;
  isolation: isolate;
  background-color: #d9d0c7;

  overflow: hidden;
}

.intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

/* 오버레이 (파란색 → 투명 그라데이션) */
/* .intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

 
  background: linear-gradient(
    to bottom,
    rgba(0, 102, 204, 0.6) 0%,
    rgba(0, 102, 204, 0.3) 80%,
     rgba(0, 102, 204, 0) 100% 
  );

  z-index: 1;
  pointer-events: none;
} */

/* 기존 .intro::before는 유지하고 아래 내용을 추가하세요 */
.intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10%; /* 페이드 효과가 나타날 영역의 높이 (조절 가능) */

  /* 3단계 그라데이션 설정 */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    /* 1단계: 맨 위는 완전 투명 (사진 시작) */ rgba(248, 248, 248, 0.5) 70%,
    /* 2단계: 중간은 반투명하게 섞임 */ rgba(248, 248, 248, 1) 100%
      /* 3단계: 맨 밑은 요청하신 배경색으로 꽉 채움 */
  );

  z-index: 1;
  pointer-events: none;
}

/* 텍스트는 앞에 오도록 */
.intro .fade-in-text {
  position: relative;
  z-index: 2;
}

.fade-in-text {
  position: relative;
  padding-bottom: 7rem;
  margin-top: 0;
  margin-bottom: 7rem;
  color: #fff;
  opacity: 0;
  animation: fadeIn 3s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 꽃잎 캔버스 */
#introGlowCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0) 38%
    ),
    radial-gradient(
      circle at 82% 22%,
      rgba(255, 233, 206, 0.26) 0%,
      rgba(255, 233, 206, 0) 34%
    ),
    linear-gradient(
      to bottom,
      rgba(74, 56, 43, 0.3) 0%,
      rgba(108, 82, 61, 0.16) 36%,
      rgba(255, 255, 255, 0.05) 62%,
      rgba(248, 248, 248, 0.18) 100%
    );
  z-index: 0;
  pointer-events: none;
}

.intro::after {
  height: 14%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(248, 248, 248, 0.45) 68%,
    rgba(248, 248, 248, 1) 100%
  );
}

.intro-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-copy {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 2.5rem 1.25rem;
}

.intro-copy::before {
  content: "";
  position: absolute;
  inset: 12% 7%;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 247, 238, 0.14) 40%,
    rgba(255, 255, 255, 0) 72%
  );
  filter: blur(18px);
  animation: introBreath 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes introBreath {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* 다른 섹션 */
.section {
  background-color: #fff;
  /* background-color: #e3f2fd; */
  color: #444;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px;
  font-family: "GowoonDodum";
}
/* 처음에는 아래 + 투명 */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 화면에 등장할 때 적용되는 클래스 */
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.section p {
  font-size: 1.4rem;
  line-height: 1.8;
}

.section span {
  display: block;
  font-size: 1.3rem;
}

.parents {
  display: block;
  font-size: 1.4rem;
}

button {
  font-family: "GowoonDodum";
}

#address span {
  font-size: 1rem;
}

#address {
  text-align: left;
}

/* h2 내부 아이콘과 텍스트를 정확히 수직 중앙 정렬 */
.icon-heading {
  display: inline-flex; /* inline 흐름 유지 + flex 정렬 */
  align-items: center; /* 수직 가운데 정렬 */
  gap: 0.5rem; /* 아이콘과 텍스트 간격 */
  line-height: 1; /* 아이콘 기준 텍스트 중앙 맞춤 (필요시 조절) */
  vertical-align: middle; /* 인라인 요소들과의 정렬 안정화 */
}

/* 아이콘 스타일 — flex로 정렬되므로 vertical-align 불필요 */
.way-icon {
  display: block; /* img baseline 이슈 방지 */
  height: 1.2em; /* 기존 값 유지 (원하면 조절) */
  width: auto;
  margin: 0;
  padding: 0;
  object-fit: contain; /* 비율 보존 */
}

/* (선택) 만약 h2 전체 폭을 유지하되 왼쪽에 아이콘+텍스트 정렬하려면 */
.icon-heading.fullwidth {
  display: flex; /* block-level flex */
  width: 100%;
  align-items: center;
}

.parking-tip {
  display: block; /* 줄 전체 사용 */
  white-space: nowrap; /* 무조건 한 줄 유지 */
  font-size: 1.3rem !important;
}

.wedding-title {
  font-family: "OngleipRyuryu", cursive;
  font-size: 7em;
  text-align: center;
  color: white;
}

.wedding-title-eng {
  font-family: "Cafe24MeongiWhite", cursive;
  font-size: 7em;
  text-align: center;
  color: white;
}

.soft-blue {
  color: var(--warm-accent);
  font-weight: 600;
}

.way-icon.soft-blue {
  filter: sepia(0.78) saturate(0.72) brightness(0.86) hue-rotate(-8deg);
}

#floatingButtons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999; /* wrap 안이지만 최상단 표시 */
}

#floatingButtons.show-buttons {
  opacity: 1;
  pointer-events: auto;
}

.circle-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.25s;
}

.circle-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

.circle-btn img {
  width: 26px;
  height: 26px;
}










.handwrite{  width: 100%;
  max-width: 420px;   /* 데스크톱 기준 */
  height: auto;}

.handwrite text {
  font-family: 'Alex Brush', cursive;
  /* font-family: 'Allison', cursive; */

  font-size: 70px;

  fill: none;
  stroke: white;
  stroke-width: 2;

  stroke-dasharray: 300;
  stroke-dashoffset: 300;

  animation: write 0.6s ease forwards;
  animation-delay: var(--d);
}

.handwrite {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 28px rgba(51, 33, 20, 0.28));
}

@media (max-width: 480px) {
  .intro {
    padding: 0 18px;
  }

  .intro-copy {
    padding: 2rem 0.5rem;
  }

  .handwrite text {
    font-size: 62px;
  }
}

@keyframes write {
  to {
    stroke-dashoffset: 0;
  }
}
