/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 로딩 애니메이션 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

/* 폼 성공 메시지 스타일 */
.form-success-message {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(30, 77, 123, 0.08);
    text-align: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.form-success-message .success-icon {
    font-size: 4rem;
    color: #5EC6E8;
    margin-bottom: 20px;
}

.form-success-message h3 {
    font-size: 1.8rem;
    color: #1E4D7B;
    margin-bottom: 15px;
}

.form-success-message p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
}

/* 폼 페이드 효과 */
#consultationForm {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1E4D7B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 기본 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #F5F7FA;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 스타일 */
header {
    background-color: #1E4D7B;
    box-shadow: 0 2px 10px rgba(30, 77, 123, 0.12);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #5EC6E8;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(30,77,123,0.10);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #5EC6E8;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* 히어로 섹션 스타일 */
.hero {
    background: linear-gradient(120deg, #1E4D7B 60%, #5EC6E8 100%);
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    border-radius: 0 0 48px 48px;
    box-shadow: 0 8px 32px rgba(30,77,123,0.11);
}

.hero-content {
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 0 2px 8px rgba(30,77,123,0.10);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.primary-btn {
    background-color: #5EC6E8;
    color: #fff;
    border: 2px solid #5EC6E8;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px rgba(30,77,123,0.08);
}

.primary-btn:hover {
    background-color: #1E4D7B;
    border-color: #1E4D7B;
}

.secondary-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.secondary-btn:hover {
    background-color: #5EC6E8;
    color: #fff;
    border-color: #5EC6E8;
}

/* 섹션 공통 스타일 */
section {
    padding: 80px 0;
    background-color: #F5F7FA;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #1E4D7B;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.underline {
    height: 3px;
    width: 70px;
    background-color: #5EC6E8;
    margin: 0 auto;
    border-radius: 2px;
}

/* 소개 섹션 스타일 */
.about {
    background-color: #fff;
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    list-style: none;
    margin: 30px 0;
}

.about-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-features i {
    color: #5EC6E8;
    margin-right: 10px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 서비스 섹션 스타일 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(30, 77, 123, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(30, 77, 123, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: #5EC6E8;
    margin-bottom: 20px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1E4D7B;
    text-align: center;
}

.service-card p {
    color: #666;
    text-align: center;
    flex: 1;
}

/* 상담 및 문의 섹션 스타일 */
.contact {
    background-color: #fff;
    padding: 80px 0;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.8rem;
    color: #5EC6E8;
    margin-right: 20px;
    min-width: 30px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1E4D7B;
    font-weight: 600;
}

.contact-item p {
    color: #555;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1E4D7B;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #5EC6E8;
    box-shadow: 0 0 0 3px rgba(94, 198, 232, 0.2);
    background-color: #fff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* 푸터 스타일 */
footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px 0;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -4px 24px rgba(30,77,123,0.10);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 220px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    color: #5EC6E8;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-links {
    flex: 1;
    min-width: 160px;
}

.footer-contact {
    flex: 1;
    min-width: 220px;
}

.footer-links h3, .footer-contact h3 {
    color: #5EC6E8;
    margin-bottom: 20px;
    position: relative;
    font-size: 1.2rem;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #5EC6E8;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #5EC6E8;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    min-width: 18px;
    color: #5EC6E8;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 1.2rem;
    background-color: #5EC6E8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* 애니메이션 효과 */
.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 스크롤 시 헤더 스타일 */
header.scrolled {
    background: rgba(30, 77, 123, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 반응형 디자인 */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1E4D7B;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-links.active li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 20px;
    }
}

