/* 사업 영역 페이지 공통 스타일 */
body {
    font-family: 'Pretendard', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    padding-top: 0; /* 헤더 아래 패딩 제거 */
}

/* 히어로 섹션 */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
}

.hero-content {
    max-width: 800px;
    margin-left: 190px;
    color: #fff;
    bottom: 100px;
}

.hero-title {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--tuva-green);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: var(--tuva-dark);
}

/* 비즈니스 페이지별 히어로 배경 */
body.after-sales .hero, body.system-dev .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
                url('../images/as.webp') no-repeat center center;
    background-size: cover;
}

body.system-dev .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
                url('../images/system.webp') no-repeat center center;
    background-size: cover;
}

body.retail .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/retail.webp') no-repeat center center;
    background-size: cover;
}

body.marketing .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/marketing.webp') no-repeat center center;
    background-size: cover;
}

body.contact-center .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/cc.webp') no-repeat center center;
    background-size: cover;
}

/* 섹션 공통 스타일 */
section {
    padding: 80px 0;
}

/* 서비스 소개 섹션 */
.service-intro,
.key-services,
.global-network,
.retail-process {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header,
.service-overview,
.services-container,
.process-steps,
.network-stats,
.performance-charts,
.cases-container,
.contact-info {
    padding: 0 20px;
}

.service-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.overview-image {
    flex: 1;
    min-width: 300px;
}

.overview-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.overview-text {
    flex: 1;
    min-width: 300px;
}

.overview-text h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--tuva-green);
}

.overview-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
}

/* 핵심 서비스 섹션 */

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--tuva-green);
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: auto;
}

/* 섹션 헤더 스타일 통일 */
.section-header {
    margin-bottom: 48px;
    text-align: left;
}

.section-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: var(--tuva-green);
}

.section-header h2 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--tuva-green);
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.section-header p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 1200px;
    margin-top: 24px;
    color: var(--tuva-dark);
}

/* 개발 프로세스 섹션 */
.development-process {
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.process-steps {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 25px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: #e2e8f0;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--tuva-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 25px;
    z-index: 1;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--tuva-green) !important;
}

.step-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 전국 서비스 네트워크 섹션 */

.network-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: left;
    min-width: 250px;
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 500;
    color: var(--tuva-green);
    display: block;
    margin-bottom: 16px;
}

.stat-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 서비스 성과 섹션 */
.tech-stack {
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.performance-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chart-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--tuva-green);
    margin-bottom: 25px;
    text-align: left;
}

/* 바 차트 스타일 */
.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-chart-item {
    display: flex;
    align-items: center;
}

.bar-label {
    width: 150px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.bar-chart-bg {
    flex: 1;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 15px;
}

.bar-chart {
    height: 100%;
    background-color: var(--tuva-green);
    border-radius: 6px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.bar-value {
    width: 40px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* 원형 차트 스타일 */
.circle-charts {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 50px;
}

.circle-chart-item {
    text-align: center;
}

.circle-chart {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.circle-fill {
    fill: none;
    stroke: var(--tuva-green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.percentage {
    font-size: 1.2rem;
    font-weight: 600;
    fill: #333;
    text-anchor: middle;
    dominant-baseline: middle;
}

.chart-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 문의하기 섹션 */
.contact-section {
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-method {
    text-align: left;
    align-items: center;
    display: flex;
    min-width: 250px;
    flex: 1;
    background-color: var(--tuva-light);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 100%;
    height: 100%;
}

.contact-method h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--tuva-green);
}

.contact-method p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    word-break: keep-all;
    white-space: normal;
    width: 100%;
}

.contact-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 기술 스택 섹션 */
.tech-categories {
    max-width: 1200px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.tech-category {
    background-color: var(--tuva-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--tuva-green);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tuva-light);
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.tech-item:hover img {
    transform: scale(1.1);
}

.tech-item span {
    font-size: 14px;
    color: #666;
    text-align: center;
    transition: color 0.3s ease;
}

/* 인프라 갤러리 (Contact Center 페이지) */
.infrastructure-gallery {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.gallery-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item.active {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--tuva-white);
    font-size: 16px;
    text-align: center;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.gallery-prev,
.gallery-next {
    padding: 10px 20px;
    background-color: var(--tuva-green);
    color: var(--tuva-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: var(--tuva-dark);
}

/* 성과 지표 (Contact Center 페이지) */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.metric-item {
    background-color: var(--tuva-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.metric-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--tuva-green);
    margin-bottom: 10px;
}

.metric-label {
    color: var(--tuva-dark);
    font-size: 16px;
}

/* 애니메이션 효과 유지 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 성공 사례 섹션 스타일 통일 */
.success-cases {
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.cases-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.case-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-height: 180px;
}

.case-image {
    flex: 0 0 40%;
    max-width: 30%;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    flex: 1;
    padding: 30px;
    align-items: center;
}

.case-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--tuva-green);
}

.case-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* 성공 사례 하이라이트 스타일 수정 */
.case-highlights {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
    opacity: 1;
}

.case-highlights li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    display: block;
}

.case-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--tuva-green);
    font-weight: bold;
}

/* 태블릿 반응형 스타일 */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 80px;
    }

    .section-header,
    .service-intro,
    .key-services,
    .development-process,
    .tech-stack,
    .contact-section {
        padding: 60px 20px;
    }

    .service-overview {
        padding: 0 20px;
        gap: 40px;
    }

    .tech-categories {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 0 20px;
    }

    .performance-charts {
        padding: 0 20px;
    }
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    .hero {
        position: relative;
        height: 100vh;
        width: 100%;
        overflow: hidden;
        background-size: cover;
        display: flex;
        align-items: flex-end;
        padding-bottom: 100px;
    }

    .hero-content {
        margin-left: 24px;
        margin-right: 24px;
        text-align: left;
        padding: 0;
        bottom: 100px;
        max-width: 800px;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 24px;
        font-weight: 600;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
        line-height: 1.6;
        max-width: 600px;
    }

    /* 섹션 공통 */
    section {
        padding: 40px 0;
    }

    /* 섹션 헤더 */
    .section-header {
        text-align: left;
        margin-bottom: 32px;
        padding: 0 24px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header h3 {
        font-size: 14px;
    }

    .section-header p {
        font-size: 16px;
        margin-top: 16px;
    }

    /* 서비스 소개 */
    .service-overview {
        flex-direction: column;
        gap: 32px;
        padding: 0 24px;
    }

    .overview-image {
        width: 100%;
    }

    .overview-text {
        text-align: left;
    }

    .overview-text h3 {
        font-size: 20px;
    }

    /* 서비스 카드 */
    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 24px;
    }

    .service-card {
        padding: 24px;
        align-items: flex-start;
        text-align: left;
    }

    /* 프로세스 단계 */
    .process-steps {
        padding: 0 24px;
    }

    .process-step {
        margin-bottom: 24px;
    }

    .step-content h3 {
        font-size: 20px;
    }

    /* 성과 차트 */
    .performance-charts {
        flex-direction: column;
        gap: 24px;
        padding: 0 24px;
    }

    .chart-container {
        padding: 20px;
    }

    .circle-charts {
        justify-content: center;
        gap: 30px;
    }

    .bar-chart-item {
        margin-bottom: 15px;
    }

    .bar-label {
        width: 120px;
        font-size: 14px;
    }

    /* 기술 스택 */
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 24px;
    }

    .tech-items {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 15px;
    }

    .tech-item img {
        width: 35px;
        height: 35px;
    }

    .tech-item span {
        font-size: 12px;
    }

    /* 성공 사례 */
    .case-item {
        flex-direction: column;
        margin: 0 24px;
        max-height: none; /* max-height 제거 */
        height: auto; /* 자동 높이 설정 */
    }

    .case-image {
        max-width: 100%;
        height: 200px;
    }

    .case-content {
        padding: 24px;
        text-align: left;
    }

    .case-highlights {
        text-align: left;
        padding-left: 0;
    }

    .case-highlights li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* 문의하기 */
    .contact-info {
        flex-direction: column;
        gap: 20px;
        padding: 0 24px;
    }

    .contact-method {
        text-align: left;
        padding: 24px;
    }
}

/* 작은 모바일 화면 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 32px;
    }

    .chart-title {
        font-size: 18px;
    }

    .circle-chart {
        width: 90px;
        height: 90px;
    }

    .percentage {
        font-size: 14px;
    }
}

/* 가로 모드 대응 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
}