/**
 * 주식회사 옌 (YEN Corp) 웹사이트
 * 페이지 헤더 공통 스타일
 * 
 * 모든 페이지의 헤더 스타일을 관리하는 CSS 파일입니다.
 * @version 1.1.1
 */

/* 페이지 헤더 기본 스타일 */
.page-header {
    background-color: #fff;
    color: #333;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    z-index: 100; /* 더 높은 z-index 값 설정 */
}

/* 현대적 디자인 헤더 스타일 */
.page-header.modern-header {
    background-color: var(--header-bg-color, #333333);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 75px 0 20px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: var(--header-border-radius, 30px);
    border-bottom-right-radius: var(--header-border-radius, 30px);
    z-index: 100; /* 더 높은 z-index 값 설정 */
}

/* 헤더 배경 오버레이 */
.page-header.modern-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(133, 78, 122, 0.9) 0%, rgba(119, 49, 61, 0.8) 100%);
    z-index: 1; /* 오버레이의 z-index 명시 */
}

/* 헤더 배경 오버레이 커스텀 색상 */
.page-header.modern-header.custom-overlay:before {
    background: var(--header-overlay-color, linear-gradient(45deg, rgba(133, 78, 122, 0.9) 0%, rgba(119, 49, 61, 0.8) 100%));
}

/* 헤더 내용 컨테이너 */
.page-header .container {
    position: relative;
    z-index: 5; /* 컨테이너의 z-index 높임 */
}

/* 헤더 내용 컨테이너 */
.page-header .header-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    z-index: 10; /* 컨텐츠 컨테이너의 z-index 높임 */
    position: relative; /* position 추가 */
}

.page-header .header-content {
    max-width: 750px;
    text-align: center;
    position: relative;
    z-index: 150; /* 콘텐츠의 z-index 더 높임 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 헤더 뱃지 스타일 */
.header-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 헤더 제목 스타일 */
.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.2;
    display: block;
    width: 100%;
}

/* 헤더 부제목 스타일 */
.page-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    display: block;
    width: 100%;
}

/* 제목 아래 구분선 */
.title-line {
    width: 80px;
    height: 4px;
    background-color: #F9BF53;
    margin: 0 0 30px 0;
    border-radius: 2px;
    display: block;
}

.title-line.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* 헤더 그래픽 요소 */
.header-graphic {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 그래픽 요소의 z-index 명시 */
    overflow: hidden;
    pointer-events: none;
}

/* 플로팅 도형 스타일 */
.floating-shape {
    position: absolute;
    backdrop-filter: blur(5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* border-radius는 인라인에서 CSS 변수로 설정 */
    /* background는 인라인에서 CSS 변수로 설정 */
}

.floating-shape.shape-1 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
    /* 원형이 되는 최대 radius 값은 75px (너비/높이 중 최대값의 50%) */
    /* 기본값은 CSS 변수로 대체: background: rgba(249, 191, 83, 0.3); */
    /* 기본값은 CSS 변수로 대체: border-radius: 12px; */
}

.floating-shape.shape-2 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 40%;
    animation: float 8s ease-in-out infinite 1s;
    /* 원형이 되는 최대 radius 값은 90px (너비/높이 중 최대값의 50%) */
    /* 기본값은 CSS 변수로 대체: background: rgba(133, 78, 122, 0.2); */
    /* 기본값은 CSS 변수로 대체: border-radius: 12px; */
}

.floating-shape.shape-3 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    right: 25%;
    animation: float 7s ease-in-out infinite 2s;
    /* 원형이 되는 최대 radius 값은 60px (너비/높이 중 최대값의 50%) */
    /* 기본값은 CSS 변수로 대체: background: rgba(155, 176, 103, 0.2); */
    /* 기본값은 CSS 변수로 대체: border-radius: 12px; */
}

/* 플로팅 애니메이션 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 스크롤 버튼 스타일 */
.scroll-btn {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 패딩/여백 설정 스타일 */
.page-header.padding-sm {
    padding: 60px 0;
}

.page-header.padding-md {
    padding: 80px 0;
}

.page-header.padding-lg {
    padding: 100px 0;
}

/* 정렬 설정 스타일 */
.page-header .header-content.text-left {
    text-align: left;
    align-items: flex-start;
}

.page-header .header-content.text-right {
    text-align: right;
    align-items: flex-end;
}

/* 애니메이션 제어 스타일 */
.page-header.no-animation .floating-shape {
    animation: none;
}

/* 반응형 스타일 */
@media (max-width: 991.98px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .floating-shape.shape-1 {
        width: 120px;
        height: 120px;
    }
    
    .floating-shape.shape-2 {
        width: 140px;
        height: 140px;
    }
    
    .floating-shape.shape-3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .page-header .header-content-container {
        min-height: 100px;
    }
    
    .floating-shape.shape-1 {
        width: 100px;
        height: 100px;
    }
    
    .floating-shape.shape-2 {
        width: 120px;
        height: 120px;
    }
    
    .floating-shape.shape-3 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        padding: 50px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .title-line {
        width: 60px;
        height: 3px;
        margin: 0 0 20px 0;
    }
    
    .floating-shape {
        display: none;
    }
}