/* ============================================================
   style.css — 한강에셋투자자문 커스텀 스타일
   Tailwind CDN으로 처리 불가능한 세부 스타일 정의
   ============================================================ */

/* ── Smooth Scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── 헤더 스크롤 효과 ── */
#header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── 내비게이션 활성 링크 ── */
.nav-link.active {
  color: #1A237E;
  font-weight: 700;
  background-color: #E8EAF6;
}

/* ── Hero 애니메이션 ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ── 스크롤 페이드인 (Intersection Observer로 트리거) ── */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 서비스 카드 호버 ── */
.service-card:hover {
  transform: translateY(-6px);
}

/* ── 피처 카드 호버 ── */
.feature-card:hover {
  transform: translateY(-4px);
}

/* ── 모바일 메뉴 ── */
#mobile-nav.show {
  display: block;
}

/* ── CTA 버튼 웨이브 효과 ── */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(26, 35, 126, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(26, 35, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 35, 126, 0); }
}

.pulse-ring {
  animation: pulse-ring 2s infinite;
}

/* ── 반응형 미세조정 ── */
@media (max-width: 767px) {
  #hero {
    min-height: 100svh;
  }

  #hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }

  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ── AI Detail 섹션 장식 ── */
#ai-detail .decorative-dot {
  background: radial-gradient(circle, #C8A96E 0%, transparent 70%);
}

/* ── 셀렉션 컬러 ── */
::selection {
  background-color: #1A237E;
  color: white;
}

::-moz-selection {
  background-color: #1A237E;
  color: white;
}

/* ── 스크롤바 ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #1A237E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0C1142;
}
/* ── 브랜드명 좌우폭 통일 ── */

/* ── 팝업 공지 애니메이션 ── */
@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.animate-popup {
  animation: popup-in 0.35s ease-out;
}
