/*
 * 파일명: index.css
 * 위치: /assets/css/
 * 기능: 펜션 웹사이트 제작 서비스 페이지 스타일
 * 작성일: 2025-06-30
 * 수정일: 2025-07-01
 */

/* ===================================
* CSS 변수 및 기본 설정
* ====================================
*/

:root {
	--primary-color: #2c5530;
	--secondary-color: #4a7c59;
	--accent-color: #8fbc8f;
	--light-green: #f0f8f0;
	--dark-text: #2d2d2d;
	--light-text: #666;
}

/* 전역 초기화 및 기본 설정 */
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* 기본 본문 스타일 */
body {
	font-family: 'Noto Sans KR', sans-serif;
	line-height: 1.6;
	color: var(--dark-text);
}

/* ===================================
* 플로팅 네비게이션 및 스크롤 효과
* ====================================
*/

/* 플로팅 네비게이션 바 스타일 */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 10px 0;
}

/* 플로팅 네비게이션 표시 상태 */
.floating-nav.show {
    transform: translateY(0);
}

/* 네비게이션 브랜드 로고 */
.floating-nav .nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
}

/* 네비게이션 링크 컨테이너 */
.floating-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 네비게이션 링크 기본 스타일 */
.floating-nav .nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* 네비게이션 링크 호버 효과 */
.floating-nav .nav-links a:hover {
    color: var(--primary-color);
}

/* 네비게이션 링크 하단 밑줄 효과 */
.floating-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* 네비게이션 링크 호버 시 밑줄 확장 */
.floating-nav .nav-links a:hover::after {
    width: 100%;
}

/* 현재 섹션 활성화 표시 */
.section-active {
    color: var(--primary-color) !important;
}

.section-active::after {
    width: 100% !important;
}

/* 네비게이션 CTA 버튼 */
.floating-nav .cta-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* 네비게이션 CTA 버튼 호버 효과 */
.floating-nav .cta-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

/* 스크롤 진행 바 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* 스크롤 투 탑 버튼 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
}

/* 스크롤 투 탑 버튼 표시 상태 */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* 스크롤 투 탑 버튼 호버 효과 */
.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
}

/* ===================================
* 히어로 섹션 스타일
* ====================================
*/

/* 히어로 섹션 배경 및 레이아웃 */
.hero-section {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	color: white;
	padding: 100px 0;
	position: relative;
	overflow: hidden;
}

/* 히어로 섹션 배경 텍스처 */
.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	opacity: 0.3;
}

/* 히어로 컨텐츠 z-index 설정 */
.hero-content {
	position: relative;
	z-index: 2;
}

/* 특별 혜택 배지 */
.badge-special {
	background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
	color: white;
	padding: 8px 20px;
	border-radius: 25px;
	font-weight: 500;
	display: inline-block;
	margin-bottom: 20px;
	animation: pulse 2s infinite;
}

/* 배지 펄스 애니메이션 */
@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/* 플로팅 도형 컨테이너 */
.floating-shapes {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

/* 개별 플로팅 도형 */
.shape {
	position: absolute;
	opacity: 0.1;
	animation: float 6s ease-in-out infinite;
}

/* 플로팅 도형 위치 설정 */
.shape:nth-child(1) {
	top: 20%;
	left: 10%;
	animation-delay: 0s;
}

.shape:nth-child(2) {
	top: 60%;
	right: 10%;
	animation-delay: 2s;
}

.shape:nth-child(3) {
	bottom: 20%;
	left: 20%;
	animation-delay: 4s;
}

/* 플로팅 애니메이션 */
@keyframes float {
	0%, 100% { transform: translateY(0px) rotate(0deg); }
	50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===================================
* 공통 섹션 스타일
* ====================================
*/

/* 섹션 제목 스타일 */
.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

/* 섹션 부제목 스타일 */
.section-subtitle {
	font-size: 1.2rem;
	color: var(--light-text);
	margin-bottom: 3rem;
}

/* ===================================
* 샘플 사이트 카드 스타일
* ====================================
*/

/* 샘플 사이트 카드 컨테이너 */
.sample-site-card {
	background: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
}

/* 샘플 사이트 카드 호버 효과 */
.sample-site-card:hover {
	transform: translateY(-5px);
}

/* 브라우저 목업 컨테이너 */
.browser-mockup {
	background: #f1f3f4;
	padding: 15px 15px 0;
	border-radius: 15px 15px 0 0;
}

/* 브라우저 주소창 */
.browser-bar {
	background: white;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	padding: 0 15px;
	margin-bottom: 15px;
}

/* 브라우저 컨트롤 점들 */
.browser-dots {
	display: flex;
	gap: 5px;
}

/* 브라우저 개별 점 */
.browser-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

/* 브라우저 점 색상 */
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca42; }

/* 브라우저 URL 표시 영역 */
.browser-url {
	margin-left: 15px;
	background: #f8f9fa;
	padding: 5px 15px;
	border-radius: 15px;
	font-size: 0.9rem;
	color: var(--light-text);
}

/* 사이트 미리보기 영역 */
.site-preview {
	background: white;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--light-text);
	font-size: 1.1rem;
}

/* ===================================
* 서비스 카드 스타일
* ====================================
*/

/* 서비스 카드 기본 스타일 */
.service-card {
	background: white;
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* 서비스 카드 호버 효과 */
.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* 서비스 아이콘 컨테이너 */
.service-icon {
	width: 70px;
	height: 70px;
	background: var(--light-green);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem auto;
	position: relative;
}

/* 서비스 아이콘 */
.service-icon i {
	font-size: 2rem;
	color: var(--primary-color);
	display: block;
	text-align: center;
	line-height: 1;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* ===================================
* 가격 카드 스타일
* ====================================
*/

/* 가격 카드 기본 스타일 */
.price-card {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 2.5rem;
	border-radius: 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
	min-height: 400px;
}

/* 가격 카드 배경 애니메이션 */
.price-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 10px,
		rgba(255,255,255,0.05) 10px,
		rgba(255,255,255,0.05) 20px
	);
	animation: slide 20s linear infinite;
}

/* 가격 카드 슬라이드 애니메이션 */
@keyframes slide {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 가격 카드 컨텐츠 z-index 설정 */
.price-content {
	position: relative;
	z-index: 2;
}

/* 가격 금액 표시 */
.price-amount {
	font-size: 3rem;
	font-weight: 700;
	margin: 1rem 0;
}

/* ===================================
* 특별 혜택 카드 스타일
* ====================================
*/

/* 특별 혜택 카드 */
.benefit-card {
	background: linear-gradient(45deg, #ff6b6b, #ffa500);
	color: white;
	padding: 2rem;
	border-radius: 15px;
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
	min-height: 400px;
}

/* 특별 혜택 카드 번개 아이콘 */
.benefit-card::before {
	content: '⚡';
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 2rem;
	opacity: 0.3;
}

/* 특별 혜택 카드 내부 배경 스타일 */
.benefit-card .bg-white {
	background-color: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 특별 혜택 카드 내부 텍스트 색상 */
.benefit-card .bg-white small {
	color: white !important;
}

/* 특별 혜택 카드 내부 아이콘 색상 */
.benefit-card .bg-white i {
	color: #ffd700 !important;
}

/* 혜택 리스트 기본 스타일 */
.benefit-list {
	list-style: none;
	padding: 0;
}

/* 혜택 리스트 아이템 */
.benefit-list li {
	padding: 0.8rem 0;
	border-bottom: 1px solid rgba(255,255,255,0.2);
	display: flex;
	align-items: center;
}

/* 혜택 리스트 마지막 아이템 */
.benefit-list li:last-child {
	border-bottom: none;
}

/* 혜택 리스트 아이콘 */
.benefit-list i {
	margin-right: 10px;
	color: #ffd700;
}

/* ===================================
* 제작 과정 스타일
* ====================================
*/

/* 제작 과정 스텝 카드 */
.process-step {
	text-align: center;
	padding: 2rem 1rem;
}

/* 스텝 번호 원형 */
.step-number {
	width: 60px;
	height: 60px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 auto 1rem;
}

/* ===================================
* 문의 섹션 스타일
* ====================================
*/

/* 문의 섹션 배경 */
.contact-section {
	background: var(--light-green);
	padding: 80px 0;
}

/* 문의 카드 */
.contact-card {
	background: white;
	padding: 3rem;
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* ===================================
* 버튼 스타일
* ====================================
*/

/* 커스텀 주요 버튼 */
.btn-primary-custom {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	border: none;
	padding: 15px 30px;
	border-radius: 50px;
	font-weight: 500;
	transition: all 0.3s ease;
}

/* 커스텀 주요 버튼 호버 효과 */
.btn-primary-custom:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(44, 85, 48, 0.3);
}

/* ===================================
* 반응형 디자인 (모바일)
* ====================================
*/

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
	/* 히어로 섹션 모바일 조정 */
	.hero-section {
		padding: 60px 0;
	}
	
	/* 섹션 제목 모바일 크기 */
	.section-title {
		font-size: 2rem;
	}
	
	/* 가격 표시 모바일 크기 */
	.price-amount {
		font-size: 2.5rem;
	}
	
	/* 플로팅 네비게이션 모바일 조정 */
	.floating-nav .nav-links {
		display: none;
	}
	
	/* 모바일 메뉴 토글 버튼 */
	.floating-nav .mobile-menu-toggle {
		display: block;
		background: none;
		border: none;
		font-size: 1.5rem;
		color: var(--primary-color);
		cursor: pointer;
	}
	
	/* 스크롤 투 탑 버튼 모바일 조정 */
	.scroll-to-top {
		width: 45px;
		height: 45px;
		bottom: 20px;
		right: 20px;
		font-size: 1.1rem;
	}
}

/* 데스크톱에서 모바일 메뉴 토글 숨김 */
@media (min-width: 769px) {
	.floating-nav .mobile-menu-toggle {
		display: none;
	}
}