/* ==================== 기본 & 공통 스타일 ==================== */
:root {
    --primary-color: #004a99;
    --dark-color: #333;
    --light-color: #fff;
    --grey-color: #f4f4f4;
    --text-color: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section-title h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

/* ==================== 헤더 ==================== */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background-color: var(--light-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header.scrolled .main-nav a {
    color: var(--dark-color);
}
#header.scrolled .main-nav a:hover {
    color: var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: filter 0.3s ease;
}

#header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1); /* 스크롤 전 로고 흰색으로 */
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 40px;
}

.main-nav a {
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ddd;
}

/* ==================== 히어로 섹션 (메인 영상) ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-color);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-down i {
    display: block;
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==================== 사업소개 섹션 ==================== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-item {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.btn-more {
    color: var(--text-color);
    font-weight: 500;
}

/* ==================== 스토리 섹션 ==================== */
.story {
    padding: 100px 0;
    background-color: var(--grey-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.btn-more-main {
    font-weight: 500;
    color: var(--text-color);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
}

.card-content .category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* ==================== CTA 섹션 ==================== */
.cta {
    position: relative;
    padding: 120px 0;
    background-image: url('https://jhf.co.kr/images/sub/s_img04.jpg'); /* 중요: 자신의 이미지로 교체 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--light-color);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 50, 100, 0.7);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

/* ==================== 푸터 ==================== */
footer {
    background-color: #222;
    color: #aaa;
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    height: 35px;
    margin-bottom: 20px;
}

.footer-left p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.copyright {
    color: #777;
}

.footer-right a {
    display: block;
    margin-bottom: 10px;
    color: #bbb;
}
.footer-right a:hover {
    color: var(--light-color);
}

/* ==================== 반응형 디자인 (기본) ==================== */
@media (max-width: 992px) {
    .services-grid, .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-nav ul {
        /* 간소화를 위해 메뉴 숨김. 실제로는 햄버거 메뉴 필요 */
        display: none; 
    }
}

@media (max-width: 768px) {
    .services-grid, .story-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
    }
    .footer-right {
        margin-top: 30px;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
}