/* 글로벌 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s forwards;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 채팅 인터페이스 전환 효과 */
#chat-popup {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 링크 및 버튼 호버 효과 개선 */
a, button {
  transition: all 0.2s ease;
}

/* 헤더 섹션 애니메이션 */
header h1, header p, header div {
  opacity: 0;
}

header h1.animate-fade-in {
  animation-delay: 0.2s;
}

header p.animate-fade-in {
  animation-delay: 0.4s;
}

header div.animate-fade-in {
  animation-delay: 0.6s;
}

/* 카드 호버 효과 세부 조정 */
#features-container > div, #benefits > div {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#features-container > div:hover, 
#benefits .bg-blue-50:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 다운로드 섹션 링크 효과 */
#download a {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#download a:hover {
  transform: translateY(-2px);
}

/* 채팅 입력 필드 포커스 효과 */
#chat-input:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* 모바일 최적화 조정 */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }
  
  #chat-widget {
    bottom: 1rem;
    right: 1rem;
  }
  
  #chat-popup {
    width: calc(100vw - 2rem);
    max-width: 320px;
  }
}
