/* 기본 스타일 초기화 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 부드러운 스크롤 효과 */
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 스타일 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s, padding 0.3s;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
}

#header.scrolled .logo a {
    color: #333;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

#header.scrolled .nav a {
    color: #555;
}

.nav a:hover {
    color: #5a8a6f; /* 차분한 녹색으로 변경 */
}


/* 히어로 섹션 */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0); /* 어둡게 하여 가독성 확보 */
    z-index: -1;
}

.hero-text h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

#visit .btn {
    background-color: #6b4f4f; /* 흙색 계열 버튼 */
    border-color: #6b4f4f;
    color: #fff;
}

#visit .btn:hover {
    background-color: #856a6a;
    border-color: #856a6a;
}

.btn:hover {
    background-color: #fff;
    color: #333;
}

/* 공통 섹션 스타일 */
.content-section {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 60px;
}

/* 소개 섹션 */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}
.about-image { flex: 1; }
.about-text { flex: 1; }
.about-image img {
    width: 100%;
    border-radius: 8px;
}
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.about-text ul {
    list-style: none;
    margin-top: 20px;
}
.about-text li {
    margin-bottom: 10px;
}

/* 주요 전각 섹션 */
.hall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hall-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hall-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hall-card img {
    width: 100%;
    display: block;
}

.hall-info {
    padding: 20px;
}

.hall-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.hall-info p {
    color: #777;
    margin-bottom: 20px;
}
.btn-details {
    text-decoration: none;
    color: #333;
    font-weight: 700;
}

/* 갤러리 섹션 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* 오시는 길 섹션 */
#visit {
    background-color: #f9f9f9;
}
.visit-info {
    margin: 30px 0;
    font-size: 1.1rem;
}
.visit-info p {
    margin-bottom: 10px;
}

/* 푸터 */
#footer {
    background-color: #333;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* 스크롤 애니메이션 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav { display: none; } /* 모바일에서는 메뉴 숨김 (햄버거 메뉴로 대체 필요) */
    .hero-text h2 { font-size: 2.5rem; }
    .hero-text p { font-size: 1.2rem; }
    .about-content { flex-direction: column; }
    .section-title { font-size: 2rem; }
}