:root {
    --primary-color: #212529;
    /* Richer Charcoal Black/Navy */
    --primary-hover: #343a40;
    --secondary-color: #495057;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1c20;
    --bg-gray: #e9ecef;
    --white: #ffffff;
    --border-color: #dee2e6;
    --max-width: 1200px;
    --accent-orange: #ff7a2d;
    /* Punchier, more vibrant orange */
    --accent-orange-light: #ff9d66;

    /* Add dynamic gradients */
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    --gradient-accent: linear-gradient(135deg, #ff7a2d 0%, #ffc048 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll from reveal animations */
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.015em;
    color: var(--text-color);
    background-color: var(--white);
    padding-bottom: 70px;
    /* Space for action bar */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    word-break: keep-all;
    line-height: 1.35;
    letter-spacing: -0.02em;
    /* Tighter for specialized look */
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 1);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 1);
}

.nav-menu a:hover {
    color: var(--accent-orange);
}


.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}


/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    text-align: center;
    background-color: #111;
    overflow: hidden;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.slide.active {
    animation: premiumZoom 10s linear infinite alternate;
}

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

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

.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.indicator.active {
    width: 35px;
    height: 10px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    /* Approx 36px ~ 48px */
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 1);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 1.2s ease-out forwards;
    animation-delay: 0.5s;
    letter-spacing: -0.025em;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.hero-title .highlight-orange {
    color: #ff9800; /* Bright Premium Orange */
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: lightSweep 4s infinite;
    z-index: 1;
}

@keyframes lightSweep {
    0% {
        left: -150%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 1.2s ease-out forwards;
    animation-delay: 0.6s;
    line-height: 1.6;
    font-weight: 400;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

/* Quick Contact Bar */
.quick-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 58, 95, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    z-index: 2000;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-left {
    flex: 0 0 auto;
}

.contact-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-logo {
    height: 48px;
    width: auto;
    filter: grayscale(100%) invert(100%) brightness(200%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.brand-text .label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: -2px;
}

.brand-text .phone {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.contact-right {
    flex: 1;
    max-width: 700px;
}

.quick-form {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.quick-form input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    background: var(--white);
    font-size: 0.85rem;
}

.quick-form button {
    flex: 0 0 auto;
    padding: 10px 20px;
    background-color: #333;
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-form button:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.desktop-only {
    display: none;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.strengths-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--white);
}

.strengths-section .section-title {
    font-size: 2rem;
    /* ~32px */
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--secondary-color);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

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

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.circle-filled-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-item h3 {
    font-size: 1.15rem;
    /* ~18.4px (H3) */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    background: #f1f1f1;
    padding: 10px 15px;
    border-top: 2px solid #ddd;
}

/* Claims Adjustment Fields Section */
.fields-section {
    padding: 100px 0;
    text-align: center;
    background-color: #fafafa;
}

.fields-section .main-heading {
    font-size: 2rem;
    /* ~32px */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.fields-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 60px;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.field-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.field-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1; /* Default: Visible */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
    transform: scale(1);
}

.field-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: var(--white); /* White background on hover */
}

.field-card:hover::before,
.field-card.touch-active::before {
    opacity: 0; /* Hide image on hover */
    transform: scale(1.08);
}

/* 개별 카드 배경 이미지 */
.field-card:nth-child(1)::before {
    background-image: linear-gradient(rgba(17, 34, 51, 0.75), rgba(17, 34, 51, 0.75)), url('assets/field_1.jpg');
}

.field-card:nth-child(2)::before {
    background-image: linear-gradient(rgba(17, 34, 51, 0.75), rgba(17, 34, 51, 0.75)), url('assets/field_2.jpg');
}

.field-card:nth-child(3)::before {
    background-image: linear-gradient(rgba(17, 34, 51, 0.75), rgba(17, 34, 51, 0.75)), url('assets/field_3.jpg');
}

.field-card:nth-child(4)::before {
    background-image: linear-gradient(rgba(17, 34, 51, 0.75), rgba(17, 34, 51, 0.75)), url('assets/field_4_new.png');
}

.field-card:nth-child(5)::before {
    background-image: linear-gradient(rgba(17, 34, 51, 0.75), rgba(17, 34, 51, 0.75)), url('assets/field_5.png');
}

.field-card:nth-child(6)::before {
    background-image: linear-gradient(rgba(17, 34, 51, 0.75), rgba(17, 34, 51, 0.75)), url('assets/field_6.png');
}

.field-info,
.field-icon-mini {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.field-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white); /* Default: White */
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.field-info p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85); /* Default: Light White */
    word-break: keep-all;
    transition: color 0.3s ease;
}

.field-card:hover .field-info h3,
.field-card.touch-active .field-info h3 {
    color: #111; /* Hover: Dark */
}

.field-card:hover .field-info p,
.field-card.touch-active .field-info p {
    color: #666; /* Hover: Gray */
}

.field-icon-mini {
    margin-top: auto;
    align-self: flex-end;
    font-size: 2rem;
    color: var(--white); /* Default: White */
    opacity: 0.8;
    line-height: 1;
    transition: all 0.3s ease;
}

.field-card:hover .field-icon-mini,
.field-card.touch-active .field-icon-mini {
    color: var(--accent-orange); /* Hover: Focal color */
    opacity: 1;
    transform: translateX(-5px);
}

/* Profiles */
.profiles {
    padding: 60px 0;
    /* Reduced padding */
    background-color: var(--white);
}

.profiles .section-header {
    text-align: center;
    margin-bottom: 40px;
    /* Reduced margin */
}

.profiles .main-heading {
    font-size: 1.8rem;
    /* Smaller heading */
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary-color);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 768px;
    /* Reduced width to match mobile size request */
    margin: 0 auto;
}

.profile-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    padding: 10px;
}

.profile-card:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.profile-img {
    width: 100%;
    aspect-ratio: 1/1.2;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 10px;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.profile-card.no-photo .profile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 4rem;
}

.profile-card:hover .profile-img img,
.profile-card.touch-active .profile-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.profile-img img.adjust-kim {
    transform: scale(1.12) translateY(5%);
    object-position: center 0%;
    filter: brightness(1.05) grayscale(100%);
}
.profile-card:hover .profile-img img.adjust-kim,
.profile-card.touch-active .profile-img img.adjust-kim {
    transform: scale(1.17) translateY(5%);
    filter: brightness(1.05) grayscale(0%);
}

.profile-info {
    padding: 8px 0;
}

.profile-info h3 {
    font-size: 1.15rem;
    /* ~18.4px (H3) */
    font-weight: 700;
    margin-bottom: 3px;
    color: #222;
}

.profile-info h3 span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    margin-left: 6px;
}

.profile-tags {
    font-size: 0.8rem;
    /* Reduced font size */
    color: #888;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.profile-exp {
    list-style: none;
    font-size: 0.8rem;
    /* Reduced font size */
    color: #777;
    line-height: 1.5;
}

/* Consultation Buttons */
.consultation .container {
    display: flex;
    gap: 0;
    padding: 0;
    max-width: 100%;
}

.consult-box {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.consult-box.gray {
    background: linear-gradient(135deg, #f1f2f6 0%, #dcdde1 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.consult-box.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.consult-box.primary .btn-more {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 122, 45, 0.3);
}

.consult-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.consult-text p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 25px;
    background: var(--white);
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    width: fit-content;
    z-index: 2;
}

.consult-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 4rem;
    opacity: 0.2;
}

/* Cases Section */
.cases {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/%EB%B3%B4%EC%83%81%EC%82%AC%EB%A1%80.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 50px;
    word-break: keep-all;
    /* Prevents awkward syllable breaks in Korean */
}

.case-slider-wrapper {
    overflow: hidden;
    margin: 0 -20px;
    padding: 20px;
}

.case-grid {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

.case-grid.manual-jump,
.testimonial-track.manual-jump {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes case-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

.case-card {
    background: var(--white);
    color: var(--text-color);
    border-radius: 20px;
    overflow: hidden;
    width: 450px;
    flex-shrink: 0;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle bright edge */
}

.case-card:hover {
    transform: translateY(-15px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 40px 80px rgba(0, 0, 0, 0.35);
}

.case-header {
    background: #eee;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
}

.case-body {
    padding: 30px 25px;
}

.case-body h4 {
    font-size: 1.15rem;
    /* ~18.4px (H3-ish) */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
    letter-spacing: -0.01em;
}

.case-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #fafafa;
    padding: 20px 15px;
    border: 1px solid #eaeaea;
    margin-bottom: 25px;
    border-radius: 12px;
}

.stamp {
    width: 70px;
    height: 70px;
    border: 3px solid #d32f2f;
    color: #d32f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    transform: rotate(-15deg);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.report-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* 두개 모두 텍스트 가운대 정렬 */
    text-align: center;
}

.report-content p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 3px;
}

.report-content .amount {
    font-size: 1.6rem;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.02em;
}

.case-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    text-align: center;
    background: #f4f6f9;
    /* Subtle gray background so white cards stand out */
    overflow: hidden;
}

.testimonial-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 30px;
    margin-top: 50px;
    padding: 0 40px;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    flex: 1;
    padding: 40px 0;
    /* Space for shadows and hover movement */
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-track.manual-jump {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}


.slider-btn {
    background: #ffffff;
    border: 1px solid #dee2e6;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.3);
}

.slider-btn:active {
    transform: translateY(-2px);
}

.testimonial-card {
    flex: 0 0 320px;
    height: 380px; /* 보상사례 박스와 비슷한 높이로 고정 */
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 15px; /* 약간의 여백으로 비율 안정화 */
    text-align: center;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.05),
        0 30px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지 비율 훼손 방지 및 잘림 방지 */
    display: block;
}

/* PC 화면 확장 레이아웃 (한 번에 약 4개 박스 표시, 크기 고정 유지) */
@media (min-width: 1024px) {
    .testimonials .container {
        max-width: 1670px; /* 320px 고정 크기 4개가 알맞게 들어가는 최대 뷰박스 범위 */
    }
    .testimonial-card {
        flex: 0 0 320px; /* PC 환경 안정적인 크기 유지 */
        height: 380px;
    }
}

.testimonial-card:hover {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 50px 100px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
}

.testimonial-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.testimonial-card .quote {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
    /* Pushes the author to the bottom if cards stretch */
}

.testimonial-card .author {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-top: auto;
}

.testimonial-card .stars {
    color: #FFB800;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 4px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 25px;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-orange);
    width: 40px;
}

@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }

    .testimonials {
        padding: 60px 0;
    }

    .testimonial-slider-wrapper {
        padding: 0 15px;
        margin-top: 30px;
        gap: 15px;
    }

    .testimonial-slider {
        padding: 15px 0;
        overflow-y: visible;
    }

    .case-grid,
    .testimonial-track {
        gap: 15px;
        cursor: grab;
    }

    .case-grid:active,
    .testimonial-track:active {
        cursor: grabbing;
    }

    .testimonial-card {
        flex: 0 0 calc(100vw - 60px);
        max-width: 320px;
        height: 350px;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transform: translateZ(0);
        /* Hardware acceleration bug fix */
        background: #ffffff;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .testimonial-card:hover {
        transform: translateZ(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .testimonial-card h4 {
        font-size: 1.05rem;
        margin-bottom: 12px;
        padding-bottom: 12px;
        line-height: 1.4;
    }

    .testimonial-card .quote {
        font-size: 0.95rem;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .testimonial-card .author {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        margin-bottom: 25px;
        letter-spacing: -0.03em;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 35px;
        line-height: 1.6;
        word-break: keep-all;
    }

    .case-card {
        width: calc(100vw - 40px);
        max-width: 380px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.25;
        margin-bottom: 25px;
        letter-spacing: -0.04em;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 10px;
    }

    .mobile-break {
        display: block;
        margin-top: 5px;
    }

    .case-body {
        padding: 25px 20px; /* 좌우 여백을 약간 줄여 글씨 공간 확보 */
    }

    .case-card h4 {
        font-size: 1.15rem; /* 시인성 확보를 위해 글자 크기 상향 */
        line-height: 1.45;
        letter-spacing: -0.01em;
        word-break: keep-all; /* 조사 기준 등으로 불규칙하게 줄바꿈 되는 현상 방지 */
    }

    .case-report {
        gap: 12px;
        padding: 15px 12px;
    }

    .stamp {
        width: 55px; 
        height: 55px;
        font-size: 1.1rem; /* 도장 사이즈 모바일 맞춤 축소 */
        border-width: 2px;
    }

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

    .report-content .amount {
        font-size: 1.35rem; /* 글자가 박스를 넘치지 않도록 적절히 축소 */
        word-break: keep-all; /* 금액 텍스트가 강제 줄바꿈 되지 않도록 함 */
    }

    .case-card .case-desc {
        font-size: 0.95rem;
        line-height: 1.65;
        color: #777;
        word-break: keep-all; /* 단어 단위의 자연스러운 줄바꿈 */
    }

    .testimonial-card .stars {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .slider-dots {
        margin-top: 25px;
    }

    .location-info-full .footer-title {
        font-size: 2.4rem;
    }

    .branch-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Simple Inquiry Section */
.simple-inquiry {
    padding: 100px 0;
    background: linear-gradient(rgba(33, 37, 41, 0.03) 0%, rgba(33, 37, 41, 0.01) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.inquiry-container {
    max-width: 900px !important;
    margin: 0 auto;
}

.inquiry-text {
    text-align: center;
    margin-bottom: 50px;
}

.inquiry-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.inquiry-form .form-group input,
.inquiry-form .form-group select,
.inquiry-form .form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f9fbfd;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inquiry-form .form-group input:focus,
.inquiry-form .form-group select:focus,
.inquiry-form .form-group textarea:focus {
    border-color: var(--accent-orange);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 122, 45, 0.08);
}

.inquiry-form .full-width {
    grid-column: span 3;
}

.inquiry-form textarea {
    height: 110px;
    resize: none;
}

.inquiry-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(255, 122, 45, 0.15);
}

.inquiry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 122, 45, 0.25);
}

.privacy-group {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.privacy-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.privacy-checkbox-label:hover {
    color: var(--text-color);
}

.privacy-checkbox-label input {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

.privacy-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Footer / Location */
#location.footer {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/location_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: #fff; /* White text for footer content */
    padding: 100px 0 80px;
}

@media (min-width: 1024px) {
    #location.footer {
        background-attachment: fixed; /* Parallax only on desktop */
    }
}

.location-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start;
    text-align: left;
}

.location-info-full {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.footer-label {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 14px;
    /* Caption: 13px ~ 14px */
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: block;
}

.footer-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #fff; /* Changed to white */
    letter-spacing: -0.02em;
}

.footer-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8); /* Faded white for descriptions */
    margin-bottom: 40px;
}

.office-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.office-preview img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.office-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.office-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.office-dots {
    display: flex;
    gap: 8px;
}

.office-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.office-dots span.active {
    background: var(--white);
    width: 25px;
    border-radius: 4px;
}

.location-map-container {
    position: relative;
}

.branch-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Branch Tabs */
.branch-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.branch-tab {
    padding: 10px 15px;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6); /* Lighter color for dark background */
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.branch-tab.active {
    color: var(--accent-orange); /* Vibrant orange for active state */
    font-weight: 700;
}

.branch-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-orange); /* Orange line */
}

.branch-card-mini {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
    z-index: -1;
}

.branch-card-mini.active-image::before {
    background: rgba(0, 0, 0, 0.15);
    /* Maximum clarity as requested */
}

.branch-card-mini.active-image h3,
.branch-card-mini.active-image p {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Strong shadow for readability */
}

/* Card Interaction Enhancement */
.branch-card-mini,
.service-card,
.compensation-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.branch-card-mini:active,
.service-card:active,
.compensation-card:active {
    transform: scale(0.98);
}

.branch-card-mini.active-image p i {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    box-shadow: none;
}

.branch-card-mini:hover {
    transform: translateY(-8px);
}

.branch-map-mini {
    width: 100%;
    height: 200px;
    background: #eee;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.branch-map-mini::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

.branch-card-mini.active-image .branch-map-mini {
    opacity: 0.1;
    transform: scale(0.95);
}

.branch-info-mini {
    padding: 2rem 1.5rem;
    text-align: left;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: transparent;
    position: relative;
    z-index: 2;
    flex: 1;
}

.branch-info-mini h3 {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    color: #212529;
    font-weight: 700;
    letter-spacing: -0.01em;
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
}

.branch-info-mini p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 0.8rem;
    width: 100%;
    line-height: 1.5;
    word-break: keep-all;
}

.branch-info-mini p:nth-of-type(1) {
    min-height: 65px;
}

.branch-info-mini p i {
    color: var(--accent-orange);
    background: #fff;
    border: 1px solid #eee;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 2px;
    transition: all 0.3s ease;
}

.map-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    margin-top: auto;
    width: 100%;
    background: #f8f9fa;
    color: var(--secondary-color);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-view-btn i {
    font-size: 1.1rem;
    color: var(--accent-orange);
}

.map-view-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.map-view-btn:hover i {
    color: #fff;
}

/* Glassmorphism style for btn when image background is active */
.branch-card-mini.active-image .map-view-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.branch-card-mini.active-image .map-view-btn i {
    color: #fff;
}

.branch-card-mini.active-image .map-view-btn:hover {
    background: #fff;
    color: var(--secondary-color);
}

.branch-card-mini.active-image .map-view-btn:hover i {
    color: var(--accent-orange);
}

@media (max-width: 1024px) {
    .branch-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .branch-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 5px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .branch-tabs button:last-child {
        grid-column: 2;
        /* Center the last item horizontally in the 3-column grid */
    }

    .branch-tab {
        padding: 15px 5px;
        font-size: 0.9rem;
    }

    .branch-tab.active::after {
        bottom: 0;
    }

    .branch-grid-container {
        display: block;
        margin-top: 2rem;
    }

    .branch-card-mini {
        display: none;
        flex-direction: column;
        height: auto;
        border-radius: 20px;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
        border: 1px solid #f0f0f0;
        background: #ffffff;
        margin-bottom: 20px;
        padding: 10px;
    }

    .branch-card-mini.active {
        display: flex;
    }

    /* Hover image background visibility fix for mobile */
    .branch-card-mini.active-image {
        background: none;
    }

    .branch-info-mini {
        padding: 25px 20px;
        background: #ffffff;
        color: #333;
        min-height: auto;
        transition: background 0.3s ease;
    }

    .branch-card-mini.active-image .branch-info-mini {
        background: transparent;
    }

    .branch-info-mini h3 {
        color: #222;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.3rem;
        margin-bottom: 20px;
        padding-bottom: 15px;
        font-weight: 800;
    }

    .branch-info-mini p {
        color: #666;
        font-size: 0.95rem;
        gap: 12px;
        align-items: center;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .branch-info-mini p i {
        color: #ff7a2d;
        background: #fff5f0;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        box-shadow: 0 4px 10px rgba(255, 122, 45, 0.1);
    }

    .branch-map-mini {
        height: 220px;
        border-radius: 12px;
        overflow: hidden;
        margin-top: 10px;
        transition: opacity 0.3s ease;
        /* Smooth fade */
    }

    .branch-card-mini.active-image .branch-map-mini {
        opacity: 0;
        /* Fully hide map on touch/hover */
    }
}


/* Footer Bottom Info Section (Added) */
.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Light border for dark bg */
    flex-wrap: wrap;
    gap: 30px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-company-details {
    flex: 1;
    /* Allow it to take up space and push right box */
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 35px;
}

.footer-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff; /* Changed to white */
    letter-spacing: -0.02em;
    text-shadow: none;
}

.info-group {
    color: rgba(255, 255, 255, 0.7); /* Lighter for dark bg */
    font-size: 0.85rem;
}

.info-label {
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff; /* White label */
}

.info-lines p {
    margin-bottom: 5px;
    line-height: 1.6;
}

.divider {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    font-size: 0.8rem;
}

.copyright {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-contact-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-width: 350px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.contact-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.contact-number i {
    color: var(--accent-orange);
    font-size: 2rem;
    vertical-align: middle;
    margin-right: 8px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.bg-icon {
    position: absolute;
    right: 20px;
    bottom: -15px;
    font-size: 7rem;
    color: rgba(255, 122, 45, 0.05);
    /* very faint orange */
    z-index: 1;
    transform: rotate(-10deg);
}

@media (max-width: 768px) {
    .footer-bottom-info {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        padding-right: 20px;
        gap: 40px;
    }

    .info-lines p {
        line-height: 1.8;
    }

    .divider {
        display: none;
        /* Hide vertical lines on mobile for cleaner wrap */
    }

    .info-lines p span.mobile-break {
        display: block;
        margin-bottom: 5px;
    }

    .footer-contact-box {
        width: 100%;
        min-width: auto;
        padding: 30px;
    }
}

/* Action Bar (Mobile Only) */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    z-index: 2000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .action-bar {
        display: none;
    }
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.action-btn.call {
    background-color: #444;
    color: var(--white);
}

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

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-zoom.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Looping Animations (4s Cycle) */
.hero-loop-left {
    animation: hero-loop-left 4s infinite ease-in-out;
}

.hero-loop-up {
    animation: hero-loop-up 4s infinite ease-in-out;
}

@keyframes hero-loop-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    15%,
    85% {
        /* Slower entry, longer keep */
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes hero-loop-up {

    0%,
    10% {
        /* Starts slightly later than title */
        opacity: 0;
        transform: translateY(30px);
    }

    25%,
    85% {
        opacity: 1;
        transform: translateY(0);
    }

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

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

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

.floating-cta .cta-btn {
    animation: pulse 2.5s infinite ease-in-out;
}

.floating-cta .cta-btn:nth-child(2) {
    animation-delay: 1.2s;
}

/* Animation Delay Utilities */
.delay-1 {
    transition-delay: 0.1s;
}

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

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
        color: var(--secondary-color);
        text-shadow: none;
    }

    .header {
        height: 70px;
    }

    .features,
    .fields-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .profile-card {
        padding: 8px;
    }

    .profile-info h3 {
        font-size: 1.05rem;
    }

    .profile-info h3 span {
        font-size: 0.7rem;
        margin-left: 3px;
    }

    .profile-tags {
        font-size: 0.75rem;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    .profile-exp {
        font-size: 0.72rem;
        letter-spacing: -0.6px;
        word-break: keep-all;
        line-height: 1.4;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 20px);
    }

    .consultation .container {
        flex-direction: column;
    }

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

    .mobile-only {
        display: block;
    }

    .consult-box {
        padding: 40px 20px;
    }

    /* Inquiry Form Mobile Fix */
    .inquiry-form {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 20px;
    }

    .inquiry-form .full-width {
        grid-column: span 1;
    }

    .inquiry-form .form-group input,
    .inquiry-form .form-group select,
    .inquiry-form .form-group textarea {
        padding: 16px;
        font-size: 1rem;
        /* Larger touch targets and font */
    }

    .privacy-group {
        justify-content: flex-start;
        margin: 5px 0;
    }

    .privacy-checkbox-label {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }
}

/* Floating SNS Menu */
.floating-sns {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sns-item {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    color: var(--white);
}

.sns-item .sns-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 3px;
}

.sns-item span {
    font-size: 0.75rem;
    font-weight: 800;
    color: inherit;
}

/* Brand Colors */
.sns-item.youtube {
    background-color: #FF0000;
}

.sns-item.kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

.sns-item.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sns-item.blog {
    background-color: #03C75A;
}

.sns-item:hover {
    transform: scale(1.1) translateX(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

/* Mobile Adjustments for SNS Menu */
@media (max-width: 768px) {
    .floating-sns {
        right: 15px;
        top: auto;
        bottom: 100px;
        /* Above the mobile action bar */
        transform: none;
        gap: 8px;
    }

    .sns-item {
        width: 55px;
        height: 55px;
        border-radius: 10px;
    }

    .sns-item .sns-icon {
        font-size: 1.2rem;
    }

    .sns-item span {
        font-size: 0.6rem;
    }
}