@charset "utf-8";

:root {
    --primary-color: #0B2447;    /* 더 깊고 고급스러운 다크 블루 */
    --secondary-color: #19376D;  /* 부드러운 보조 색상 */
    --accent-color: #0096FF;     /* 밝은 블루 액센트 */
    --light-accent: #A5D7E8;     /* 부드러운 라이트 블루 */
    --background-color: #FAFBFF; /* 미세하게 블루 톤의 배경 */
    --card-bg: #FFFFFF;          /* 카드 배경 색상 */
    --text-color: #1F2A3C;       /* 진한 텍스트 색상 */
    --light-text: #FFFFFF;       /* 화이트 텍스트 */
    --muted-text: #64748B;       /* 중간 톤 텍스트 */
    --shadow-color: rgba(11, 36, 71, 0.08);
    --card-shadow: 0 10px 30px rgba(11, 36, 71, 0.08);
    --section-padding: 3rem 0;
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 모바일 요소 제어를 위한 인라인 스타일 - 최우선 적용 */
#mobile-elements {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    #mobile-elements {
        display: block !important;
        height: auto !important;
        width: auto !important;
        position: static !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        clip: auto !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* 모든 섹션에 적용할 스타일 */
section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0.9rem;
    position: relative;
    z-index: 2;
}

/* 타이포그래피 스타일 개선 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    color: var(--muted-text);
}

/* 버튼 스타일 개선 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--light-text);
    box-shadow: 0 6px 15px rgba(0, 150, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 150, 255, 0.4);
    background: #0080e0;
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.btn i {
    margin-left: 0.5rem;
}

/* 헤더 스타일 개선 */
header {
    background: rgba(11, 36, 71, 0.95);
    padding: 1.5rem 0.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background: rgba(11, 36, 71, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
}

.logo {
    color: var(--light-text);
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo svg {
    width: 34px;
    height: 34px;
    fill: var(--light-text);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-color);
}

/* 히어로 섹션 개선 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    margin-top: 0;
    background: linear-gradient(to right, rgba(11, 36, 71, 0.9), rgba(25, 55, 109, 0.8));
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(11, 36, 71, 0.6), transparent);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--light-text);
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #a5d7e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff; /* Fallback for browsers that don't support background-clip: text */
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    color: var(--light-text);
}

.hero .btn {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 섹션 타이틀 개선 */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--muted-text);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* 서비스 섹션 개선 */
#services {
    background: linear-gradient(135deg, rgba(250, 251, 255, 0.8), rgba(240, 245, 255, 0.8));
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: var(--light-accent);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

#services::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.03;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

/* 서비스 카드 개선 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(11, 36, 71, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--light-accent));
    transition: var(--transition);
    opacity: 0.8;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 36, 71, 0.08);
    border-color: rgba(0, 150, 255, 0.05);
}

.service-card:hover::before {
    height: 6px;
    opacity: 1;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.5;
    transition: var(--transition);
}

.service-card:hover h3::after {
    width: 60px;
    opacity: 1;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted-text);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.service-card .btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
    margin-top: auto;
}

.service-card .btn-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
    font-size: 0.85rem;
}

.service-card .btn-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

.service-card .btn-link:hover i {
    transform: translateX(5px);
}

.service-card .btn-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

.service-card .btn-link:hover i {
    transform: translateX(5px);
}

.service-card .btn-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

.service-card .btn-link:hover i {
    transform: translateX(5px);
}

.service-icon {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 12px;
    background: rgba(0, 150, 255, 0.08);
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 0.8rem;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1), rgba(165, 215, 232, 0.1));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: var(--light-text);
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0, 150, 255, 0.15);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 3.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .services-grid, .contact-info {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 200px;
        height: 100vh;
        background: var(--primary-color);
        z-index: 1000;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        list-style: none;
    }
    
    .mobile-menu a {
        color: var(--light-text);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition);
    }
    
    .mobile-menu a:hover {
        color: var(--accent-color);
        padding-left: 10px;
    }
    
    .close-menu {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--light-text);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 추가 태블릿용 개선 */
    @media (max-width: 576px) {
        html {
            font-size: 13px;
        }
        
        .hero h1 {
            font-size: 2.2rem;
        }
        
        .hero p {
            font-size: 1rem;
        }
        
        .service-card, .contact-card, .about-item, .about-text {
            padding: 2rem 1.5rem;
        }
        
        .section-title h2 {
            font-size: 2rem;
        }
        
        .footer-content {
            grid-template-columns: 1fr;
            text-align: center;
        }
        
        .footer-about p {
            max-width: 100%;
        }
        
        .social-links {
            justify-content: center;
        }
        
        .footer-links h3::after {
            left: 50%;
            transform: translateX(-50%);
        }
        
        .footer-links a {
            padding-left: 0;
        }
        
        .footer-links a::before {
            display: none;
        }
    }
}

/* 회사소개 섹션 개선 */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    top: -100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: var(--light-accent);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.about-item {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    height: 100%;
}

.about-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 36, 71, 0.12);
}

.about-item .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text {
    grid-column: 1 / -1;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--light-accent));
}

/* 타임라인 개선 */
.timeline-section {
    background: linear-gradient(135deg, rgba(25, 55, 109, 0.01), rgba(11, 36, 71, 0.02));
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--light-accent);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.timeline-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    opacity: 0.03;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.timeline-items {
    position: relative;
    z-index: 2;
    padding-left: 15px;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--background-color);
    box-shadow: 0 0 0 2px rgba(0, 150, 255, 0.15);
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: translateY(-50%) scale(1.2);
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.2);
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(11, 36, 71, 0.04);
    transition: all 0.3s ease;
    border-left: 2px solid var(--accent-color);
    position: relative;
    width: 100%;
}

.timeline-item:hover .timeline-content {
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(11, 36, 71, 0.08);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 0.2rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 5px rgba(11, 36, 71, 0.08);
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--muted-text);
    line-height: 1.5;
}

/* 타임라인 애니메이션 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 반응형 타임라인 - 모바일에서 세로바와 원형 마커 숨김 */
@media (max-width: 768px) {
    .timeline {
        max-width: 90%;
        padding: 0;
        margin: 0 auto;
    }
    
    .timeline-items {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .timeline-items::before {
        display: none; /* 세로 바 숨김 */
    }
    
    .timeline-item {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 500px;
        display: flex;
        justify-content: center;
    }
    
    .timeline-item::before {
        display: none; /* 원형 마커 숨김 */
    }
    
    .timeline-content {
        padding: 1rem 1.2rem;
        border-left: none; /* 왼쪽 테두리 제거 */
        border-top: 2px solid var(--accent-color); /* 상단에 테두리 추가 */
        text-align: center; /* 텍스트 가운데 정렬 */
        width: 100%;
    }
    
    .timeline-year {
        font-size: 0.75rem;
        padding: 0.15rem 0.6rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    .timeline-item:hover .timeline-content {
        transform: translateY(-3px); /* 호버 효과 방향 변경 */
    }
    
    /* AOS 애니메이션 클래스에 대한 추가 스타일 */
    .timeline-item.aos-init,
    .timeline-item.aos-animate {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .timeline {
        max-width: 95%;
    }
    
    .timeline-item {
        max-width: 100%; /* 작은 화면에서는 최대 너비 100%로 */
    }
    
    .timeline-content {
        padding: 0.9rem 1rem;
    }
    
    .timeline-content h3 {
        font-size: 0.95rem;
    }
    
    .timeline-content p {
        font-size: 0.8rem;
    }
}

/* 연락처 개선 */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--light-accent);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color), var(--light-accent));
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(11, 36, 71, 0.12);
}

.contact-card:hover::after {
    height: 8px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 150, 255, 0.1);
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background: var(--accent-color);
    color: var(--light-text);
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 푸터 개선 */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    color: var(--light-text);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-decoration: none;
    position: relative;
    padding-bottom: 10px;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* 텍스트 길이만큼 언더라인 확장 */
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: var(--transition);
}

.footer-logo:hover::after {
    background: var(--light-accent); /* 호버 시 색상 변경 */
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* 텍스트 길이만큼 언더라인 확장 */
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.75rem;
    position: relative;
    /*padding-left: 15px;*/
}

.footer-links a::before {
    /*content: '→';*/
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-text);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* 모바일 메뉴 개선 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
    }
}

/* 반응형 개선 */
@media (min-width: 2100px) {
    .container {
        max-width: 1500px;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 3.25rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        left: 0 !important;
    }
    
    .timeline-item::before {
        left: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .services-grid, .contact-info {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 200px;
        height: 100vh;
        background: var(--primary-color);
        z-index: 1000;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        list-style: none;
    }
    
    .mobile-menu a {
        color: var(--light-text);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition);
    }
    
    .mobile-menu a:hover {
        color: var(--accent-color);
        padding-left: 10px;
    }
    
    .close-menu {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--light-text);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 추가 태블릿용 개선 */
    @media (max-width: 576px) {
        html {
            font-size: 13px;
        }
        
        .hero h1 {
            font-size: 2.2rem;
        }
        
        .hero p {
            font-size: 1rem;
        }
        
        .service-card, .contact-card, .about-item, .about-text {
            padding: 2rem 1.5rem;
        }
        
        .section-title h2 {
            font-size: 2rem;
        }
        
        .footer-content {
            grid-template-columns: 1fr;
            text-align: center;
        }
        
        .footer-about p {
            max-width: 100%;
        }
        
        .social-links {
            justify-content: center;
        }
        
        .footer-links h3::after {
            left: 50%;
            transform: translateX(-50%);
        }
        
        .footer-links a {
            padding-left: 0;
        }
        
        .footer-links a::before {
            display: none;
        }
    }
}

/* 스크롤 프로그레스 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    width: 0%;
    z-index: 1002;
    transition: width 0.1s;
}

/* 스크롤 업 버튼 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* 애니메이션 효과 */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* SWPM 섹션 스타일 */
.swpm-hero {
    padding: 30px 0 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    transition: min-height 0.3s ease;
}

/* 단일 슬라이드일 때 높이 조정 */
.hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) {
    min-height: 340px;
}

.hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) .swpm-hero-content {
    padding: 30px 40px;
}

.hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) .hero-image img {
    max-height: 280px;
    width: auto;
    object-fit: contain;
}

/* 반응형 조정 */
@media (max-width: 992px) {
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) {
        min-height: 520px;
    }
    
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) .swpm-hero-content {
        padding: 30px 20px;
    }
    
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) .hero-image img {
        max-height: 240px;
    }
}

@media (max-width: 768px) {
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) {
        min-height: 460px;
    }
    
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) .swpm-hero-content {
        padding: 25px 15px;
    }
    
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) .hero-image img {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) {
        min-height: 420px;
    }
    
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) .swpm-hero-content {
        padding: 20px 15px;
    }
    
    .hero-slider:has(.swpm-hero-content[data-slide="1"]:only-child) .hero-image img {
        max-height: 180px;
    }
}

.swpm-hero-content {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 40px;
    margin-bottom: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.swpm-hero-content.active {
    display: flex;
}

.hero-title {
    font-size: 2.8em;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero-title span {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.1em;
    color: var(--muted-text);
    margin-bottom: 20px;
}

.hero-text {
    flex: 1;
    max-width: 45%;
}

.hero-image {
    flex: 1;
    text-align: center;
    max-width: 55%;
}

.hero-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 슬라이더 네비게이션 - 기존 스타일 수정 */
.slider-nav {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    padding: 0;
    pointer-events: none;
    max-width: 1320px;
    left: 50%;
    transform: translateX(-50%);
}

/* 단일 슬라이드일 때 네비게이션 숨김 */
.hero-slider:has(.swpm-hero-content[data-slide="1"]) .slider-nav,
.hero-slider:has(.swpm-hero-content[data-slide="1"]) .page-indicators {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
}

/* 단일 슬라이드일 때 자동 슬라이드 기능 중지 */
.hero-slider:has(.swpm-hero-content[data-slide="1"]) .swpm-hero-content {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    transform: none !important;
    transition: none !important;
}

/* 슬라이더 네비게이션 화살표 스타일 */
.nav-arrow {
    pointer-events: auto;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.3s;
    position: absolute;
}

.nav-prev {
    left: 20px; /* 왼쪽 여백 조정 */
}

.nav-next {
    right: 20px; /* 오른쪽 여백 조정 */
}

/* 반응형 스타일 조정 */
@media (max-width: 1400px) {
    .slider-nav {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .nav-prev {
        left: 30px;
    }
    
    .nav-next {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .nav-arrow {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .nav-prev {
        left: 15px;
    }
    
    .nav-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .nav-arrow {
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    .nav-prev {
        left: 10px;
    }
    
    .nav-next {
        right: 10px;
    }
}

/* 페이지 인디케이터 - 미니멀 디자인 */
.page-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.indicator {
    width: 40px;
    height: 4px;
    background-color: rgba(200, 200, 200, 0.5);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: 2px;
}

.indicator.active {
    background-color: var(--accent-color);
    width: 50px;
}

.indicator::after {
    content: attr(data-slide);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted-text);
    opacity: 1;
    transition: var(--transition);
}

.indicator:hover::after,
.indicator.active::after {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* SWPM 버튼 스타일 */
.swpm-btn {
    margin-top: 10px;
}

/* SWPM 반응형 스타일 */
@media (max-width: 992px) {
    .swpm-hero {
        min-height: 520px;
        padding: 50px 0 30px;
    }
    
    .swpm-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 40px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 90%;
        margin-top: 20px;
    }
    
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-arrow {
        font-size: 3rem;
        width: 50px;
    }
    
    .nav-arrow span {
        opacity: 0.7;
    }
    
    .page-indicators {
        bottom: 15px;
    }
}

@media (max-width: 768px) {
    .swpm-hero {
        min-height: 480px;
        /* padding: 40px 0 40px; */
    }
    
    .swpm-hero-content {
        padding: 0 50px;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .nav-arrow {
        font-size: 2.5rem;
        width: 40px;
    }
    
    .indicator::after {
        font-size: 0.9rem;
    }
    
    .indicator.active::after {
        font-size: 1rem;
    }
    
    .page-indicators {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .swpm-hero {
        min-height: 520px;
        /* padding: 30px 0 50px; */
    }
    
    .swpm-hero-content {
        padding: 0 40px;
    }
    
    .nav-arrow {
        font-size: 2rem;
        width: 30px;
    }
    
    .nav-prev {
        left: 0;
        padding-right: 10px;
    }
    
    .nav-next {
        right: 0;
        padding-left: 10px;
    }
    
    .page-indicators {
        bottom: 25px;
    }
}

/* PC 화면에서 원형 마커와 세로 바 정렬 수정 */
@media (min-width: 769px) {
    .timeline-item::before {
        left: -22px; /* 원형 마커 위치를 세로 바와 완전히 겹치도록 조정 */
        width: 14px;
        height: 14px;
        transform: translateY(-50%);
        border: 2px solid var(--background-color);
    }
    
    .timeline-items::before {
        left: 0;
        width: 2px; /* 세로 바 두께 유지 */
    }
}
