/**
 * 주식회사 옌 (YEN Corp) 웹사이트
 * 포트폴리오(주요 실적) 페이지 스타일
 * 
 * @version 1.6.0
 * @author YEN Corp Development Team
 */

/* ===== 페이지 헤더 스타일 ===== */
/* 참고: 페이지 헤더 스타일은 page-header.css에 정의되어 있습니다. */

/* ===== 필터링 섹션 - 인사이트 스타일 적용 ===== */
#portfolio-filter {
    padding: 20px 0;
    background-color: #ffffff;
    margin-top: 20px;
}

.service-filter {
    margin-bottom: 0;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.filter-tabs li {
    margin-right: 10px;
    margin-bottom: 10px;
}

.filter-tabs li a {
    display: block;
    padding: 8px 15px;
    background-color: #f9fafc;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9e0ea;
}

.filter-tabs li.active a {
    background-color: #854E7A;
    color: white;
    border-color: #854E7A;
}

.filter-tabs li a:hover {
    background-color: #F9BF53;
    color: #333;
    border-color: #F9BF53;
}

/* ===== 포트폴리오 타임라인 스타일 ===== */
.portfolio-timeline {
    position: relative;
    padding: 60px 0;
}

.timeline-container {
    position: relative;
}

.timeline-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #e9e0ea;
    transform: translateX(-50%);
}

.year-marker {
    position: relative;
    text-align: center;
    margin: 60px 0;
}

.year-marker .year-badge {
    display: inline-block;
    background-color: #854E7A;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}

/* 좌우 배치 클래스 기반 스타일 */
.portfolio-item.left {
    padding-right: 50%;
    padding-left: 0;
    justify-content: flex-end;
}

.portfolio-item.right {
    padding-left: 50%;
    padding-right: 0;
    justify-content: flex-start;
}

.portfolio-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-item.left .portfolio-card::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 30px;
    width: 20px;
    height: 20px;
    background-color: #854E7A;
    border-radius: 50%;
}

.portfolio-item.right .portfolio-card::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 30px;
    width: 20px;
    height: 20px;
    background-color: #854E7A;
    border-radius: 50%;
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image-wrapper img {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: contain;
}

.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
}

.service-tag-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.service-tag {
    background-color: rgba(133, 78, 122, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333333;
}

.portfolio-description {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.portfolio-link {
    margin-top: 15px;
}

.portfolio-link a {
    color: #854E7A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.portfolio-link a:hover {
    color: #F9BF53;
}

/* 이미지가 없는 항목용 스타일 */
.portfolio-card.no-image .portfolio-content {
    padding-top: 40px;
}

/* ===== CTA 섹션 - services.css에서 일괄적으로 정의함 =====*/
/* #services-cta 섹션에 대한 스타일은 services.css에서 참조함 */

/* ===== 버튼 스타일 ===== */
.btn-primary {
    background-color: #F9BF53;
    border-color: #F9BF53;
    color: #333333;
}

.btn-primary:hover {
    background-color: #F5D823;
    border-color: #F5D823;
    color: #333333;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #854E7A;
    color: #854E7A;
}

.btn-outline:hover {
    background-color: #854E7A;
    color: white;
}

.btn-light {
    background-color: white;
    border-color: white;
    color: #854E7A;
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #77313D;
}

.btn-outline-secondary {
    background-color: transparent;
    border: 1px solid #666666;
    color: #666666;
}

.btn-outline-secondary:hover {
    background-color: #666666;
    color: white;
}

/* ===== 반응형 스타일 ===== */
@media (max-width: 1199px) {
    .portfolio-title {
        font-size: 1.2rem;
    }
    
    .portfolio-description {
        font-size: 0.85rem;
    }
    
    .portfolio-image-wrapper {
        max-height: 160px;
    }
}

@media (max-width: 991px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .timeline-center-line {
        left: 30px;
    }
    
    .year-marker {
        text-align: left;
        padding-left: 60px;
    }
    
    .portfolio-item.left,
    .portfolio-item.right {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .portfolio-card {
        width: 100%;
    }
    
    .portfolio-item.left .portfolio-card::after,
    .portfolio-item.right .portfolio-card::after {
        left: -40px;
        right: auto;
    }
    
    .portfolio-image-wrapper {
        max-height: 200px;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .filter-tabs li {
        flex-shrink: 0;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
    }
    
    .portfolio-description {
        font-size: 0.8rem;
    }
    
    .portfolio-image-wrapper {
        max-height: 180px;
    }
    
    .service-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}