/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    background-image: url('../img/clean-bg.svg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #4e73df;
    transition: color 0.3s ease;
}

a:hover {
    color: #2e59d9;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: #4e73df;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

.btn:hover {
    background-color: #2e59d9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #36b9cc;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2c9faf;
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    color: #333;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4e73df;
}

/* 헤더 스타일 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 로고 스타일 수정 */
.logo a {
    text-decoration: none;
    padding-left: 0; /* 왼쪽 패딩 제거 */
}


.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4e73df;
    margin-left: 0; /* 왼쪽 마진 제거 */
}

/* 언어 선택기 스타일 */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: auto; /* 오른쪽으로 이동 */
    font-weight: 500;
    font-size: 0.8rem; /* 글씨 크기 줄임 */
}

.language-selector a {
    color: #555;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.language-selector a.active {
    color: #4e73df;
    font-weight: 700;
}

.language-selector a:hover {
    color: #2e59d9;
}

/* 헤더 컨테이너 수정 */
header .container {
    display: flex;
    justify-content: flex-start; /* 왼쪽 정렬로 변경 */
    align-items: center;
    padding: 20px 15px;
}

nav {
    margin-left: 30px; /* 네비게이션과 로고 사이 간격 조정 */
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .language-selector {
        margin-left: auto;
        margin-right: 50px; /* 모바일 메뉴 버튼 공간 확보 */
    }
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    color: #555;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4e73df;
    transition: width 0.3s ease;
}

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

/* 히어로 섹션 */
.hero {
    background: linear-gradient(rgba(78, 115, 223, 0.1), rgba(78, 115, 223, 0.2)), url('img/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #333;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 특징 섹션 */
.features {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.feature-item i {
    font-size: 3rem;
    color: #4e73df;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

/* 회사 소개 미리보기 */
.about-preview {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

.about-preview .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-preview .container > .section-title {
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.about-content {
    text-align: left;
}

/* 회사 소개 제목 스타일 */
.about-preview .section-title {
    text-align: center;
    margin-bottom: 30px;
    display: block;
    width: 100%;
}

.about-content p {
    margin-bottom: 30px;
    text-align: left;
}

.about-content .btn {
    display: inline-block;
    margin: 0;
    font-size: 1.1rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    margin: 0 auto;
}

/* 테스티모니얼 */
.testimonials {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    padding: 30px;
    border-radius: 5px;
    background-color: #fff;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    color: #555;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    color: #007bff;
    opacity: 0.3;
}

.testimonial-author h4 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

/* CTA 섹션 */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.1), rgba(78, 115, 223, 0.2));
    color: #333;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background-color: #4e73df;
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta .btn:hover {
    background-color: #2e59d9;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 푸터 */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 80px 0 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4e73df;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #4e73df;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4e73df;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a i {
    color: #fff;
}

.social-icons a:hover {
    background-color: #2e59d9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-preview .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center; /* 중앙 정렬 추가 */
    }
    
    nav {
        margin-left: 0; /* 모바일에서는 왼쪽 마진 제거 */
        width: 100%; /* 전체 너비 사용 */
        display: flex;
        justify-content: center; /* 중앙 정렬 */
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center; /* 중앙 정렬 */
        width: 100%; /* 전체 너비 사용 */
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .feature-grid,
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}
