/* ========================================
   Global Styles & Variables
   ======================================== */

:root {
    --primary-navy: #1a2b4a;
    --secondary-navy: #2c4168;
    --accent-gold: #d4af37;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #6c757d;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, Roboto, "Noto Sans KR", "Segoe UI", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #2C7A7B;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.05em;
    padding-right: 1rem;
    border-right: 2px solid var(--border-color);
}

.nav-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-navy);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-navy);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-navy);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, Roboto, "Segoe UI", sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--secondary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
    background-color: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* ========================================
   About Section
   ======================================== */

.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

/* 새로운 소개 섹션 (이미지 없는 버전) */
.about-content-new {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(26, 43, 74, 0.08);
    position: relative;
    overflow: hidden;
}

.about-content-new::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 좌측 장식 영역 */
.about-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.decoration-line {
    width: 3px;
    height: 100%;
    min-height: 200px;
    position: relative;
    background: linear-gradient(
        180deg, 
        transparent 0%,
        var(--primary-navy) 15%,
        var(--primary-navy) 50%,
        var(--accent-gold) 85%,
        transparent 100%
    );
    border-radius: 1.5px;
    box-shadow: 0 0 8px rgba(26, 43, 74, 0.15);
}

.decoration-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* 메인 콘텐츠 영역 */
.about-text-new {
    flex: 1;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* 하이라이트 항목 */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(26, 43, 74, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.highlight-item i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

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

.about-text .section-title {
    text-align: center;
    margin-bottom: 2rem;
    display: none; /* 헤드라인 제거 시 숨김 처리 */
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.lead-intro {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-info-quick {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.info-item i {
    color: var(--primary-navy);
    font-size: 1.2rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-navy);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Kakao Social Link */
.social-link-kakao {
    background-color: var(--light-bg);
    padding: 10px;
}

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

.kakao-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* 네이버 블로그 아이콘 - 원형 + 검은색 N */
.social-link-naver {
    background-color: var(--light-bg);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.naver-n {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    transition: color 0.3s ease;
}

.social-link-naver:hover .naver-n {
    color: var(--white);
}

/* ========================================
   Expertise Section
   ======================================== */

.expertise {
    padding: 80px 0;
    background-color: var(--light-bg);
}

/* 슬라이드 래퍼 (모바일 전용) */
.expertise-slider-wrapper {
    position: relative;
    overflow: visible;
}

/* 캐러셀 네비게이션 (모바일 전용) */
.expertise-carousel-nav {
    display: none; /* 기본 숨김, 모바일에서만 표시 */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.carousel-btn {
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background-color: var(--secondary-navy);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    background-color: var(--primary-navy);
    width: 24px;
    border-radius: 4px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.expertise-icon i {
    font-size: 2rem;
    color: var(--white);
}

.expertise-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.expertise-card ul {
    list-style: none;
    padding: 0;
}

.expertise-card ul li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.expertise-card ul li:last-child {
    border-bottom: none;
}

.expertise-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-navy);
    font-weight: bold;
}

/* ========================================
   Career Section
   ======================================== */

.career {
    padding: 80px 0;
    background-color: var(--white);
}

.career-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.career-subtitle {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.career-subtitle i {
    color: var(--accent-gold);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-navy);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-navy);
}

.timeline-content {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   Career History - Horizontal Timeline
   ======================================== */

.career-history {
    margin-bottom: 4rem;
    padding: 2rem 0;
    position: relative; /* 가로바 위치 기준 */
}

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 2rem 0;
    gap: 1rem;
    overflow-x: auto;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-navy), var(--accent-gold));
}

.timeline-item-h {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
}

.timeline-marker-h {
    width: 16px;
    height: 16px;
    background-color: var(--accent-gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 0 0 3px var(--primary-navy);
    position: relative;
    z-index: 1;
}

.timeline-text-h {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    padding: 0 0.5rem;
}

.timeline-text-h strong {
    color: var(--primary-navy);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

/* ========================================
   Success Cases Section
   ======================================== */

.success-cases {
    margin-top: 3rem;
}

/* Success Statistics */
.success-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin: 3rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.stat-item {
    text-align: center;
    color: var(--white);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: translateY(-5px);
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

.stat-plus {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.success-intro {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.case-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 400px;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* 판결문 이미지 배경 */
.case-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3);
    transition: all 0.3s ease;
}

.case-card:hover .case-image-bg {
    filter: brightness(0.4);
    transform: scale(1.05);
}

/* 카드 콘텐츠 오버레이 */
.case-content-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.case-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.case-badge.civil {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.9), rgba(66, 165, 245, 0.9));
}

.case-badge.family {
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.9), rgba(255, 152, 0, 0.9));
}

.case-badge.criminal {
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.9), rgba(233, 30, 99, 0.9));
}

/* 승소 마크 */
.case-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--success-green), #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.case-card:hover .case-icon {
    opacity: 1;
}

.case-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.case-result {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.case-year {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 2rem;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--primary-navy);
    background: var(--white);
    color: var(--primary-navy);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--primary-navy);
    color: var(--white);
}

.pagination-number {
    min-width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cases-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 2rem;
}

/* Case Modal Specific Styles */
.case-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    position: relative;
    z-index: 1;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--light-bg);
    color: var(--primary-navy);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 판결문 원본 이미지 (모달 내) */
.case-detail-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-detail-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.case-detail-item:last-child {
    border-bottom: none;
}

.case-detail-label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-detail-value {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.case-detail-highlight {
    background-color: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    margin-top: 0.5rem;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, Roboto, "Segoe UI", sans-serif;
    transition: all 0.3s ease;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Google Forms Button Styles */
.google-form-wrapper {
    text-align: center;
    padding: 3rem 2rem;
}

.google-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2C7A7B 0%, #1a5f5f 100%);
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(44, 122, 123, 0.3);
}

.google-form-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.google-form-wrapper h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.google-form-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.google-form-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #2C7A7B;
    background-color: #f0f9f9;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.google-form-notice i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.google-form-wrapper .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: auto;
    min-width: 280px;
    padding: 1.3rem 2.8rem;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.google-form-wrapper .btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 43, 74, 0.25);
}

.google-form-wrapper .btn-large i {
    font-size: 1.3rem;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info-box h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    font-weight: 600;
}

.info-item-large {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item-large:last-child {
    border-bottom: none;
}

.info-item-large i {
    font-size: 1.5rem;
    color: var(--primary-navy);
    width: 30px;
}

.info-item-large strong {
    display: block;
    color: var(--primary-navy);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.info-item-large p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.info-item-large a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item-large a:hover {
    color: var(--primary-navy);
}

.quick-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-btn.kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

.quick-btn.kakao:hover {
    background-color: #F5DC00;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-btn.phone {
    background-color: var(--primary-navy);
    color: var(--white);
}

.quick-btn.phone:hover {
    background-color: var(--secondary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   Modal
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

/* Modal Backdrop - 클릭하면 모달이 닫힘 */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: modalFadeIn 0.3s ease;
    position: relative;
    z-index: 1;
}

.modal-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ========================================
   Animations
   ======================================== */

@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 modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 968px) {
    .hero-content,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 히어로 섹션 - 모바일에서 이미지가 먼저 */
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    /* 새 소개 섹션 모바일 반응형 */
    .about-content-new {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .about-decoration {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }

    .decoration-line {
        width: 120px;
        height: 3px;
        min-height: auto;
        background: linear-gradient(
            90deg, 
            transparent 0%,
            var(--primary-navy) 15%,
            var(--primary-navy) 50%,
            var(--accent-gold) 85%,
            transparent 100%
        );
    }

    .decoration-line::before {
        width: 6px;
        height: 6px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.8rem;
    }

    .highlight-item {
        font-size: 0.9rem;
    }

    .lead-intro {
        font-size: 1.3rem;
    }

    .about-description {
        font-size: 1rem;
    }

    /* 모바일에서 소개 섹션 이미지 숨김 */
    .about-image {
        display: none;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .expertise-grid {
        /* 모바일에서 가로 슬라이드로 변경 */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1.5rem;
        padding: 0 1rem 1.5rem 1rem;
        margin-top: 1rem;
        -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
    }

    /* 스크롤바 숨김 (깔끔한 UI) */
    .expertise-grid::-webkit-scrollbar {
        display: none;
    }

    .expertise-grid {
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }

    .expertise-card {
        flex: 0 0 85%; /* 카드 너비: 화면의 85% */
        max-width: 400px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    /* 캐러셀 네비게이션 숨김 (모바일에서도) */
    .expertise-carousel-nav {
        display: none; /* 화살표 버튼 완전히 숨김 */
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-menu.active li {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* 네비게이션 로고 반응형 */
    .nav-brand {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }

    .nav-logo {
        border-right: 2px solid var(--border-color);
        border-bottom: none;
        padding-right: 1rem;
        padding-bottom: 0;
        font-size: 1.5rem;
    }

    .nav-text {
        font-size: 0.85rem;
    }

    /* Career & Cases Responsive */
    .timeline-horizontal {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap; /* 스크롤 대신 줄바꿈 */
        justify-content: center;
        gap: 0.5rem 0.8rem; /* 세로/가로 간격 */
        padding: 1rem 0.5rem;
        overflow-x: visible; /* 스크롤 제거 */
    }

    .timeline-horizontal::before {
        display: none; /* 가로선 숨김 (줄바꿈 시 어색함) */
    }

    .timeline-item-h {
        flex: 0 0 calc(50% - 0.4rem); /* 2열 배치 */
        min-width: 0;
        max-width: 140px;
        text-align: center;
        padding: 0.8rem 0.3rem;
        margin-bottom: 0;
        position: relative;
        background-color: rgba(26, 43, 74, 0.05);
        border-radius: 10px;
        border: 1px solid rgba(26, 43, 74, 0.1);
    }

    .timeline-marker-h {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 0.5rem;
        width: 10px;
        height: 10px;
    }

    .timeline-text-h {
        font-size: 0.75rem; /* 0.85rem → 0.75rem */
        padding: 0;
        line-height: 1.3;
    }

    .timeline-text-h strong {
        font-size: 0.8rem; /* 0.9rem → 0.8rem */
        display: block;
        margin-bottom: 0.2rem;
    }

    /* 이력 섹션 컴팩트하게 */
    .career {
        padding: 40px 0;
    }

    .career-history {
        margin-bottom: 1.5rem; /* 2rem → 1.5rem */
    }

    .career-subtitle {
        font-size: 1.1rem; /* 1.2rem → 1.1rem */
        margin-bottom: 0.8rem;
    }

    .success-stats {
        flex-direction: row; /* column → row */
        justify-content: space-around;
        gap: 1rem;
        padding: 1.2rem 1rem;
        margin: 1.2rem 0;
    }

    .stat-item {
        flex: 1;
        text-align: center;
    }

    .stat-number {
        font-size: 2rem; /* 2.5rem → 2rem */
    }

    .stat-label {
        font-size: 0.85rem; /* 0.95rem → 0.85rem */
    }

    .success-intro {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* 주요승소사례 그리드 (모바일에서도 페이지네이션) */
    .cases-slider-wrapper {
        position: relative;
        overflow: visible;
    }

    .cases-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .case-card {
        height: 450px;
        width: 100%;
    }

    /* 페이지네이션 표시 (모바일에서도) */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    /* Google Forms Responsive */
    .google-form-wrapper {
        padding: 2rem 1rem;
    }

    .google-form-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .google-form-icon i {
        font-size: 2rem;
    }

    .google-form-wrapper h3 {
        font-size: 1.6rem;
    }

    .google-form-description {
        font-size: 1rem;
    }

    .google-form-wrapper .btn-large {
        min-width: auto;
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 15px 0 20px; /* 20px → 15px, 40px → 20px */
    }

    .hero-title {
        font-size: 1.8rem; /* 원래대로 복구 */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem; /* 원래대로 복구 */
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.9rem; /* 원래대로 복구 */
        margin-bottom: 1rem;
    }

    .hero-cta {
        gap: 0.6rem; /* CTA 버튼 간격은 유지 (축소 예정) */
    }

    .hero-image {
        margin-top: 1rem;
    }

    .image-wrapper {
        max-width: 250px; /* 원래대로 복구 */
        margin: 0 auto;
    }

    .image-wrapper img {
        max-height: none; /* 높이 제한 제거 */
        object-fit: cover;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* 섹션 패딩 줄이기 */
    .about,
    .expertise {
        padding: 40px 0;
    }

    .about-text .section-title {
        margin-bottom: 1rem;
        display: none; /* 모바일에서도 숨김 */
    }

    .about-details p {
        margin-bottom: 0.8rem;
    }

    .contact-info-quick {
        margin-top: 1rem;
    }

    .expertise-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 20px 1.5rem 20px;
        margin: 1.5rem -20px 0 -20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .expertise-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .expertise-card {
        min-width: 85%;
        max-width: 85%;
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 1.8rem;
    }

    .expertise-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .expertise-card ul {
        font-size: 0.95rem;
    }

    .expertise-card ul li {
        margin-bottom: 0.6rem;
    }

    .btn {
        padding: 0.85rem 1.3rem;
        font-size: 0.9rem;
    }

    .hero-cta .btn {
        padding: 0.75rem 1.2rem; /* 1rem 1.5rem → 0.75rem 1.2rem */
        font-size: 0.85rem; /* 폰트 크기 축소 */
    }

    .hero-cta .btn i {
        font-size: 0.85rem; /* 아이콘 크기도 축소 */
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Google Forms Mobile */
    .google-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .google-form-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

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

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

    .google-form-description {
        font-size: 0.88rem; /* 0.95rem → 0.88rem (3줄로 표시) */
        line-height: 1.5;
    }

    .google-form-notice {
        font-size: 0.8rem; /* 0.85rem → 0.8rem (2줄로 표시) */
        padding: 0.8rem 1rem;
        flex-direction: column;
        text-align: center;
        line-height: 1.5;
    }

    .google-form-wrapper .btn-large {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    /* 모바일 네비게이션 */
    .navbar .container {
        padding: 0.8rem 15px;
    }

    .nav-brand {
        font-size: 0.9rem;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* 히어로 이미지 */
    .hero-image {
        margin-top: 2rem;
    }

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

    /* 승소사례 카드 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-card {
        height: 300px;
    }

    /* 모달 모바일 최적화 */
    .modal-content {
        margin: 20px;
        padding: 2rem 1.5rem;
        max-width: calc(100% - 40px);
    }

    .case-modal-content {
        padding: 1.5rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    /* 판결문 원본 이미지 모바일 최적화 */
    .case-detail-image {
        margin-bottom: 1.5rem;
    }

    .case-detail-label {
        font-size: 1rem;
    }

    .case-detail-value {
        font-size: 0.95rem;
    }

    /* 타임라인 모바일 */
    .timeline-item-h {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    /* 통계 카드 */
    .stat-number {
        font-size: 2rem;
    }

    /* 연락처 정보 */
    .info-item-large {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-item-large i {
        font-size: 1.2rem;
    }

    /* 소셜 링크 */
    .social-links {
        justify-content: flex-start;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* 페이지네이션 */
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}