@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Poppins:wght@400;500;600&display=swap');

:root {
    --primary: #FF6B35;
    --primary-light: rgba(255, 107, 53, 0.1);
    --primary-rgb: 255, 107, 53;
    --primary-dark: #e55a2a;
    --secondary: #2EC4B6;
    --light: #F5F5F7;
    --dark: #2D3142;
    --dark-rgb: 45, 49, 66;
    --grey: #F0F0F2;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --header-height: 80px;
    --header-bg: #000000;

    /* 섹션별 배경색 */
    --section-bg-1: #222222;
    --section-bg-2: #353535;
    --section-bg-3: #2A2A2A;
    --section-bg-4: #F2F0F5;
    --section-bg-5: #F0F5F2;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: #222222;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    line-height: 1.3;
}

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

/* 헤더 및 네비게이션 스타일은 header.php에 직접 포함됨 */

/* 공통 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    background-color: #e55a2a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #27a99d;
}

/* 섹션 타이틀 스타일 - 모든 페이지 공통 */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
    text-transform: capitalize;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.section-title h2 .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(var(--primary-rgb), 0.15);
    z-index: -1;
    border-radius: 4px;
}

.section-title p {
    font-size: 1.15rem;
    color: rgb(231, 230, 230);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* 푸터 스타일 */
footer {
    background-color: #111111;
    color: white;
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

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

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.footer-brand h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 3px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 20px;
}

.footer-links a:hover::before {
    left: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--primary);
    margin-right: 15px;
    margin-top: 3px;
    font-size: 16px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 50px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 576px) {

    .footer-brand h3,
    .footer-links h3,
    .footer-contact h3 {
        font-size: 16px;
    }

    .footer-brand p,
    .contact-item p,
    .footer-links a {
        font-size: 14px;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
    }
}

/* 통합 상담 신청 섹션 스타일 */
/* consultation-section 클래스는 consultation.css 파일로 이동했습니다 */

.consultation-wrapper {
    display: flex;
    gap: 50px;
    position: relative;
    z-index: 2;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 50px;
    margin-top: 30px;
}

.consultation-content {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.consultation-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.consultation-badge i {
    margin-right: 5px;
}

.consultation-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
}

.consultation-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

.consultation-header p {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 30px;
    max-width: 500px;
}

.consultation-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 20px;
    color: var(--primary);
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.feature-text p {
    font-size: 0.95rem;
    color: #666;
}

.consultation-form-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    background-color: white;
    position: relative;
}

.consultation-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.consultation-form {
    max-width: 500px;
}

.consultation-form h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group label i {
    color: var(--primary);
    margin-right: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.privacy-policy {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-policy input {
    width: auto;
}

.privacy-policy label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a65 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.form-notice {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .consultation-wrapper {
        flex-direction: column;
    }

    .consultation-content,
    .consultation-form-wrapper {
        padding: 40px;
    }

    .consultation-form-wrapper::before {
        width: 100%;
        height: 5px;
        top: 0;
        left: 0;
        background: linear-gradient(to right, var(--primary), var(--secondary));
    }

    .menu-toggle {
        margin-right: 0;
        margin-left: auto;
    }
}

@media (max-width: 768px) {

    .consultation-content,
    .consultation-form-wrapper {
        padding: 30px;
    }

    .consultation-header h2 {
        font-size: 2rem;
    }

    .consultation-form h3 {
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 16px;
    }
}

@media (max-width: 576px) {

    .consultation-content,
    .consultation-form-wrapper {
        padding: 25px 20px;
    }

    .consultation-header h2 {
        font-size: 1.8rem;
    }

    .consultation-header p {
        font-size: 1rem;
    }

    /* 폼 제출 성공 메시지 스타일 */
    .form-success {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px 20px;
        height: 100%;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        background-color: rgba(var(--primary-rgb), 0.1);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .success-icon i {
        font-size: 40px;
        color: var(--primary);
    }

    .form-success h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 15px;
    }

    .form-success p {
        font-size: 1.1rem;
        color: #666;
        margin-bottom: 10px;
    }

    .contact-info {
        margin-top: 20px;
        font-size: 1rem;
    }

    .contact-info a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
    }

    .contact-info a:hover {
        text-decoration: underline;
    }

    /* 상담 유도 섹션 스타일 */
    .cta-consultation {
        padding: 80px 0;
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
        position: relative;
        overflow: hidden;
    }

    .cta-consultation::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
        z-index: 1;
    }

    .cta-consultation::after {
        content: '';
        position: absolute;
        bottom: -100px;
        left: -100px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0) 70%);
        z-index: 1;
    }

    .cta-consultation-wrapper {
        position: relative;
        z-index: 2;
        max-width: 900px;
        margin: 0 auto;
        background-color: white;
        border-radius: 20px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        text-align: center;
    }

    .cta-consultation-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, var(--primary), var(--secondary));
    }

    .cta-consultation-content {
        padding: 50px;
    }

    .cta-consultation-content h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 20px;
        position: relative;
        display: inline-block;
    }

    .cta-consultation-content h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(to right, var(--primary), var(--secondary));
        border-radius: 3px;
    }

    .cta-consultation-content p {
        font-size: 1.2rem;
        color: var(--dark);
        margin-bottom: 30px;
        line-height: 1.7;
    }

    .cta-consultation-features {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin: 30px 0;
        flex-wrap: wrap;
    }

    .cta-feature {
        display: flex;
        align-items: center;
        gap: 10px;
        background-color: rgba(var(--primary-rgb), 0.05);
        padding: 12px 20px;
        border-radius: 50px;
    }

    .cta-feature:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.1);
        background-color: rgba(var(--primary-rgb), 0.1);
    }

    .cta-feature i {
        color: var(--primary);
        font-size: 18px;
    }

    .cta-feature span {
        font-weight: 600;
        color: var(--dark);
    }

    .cta-consultation-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 15px 30px;
        background: linear-gradient(135deg, var(--primary) 0%, #ff8a65 100%);
        color: white;
        text-decoration: none;
        border-radius: 50px;
        font-weight: 600;
        font-size: 1.1rem;
        box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
        position: relative;
        overflow: hidden;
        margin-top: 10px;
    }

    .cta-consultation-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
    }

    .cta-consultation-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.4);
    }

    .cta-consultation-btn:hover::before {
        left: 100%;
    }

    .cta-consultation-btn i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

    /* 반응형 스타일 */
    @media (max-width: 768px) {
        .cta-consultation {
            padding: 60px 0;
        }

        .cta-consultation-content {
            padding: 40px 30px;
        }

        .cta-consultation-content h2 {
            font-size: 2rem;
        }

        .cta-consultation-content p {
            font-size: 1.1rem;
        }

        .cta-consultation-features {
            gap: 15px;
        }

        .cta-feature {
            padding: 10px 15px;
        }
    }

    @media (max-width: 576px) {
        .cta-consultation-content {
            padding: 30px 20px;
        }

        .cta-consultation-content h2 {
            font-size: 1.8rem;
        }

        .cta-consultation-content p {
            font-size: 1rem;
        }

        .cta-consultation-features {
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .cta-consultation-btn {
            padding: 12px 25px;
            font-size: 1rem;
        }
    }

    /* 애니메이션 관련 스타일 */
    .animate {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .animated {
        opacity: 1;
        transform: translateY(0);
    }

    /* 페이드인 애니메이션 */
    .animate-fade-in {
        opacity: 0;
        transition: opacity 0.7s ease;
    }

    .animate-fade-in.animated {
        opacity: 1;
    }

    /* 위로 슬라이드 애니메이션 */
    .animate-slide-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .animate-slide-up.animated {
        opacity: 1;
        transform: translateY(0);
    }

    .animate-slide-right {
        opacity: 0;
        transform: translateX(-50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .animate-slide-right.animated {
        opacity: 1;
        transform: translateX(0);
    }

    .animate-slide-left {
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .animate-slide-left.animated {
        opacity: 1;
        transform: translateX(0);
    }

    .animate-scale {
        opacity: 0;
        transform: scale(0.8);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .animate-scale.animated {
        opacity: 1;
        transform: scale(1);
    }

    /* 애니메이션 지연 클래스 */
    .delay-100 {
        transition-delay: 0.1s;
    }

    .delay-200 {
        transition-delay: 0.15s;
    }

    .delay-300 {
        transition-delay: 0.2s;
    }

    .delay-400 {
        transition-delay: 0.25s;
    }

    .delay-500 {
        transition-delay: 0.3s;
    }

    /* 스크롤 애니메이션 */
    .scroll-reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 스크롤 애니메이션 시스템 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

section.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

section.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header.scroll-reveal {
    transition-delay: 0.2s;
}

.service-card.scroll-reveal,
.rw-audience-item.scroll-reveal,
.comparison-card.scroll-reveal,
.feature-item.scroll-reveal,
.faq-item.scroll-reveal,
.testimonial-card.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--i, 1) * 0.1s);
}

.service-card.scroll-reveal.revealed,
.rw-audience-item.scroll-reveal.revealed,
.comparison-card.scroll-reveal.revealed,
.feature-item.scroll-reveal.revealed,
.faq-item.scroll-reveal.revealed,
.testimonial-card.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

img.scroll-reveal {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

img.scroll-reveal.revealed {
    opacity: 1;
    transform: scale(1);
}

/* 모바일 반응형 애니메이션 조정 */
@media (max-width: 768px) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .service-card.scroll-reveal,
    .rw-audience-item.scroll-reveal,
    .comparison-card.scroll-reveal,
    .feature-item.scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 애니메이션 키프레임 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 애니메이션 스타일 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 페이드인 애니메이션 */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.animated {
    opacity: 1;
}

/* 위로 페이드인 애니메이션 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 아래로 페이드인 애니메이션 */
.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-down.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 왼쪽에서 페이드인 애니메이션 */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 오른쪽에서 페이드인 애니메이션 */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 확대 애니메이션 */
.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* 회전 애니메이션 */
.rotate-in {
    opacity: 0;
    transform: rotate(-5deg) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rotate-in.animated {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* 자식 요소 애니메이션 */
.animate-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-child.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 애니메이션 지연 클래스 */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* 섹션 구분선 애니메이션 */
.section-divider {
    position: relative;
    height: 60px;
    margin: 20px 0;
    overflow: hidden;
}

.section-divider .divider-line {
    position: relative;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 30px auto;
    transition: width 1.5s ease;
}

.section-divider.animated .divider-line {
    width: 80%;
}

.section-divider .divider-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: transform 0.6s ease 0.5s, opacity 0.6s ease 0.5s;
}

.section-divider.animated .divider-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 호버 효과 */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 버튼 물결 효과 */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-ripple:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

.desktop-only {
    display: inline;
    /* 기본적으로 보여줌 */
}

.mobile-only {
    display: none;
    /* 기본적으로 숨김 */
}

/* 768px 이하에서 변경 */
@media screen and (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline;
    }
}

/* 고객 후기 */
.testimonials-section {
    padding: 100px 0;
    background-image: url('../img/bg_section_review.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* 검은색 반투명 오버레이, 투명도 조절 가능 */
    z-index: 1;
}

.testimonials-section .testimonials-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* 컨텐츠가 오버레이 위에 보이도록 z-index 설정 */
}