/**
 * 주식회사 옌 (YEN Corp) 웹사이트
 * 서비스 페이지 스타일
 */

/* 공통 섹션 스타일 */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.section-divider {
    width: 70px;
    height: 3px;
    background-color: #854E7A;
    margin: 0 auto 30px;
}

.section-divider-left {
    width: 70px;
    height: 3px;
    background-color: #854E7A;
    margin: 0 0 30px 0;
}

/* 배경색 변형 */
.bg-light {
    background-color: #f9fafc;
}

.bg-primary {
    background-color: #854E7A;
    color: #fff;
}

/* 페이지 헤더 스타일은 page-header.css로 분리 */

/* 서비스 개요 다이어그램 */
.services-diagram {
    padding: 30px 0;
    max-width: 800px;
    margin: 0 auto;
}

.diagram-wrapper {
    position: relative;
    min-height: 400px;
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.center-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #854E7A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.diagram-items {
    position: relative;
    width: 100%;
    height: 100%;
}

.diagram-item {
    position: absolute;
    width: 180px;
    text-align: center;
}

.diagram-items .diagram-item:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.diagram-items .diagram-item:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(50%);
}

.diagram-items .diagram-item:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
}

.diagram-items .diagram-item:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-50%);
}

.diagram-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #F9BF53;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.diagram-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.diagram-item p {
    font-size: 0.95rem;
    color: #666;
}

/* 서비스 카드 - 현대적 디자인 */
.modern-service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.4s ease;
}

.modern-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(133, 78, 122, 0.7) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.modern-service-card:hover .service-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #854E7A;
    font-size: 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-service-card:hover .overlay-btn {
    transform: translateY(0);
    opacity: 1;
}

.overlay-btn:hover {
    background: #F9BF53;
    color: #fff;
}

.service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #854E7A;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    z-index: 1;
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.service-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #666;
}

.service-feature i {
    color: #F9BF53;
    font-size: 0.9rem;
}

.btn-outline-primary {
    border: 2px solid #854E7A;
    color: #854E7A;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* 프로세스 타임라인 */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, rgba(133, 78, 122, 0.1), #854E7A, rgba(133, 78, 122, 0.1));
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:nth-child(even) {
    justify-content: flex-start;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #854E7A;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(133, 78, 122, 0.3);
}

.step-content {
    width: calc(50% - 50px);
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.step-content:before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: rotate(45deg);
}

.process-step:nth-child(odd) .step-content:before {
    left: -10px;
}

.process-step:nth-child(even) .step-content:before {
    right: -10px;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-title span {
    color: #F9BF53;
    margin-right: 10px;
}

.step-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.step-activity {
    padding: 6px 12px;
    background: rgba(133, 78, 122, 0.1);
    color: #854E7A;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 500;
}

/* 고객 성공 사례 */
.case-study-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-img {
    height: 200px;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-card:hover .case-img img {
    transform: scale(1.05);
}

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.case-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-service {
    font-size: 0.85rem;
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    color: #333;
}

/* CTA 섹션 */
#services-cta {
    position: relative;
    padding: 0;
    margin: 80px 0;
}

.cta-container {
    background: linear-gradient(45deg, #854E7A 0%, #77313D 100%);
    border-radius: 20px;
    padding: 70px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.cta-shape-1, .cta-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.cta-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.cta-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -70px;
    left: -70px;
}

.btn-light {
    padding: 14px 34px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: #fff;
    color: #854E7A;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    background-color: #854E7A;
    border-color: #854E7A;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #77313D;
    border-color: #77313D;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 브랜딩 서비스 페이지 스타일 */
.overview-content {
    padding: 20px 0;
}

.overview-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.overview-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 250px; /* 이미지 높이 제한 */
    width: auto;
}

/* 상세 서비스 카드 */
.detail-service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.detail-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.detail-service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.detail-service-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.detail-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-service-list li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.detail-service-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #F9BF53;
}

/* 브랜딩 프로세스 */
.process-flow {
    padding: 30px 0;
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #854E7A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 20px;
}

.process-content {
    flex-grow: 1;
}

.process-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.process-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* 포트폴리오 카드 */
.portfolio-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-content {
    padding: 25px;
}

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

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

.portfolio-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-service {
    font-size: 0.85rem;
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    color: #333;
}

/* 서비스 아이콘 */
.service-icon, .difference-icon, .approach-icon, .step-icon {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: #F9BF53;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-icon.branding {
    background-image: url('../images/icons/services/branding.svg');
}

.service-icon.marketing {
    background-image: url('../images/icons/services/marketing.svg');
}

.service-icon.content {
    background-image: url('../images/icons/services/content.svg');
}

.service-icon.consulting {
    background-image: url('../images/icons/services/consulting.svg');
}

/* 브랜딩 아이콘 */
.branding-icon.new-identity {
    background-image: url('../images/icons/services/new-identity.svg');
}

.branding-icon.rebranding {
    background-image: url('../images/icons/services/rebranding.svg');
}

.branding-icon.brand-design {
    background-image: url('../images/icons/services/brand-design.svg');
}

/* 마케팅 아이콘 */
.marketing-icon.digital {
    background-image: url('../images/icons/services/digital-marketing.svg');
}

.marketing-icon.offline {
    background-image: url('../images/icons/services/offline-marketing.svg');
}

.marketing-icon.media {
    background-image: url('../images/icons/services/media-marketing.svg');
}

.difference-icon.sustainability {
    background-image: url('../images/icons/services/sustainability.svg');
}

.difference-icon.customer-management {
    background-image: url('../images/icons/services/customer-management.svg');
}

.difference-icon.report {
    background-image: url('../images/icons/services/report.svg');
}

/* 콘텐츠 아이콘 */
.content-icon.graphic {
    background-image: url('../images/icons/services/graphic-design.svg');
}

.content-icon.web {
    background-image: url('../images/icons/services/web-design.svg');
}

.content-icon.video {
    background-image: url('../images/icons/services/video-production.svg');
}

/* 컨설팅 아이콘 */
.consulting-icon.brand {
    background-image: url('../images/icons/services/brand-consulting.svg');
}

.consulting-icon.global {
    background-image: url('../images/icons/services/global-expansion.svg');
}

.consulting-icon.marketing-strategy {
    background-image: url('../images/icons/services/marketing-strategy.svg');
}

.methodology-icon.discover {
    background-image: url('../images/icons/services/discover.svg');
}

.methodology-icon.define {
    background-image: url('../images/icons/services/define.svg');
}

.methodology-icon.develop {
    background-image: url('../images/icons/services/develop.svg');
}

.methodology-icon.deliver {
    background-image: url('../images/icons/services/deliver.svg');
}

.approach-icon.insights {
    background-image: url('../images/icons/services/insights.svg');
}

.approach-icon.customized {
    background-image: url('../images/icons/services/customized.svg');
}

.approach-icon.actionable {
    background-image: url('../images/icons/services/actionable.svg');
}

/* 반응형 스타일 */
@media (max-width: 991.98px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .diagram-wrapper {
        min-height: 300px;
    }
    
    .center-circle {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
    
    .diagram-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .diagram-item {
        width: 150px;
    }
    
    .service-img {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .page-header {
        padding: 100px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .diagram-wrapper {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .process-step:before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .page-header {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card, .detail-service-card, .case-study-card, .portfolio-card {
        margin-bottom: 20px;
    }
    
    .service-img, .case-img, .portfolio-img {
        height: 180px;
    }
    
    .service-content, .case-content, .portfolio-content {
        padding: 20px;
    }
    
    .service-title, .case-title, .portfolio-title {
        font-size: 1.3rem;
    }
    
    .service-description, .case-description, .portfolio-description {
        font-size: 0.9rem;
    }
}
