/* Scoped Styles for K-Project */
.k-project-wrapper {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #334155;
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.k-project-wrapper *,
.k-project-wrapper *::before,
.k-project-wrapper *::after {
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 애니메이션은 래퍼에 */
.kp-animated {
    opacity: 1;
}

.kp-animated.kp-pre-animate {
    opacity: 0;
    will-change: transform, opacity;
}

/* 기존 translateZ(0), backface-visibility는 빼는 게 더 선명한 경우가 많음 */
.kp-animated.kp-pre-animate.animated {
    animation: fadeInUp .45s ease-out forwards;
}

/* 이미지 자체는 transform 금지 */
.kp-animated img {
    transform: none !important;
    backface-visibility: visible;
    display: block;
    /* 미세한 흔들림/블러 줄이는 데 도움 */
}

/* Hero Section */
.kp-hero {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.kp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/k_project_hero_banner.png');
    background-size: cover;
    background-position: center;
    filter: brightness(1.2) contrast(1.08) saturate(1.06);
    z-index: 1;
    transition: transform 10s ease;
}

.kp-hero:hover .kp-hero-bg {
    transform: scale(1.05);
}

.kp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    z-index: 2;
}

.kp-hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 800px;
}

.kp-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.kp-hero-subtitle {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 400;
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

/* Section Title */
.kp-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 60px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kp-section-title svg {
    color: #10b981;
    width: 28px;
    height: 28px;
}

/* Category Wrapper */
.kp-category {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.kp-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.kp-category.v1::before {
    background: #3b82f6;
}

/* Blue */
.kp-category.v2::before {
    background: #10b981;
}

/* Green */
.kp-category.v3::before {
    background: #f59e0b;
}

/* Yellow */

/* Category Title */
.kp-cat-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Flex List Structure */
.kp-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kp-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.kp-list-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    margin-top: 2px;
}

.kp-category.v1 .kp-list-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.kp-category.v2 .kp-list-icon {
    background: #ecfdf5;
    color: #10b981;
}

.kp-category.v3 .kp-list-icon {
    background: #fffbeb;
    color: #f59e0b;
}

.kp-list-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
}

.kp-list-content p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

/* Inquiry Box */
.kp-inquiry-box {
    margin-top: 30px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-weight: 600;
}

.kp-inquiry-box svg {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .kp-hero-title {
        font-size: 2rem;
    }

    .kp-category {
        padding: 25px 25px 25px 35px;
    }

    /* keep left border space */
    .kp-list-item {
        flex-direction: column;
        gap: 10px;
    }

    .kp-list-icon {
        margin-top: 0;
    }
}