/* 메인 페이지 스타일 */

/* 전체 페이지 드래그 방지 */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* 히어로 섹션 */
.hero {
    color: white;
    padding: 50px 0 100px;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
    padding: 20px 20px 40px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 230, 109, 0.2);
    color: #FFE66D;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    animation-delay: 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #ffffff, #FFE66D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}



.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: forwards;
    animation-delay: 0.6s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.hero p:nth-of-type(2) {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    animation-delay: 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: forwards;
    animation-delay: 0.9s;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFE66D;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    opacity: 0.8;
}

/* 서비스 섹션 */
.services {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    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;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

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

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(var(--primary-rgb), 0.3);
    animation: spin 15s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0.3) 100%);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--secondary);
}

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

/* 비교 섹션 */
.comparison-section {
    padding: 100px 0;
    background-color: var(--section-bg-2);
    position: relative;
    overflow: hidden;
}

.comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02) 0%, rgba(var(--primary-rgb), 0) 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
}

.comparison-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.02) 0%, rgba(var(--secondary-rgb), 0) 100%);
    clip-path: polygon(0 100%, 0 0, 100% 100%);
    z-index: 1;
}

.comparison-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

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

.comparison-header h2 .highlight {
    color: var(--primary);
    position: relative;
}

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

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

.comparison-subtitle {
    font-size: 1.2rem;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.comparison-cards-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.comparison-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.comparison-card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.comparison-card-header .feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.1);
}

.comparison-card-header .feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.comparison-card-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    position: relative;
    display: inline-block;
}

.comparison-card-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, rgba(231, 76, 60, 0.7), rgba(var(--primary-rgb), 0.7));
    border-radius: 3px;
}

.comparison-card-body {
    display: flex;
    align-items: stretch;
    gap: 25px;
    position: relative;
}

.comparison-side {
    flex: 1;
    padding: 25px 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* 타업체 스타일 - 붉은색 테마 */
.comparison-side:first-child {
    background: linear-gradient(135deg, #fff 0%, #fff9f9 100%);
    border-left: 4px solid #e74c3c;
    position: relative;
}

.comparison-side:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #e74c3c;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}

.comparison-side:first-child:hover::before {
    width: 6px;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* 리웰 스타일 - 초록색 테마 */
.comparison-side:nth-child(3) {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.12) 100%);
    border-left: 4px solid var(--primary);
    position: relative;
}

.comparison-side:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}

.comparison-side:nth-child(3):hover::before {
    width: 6px;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

/* 리웰 카드 추가 효과 */
.comparison-side:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    z-index: -1;
    border-radius: 12px;
}

/* 리웰 라벨 */
.us-label {
    background-color: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.us-label::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0) 60%);
    transform: rotate(30deg);
    z-index: -1;
}

/* 리웰 아이콘 */
.comparison-positive {
    color: #fff;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
}

.comparison-positive::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.comparison-positive i {
    position: relative;
    z-index: 1;
}

.comparison-side:hover .comparison-positive {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(var(--primary-rgb), 0.3);
}

/* 리웰 텍스트 스타일 */
.comparison-side:nth-child(3) p {
    color: rgba(0, 0, 0, 0.8);
}

.comparison-side:nth-child(3) p strong {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.comparison-side:nth-child(3) p strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(var(--primary-rgb), 0.2);
    z-index: -1;
    border-radius: 3px;
}

.comparison-side:nth-child(3) .comparison-detail {
    color: rgba(var(--primary-rgb), 0.8);
}

.comparison-side:nth-child(3) .comparison-detail strong {
    color: var(--primary);
    font-weight: 700;
}

/* 호버 효과 */
.comparison-side:hover {
    transform: translateY(-3px);
}

.comparison-side:first-child:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
}

.comparison-side:nth-child(3):hover {
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.2);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.18) 100%);
}

.comparison-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.comparison-cta p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 25px;
}

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

.comparison-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

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

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

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

/* 리웰의 약속 */
.expertise-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 50px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-content:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

.expertise-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(var(--primary-rgb), 0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.expertise-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    z-index: 2;
}

.expertise-content h3 span {
    position: relative;
    z-index: 2;
}

.expertise-content h3 span span {
    color: var(--primary);
    font-weight: 900;
}

.expertise-content h3 span:last-child {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(var(--primary-rgb), 0.2);
    z-index: 1;
    border-radius: 5px;
}

.expertise-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--primary);
}

.expertise-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text);
}

.expertise-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 30px 0;
    text-align: center;
    position: relative;
}

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

.expertise-text .highlight {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    padding: 0 5px;
    background-color: rgba(var(--primary-rgb), 0.08);
    border-radius: 3px;
}

/* 신뢰감을 주는 아이콘 추가 */
.trust-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.trust-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-icon-circle {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

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

.trust-icon-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .expertise-content {
        padding: 30px 20px;
    }

    .expertise-content h3 {
        font-size: 1.8rem;
    }

    .expertise-text {
        padding: 20px;
    }

    .expertise-text h2 {
        font-size: 2rem;
    }

    .trust-icons {
        flex-wrap: wrap;
        gap: 20px;
    }

    .trust-icon-circle {
        width: 60px;
        height: 60px;
    }

    .trust-icon i {
        font-size: 24px;
    }
}

/* 회사 소개 섹션 */
.about-brief {
    padding: 100px 0;
    background-color: var(--section-bg-4);
    position: relative;
    overflow: hidden;
}

.about-brief::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0) 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1;
}

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

.about-text 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;
}

.about-text p {
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-text .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: all 0.3s ease;
    z-index: -1;
}

.about-text .btn:hover::before {
    transform: translateX(0);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(var(--secondary-rgb), 0.1);
    border-radius: 50%;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 후기 섹션 */
.testimonials {
    padding: 100px 0;
    background-color: var(--section-bg-5);
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA 섹션 */
.cta {
    padding: 100px 0;
    background-color: var(--section-bg-1);
    position: relative;
    overflow: hidden;
    color: var(--dark);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 섹션 구분선 스타일 */
.section-divider {
    text-align: center;
    margin: 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-line {
    display: inline-block;
    width: 100px;
    height: 2px;
    background-color: var(--primary);
    margin: 0 10px;
}

.divider-icon {
    font-size: 24px;
    color: var(--primary);
}

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

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services, .about-brief, .testimonials {
        padding: 70px 0;
    }

    .section-header h2, .about-text h2, .cta-content h2 {
        font-size: 2rem;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .divider-line {
        width: 60px;
    }

    .divider-icon {
        font-size: 20px;
    }

    .challenges-card {
        padding: 30px 20px;
    }

    .challenges-solution {
        padding: 30px 20px;
    }

    .solution-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .solution-icon i {
        font-size: 1.8rem;
    }

    .challenges-solution h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .service-features {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle, .section-header p, .about-text p, .cta-content p {
        font-size: 1rem;
    }

    .service-card {
        padding: 30px 20px;
    }
}

/* 사업 고민 섹션 추가 스타일 */
.emphasis {
    display: inline-block;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.solution-highlight {
    position: relative;
    display: inline-block;
}

.solution-highlight:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 230, 109, 0.4);
    z-index: -1;
}

/* 타겟 고객 섹션 스타일 */
.rw-target-audience {
    padding: 100px 0;
    background-color: var(--section-bg-2);
    position: relative;
}

.rw-audience-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.rw-audience-item {
    display: flex;
    align-items: flex-start;
    background-color: #ffffff;
    padding: 28px;
    border-radius: 15px;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #3B82F6;
    position: relative;
    overflow: hidden;
}

.rw-audience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0) 60%);
    z-index: 0;
}

.rw-audience-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
    border-left: 5px solid #3B82F6;
}

.rw-audience-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
    position: relative;
    z-index: 1;
}

.rw-audience-item:hover .rw-audience-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.4) 100%);
    transform: scale(1.1) rotate(5deg);
}

.rw-audience-icon i {
    color: #3B82F6;
    font-size: 24px;
}

.rw-audience-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.rw-audience-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2D3748;
    font-weight: 700;
    line-height: 1.6;
}

.rw-audience-content p {
    color: #4A5568;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* 홀수/짝수 카드 스타일 차별화 */
.rw-audience-item:nth-child(odd) {
    border-left-color: #3B82F6;
}

.rw-audience-item:nth-child(even) {
    border-left-color: #4C51BF;
}

.rw-audience-item:nth-child(odd) .rw-audience-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.rw-audience-item:nth-child(even) .rw-audience-icon {
    background: linear-gradient(135deg, rgba(76, 81, 191, 0.1) 0%, rgba(76, 81, 191, 0.2) 100%);
}

.rw-audience-item:nth-child(odd) .rw-audience-icon i {
    color: #3B82F6;
}

.rw-audience-item:nth-child(even) .rw-audience-icon i {
    color: #4C51BF;
}

.rw-audience-item:nth-child(odd):hover {
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.rw-audience-item:nth-child(even):hover {
    box-shadow: 0 15px 30px rgba(76, 81, 191, 0.15);
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .rw-audience-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .rw-audience-item {
        padding: 20px;
    }

    .rw-audience-content h4 {
        font-size: 1.1rem;
    }

    .rw-audience-item {
        display: flex;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 25px;
        padding: 20px;
        border-radius: 10px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .rw-audience-icon {
        width: 40px;
        height: 40px;
    }

    .rw-audience-content h4 {
        font-size: 1rem;
    }



}

/* 섹션 배지 */
.section-badge {
    display: inline-block;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
}

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

/* 서비스 배지 */
.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.3);
}

/* 서비스 기능 목록 */
.service-features {
    display: flex;
    /* flexbox 적용 */
    flex-direction: column;
    /* 세로 정렬 */
    align-items: center;
    /* 가로 중앙 정렬 */
    list-style: none;
    /* 기본 목록 스타일 제거 */
    padding: 0;
    margin: 0;
}

.service-features li {
    margin-bottom: 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    width: 270px;
    padding-left: 40px;
}

.service-features li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 14px;
}

.service-card:hover .service-features li i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* 소개 배지 */
.about-badge {
    display: inline-block;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

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

/* 소개 통계 */
.about-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 서비스 카드 애니메이션 */
.services-grid {
    perspective: 1000px;
}

.service-card {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.3s;
}

.service-card:nth-child(3) {
    animation-delay: 0.5s;
}

.service-icon {
    animation: float 6s ease-in-out infinite;
}

.service-badge {
    animation: pulse 2s infinite;
}

/* 소개 섹션 애니메이션 */
.about-text h2 {
    position: relative;
    overflow: hidden;
}

.about-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    animation: lineGrow 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes lineGrow {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

.stat-number {
    position: relative;
    display: inline-block;
}

.stat-number::before {
    content: attr(data-value);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    color: var(--primary);
}

/* 호버 효과 개선 */
.btn.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn.btn-primary:hover::before {
    left: 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 {
    transform: translateY(0);
    opacity: 0.6;
    transition: opacity 0.8s ease;
}

section.scroll-reveal.revealed {
    opacity: 1;
}

/* 섹션 헤더 애니메이션 */
.section-header.scroll-reveal {
    transform: translateY(20px);
}

/* 카드 애니메이션 */
.service-card.scroll-reveal,
.comparison-card.scroll-reveal,
.challenges-card.scroll-reveal,
.testimonial-card.scroll-reveal,
.faq-item.scroll-reveal,
.compare-item.scroll-reveal {
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card.scroll-reveal.revealed,
.comparison-card.scroll-reveal.revealed,
.challenges-card.scroll-reveal.revealed,
.testimonial-card.scroll-reveal.revealed,
.faq-item.scroll-reveal.revealed,
.compare-item.scroll-reveal.revealed {
    transform: translateY(0) scale(1);
}

/* 콘텐츠 블록 애니메이션 */
.hero-content.scroll-reveal,
.about-content.scroll-reveal,
.cta-content.scroll-reveal,
.expertise-content.scroll-reveal,
.consultation-wrapper.scroll-reveal,
.vision-content.scroll-reveal,
.compare-wrapper.scroll-reveal {
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* 리스트 아이템 애니메이션 */
.feature-item.scroll-reveal,
.rw-audience-item.scroll-reveal,
.cta-feature.scroll-reveal {
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.scroll-reveal.revealed,
.rw-audience-item.scroll-reveal.revealed,
.cta-feature.scroll-reveal.revealed {
    transform: translateX(0);
}

/* 이미지 애니메이션 */
img.scroll-reveal {
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 추가 애니메이션 키프레임 */
@keyframes fadeInUp {
    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);
    }
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .scroll-reveal {
        transform: translateY(20px);
    }

    .service-card.scroll-reveal,
    .comparison-card.scroll-reveal,
    .challenges-card.scroll-reveal,
    .testimonial-card.scroll-reveal,
    .faq-item.scroll-reveal,
    .compare-item.scroll-reveal {
        transform: translateY(20px) scale(0.98);
    }
}

/* 텍스트 하이라이트 애니메이션 */
.animate-highlight {
    transition: background-color 0.5s ease;
}

/* 비즈니스 챌린지 섹션 애니메이션 */
.challenges-card.revealed {
    animation: fadeIn 0.6s ease-out forwards;
}

.challenges-solution.revealed {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 비교 섹션 애니메이션 */
.comparison-card.revealed {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 전문성 섹션 애니메이션 */
.expertise-content.revealed {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 버튼 효과 개선 */
.comparison-btn, .btn.btn-primary {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 아이콘 효과 개선 */
.service-icon i, .solution-icon i, .feature-icon i {
    transition: all 0.3s ease;
}

/* 배지 효과 개선 */
.challenges-badge, .section-badge, .about-badge, .service-badge {
    transition: all 0.3s ease;
}

.challenges-badge:hover, .section-badge:hover, .about-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
}

/* 텍스트 효과 개선 */
.text-highlight, .text-accent, .text-emphasis, .solution-highlight, .highlight {
    transition: all 0.3s ease;
}

.text-highlight:hover, .text-accent:hover, .text-emphasis:hover,
.solution-highlight:hover, .highlight:hover {
    transform: translateY(-2px);
}

/* 카드 효과 개선 */
.challenges-card, .comparison-card, .service-card {
    transition: all 0.4s ease;
}

.challenges-card:hover, .comparison-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 공통 FAQ 스타일 - 완전히 새롭게 개선 */
.faq-section, .faq {
    padding: 100px 0;
    background-color: var(--section-bg-2);
    position: relative;
}

.faq-section::before, .faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0) 50%);
    z-index: 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.faq-question {
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(var(--primary-rgb), 0.03);
}

.faq-question:hover::after {
    opacity: 1;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    transition: color 0.3s ease;
    padding-right: 40px;
    line-height: 1.4;
    position: relative;
    padding-left: 30px;
    /* Add padding to make room for the Q prefix */
}

.faq-question h3::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.faq-item:hover .faq-question h3 {
    color: var(--primary);
}

.faq-icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.08);
    transition: all 0.4s ease;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-icon i {
    font-size: 0.9rem;
    transition: transform 0.4s ease;
}

.faq-answer {
    padding: 0 25px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    max-height: 0;
}

/* 새로 추가된 FAQ 클래스 스타일 */
.faq-answer-closed {
    padding: 0 25px !important;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq-text-hidden {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out 0.1s;
}

.faq-answer p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.faq-answer p::before {
    content: 'A.';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* 활성화 상태 */
.faq-item.active {
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.1);
}

.faq-item.active .faq-question {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.faq-item.active .faq-question::after {
    opacity: 1;
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0));
}

.faq-item.active .faq-question h3 {
    color: var(--primary);
    font-weight: 700;
}

.faq-item.active .faq-icon {
    background-color: var(--primary);
    color: white;
    transform: translateY(-50%) rotate(0);
}

.faq-item.active .faq-icon i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    /* max-height 제거하고 JavaScript에서 height 제어 */
    padding: 20px 25px 25px;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
    padding-left: 30px;
    /* Ensure consistent padding for the A prefix */
}

/* 미디어 쿼리 */
@media (max-width: 768px) {
    .faq-section, .faq {
        padding: 70px 0;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h3 {
        font-size: 1.05rem;
        padding-right: 35px;
        padding-left: 25px;
        /* Adjust padding for smaller screens */
    }

    .faq-question h3::before {
        font-size: 1.05rem;
        /* Match the question font size */
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        right: 20px;
    }

    .faq-answer p {
        font-size: 0.95rem;
        line-height: 1.7;
        padding-left: 25px;
        /* Adjust padding for smaller screens */
    }

    .faq-answer p::before {
        font-size: 0.95rem;
        /* Match the answer font size */
    }

    .faq-item.active .faq-answer {
        padding: 15px 20px 20px;
        /* max-height 제거하고 JavaScript에서 height 제어 */
    }

    .faq-item.active .faq-answer p {
        padding-left: 25px;
        /* Ensure consistent padding for smaller screens */
    }
}

@media (max-width: 576px) {
    .faq-section, .faq {
        padding: 50px 0;
    }

    .faq-question {
        padding: 16px 18px;
    }

    .faq-question h3 {
        font-size: 1rem;
        padding-right: 30px;
        padding-left: 22px;
        /* Further reduce padding for very small screens */
    }

    .faq-question h3::before {
        font-size: 1rem;
        /* Match the question font size */
    }

    .faq-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        right: 18px;
    }

    .faq-answer p {
        padding-left: 22px;
        /* Further reduce padding for very small screens */
    }

    .faq-answer p::before {
        font-size: 0.9rem;
        /* Match the answer font size */
    }

    .faq-item.active .faq-answer {
        padding: 12px 18px 18px;
        /* max-height 제거하고 JavaScript에서 height 제어 */
    }

    .faq-item.active .faq-answer p {
        padding-left: 22px;
        /* Ensure consistent padding for very small screens */
    }
}

.comparison-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 타업체 라벨 */
.company-label {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.others-label {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* 리웰 라벨 */
.us-label {
    background-color: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.us-label::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0) 60%);
    transform: rotate(30deg);
    z-index: -1;
}

/* 타업체 아이콘 */
.comparison-negative {
    color: #fff;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(231, 76, 60, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.2);
}

/* 리웰 아이콘 */
.comparison-positive {
    color: #fff;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
}

.comparison-positive::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.comparison-positive i {
    position: relative;
    z-index: 1;
}

.comparison-side:hover .comparison-negative {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(231, 76, 60, 0.3);
}

.comparison-side:hover .comparison-positive {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(var(--primary-rgb), 0.3);
}

/* 텍스트 스타일 */
.comparison-side p {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--dark);
}

.comparison-side:first-child p strong {
    color: #e74c3c;
    font-weight: 600;
}

.comparison-side:nth-child(3) p strong {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.comparison-side:nth-child(3) p strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(var(--primary-rgb), 0.2);
    z-index: -1;
    border-radius: 3px;
}

.comparison-detail {
    font-size: 0.95rem;
    line-height: 1.6;
}

.comparison-side:first-child .comparison-detail {
    color: rgba(231, 76, 60, 0.7);
}

.comparison-side:nth-child(3) .comparison-detail {
    color: rgba(var(--primary-rgb), 0.8);
}

.comparison-side:nth-child(3) .comparison-detail strong {
    color: var(--primary);
    font-weight: 700;
}

/* 구분선 스타일 */
.comparison-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.comparison-vs {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-vs::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    right: -50px;
    height: 1px;
    background: linear-gradient(to right, rgba(231, 76, 60, 0.3), rgba(var(--primary-rgb), 0.3));
    z-index: -1;
}

/* 배경 그라데이션 효과 */
.comparison-side:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(231, 76, 60, 0) 100%);
    z-index: -1;
    border-radius: 12px;
}

.comparison-side:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    z-index: -1;
    border-radius: 12px;
}


.service-compare {
    padding: 100px 0;
    background-image: url('../img/main_compare.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

    /* iOS Safari 최적화 */
    -webkit-backdrop-filter: none;
    /* iOS Safari에서 문제가 되는 속성 제거 */
}

/* iOS Safari를 위한 별도 미디어 쿼리 추가 */
@supports (-webkit-touch-callout: none) {
    .service-compare::before {
        background-color: rgba(0, 0, 0, 0.65);
        /* iOS에서는 좀 더 밝게 설정 */
    }

    .service-compare .container,
    .service-compare .section-title,
    .service-compare .compare-cards {
        position: relative;
        z-index: 2;
        /* 내용이 배경보다 위에 오도록 설정 */
    }
}

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


/* 비교 섹션 헤더 */
.compare-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.compare-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.compare-header h2 .highlight {
    color: #ff6b35;
    position: relative;
}

.compare-header h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff6b35c8;
    z-index: -1;
    border-radius: 4px;
}

.compare-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 비교 카드 컨테이너 */
.compare-cards {
    display: flex;
    flex-direction: row;
    /* Changed from column to row for desktop */
    gap: 20px;
    /* Reduced gap for horizontal layout */
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    /* Allow wrapping if needed */
    justify-content: center;
    /* Center the cards */
}

/* 비교 카드 */
.compare-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
    /* Slightly reduced padding */
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 320px;
    /* Slightly increased minimum width for better readability */
    max-width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    /* Ensure consistent card heights */
}

.compare-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* 카드 헤더 */
.compare-card-header {
    text-align: center;
    margin-bottom: 20px;
    /* Reduced margin for more compact layout */
    position: relative;
    padding-bottom: 15px;
    /* Reduced padding for more compact layout */
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.compare-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.05) 0%, rgba(46, 196, 182, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(46, 196, 182, 0.1);
}

.compare-icon i {
    font-size: 28px;
    color: #2EC4B6;
}

.compare-card-header h3 {
    font-size: 1.4rem;
    /* Slightly reduced font size */
    font-weight: 700;
    color: #333;
    margin: 0;
    position: relative;
    display: inline-block;
}

.compare-card-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #e74c3c, #3B82F6);
    border-radius: 3px;
}

/* 카드 본문 */
.compare-card-body {
    display: flex;
    align-items: stretch;
    gap: 15px;
    /* Reduced gap for more compact layout */
    position: relative;
}

/* 비교 사이드 공통 스타일 */
.compare-side {
    flex: 1;
    padding: 20px;
    /* Reduced padding for more compact layout */
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* 타업체 스타일 - 붉은색 테마 */
.compare-side.competitor {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-left: 4px solid #736f6f;
    position: relative;
}

.compare-side.competitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #736f6f;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}

.compare-side.competitor::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(68, 68, 68, 0.05) 0%, rgba(68, 68, 68, 0) 100%);
    z-index: -1;
    border-radius: 12px;
}

.compare-side.competitor:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(68, 68, 68, 0.15);
}

.compare-side.competitor:hover::before {
    width: 6px;
    box-shadow: 0 0 10px rgba(68, 68, 68, 0.5);
}

/* 리웰 스타일 - 오렌지색 테마 */
.compare-side.riwell {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    border-left: 4px solid var(--primary);
    position: relative;
}

.compare-side.riwell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}

.compare-side.riwell::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    z-index: -1;
    border-radius: 12px;
}

.compare-side.riwell:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--primary-rgb), 0.1) 100%);
}

.compare-side.riwell:hover::before {
    width: 6px;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* 사이드 헤더 */
.compare-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 회사 라벨 */
.compare-label {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.competitor-label {
    background-color: rgba(68, 68, 68, 0.15);
    color: #444;
    border: 1px solid rgba(68, 68, 68, 0.2);
}

.riwell-label {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
}

.riwell-label::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 60%);
    transform: rotate(30deg);
    z-index: -1;
}

/* 아이콘 */
.icon-negative {
    color: #fff;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(68, 68, 68, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(68, 68, 68, 0.2);
}

.icon-positive {
    color: #fff;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
}

.icon-positive::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.icon-positive i {
    position: relative;
    z-index: 1;
}

.compare-side.competitor:hover .icon-negative {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(68, 68, 68, 0.3);
}

.compare-side.riwell:hover .icon-positive {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(var(--primary-rgb), 0.3);
}

/* 텍스트 스타일 */
.compare-side p {
    font-size: 0.95rem;
    /* Slightly reduced font size for better fit */
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    transition: all 0.3s ease;
}

.compare-side.competitor p strong {
    color: #444;
    font-weight: 600;
}

.compare-side.riwell p {
    color: rgba(0, 0, 0, 0.8);
}

.compare-side.riwell p strong {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.compare-side.riwell p strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(var(--primary-rgb), 0.1);
    z-index: -1;
    border-radius: 3px;
}

.compare-detail {
    font-size: 0.85rem;
    /* Slightly reduced font size for better fit */
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.compare-side.competitor .compare-detail {
    color: rgba(68, 68, 68, 0.7);
}

.compare-side.riwell .compare-detail {
    color: rgba(45, 55, 72, 0.8);
}

.compare-side.riwell .compare-detail strong {
    color: var(--primary);
    font-weight: 700;
}

/* 구분선 */
.compare-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.compare-vs {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #333;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.compare-vs::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    right: -50px;
    height: 1px;
    background: linear-gradient(to right, rgba(231, 76, 60, 0.3), rgba(59, 130, 246, 0.3));
    z-index: -1;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .compare-card-body {
        flex-direction: column;
    }

    .compare-side {
        margin-bottom: 20px;
    }

    .compare-divider {
        margin: 10px 0;
    }

    .compare-vs::before {
        left: -20px;
        right: -20px;
    }
}

@media (max-width: 1200px) {
    .compare-card {
        max-width: calc(50% - 20px);
        /* 2 cards per row on medium screens */
    }
}

@media (max-width: 768px) {
    .compare-cards {
        flex-direction: column;
        /* Revert to column layout on mobile */
        gap: 40px;
        /* Restore original gap */
    }

    .compare-card {
        max-width: 100%;
        /* Full width on mobile */
        margin-bottom: 40px;
        /* Restore original margin */
    }

    .compare-card-body {
        flex-direction: column;
    }

    .compare-side {
        margin-bottom: 20px;
    }

    .compare-divider {
        margin: 10px 0;
    }

    .compare-vs::before {
        left: -20px;
        right: -20px;
    }
}

/* 섹션 헤더 개선 */
.section-header {
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* 섹션별 다양한 애니메이션 효과 */
section.scroll-reveal {
    transform: translateY(0);
    opacity: 0.6;
    transition: opacity 0.8s ease;
}

section.scroll-reveal.revealed {
    opacity: 1;
}

/* 섹션 헤더 애니메이션 */
.section-header.scroll-reveal {
    transform: translateY(20px);
}

/* 카드 애니메이션 */
.service-card.scroll-reveal,
.comparison-card.scroll-reveal,
.challenges-card.scroll-reveal,
.testimonial-card.scroll-reveal,
.faq-item.scroll-reveal,
.compare-item.scroll-reveal {
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card.scroll-reveal.revealed,
.comparison-card.scroll-reveal.revealed,
.challenges-card.scroll-reveal.revealed,
.testimonial-card.scroll-reveal.revealed,
.faq-item.scroll-reveal.revealed,
.compare-item.scroll-reveal.revealed {
    transform: translateY(0) scale(1);
}

/* 콘텐츠 블록 애니메이션 */
.hero-content.scroll-reveal,
.about-content.scroll-reveal,
.cta-content.scroll-reveal,
.expertise-content.scroll-reveal,
.consultation-wrapper.scroll-reveal,
.vision-content.scroll-reveal,
.compare-wrapper.scroll-reveal {
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* 리스트 아이템 애니메이션 */
.feature-item.scroll-reveal,
.rw-audience-item.scroll-reveal,
.cta-feature.scroll-reveal {
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.scroll-reveal.revealed,
.rw-audience-item.scroll-reveal.revealed,
.cta-feature.scroll-reveal.revealed {
    transform: translateX(0);
}

/* 이미지 애니메이션 */
img.scroll-reveal {
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 배너 강조 애니메이션 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 스크롤 다운 버튼 */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.2s;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-down-btn span {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.scroll-down-btn i {
    font-size: 20px;
    animation: bounce 2s infinite;
}

.scroll-down-btn:hover {
    transform: translateX(-50%) translateY(-5px);
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* 버튼 호버 애니메이션 개선 */
.comparison-btn:hover, .btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .compare-card {
        min-width: 280px;
        max-width: 100%;
        margin: 0;
    }

    .case-item,
    .benefit-card {
        flex: 1 1 100%;
        min-width: auto;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .compare-cards {
        margin: 0;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }

    .compare-card {
        min-width: 100%;
    }
}

/* iOS Safari 호환성 개선을 위한 공통 스타일 */
@supports (-webkit-touch-callout: none) {

    /* 배너 및 오버레이가 있는 모든 섹션에 적용 */
    .hero::before,
    .hero .overlay,
    .banner-section::before,
    .page-banner::before,
    .philosophy-section::before,
    .service-compare::before,
    section[class*="-solution"]::before,
    section[class*="-banner"]::before,
    section.with-overlay::before {
        background-color: rgba(0, 0, 0, 0.65) !important;
        /* iOS에서는 좀 더 밝게 설정 */
        -webkit-backdrop-filter: none !important;
        /* iOS Safari에서 문제가 되는 속성 제거 */
    }

    /* 배너 콘텐츠가 오버레이 위에 올바르게 보이도록 z-index 조정 */
    .hero .container,
    .banner-content,
    .page-title,
    .section-title,
    .philosophy-content,
    .hero-content,
    .banner-section .container,
    .page-banner .container,
    section[class*="-solution"] .container,
    .compare-cards {
        position: relative;
        z-index: 5 !important;
        /* 내용이 배경보다 위에 오도록 설정 */
    }

    /* 카드와 같은 UI 요소들도 z-index 조정 */
    .card,
    .content-card,
    .philosophy-card,
    .compare-card,
    .service-card,
    .main-service-card {
        position: relative;
        z-index: 10 !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        /* iOS에서 카드 배경 투명도 조정 */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        /* 그림자 강화 */
    }

    /* 텍스트 가독성 향상을 위한 스타일 */
    .ios-device .card-header h3,
    .ios-device .card-body p,
    .ios-device .compare-side p,
    .ios-device .philosophy-text {
        color: #333 !important;
        /* 텍스트 색상 강화 */
    }

    /* 배경 비디오 처리 */
    .video-background .overlay {
        background-color: rgba(0, 0, 0, 0.6) !important;
        /* iOS에서 비디오 오버레이 투명도 조정 */
    }

    /* 카드 헤더와 아이콘 수정 */
    .card-header,
    .icon-wrapper,
    .feature-icon {
        position: relative;
        z-index: 2 !important;
    }

    /* 회사소개 철학 섹션 특별 처리 */
    .philosophy-section::before {
        opacity: 0.75 !important;
    }

    .philosophy-content {
        background-color: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(5px) !important;
    }
}

/* 디바이스 감지를 위한 클래스가 추가된 요소에 대한 추가 스타일 */
.ios-device.hero::before,
.ios-device.banner-section::before,
.ios-device.page-banner::before,
.ios-device.philosophy-section::before,
.ios-device.service-compare::before {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.ios-device .card,
.ios-device .content-card,
.ios-device .philosophy-card,
.ios-device .compare-card {
    background-color: rgba(255, 255, 255, 0.95) !important;
}