/* 커스텀 스타일 - 모던한 디자인 개선 */

/* 전역 변수 재정의 */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 부드러운 스크롤 */
html {
  scroll-behavior: smooth;
}

/* 헤더 글래스모피즘 효과 */
.header {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* 히어로 섹션 개선 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--primary-gradient);
  opacity: 0.05;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.5rem;
  color: #666;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

/* 서비스 카드 개선 */
.service-item {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary-gradient);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-item:hover::before {
  transform: translateX(0);
}

.service-item .icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.service-item:hover .icon {
  transform: rotate(360deg) scale(1.1);
}

.service-item .icon i {
  font-size: 2rem;
  color: white;
}

/* Features 카드 글래스모피즘 */
.features .features-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.features .features-item:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* 비전 섹션 개선 */
#vision {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}

#vision .section-title h2 {
  position: relative;
  display: inline-block;
}

#vision .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

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

/* 스크롤 인디케이터 */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* 버튼 스타일 개선 */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* 섹션 구분선 */
.section {
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* 모바일 반응형 개선 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .service-item {
    margin-bottom: 2rem;
  }
  
  .features .features-item {
    margin-bottom: 1.5rem;
  }
}

/* 페이지 로드 애니메이션 */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* 네비게이션 링크 호버 효과 */
.navmenu a {
  position: relative;
  padding-bottom: 5px;
}

.navmenu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.navmenu a:hover::after,
.navmenu a.active::after {
  width: 100%;
}

/* 섹션 타이틀 애니메이션 */
.section-title {
  position: relative;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #3e5055;
}

/* FAQ 아이템 스타일 개선 */
.faq-item {
  background: white;
  border-radius: 15px;
  padding: 20px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
}

.faq-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #3e5055;
  margin-bottom: 0;
}

/* 프라이싱 카드 개선 */
.pricing-item {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-item::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: var(--primary-gradient);
  opacity: 0.05;
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.pricing-item:hover::before {
  top: -150%;
  left: -150%;
}

.pricing-item.featured {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.pricing-item.featured .pricing-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--primary-gradient);
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 600;
}