@charset "utf-8";

/* ========================================
   원페이지 수묵화 스타일
   ======================================== */

/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #FAFAF8;
	color: #0a0a0a;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

/* 스크롤 스냅 */
#container {
	scroll-snap-type: y mandatory;
	overflow-y: scroll;
	height: 100vh;
	-webkit-overflow-scrolling: touch;
}

/* 섹션 기본 스타일 */
.section {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 100vh;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.section-content {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	width: 90%;
	margin: 0 auto;
	text-align: center;
}

/* 수묵화 배경 */
.ink-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #FAFAF8;
	z-index: 0;
}

.ink-bg::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
	pointer-events: none;
}

/* Dot Navigation */
.dot-nav {
	position: fixed;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1000;
}

.dot-nav ul {
	list-style: none;
}

.dot-nav li {
	margin: 20px 0;
	text-align: right;
}

.dot-nav a {
	position: relative;
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid #BDBDBD;
	border-radius: 50%;
	background: transparent;
	transition: all 0.3s ease;
	text-decoration: none;
}

.dot-nav a:hover,
.dot-nav a.active {
	background: #0a0a0a;
	border-color: #0a0a0a;
	transform: scale(1.3);
}

.dot-nav span {
	position: absolute;
	right: 25px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	color: #757575;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.dot-nav a:hover span,
.dot-nav a.active span {
	opacity: 1;
}

/* 먹물 떨어짐/올라감 효과 (메인 화면과 동일한 스타일) */
.ink-drop-transition {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
	z-index: 9998;
	pointer-events: none;
	opacity: 0;
}

/* 아래로 스크롤: 먹물이 중앙에서 아래로 떨어짐 */
.ink-drop-transition.down {
	animation: inkDropDown 1.5s ease-out forwards;
}

@keyframes inkDropDown {
	0% {
		top: 50%;
		opacity: 0;
		width: 20px;
		height: 20px;
	}
	30% {
		opacity: 1;
	}
	100% {
		top: calc(100% + 50px);
		opacity: 0;
		width: 100px;
		height: 100px;
	}
}

/* 위로 스크롤: 먹물이 중앙에서 위로 올라감 */
.ink-drop-transition.up {
	animation: inkDropUp 1.5s ease-out forwards;
}

@keyframes inkDropUp {
	0% {
		top: 50%;
		opacity: 0;
		width: 20px;
		height: 20px;
	}
	30% {
		opacity: 1;
	}
	100% {
		top: -50px;
		opacity: 0;
		width: 100px;
		height: 100px;
	}
}

/* 밝은 화선지 번짐 오버레이 */
.ink-transition {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 248, 0.95) 100%);
	z-index: 9999;
	pointer-events: none;
	opacity: 0;
	transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1),
	            height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.3s ease;
}

.ink-transition.active {
	width: 300vw;
	height: 300vw;
	opacity: 1;
}

/* ========================================
   SECTION 1: INTRO
   ======================================== */

#intro {
	background: linear-gradient(135deg, #FAFAF8 0%, #F5F5F5 100%);
}

.logo-container {
	position: relative;
	margin-bottom: 60px;
}

.main-logo {
	max-width: 300px;
	height: auto;
	filter: grayscale(100%) contrast(1.1);
}

.ink-drop {
	position: absolute;
	top: -50px;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
	border-radius: 50%;
	opacity: 0;
	animation: inkDropFall 2s ease-out 0.5s forwards;
}

@keyframes inkDropFall {
	0% {
		opacity: 0;
		top: -50px;
		width: 20px;
		height: 20px;
	}
	50% {
		opacity: 1;
		top: 20px;
	}
	100% {
		opacity: 0;
		top: 50px;
		width: 100px;
		height: 100px;
	}
}

.hero-title {
	font-size: 72px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 30px;
	color: #0a0a0a;
	letter-spacing: -2px;
}

.hero-subtitle {
	font-size: 20px;
	line-height: 1.8;
	color: #424242;
	margin-bottom: 80px;
}

.scroll-indicator {
	position: fixed;
	bottom: 40px;
	left: 50%;
	transform: translateX(calc(-50% - 0px));
	text-align: center;
	z-index: 10;
}

.scroll-indicator span {
	display: block;
	font-size: 12px;
	letter-spacing: 2px;
	color: #757575;
	margin-bottom: 15px;
}

.scroll-line {
	width: 2px;
	height: 60px;
	background: linear-gradient(to bottom, #0a0a0a 0%, transparent 100%);
	margin: 0 auto;
	animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
	0%, 100% {
		opacity: 0.3;
		transform: translateY(0);
	}
	50% {
		opacity: 1;
		transform: translateY(10px);
	}
}

/* ========================================
   SECTION 2: ABOUT
   ======================================== */

#about {
	background: #FAFAF8;
}

.section-title {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 80px;
	color: #0a0a0a;
	letter-spacing: -1px;
	position: relative;
	display: inline-block;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: linear-gradient(to right, transparent 0%, #0a0a0a 50%, transparent 100%);
}

.about-container {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.about-text {
	margin: 0 auto;
}

.about-text h3 {
	font-size: 36px;
	margin-bottom: 30px;
	color: #0a0a0a;
	font-weight: 700;
}

.about-text p {
	font-size: 18px;
	line-height: 2;
	color: #424242;
	word-break: keep-all;
}

.vision-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.vision-card {
	background: #fff;
	padding: 40px 30px;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
	font-size: 48px;
	margin-bottom: 20px;
}

.vision-card h4 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #0a0a0a;
}

.vision-card p {
	font-size: 16px;
	color: #757575;
	line-height: 1.6;
}

/* ========================================
   SECTION 3: SERVICES
   ======================================== */

#services {
	background: #F5F5F5;
}

.services-list {
	max-width: 800px;
	margin: 0 auto;
}

.service-item {
	display: flex;
	align-items: center;
	padding: 40px 50px;
	margin-bottom: 20px;
	background: #fff;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.service-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 0;
	background: #0a0a0a;
	transition: height 0.4s ease;
}

.service-item:hover::before {
	height: 100%;
}

.service-item:hover {
	transform: translateX(10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-number {
	font-size: 48px;
	font-weight: 700;
	color: #E0E0E0;
	margin-right: 30px;
	min-width: 80px;
	transition: color 0.3s ease;
}

.service-item:hover .service-number {
	color: #0a0a0a;
}

.service-info {
	flex: 1;
}

.service-info h3 {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #0a0a0a;
	letter-spacing: -0.5px;
}

.service-info p {
	font-size: 15px;
	color: #757575;
	line-height: 1.6;
}

.service-arrow {
	font-size: 32px;
	color: #BDBDBD;
	margin-left: 20px;
	transition: all 0.3s ease;
}

.service-item:hover .service-arrow {
	color: #0a0a0a;
	transform: translateX(10px);
}

/* ========================================
   SECTION 4: PORTFOLIO
   ======================================== */

#portfolio {
	background: #FAFAF8;
}

.portfolio-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: 1100px;
	margin: 0 auto;
}

.portfolio-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	display: block;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
}

.portfolio-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
	transform: scale(1.1);
	filter: grayscale(0%);
}

.ink-reveal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at center, rgba(10, 10, 10, 0.8) 0%, transparent 100%);
	opacity: 1;
	transition: opacity 0.8s ease;
}

.portfolio-item.revealed .ink-reveal-overlay {
	opacity: 0;
}

.portfolio-info {
	padding: 25px 20px;
	background: #fff;
}

.portfolio-info h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #0a0a0a;
}

.portfolio-info p {
	font-size: 14px;
	color: #757575;
	line-height: 1.6;
}

/* ========================================
   SECTION 5: CONTACT
   ======================================== */

#contact {
	background: linear-gradient(135deg, #F5F5F5 0%, #FAFAF8 100%);
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
}

.contact-container-center {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

.contact-info-center {
	text-align: center;
}

.contact-info-center h3 {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 25px;
	color: #0a0a0a;
}

.contact-info-center p {
	font-size: 18px;
	line-height: 1.8;
	color: #424242;
	margin-bottom: 50px;
}

.contact-info {
	text-align: left;
}

.contact-info h3 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #0a0a0a;
}

.contact-info > p {
	font-size: 16px;
	line-height: 1.8;
	color: #424242;
	margin-bottom: 40px;
}

.contact-details {
	margin-bottom: 40px;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px 0;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.contact-item.visible {
	border-bottom-color: #E0E0E0;
}

.contact-item .icon {
	font-size: 24px;
	margin-right: 15px;
	width: 40px;
	text-align: center;
}

.contact-item span:last-child {
	font-size: 16px;
	color: #424242;
}

.btn-contact {
	display: inline-block;
	padding: 18px 45px;
	background: linear-gradient(135deg, #FAFAF8 0%, #F5F5F5 50%, #FAFAF8 100%);
	color: #0a0a0a;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.4s ease;
	border: 2px solid #E0E0E0;
	position: relative;
	box-shadow:
		inset 2px 2px 3px rgba(255, 255, 255, 0.8),
		inset -2px -2px 3px rgba(0, 0, 0, 0.05),
		inset 0 0 15px rgba(0, 0, 0, 0.02),
		0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-contact::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	right: 3px;
	bottom: 3px;
	border: 1px solid rgba(0, 0, 0, 0.03);
	border-radius: 2px;
	pointer-events: none;
}

.btn-contact::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 20%;
	right: 20%;
	height: 1px;
	background: radial-gradient(ellipse, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
	transform: translateY(-50%);
	pointer-events: none;
}

.btn-contact:hover {
	background: linear-gradient(135deg, #FFFFFF 0%, #FAFAF8 50%, #FFFFFF 100%);
	transform: translateY(-3px);
	border-color: #BDBDBD;
	box-shadow:
		inset 1px 1px 2px rgba(255, 255, 255, 0.9),
		inset -1px -1px 2px rgba(0, 0, 0, 0.03),
		inset 0 0 10px rgba(0, 0, 0, 0.01),
		0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-visual {
	position: relative;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ink-circle {
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.03) 50%, transparent 100%);
	animation: inkPulse 3s ease-in-out infinite;
}

@keyframes inkPulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.6;
	}
	50% {
		transform: scale(1.1);
		opacity: 1;
	}
}

/* ========================================
   애니메이션 클래스
   ======================================== */

.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

.fade-in-up {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
	opacity: 1;
	transform: translateY(0);
}

.fade-in-left {
	opacity: 0;
	transform: translateX(-40px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
	opacity: 1;
	transform: translateX(0);
}

.fade-in-right {
	opacity: 0;
	transform: translateX(40px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
	opacity: 1;
	transform: translateX(0);
}

.fade-reveal {
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-reveal.visible {
	opacity: 1;
	transform: scale(1);
}

.draw-line {
	position: relative;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.draw-line.visible {
	opacity: 1;
}

/* 지연 애니메이션 */
.delay-1 {
	transition-delay: 0.2s;
}

.delay-2 {
	transition-delay: 0.4s;
}

.delay-3 {
	transition-delay: 0.6s;
}

/* ========================================
   모바일 반응형
   ======================================== */

@media (max-width: 1024px) {
	.hero-title {
		font-size: 56px;
	}

	.section-title {
		font-size: 40px;
	}

	.vision-cards {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.service-item {
		padding: 30px 20px;
	}

	.service-number {
		font-size: 36px;
		min-width: 60px;
		margin-right: 20px;
	}

	.service-info h3 {
		font-size: 22px;
	}

	.service-info p {
		font-size: 14px;
	}

	.service-arrow {
		font-size: 24px;
	}

	.portfolio-container {
		grid-template-columns: 1fr;
	}

	.contact-container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.contact-container-center {
		max-width: 100%;
		padding: 0 20px;
	}

	.contact-info-center h3 {
		font-size: 32px;
	}

	.contact-info-center p {
		font-size: 16px;
		margin-bottom: 40px;
	}

	.contact-info {
		text-align: center;
	}

	.contact-item {
		justify-content: center;
	}

	.dot-nav {
		right: 20px;
	}
}

@media (max-width: 768px) {
	.hero-title {
		font-size: 42px;
	}

	.hero-subtitle {
		font-size: 16px;
		margin-bottom: 50px;
	}

	.scroll-indicator {
		bottom: 30px;
	}

	.scroll-indicator span {
		font-size: 11px;
	}

	.scroll-line {
		height: 50px;
	}

	.section-title {
		font-size: 32px;
		margin-bottom: 50px;
	}

	.main-logo {
		max-width: 200px;
	}

	.service-item {
		flex-direction: column;
		align-items: flex-start;
		padding: 25px 20px;
	}

	.service-number {
		font-size: 32px;
		margin-bottom: 15px;
		margin-right: 0;
	}

	.service-arrow {
		align-self: flex-end;
		margin-top: 10px;
		margin-left: 0;
	}

	.contact-info h3 {
		font-size: 28px;
	}

	.contact-info-center h3 {
		font-size: 28px;
	}

	.contact-info-center p {
		font-size: 15px;
		margin-bottom: 35px;
	}

	.dot-nav span {
		display: none;
	}
}

/* ========================================
   성능 최적화
   ======================================== */

.section,
.service-item,
.portfolio-item,
.vision-card {
	will-change: transform;
}

/* 스무스 스크롤 비활성화 (모바일 성능) */
@media (max-width: 768px) {
	html {
		scroll-behavior: auto;
	}
}
