/* Custom CSS */

@font-face {
  font-family: "insungitCutelivelyjisu";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/insungitCutelivelyjisu.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* 접근성: 모션 최소화 선호시 애니메이션 비활성 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 기본 스타일 ---------- */
body {
  font-family: "insungitCutelivelyjisu", sans-serif;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.bg-light {
  background: linear-gradient(180deg, #eaf6ff 0%, #fdfbff 100%);
}

/* Header */
header {
  background: linear-gradient(135deg, #d1eaff 0%, #a8e0ff 50%, #d1eaff 100%);
}

/* ---------- 애니메이션 키프레임 ---------- */
/* 둥둥 떠다니는 느낌 */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 글자에 은은한 반짝임 */
@keyframes shine {
  0%,
  100% {
    text-shadow: 0 0 4px rgba(0, 160, 255, 0.25);
  }
  50% {
    text-shadow: 0 0 12px rgba(0, 160, 255, 0.6);
  }
}

/* 미세한 호흡감(그림자/밝기) */
@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    filter: brightness(1.03);
  }
}

/* 갤러리 카드 살짝 둥둥 */
@keyframes float-card {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ---------- 타이포/타이틀 동작 ---------- */
header h1 {
  animation: float 3.2s ease-in-out infinite, shine 2.6s ease-in-out infinite;
}

.lead {
  /* animation: float 4.2s ease-in-out infinite;
  animation-delay: 0.6s; */
}

h2.fw-bold {
  animation: float 3.8s ease-in-out infinite;
}

/* ---------- 프로필 섹션 ---------- */
.profile-img-container {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  animation: breathe 4.5s ease-in-out infinite;
}

.profile-img-container:hover {
  transform: translateY(-5px);
}

.profile-img {
  /* filter: saturate(1.1); */
  transition: filter 0.3s ease;
}

.profile-img:hover {
  /* filter: saturate(1.3); */
}

/* ---------- 갤러리 섹션 ---------- */

.gallery-item {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float-card 5s ease-in-out infinite;
  will-change: transform;
  width: 100%;
  height: 100%;
}

/* 카드마다 타이밍 다르게 → 자연스러운 파도 느낌 */
.gallery-item:nth-child(3n + 1) {
  animation-duration: 5.6s;
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3n + 2) {
  animation-duration: 5s;
  animation-delay: 0.6s;
}
.gallery-item:nth-child(3n + 3) {
  animation-duration: 6.2s;
  animation-delay: 0.1s;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.gallery-item img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
