/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Poppins:wght@300;400;600;700;900&display=swap');


/* 모바일 가로 스크롤 문제 해결 */
html, body {overflow-x: hidden; width: 100%; max-width: 100vw;}
* {max-width: 100%;}


/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {--primary: #4A90E2; --secondary: #2C5AA0; --accent: #7CB3E9; --dark: #1a1a1a; --gray: #666; --light: #f8fafc;}
body {font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--dark); line-height: 1.7; overflow-x: hidden;}

.container {max-width: 1280px; margin: 0 auto; padding: 0 24px; }


/*.header-wrap {display: flex; justify-content: space-between; align-items: center; padding: 24px 0;}*/
/*.logo {font-size: 26px; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px;}*/


/* Header */
.header {position: fixed; top: 0; width: 100%; background: transparent; z-index: 1000; transition: all 0.4s ease;}
.header-wrap {display: flex; justify-content: space-between; align-items: center; padding: 24px 0;}
.header .logo {font-size: 30px; font-weight: 700; color: white; transition: all 0.4s ease; text-shadow: 0 2px 8px rgba(0,0,0,0.3);}
.header .logo a {color:#fff;}
.header.scrolled {background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);}


/* 메뉴 - 투명 배경일 때 흰색 */
.header .nav-item > a {color: white; transition: all 0.4s ease; text-shadow: 0 1px 4px rgba(0,0,0,0.2);}

/* 스크롤 시 텍스트 검정색 */
.header.scrolled .logo {background: linear-gradient(135deg, #4A90E2, #2C5AA0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none;}
.header.active .logo {background: #fff; -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none;}
.header.scrolled .nav-item > a {color: #222; text-shadow: none;}
.header.scrolled .nav-item:hover > a {color: #4A90E2;}

.header.active {background:linear-gradient(135deg, #4A90E2, #2C5AA0)}

.nav {display: flex; gap: 48px; align-items: center;}
.nav-items {flex: 1; padding: 50px 0;}
.nav-item {position: relative;}
.nav-item > a {text-decoration: none; color: var(--dark); font-weight: 500; font-size: 1.2rem; position: relative; transition: color 0.3s; display: block; padding: 8px 0;}
.nav-item > a::after {content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--primary); transition: width 0.3s;}
.nav-item:hover > a {color: var(--primary);}
.nav-item:hover > a::after {width: 100%;}
.nav.active {background: white !important;}

/* PC 서브메뉴 */
.sub-menu {position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: white; min-width: 200px; padding: 16px 0; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin-top: 16px; z-index: 1000;}
/* 메뉴 아이템 컨테이너 */
.nav-item:hover .sub-menu {opacity: 1; visibility: visible; margin-top: 8px;}
.sub-menu a {display: block; padding: 12px 24px; color: var(--dark); text-decoration: none; font-size: 1rem; font-weight: 500; transition: all 0.3s; white-space: nowrap; letter-spacing: -0.02em;}
.sub-menu a:hover {background: var(--light); color: var(--primary); padding-left: 32px;}


/* 버거 메뉴 - 기본 흰색 */
.burger span {width: 28px; height: 3px; background: white; border-radius: 3px; transition: all 0.4s ease;}
.header.scrolled .burger span {background: #222 !important;}
.header.active .burger span {background: #fff !important;}
.burger {display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px;}
.burger.active span:nth-child(1) {transform: rotate(45deg) translateY(9px);}
.burger.active span:nth-child(2) {opacity: 0;}
.burger.active span:nth-child(3) {transform: rotate(-45deg) translateY(-9px);}


/* 모바일에서 기본적으로 숨김 */
@media (max-width: 768px) {

	/* 헤더 기본 */
	.header {padding: 0;}
	.header-wrap {padding: 20px 0; position: relative;}
	/* 로고 위치 조정 */
	.logo {font-size: 22px !important; max-width: calc(100% - 60px); color:#fff;}

	/* 버거 메뉴 위치 수정 */
	.burger {position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;}
	.burger span {width: 28px; height: 3px; background: white; border-radius: 3px; transition: all 0.3s;}

	/* 스크롤 시 버거 메뉴 색상 */
	.header.scrolled .burger span {background: #fff;}

	/* 버거 메뉴 열렸을 때 X 모양 */
	.burger.active span:nth-child(1) {transform: rotate(45deg) translateY(9px);}
	.burger.active span:nth-child(2) {opacity: 0;}
	.burger.active span:nth-child(3) {transform: rotate(-45deg) translateY(-9px);}

	/* 메뉴 열렸을 때 버거는 항상 검정색 */
	.burger.active span {background: #fff !important;}

	/* 모바일 메뉴 전체 화면 덮기 */
	.nav {position: fixed; top: 65px; left: 0; right: 0; width: 100%; height: 100vh; background: white; flex-direction: column; padding: 0; box-shadow: none; gap: 0; z-index: 1000; display: none; overflow-y: auto; align-items: stretch;}
	.nav.active { display: flex;}

	/* 모바일 메뉴 내부 상단 헤더 (흰색 배경) */
	.nav-header {height: 30px; background: white; /*border-bottom: 1px solid #e5e5e5;*/ display: flex; align-items: center; padding: 0; position: sticky; top: 0; z-index: 10; flex-shrink: 0;}

	/* 모바일 메뉴 로고 */
	.nav-header .nav-logo {font-size: 20px; font-weight: 700; background: linear-gradient(135deg, #4A90E2, #2C5AA0); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}

	/* 메뉴 아이템 컨테이너 */
	.nav-items {flex: 1; padding: 50px 0;}

	/* 메뉴 아이템 */
	.nav-item {border-bottom: 1px solid #f0f0f0;}

	/* 메뉴 링크 스타일 */
	.nav .nav-item > a {color: #222 !important; text-shadow: none !important; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 600; border-bottom: none;}
	.nav .nav-item:last-child {border-bottom: none;}

	/* has-sub 화살표 표시 */
	.nav .nav-item.has-sub > a::after {content: '+'; width: auto; height: auto; background: none; position: static; font-size: 28px; font-weight: 300; color: #999; transition: transform 0.3s;}
	.nav .nav-item.has-sub.active > a::after {content: '−'; transform: rotate(180deg);}

	/* 서브메뉴 */
	.nav .sub-menu {position: static; transform: none; box-shadow: none; border-radius: 0; background: #f8fafc; padding: 0; margin: 0; min-width: auto; max-height: 0; overflow: hidden; opacity: 1; visibility: visible; transition: max-height 0.3s ease-out;}
	.nav .nav-item.active .sub-menu {max-height: 400px; padding: 8px 0;}
	.nav .sub-menu a {color: #555 !important; padding: 14px 24px 14px 48px; font-size: 15px; font-weight: 500; border-bottom: 1px solid #e8eef3;}
	.nav .sub-menu a:last-child {border-bottom: none;}
	.nav .sub-menu a:hover {background: #e8f2fa; color: #4A90E2 !important;}

	/* body 스크롤 방지 */
	body.menu-open {overflow: hidden;}

	.container {max-width: 100%; padding: 0 20px;}
	.hero {width: 100%; overflow: hidden;}
	.hero-grid {grid-template-columns: 1fr; gap: 40px;}

	/* 이미지들도 체크 */
	img {max-width: 100%; height: auto;}
	
	@keyframes slideDown {
		from {opacity: 0; transform: translateY(-20px);}
		to {opacity: 1; transform: translateY(0);}
	}
}


/* Hero */
.hero {position: relative; width:100%; min-height: 100vh; /*background: linear-gradient(135deg, #4A90E2 0%, #2C5AA0 100%);*/ display: flex; align-items: center; overflow: hidden; padding-top: 100px;}
.hero-bg {position: absolute; inset: 0; background-image: /*repeating-linear-gradient(90deg, transparent 0, transparent 60px, rgba(255,255,255,0.02) 60px, rgba(255,255,255,0.02) 61px), repeating-linear-gradient(0deg, transparent 0, transparent 60px, rgba(255,255,255,0.02) 60px, rgba(255,255,255,0.02) 61px);*/}
.hero-grid {position: relative; display: grid; grid-template-columns: 3fr 2fr; gap: 80px; align-items: center; color: white;}
.badge {display: inline-block; padding: 8px 20px; background: rgba(255,255,255,0.15); border-radius: 50px; font-size: 18px; font-weight: 500; margin-bottom: 24px; backdrop-filter: blur(10px); letter-spacing: -0.02em;}
.hero h1 {font-size: 65px; font-weight: 700; line-height: 1.3; margin-bottom: 28px; letter-spacing: -0.04em;}


/* Hero 배경 이미지 */
.hero-bg {position: absolute; inset: 0; background-image: url('/img/main/mvisual.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat;}

/* 배경 이미지 위에 오버레이 (선택사항) */
.hero-bg::after {content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(74, 144, 226, 0.7), rgba(44, 90, 160, 0.7));}

/* 기존 패턴 제거하고 싶으면 아래 주석 해제 */
/*
.hero-bg::before {content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent 0, transparent 60px, rgba(255,255,255,0.02) 60px), repeating-linear-gradient(0deg, transparent 0, transparent 60px, rgba(255,255,255,0.02) 60px); z-index: 1;}
*/

.highlight {display: block; background: linear-gradient(to right, #B8D8F5, white); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700;}
.hero p {font-size: 24px; opacity: 0.95; margin-bottom: 40px; line-height: 1.7; letter-spacing: -0.02em; font-weight: 400;}
.hero-btns {display: flex; gap: 16px;}
.btn {padding: 16px 36px; border-radius: 50px; font-weight: 600; font-size: 20px; text-decoration: none; transition: all 0.3s; display: inline-block; letter-spacing: -0.02em;}
.btn-primary {background: white; color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.2);}
.btn-primary:hover {transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3);}
.btn-outline {background: transparent; color: white; border: 2px solid white;}
.btn-outline:hover {background: white; color: var(--primary);}

/* K-Bio Circle */
.circle-wrap {position: relative; width: 480px; height: 480px; margin: 0 auto; display: flex; align-items: center; justify-content: center;}
.pulse {position: absolute; width: 100%; height: 100%; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; animation: pulse 4s ease-out infinite;}
@keyframes pulse {
	0% { transform: scale(0.7); opacity: 1; }
	100% { transform: scale(1.4); opacity: 0; }
}
.kbio {font-size: 85px; font-weight: 700; text-align: center; text-shadow: 0 10px 40px rgba(0,0,0,0.3); line-height: 1.1; font-family: var(--font-en); letter-spacing: -0.03em;}
.kbio small {font-size: 20px; font-weight: 400; opacity: 0.9; font-family: var(--font-main); letter-spacing: -0.02em;}
.scroll-down {position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); text-align: center; color: white; opacity: 0.7; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-en);}
.line {width: 2px; height: 50px; background: white; margin: 12px auto; animation: scroll 2s ease-in-out infinite;}
@keyframes scroll {
	0%, 100% { transform: translateY(0); opacity: 0.3;}
	50% { transform: translateY(15px); opacity: 1;}
}

/* Features */
.features {padding: 140px 0; background: linear-gradient(to bottom, var(--light), white);}
.features h2 {text-align: center; font-size: 48px; font-weight: 900; margin-bottom: 80px; color: var(--secondary);}
.feature-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;}
.feature-card {background: white; padding: 50px 40px; border-radius: 24px; box-shadow: 0 10px 50px rgba(0,0,0,0.06); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); text-align: center;}
.feature-card:hover {transform: translateY(-12px); box-shadow: 0 30px 70px rgba(74,144,226,0.2);}
.icon {font-size: 64px; margin-bottom: 24px;}
.feature-card h3 {font-size: 24px; font-weight: 900; margin-bottom: 16px; color: var(--secondary);}
.feature-card p {color: var(--gray); font-size: 16px; line-height: 1.7;}

/* CTA */
.cta {padding: 120px 0; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; text-align: center;}
.cta h2 {font-size: 42px; font-weight: 900; margin-bottom: 16px;}
.cta p {font-size: 18px; opacity: 0.9; margin-bottom: 40px;}
.contact-btns {display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;}
.contact-btn {padding: 18px 40px; background: white; color: var(--primary); text-decoration: none; font-weight: 700; font-size: 18px; border-radius: 50px; transition: all 0.3s; box-shadow: 0 10px 40px rgba(0,0,0,0.2);}
.contact-btn:hover {transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3);}

/* Footer */
.footer {background: #1f2937; color: white; padding: 80px 0 40px;}
.footer-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-bottom: 50px;}
.footer h3 {font-size: 20px; margin-bottom: 16px; font-weight: 700; letter-spacing: -0.03em;}
.footer h4 {font-size: 17px; margin-bottom: 16px; font-weight: 600; letter-spacing: -0.02em;}
.footer p {color: #d1d5db; margin-bottom: 10px; font-size: 15px; letter-spacing: -0.02em; font-weight: 400;}
.footer a {color: #d1d5db; text-decoration: none; transition: color 0.3s;}
.footer a:hover {color: white;}
.footer-bottom {text-align: center; padding-top: 40px; border-top: 1px solid #374151; color: #9ca3af; font-size: 14px;}

/* Mobile Menu */
@media (max-width: 768px) {
	.nav {position: fixed !important; top: 70px !important; left: 0 !important; right: 0 !important; width: 100% !important; max-height: 100vh; background: white !important; flex-direction: column !important; padding: 24px !important; box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important; gap: 0 !important; z-index: 999 !important; display: none !important; overflow-y: auto; align-items: stretch !important;}
	.nav.active {display: flex !important; animation: slideDown 0.3s ease-out;}
	
	 @keyframes slideDown {
		from {opacity: 0; transform: translateY(-20px);}
		to {opacity: 1; transform: translateY(0);}
	}
	.nav-item {border-bottom: 1px solid #e5e5e5;}
/*	.nav-item:first-child {padding-top:40px !important;}*/
	.nav-item:last-child {border-bottom: none;}
	.nav-item > a {padding: 18px 0 !important; display: flex !important; justify-content: space-between; align-items: center; font-size: 19px !important; font-weight: 700 !important;}
	.nav-item.has-sub > a::after {content: '+'; width: auto !important; height: auto !important; background: none !important; position: static !important; font-size: 24px; font-weight: 300; color: var(--gray); transition: transform 0.3s;}
	.nav-item.has-sub.active > a::after {content: '−'; transform: rotate(180deg);}

	/* 모바일 서브메뉴 */
	.sub-menu {position: static !important; transform: none !important; box-shadow: none !important; border-radius: 0 !important; background: var(--light) !important; padding: 0 !important; margin: 0 !important; min-width: auto !important; max-height: 0; overflow: hidden; opacity: 1 !important; visibility: visible !important; transition: max-height 0.3s ease-out;}
	.nav-item.active .sub-menu {max-height: 400px; padding: 8px 0 16px 0 !important;}
	.sub-menu a {padding: 12px 0 12px 24px !important; font-size: 17px !important;}
	.sub-menu a:hover {background: transparent !important; padding-left: 32px !important;}
	.burger {display: flex;}
	.hero-grid {grid-template-columns: 1fr; gap: 40px;}
	.hero h1 {font-size: 30px;}
	.hero p {font-size: 20px; line-height: 1.2;}
	
	.btn {padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 16px;}
	
	.circle-wrap {width: 300px; height: 300px;}
	.kbio {font-size: 60px;}
	.feature-grid {grid-template-columns: 1fr;}
	.footer-grid {grid-template-columns: 1fr; gap: 40px;}
	.contact-btns {flex-direction: column;}
}