/* assets/css/projects.css */

/* 가로 스크롤 레이아웃 기반 설정 */
.horizontal-scroll-container {
    width: 100%;
    height: 100vh;
    /* 화면 꽉 차게 */
    overflow: hidden;
    background-color: #f9f9fb;
    /* 깨끗하고 밝은 화이트/그레이 톤 */
    position: relative;
}

.horizontal-track {
    display: flex;
    flex-wrap: nowrap;
    width: 400vw;
    /* 4개의 패널이므로 400% */
    height: 100%;
}

.h-panel {
    width: 100vw;
    height: 100%;
    padding: 120px 5% 60px;
    /* 헤더 공간 고려 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-panel-inner {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 공통 타이틀 영역 스타일 */
.h-title-area {
    margin-bottom: 60px;
}

.h-label {
    display: inline-block;
    font-size: 18px;
    font-weight: 800;
    color: #001A8E;
    margin-bottom: 12px;
    background: rgba(0, 26, 142, 0.05);
    padding: 6px 16px;
    border-radius: 30px;
}

.h-title {
    font-size: 48px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.h-desc {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
}

/* Panel 1: 파트너 & 납품 현황 (태그 클라우드) */
.partner-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1000px;
}

.p-tag {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: default;
}

.p-tag:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 26, 142, 0.08);
    border-color: rgba(0, 26, 142, 0.2);
}

.p-tag--highlight {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    border: 1px solid rgba(0, 26, 142, 0.1);
}

.p-tag .company {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 600;
}

.p-tag .project {
    font-size: 18px;
    color: #111;
    font-weight: 700;
}

/* 스크롤 유도 인디케이터 */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #001A8E;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 60px;
    height: 2px;
    background: #001A8E;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    transform: translateX(-100%);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateX(-100%);
    }

    50%,
    100% {
        transform: translateX(100%);
    }
}

/* Panel 2~4: 타임라인(갤러리) 영역 */
.timeline-gallery {
    display: flex;
    gap: 40px;
    width: 100%;
}

.t-card {
    flex: 0 0 320px;
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.5s ease;
}

.t-card:hover {
    transform: scale(1.03);
}

.t-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f2;
    margin-bottom: 24px;
}

.t-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* 흰 바탕의 누끼 이미지들이 더 자연스럽게 묻게 함 */
}

.t-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.t-info p {
    font-size: 16px;
    color: #666;
}

/* 반응형 (태블릿/모바일에서는 세로 스크롤로 변경) */
@media (max-width: 980px) {
    .horizontal-scroll-container {
        height: auto;
    }

    .horizontal-track {
        flex-direction: column;
        width: 100%;
    }

    .h-panel {
        width: 100%;
        height: auto;
        padding: 80px 5% 60px;
    }

    .timeline-gallery {
        flex-direction: column;
        gap: 24px;
    }

    .t-card {
        flex: auto;
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }
}

/* VIP 파트너 수직 타임라인 섹션 */
.section--vip-history {
    background: linear-gradient(180deg, #f9f9fb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.vip-header {
    text-align: center;
    margin-bottom: 100px;
}

.vip-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: #001A8E;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    border: 1px solid rgba(0, 26, 142, 0.2);
    border-radius: 40px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.vip-title {
    font-size: 48px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.vip-desc {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* 수직 타임라인 구조 */
.vertical-timeline-wrap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 중앙 선 (배경) */
.v-line-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

/* 스크롤에 따라 차오르는 푸른 빛줄기 */
.v-line-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    /* JS로 제어 */
    background: linear-gradient(180deg, rgba(0, 26, 142, 0) 0%, #001A8E 50%, #001A8E 100%);
    box-shadow: 0 0 15px rgba(0, 26, 142, 0.5);
    border-radius: 2px;
}

/* 타임라인 개별 아이템 */
.v-item {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    margin-bottom: -40px;
    /* 카드들이 살짝 겹치게 배치하여 밀도감 부여 */
    opacity: 0;
    /* GSAP를 위해 초기 투명 */
}

.v-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

/* 연결 점 */
.v-dot {
    position: absolute;
    top: 50px;
    /* 카드 상단에 맞춤 */
    right: -8px;
    /* 중앙선 기준 정렬 (left 아이템) */
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.4s ease;
}

.v-item.right .v-dot {
    right: auto;
    left: -8px;
    /* 중앙선 기준 정렬 (right 아이템) */
}

/* 활성화(스크롤 도달) 시 점 디자인 변경 클래스 (JS에서 추가) */
.v-item.is-active .v-dot {
    border-color: #001A8E;
    box-shadow: 0 0 0 6px rgba(0, 26, 142, 0.1);
}

/* 글래스모피즘 카드 */
.v-card {
    width: 85%;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(20px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.v-item.left .v-card {
    margin-right: 40px;
}

.v-item.right .v-card {
    margin-left: 40px;
}

.v-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 26, 142, 0.08);
}

.v-year {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.v-list {
    list-style: none;
    padding: 0;
}

.v-list li {
    font-size: 16px;
    color: #555;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    padding-left: 16px;
}

.v-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 4px;
    height: 4px;
    background: #001A8E;
    border-radius: 50%;
}

.v-list li:last-child {
    border-bottom: none;
}

/* 엔딩 포인트 */
.v-endpoint {
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.endpoint-dot {
    width: 20px;
    height: 20px;
    background: #001A8E;
    border-radius: 50%;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(0, 26, 142, 0.4);
}

.v-endpoint p {
    font-size: 14px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 모바일 대응: 중앙선을 왼쪽으로 밀고 모든 카드를 오른쪽에 배치 */
@media (max-width: 980px) {
    .v-line-track {
        left: 20px;
        transform: none;
    }

    .v-item {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 40px;
        margin-bottom: 30px;
    }

    .v-item.right {
        padding-left: 40px;
    }

    .v-dot,
    .v-item.right .v-dot {
        left: 12px;
        right: auto;
        top: 40px;
    }

    .v-item.left .v-card,
    .v-item.right .v-card {
        margin: 0;
        width: 100%;
        padding: 30px 20px;
    }

    .v-year {
        font-size: 26px;
    }
}

/* --- 포트폴리오 히어로 섹션 --- */
.portfolio-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* 화면에 꽉 차게 */
    min-height: 800px;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* 마우스 따라다니는 빛 (코팅 효과) */
.hero-glow-cursor {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 26, 142, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    /* 클릭 방해 금지 */
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}


.hero-eyebrow .line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #001A8E, #00A859);
}


.hero-eyebrow .text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2em;
    background: linear-gradient(90deg, #001A8E 0%, #0644A3 40%, #00A859 75%, #28B463 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.title-line {
    overflow: hidden;
    /* GSAP 텍스트 등장 애니메이션을 위한 클리핑 마스크 */
    padding-bottom: 10px;
}

.text-gradient {
    background: linear-gradient(135deg, #001A8E 0%, #4A70FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 22px;
    color: #555;
    line-height: 1.6;
    font-weight: 400;
}

/* CSS로 만드는 하이테크 글래스 오브젝트 (우측 여백 장식) */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }

    /* 태블릿 이하에서는 텍스트에 집중하도록 숨김 */
}

.glass-shape {
    position: absolute;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0, 26, 142, 0.05);
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 250px;
    height: 350px;
    top: 0;
    right: 50px;
    transform: rotate(15deg);
    z-index: 3;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -20px;
    left: 0;
    border-radius: 50%;
    /* 원형 */
    background: linear-gradient(135deg, rgba(0, 26, 142, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 2;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50px;
    left: -20px;
    transform: rotate(-20deg);
    z-index: 1;
}

/* 하단 스크롤 유도 마우스 아이콘 */
.hero-scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 20px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background: #001A8E;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* --- 반응형 회로 배경 (가로 스크롤용) --- */
.bg-circuit-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 150vw;
    /* 패널 이동 시 잘리지 않도록 화면의 1.5배로 넓게 설정 */
    height: 100%;
    z-index: 0;
    pointer-events: none;

    /* 하이테크 무드의 미세한 도트(점) 그리드 배경 추가 */
    background-image: radial-gradient(rgba(0, 26, 142, 0.05) 2px, transparent 2px);
    background-size: 50px 50px;
    /* 50px 간격의 점 패턴 */
}

.bg-circuit-matrix svg {
    width: 100%;
    height: 100%;
}

.circuit-line {
    fill: none;
    stroke-width: 2px;
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 카드와 배경이 겹칠 때 가독성을 위해 카드의 글래스 효과를 조금 더 뚜렷하게 */
.h-panel-inner {
    position: relative;
    z-index: 2;
}

/* ---------------------------------
 * ★ 가로 스크롤 상단 네비게이션 (전체 흐름도)
 * --------------------------------- */
.h-progress-nav {
    position: absolute;
    top: 60px;
    /* 헤더 영역 아래 적절한 여백 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 14px 40px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 26, 142, 0.08);
    width: max-content;
    overflow: hidden;
    /* 진행 선이 캡슐 밖으로 나가지 않게 */
}

.nav-steps {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.nav-step .num {
    font-size: 13px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}

.nav-step .name {
    font-size: 15px;
    font-weight: 600;
}

/* 활성화 상태 (현재 보고 있는 패널) */
.nav-step.is-active {
    color: #001A8E;
}

.nav-step.is-active .num {
    color: #00A859;
}

/* 하단 프로그레스 바 (채워지는 선) */
.nav-progress-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #001A8E, #00A859);
    width: 0%;
    /* JS에서 제어 */
    transition: width 0.1s linear;
    /* 부드럽게 따라오도록 */
}

/* 모바일 분기: 모바일에서는 세로로 바뀌므로 굳이 띄우지 않고 숨김 */
@media (max-width: 980px) {
    .h-progress-nav {
        display: none;
    }
}