/* assets/css/intro.css */

/* 1. 섹션 기본 설정 */
.section--introduction {
    height: 100vh !important;
    min-height: 800px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    margin-top: 0;
    padding-top: 0;
    z-index: 5;

    /* ✅ [추가] 폰트 강제 적용 (main.css 변수 사용) */
    font-family: "ElandChoice", sans-serif;
    /* 변수가 안 먹을 경우를 대비한 직접 지정 */
    font-family: var(--font-display, "ElandChoice", sans-serif);
}

/* 2. 핀 래퍼 */
.intro-pin-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

/* 3. 배경 그룹 (3D 무대) */
.intro-bg-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    perspective: 1500px;
    perspective-origin: 50% 100%;
    transform-style: preserve-3d;
}

/* 배경 이미지: 더 깊게 파묻기 (-25%) */
.intro-bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: 125%;
    /* 1/4 더 길게 */
    bottom: -25%;
    /* 지하 25% 지점에 박음 */
    top: auto;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.intro-bg.layer-1 {
    z-index: 1;
}

/* 회전축 설정 */
.intro-bg.layer-2,
.intro-bg.layer-3 {
    transform-origin: 50% 100%;
    backface-visibility: hidden;
    box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.6);
    transform: rotateX(-90deg);
    opacity: 0;
}

.intro-bg.layer-2 {
    z-index: 2;
}

.intro-bg.layer-3 {
    z-index: 3;
}


/* 4. 레이아웃 정렬 (지구본 왼쪽 / 텍스트 오른쪽) */
.intro__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.earth-wrapper {
    position: relative;
    z-index: 5;
}

/* 텍스트 영역 (오른쪽 배치 + 폰트 적용 확인) */
.intro__text {
    position: relative;
    z-index: 10;
    text-align: left;
    padding-left: 40px;

}

/* 5. 텍스트 스와퍼 & 레이어 */
.text-swapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.text-layer {
    width: 100%;
    transition: opacity 0.3s;
    color: #fff !important;
    will-change: transform, opacity;

    /* ✅ [추가] 텍스트 레이어에도 폰트 명시 */
    font-family: "ElandChoice", sans-serif;
}

/* 내부 요소 스타일 강제 (색상 및 폰트) */
.text-layer h2,
.text-layer .title,
.text-layer a,
.text-layer span,
.text-layer .txt {
    color: #fff !important;
    font-family: "ElandChoice", sans-serif !important;
    /* 폰트 강제 */
}

/* 타이틀 두께 설정 (Bold) */
.text-layer .title {
    /* 1. 폰트 크기 대폭 확대 (반응형: 최소 36px ~ 최대 68px) */
    font-size: clamp(30px, 4.5vw, 55px) !important;

    /* 2. 줄 간격을 좁혀서 덩어리감(Impact) 주기 */
    line-height: 1.15 !important;

    /* 3. 자간을 살짝 넓혀서 여유와 자신감 표현 */
    letter-spacing: 0.04em !important;

    /* 4. 두께감 유지 */
    font-weight: 700 !important;

    /* 5. 아래 버튼과의 간격 확보 */
    margin-bottom: 40px;

    /* (선택) 그림자를 살짝 줘서 배경과 분리 */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-layer .bttn-txt--circle {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

/* 초기 레이어 위치 */
.text-layer.layer-1 {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.text-layer.layer-2,
.text-layer.layer-3 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* assets/css/intro.css */

/* ... (위쪽 배경 관련 코드는 그대로 유지) ... */


/* [수정] 레이아웃 정렬 */
.intro__row {
    display: flex;
    align-items: center;
    /* 수직 중앙 정렬 (지구본-텍스트 높이 맞춤) */
    justify-content: space-between;
    height: 100%;
}

/* 지구본 영역 조정 */
.earth-wrapper {
    position: relative;
    z-index: 5;
}

/* 텍스트 영역 조정 (오른쪽 배치) */
.intro__text {
    position: relative;
    z-index: 10;
    text-align: left;
    padding-left: 40px;

    /* ✅ [추가] 단어 단위로 줄바꿈 (글자가 중간에 잘리는 것 방지) */
    word-break: keep-all;
}

/* 텍스트 스와퍼 */
.text-swapper {
    position: relative;
    width: 100%;
    /* 텍스트가 위아래로 움직일 공간 확보 */
    min-height: 300px;
    display: flex;
    align-items: center;
    /* 텍스트 박스 내부 수직 중앙 */
}

/* 텍스트 레이어 공통 */
.text-layer {
    width: 100%;
    transition: opacity 0.3s;
    color: #fff !important;

    /* 움직임이 부드럽게 보이도록 will-change 추가 */
    will-change: transform, opacity;
}

/* assets/css/intro.css */

/* ... (기존 코드 하단) ... */

/* ✅ [수정] 하이라이트 (그라데이션 + 흰색 테두리) */
.text-layer .highlight {
    /* 1. 회사 고유 그라데이션 배경 */
    background: linear-gradient(90deg, #001A8E, #00A859);

    /* 2. 배경을 글자 모양대로 잘라내기 */
    -webkit-background-clip: text;
    background-clip: text;

    /* 3. 글자 내부 채우기를 투명하게 (그래야 배경이 보임) */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* 4. 폰트 두껍게 */
    font-weight: 800 !important;
    font-size: 60px;
    display: inline-block;
}

/* assets/css/intro.css */

/* ... (기존 코드) ... */

/* ✅ [모바일 대응] 980px 이하에서는 지구본 삭제 및 텍스트 최적화 */
@media (max-width: 980px) {

    /* 1. 지구본 영역 아예 숨기기 */
    .earth-wrapper {
        display: none !important;
    }

    /* 2. 텍스트 영역을 화면 꽉 차게 확장 */
    .intro__text {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;

        /* PC용 왼쪽 패딩 제거 후, 중앙 정렬 */
        padding-left: 0 !important;
        text-align: center !important;

        /* 모바일 양옆 안전 여백 */
        padding-right: 20px;
        padding-left: 20px;
    }

    /* 3. 텍스트 박스 정렬 */
    .text-swapper {
        justify-content: center;
        /* 플렉스 내부 중앙 정렬 */
    }

    /* 4. 폰트 크기 최적화 (너무 크지 않게) */
    .text-layer .title {
        font-size: 32px !important;
        /* 모바일 적정 크기 고정 */
        line-height: 1.3 !important;
        margin-bottom: 30px;
    }
}