/* ═══════════════════════════════════════
   디자인 아르시에 Clone - Main Styles
   ═══════════════════════════════════════ */

/* === Custom Properties === */
:root {
    --ease-out-quart: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-custom: cubic-bezier(0.77, 0, 0.175, 1);
    --blue: #0063ff;
    --blue-dark: #0053d6;
}

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    color: #212121;
    background: #fff;
    line-height: 1.4;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; outline: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.highlight { color: #0063ff; }
strong { font-weight: 700; }

/* === HEADER === */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
}
#header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 40px;
}
.logo a { display: flex; align-items: center; }
.logo img { height: 136px; }

/* Desktop Nav */
.desktop-nav ul {
    display: flex;
    gap: 0;
}
.desktop-nav ul li a {
    display: block;
    padding: 0 25px;
    font-family: 'Poppins', 'Pretendard Variable', sans-serif;
    font-size: 16px;
    color: #212121;
    line-height: 90px;
    transition: color 0.3s;
    letter-spacing: -0.3px;
}
.desktop-nav ul li a:hover {
    color: #0063ff;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-estimate {
    display: inline-block;
    padding: 10px 28px;
    background: #0063ff;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    letter-spacing: -0.5px;
}
.btn-estimate:hover {
    background: #0053d6;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #212121;
    transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding-top: 90px;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu-inner {
    padding: 40px 30px;
}
.mobile-menu-inner ul li {
    border-bottom: 1px solid #eee;
}
.mobile-menu-inner ul li a {
    display: block;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #212121;
}
.mobile-menu-inner ul li a.mobile-estimate {
    color: #0063ff;
}

/* === HERO === */
.hero {
    position: relative;
    width: 100%;
    height: 820px;
    overflow: hidden;
}
.hero-slider {
    width: 100%;
    height: 100%;
}
.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
}
.hero-pagination {
    display: none !important;
}
/* Hero Logo - white + semi-transparent */
.hero-slide-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

/* Hero Slide Content */
.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    padding-left: 8%;
    padding-bottom: 0;
}
.hero-slide-logo {
    margin-bottom: 16px;
}
.hero-slide-logo img {
    height: auto;
    max-width: 420px;
}
.hero-slide-text {
    max-width: 900px;
}
.hero-title-line {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #fff;
    margin: 0;
    overflow: hidden;
    position: relative;
}
.hero-slide-text.light-text .hero-title-line {
    color: #fff;
}
.hero-keyword {
    letter-spacing: -1px;
}
.hero-highlight {
    color: #5ea8ff;
}
.hero-accent {
    color: #5ea8ff;
}
.hero-accent-light {
    color: #8ecaff;
}
.hero-highlight-dark {
    color: #8ecaff;
}
.hero-subtitle-area {
    margin-top: 24px;
}
.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -1px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}
.hero-slide-text.light-text .hero-subtitle {
    color: #fff;
}

/* Slide animation — clip-reveal for titles, translateX for subtitles (원본 동일) */

/* Title line inner text: clip-reveal from below (pure overflow-hidden reveal) */
.hero-title-line .slide-anim {
    display: inline-block;
    transform: translateY(110%);
    opacity: 1;
}
.swiper-slide-active .hero-title-line .slide-anim {
    transform: translateY(0);
    opacity: 1;
    transition: transform 1s var(--ease-out-expo);
}

/* Logo fade-in */
.hero-slide-logo.slide-anim {
    transform: translateY(30px);
    opacity: 0;
}
.swiper-slide-active .hero-slide-logo.slide-anim {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.8s var(--ease-out-expo),
                opacity 0.5s var(--ease-out-quart);
    transition-delay: 0s;
}

/* Subtitle: slide from left */
.hero-subtitle.slide-anim {
    transform: translateX(-60px);
    opacity: 0;
}
.swiper-slide-active .hero-subtitle.slide-anim {
    transform: translateX(0);
    opacity: 1;
    transition: transform 1.2s var(--ease-out-expo),
                opacity 0.8s var(--ease-out-quart);
}

/* Stagger delays per line — matches original */
.swiper-slide-active .hero-title-line[data-delay="0"] .slide-anim { transition-delay: 0.1s; }
.swiper-slide-active .hero-title-line[data-delay="1"] .slide-anim { transition-delay: 0.3s; }
.swiper-slide-active .hero-title-line[data-delay="2"] .slide-anim { transition-delay: 0.5s; }
.swiper-slide-active .hero-subtitle.slide-anim[data-delay="3"] { transition-delay: 0.7s; }
.swiper-slide-active .hero-subtitle.slide-anim[data-delay="4"] { transition-delay: 0.9s; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* === SECTIONS COMMON === */
.section {
    padding: 140px 0;
    transition: background-color 0.5s;
}
.section-label {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0063ff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-label.light {
    color: rgba(255,255,255,0.7);
}
.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
}
.section-title.light {
    color: #fff;
}
.sub-desc {
    font-size: 18px;
    line-height: 1.5;
    color: #666;
    word-break: keep-all;
}
.sub-desc.light {
    color: rgba(255,255,255,0.8);
}
.sub-desc strong {
    color: #212121;
}
.sub-desc.light strong {
    color: #fff;
}

/* === SEC 1: Revision === */
.sec-revision {
    background: #fff;
    padding-top: 300px;
}
.revision-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 50px;
}
.revision-badge {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #0063ff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.revision-badge::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed #0063ff;
    animation: rotateBadge 8s linear infinite;
}
@keyframes rotateBadge {
    to { transform: rotate(360deg); }
}
.badge-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: line-through;
}

/* === SEC 2: Fast === */
.sec-fast {
    background: #0d0d0d;
}
.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.counter-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.counter-number {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #0063ff;
    line-height: 1;
}
.counter-unit {
    font-size: 22px;
    font-weight: 600;
    color: #0063ff;
}
.counter-label {
    margin-top: 12px;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
@media (max-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .counter-number {
        font-size: 36px;
    }
    .counter-unit {
        font-size: 16px;
    }
}

/* === SEC 3: Process (워크라인) === */
.sec-process {
    background: #0d0d0d;
    padding: 120px 0;
}
.process-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}
.process-left {
    flex: 0 0 40%;
}
.process-left .section-label.light {
    color: rgba(255,255,255,0.5);
}
.process-left .section-title.light {
    color: #fff;
    font-size: 36px;
    line-height: 1.4;
    margin-bottom: 24px;
}
.process-left .section-title .highlight {
    color: #0063ff;
}
.process-left .sub-desc.light {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    line-height: 1.8;
}
.process-left .sub-desc.light strong {
    color: #fff;
}
.process-right {
    flex: 1;
}
.workline-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.workline-header {
    background: #0063ff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    letter-spacing: -0.02em;
}
.workline-table {
    width: 100%;
    border-collapse: collapse;
}
.workline-table thead th {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 500;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.workline-table tbody td {
    color: #fff;
    font-size: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.workline-table tbody tr:last-child td {
    border-bottom: none;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-badge.done {
    background: rgba(0,99,255,0.15);
    color: #4d9aff;
}
.status-badge.progress {
    background: rgba(0,200,83,0.15);
    color: #00c853;
}
.status-badge.waiting {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
}
.file-link {
    color: #0063ff;
    font-size: 13px;
}

/* === SEC 4: Clients === */
.sec-clients {
    background: #fff;
}
.client-desc {
    margin-bottom: 60px;
}
.text-animate {
    display: inline-block;
    color: #0063ff;
    transition: transform 0.3s;
}
.text-animate:hover {
    transform: scale(1.15);
}
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.client-logo-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/9;
    position: relative;
    background: #f5f7fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart);
}
.client-logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.client-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-quart);
}
.client-logo-item:hover img {
    transform: scale(1.04);
}

/* === Stats Bar === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #e8e8e8;
    border-left: 1px solid #e8e8e8;
    margin-bottom: 50px;
}
.stat-item {
    padding: 36px 24px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
    transition: background 0.3s var(--ease-out-quart);
}
.stat-item:hover {
    background: #f0f4ff;
}
.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #0063ff;
    line-height: 1.1;
    margin-bottom: 10px;
}
.stat-number small {
    font-size: 20px;
    font-weight: 600;
    color: #0063ff;
}
.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* === Case Highlight Cards === */
.case-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.case-card {
    background: #f8f9fb;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart);
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,99,255,0.1);
}
.case-badge {
    display: inline-block;
    background: #0063ff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.case-metric {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 8px;
}
.case-metric small {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}
.case-detail {
    font-size: 13px;
    color: #888;
}

/* === SEC 5: Differentiator === */
.sec-diff {
    background: #fff;
}
/* -- Differentiator V2 Layout -- */
.diff-layout-v2 {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.diff-left-v2 {
    flex: 0 0 420px;
}
.diff-left-v2 .sub-desc {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}
.physics-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f5f7fa;
}
.physics-tag {
    position: absolute;
    background: #0063ff;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}
.physics-tag.tag-white {
    background: #fff;
    color: #0063ff;
    border: 2px solid #0063ff;
}
.diff-right-v2 {
    flex: 1;
}
.diff-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.diff-card-v2 {
    border-radius: 20px;
    background: linear-gradient(160deg, #0063ff 0%, #003cc2 100%);
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
}
/* Alternating: 02,04 = light lavender */
.diff-card-v2:nth-child(2),
.diff-card-v2:nth-child(4) {
    background: #e4e6f1;
}
.diff-card-v2:nth-child(2) .diff-num-v2,
.diff-card-v2:nth-child(4) .diff-num-v2 {
    color: rgba(0,0,0,0.35);
}
.diff-card-v2:nth-child(2) .diff-card-text,
.diff-card-v2:nth-child(4) .diff-card-text {
    color: #1a1a1a;
}
.diff-card-v2:nth-child(2) .diff-tags-v2 span,
.diff-card-v2:nth-child(4) .diff-tags-v2 span {
    background: #fff;
    color: #333;
}
.diff-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,99,255,0.3);
}
.diff-card-inner {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    min-height: 260px;
}
.diff-num-v2 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}
.diff-emoji {
    position: absolute;
    top: 24px;
    right: 20px;
    line-height: 1;
}
.diff-emoji img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.diff-card-text {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    letter-spacing: -0.5px;
}
.diff-tags-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.diff-tags-v2 span {
    background: rgba(255,255,255,0.95);
    color: #333;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.review-highlight {
    color: #fff;
    font-weight: 700;
}
/* -- Reviews Section -- */
.sec-reviews {
    background: #0063ff;
    padding: 100px 0;
    overflow: hidden;
}
.reviews-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}
.reviews-left {
    flex: 0 0 400px;
    color: #fff;
}
.reviews-left .section-label {
    color: rgba(255,255,255,0.7);
}
.reviews-left .section-title {
    color: #fff;
    font-size: 36px;
    line-height: 1.4;
    margin-bottom: 20px;
}
.reviews-left .sub-desc {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}
.review-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}
.review-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.review-nav-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}
.review-more-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.3s;
}
.review-more-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.reviews-right {
    flex: 1;
    overflow: hidden;
}
.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}
.review-stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 18px;
    letter-spacing: 2px;
}
.review-text {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 20px;
    font-weight: 500;
}
.review-author {
    font-size: 14px;
    color: #999;
    font-weight: 600;
}

/* -- Services V2 (Photo Card Grid) -- */
.sec-services-v2 {
    background: #fff;
}
.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card-v2 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease-out-quart);
}
.service-card-v2:hover .service-card-bg {
    transform: scale(1.08);
}
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
}
.service-card-title-ko {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.service-card-title-en {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.service-card-tags span {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* -- Process Steps V2 (connected line through icons) -- */
.process-steps-line {
    position: relative;
}
.process-steps-line::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a1a1a 0%, #0063ff 50%, #1a1a1a 100%);
    z-index: 0;
}
.process-steps-line .process-step {
    position: relative;
    z-index: 1;
}
.process-step.active .step-icon {
    animation: pulseGlow 2s var(--ease-in-out-custom) infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(0,99,255,0.5); }
    50% { box-shadow: 0 0 45px rgba(0,99,255,0.8), 0 0 80px rgba(0,99,255,0.3); }
}

/* Kakao Floating Button */
.kakao-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEE500;
    color: #191919 !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 32px;
    padding: 16px 28px;
    box-shadow: 0 4px 20px rgba(254,229,0,0.4);
    animation: float 3.5s ease-in-out infinite;
    transition: background 0.2s;
}
.kakao-float-btn:hover {
    background: #E5CD00;
}
.kakao-icon { font-size: 1.3em; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-6px) rotate(0.5deg); }
    66% { transform: translateY(-3px) rotate(-0.5deg); }
}

/* === Custom Reveal System === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}
.reveal-left.visible {
    opacity: 1;
    transform: none;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}
.reveal-right.visible {
    opacity: 1;
    transform: none;
}

/* fadeInUp scroll animation (legacy compat) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Blue CTA Section (Reviews) === */
.sec-blue-cta {
    background: #0063ff;
    padding: 100px 0;
    text-align: left;
    color: #fff;
    overflow: hidden;
}
.blue-cta-label {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}
.blue-cta-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: -1px;
    margin-bottom: 40px;
    color: #fff;
}
.blue-cta-subtitle strong {
    font-weight: 700;
}
.blue-cta-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.3s;
}
.blue-cta-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .blue-cta-label { font-size: 20px; }
    .blue-cta-subtitle { font-size: 15px; }
    .sec-blue-cta { padding: 60px 0; }
}

/* === SEC 6: Portfolio === */
.sec-portfolio {
    background: #fafafa;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-item:hover img {
    transform: scale(1.1);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,99,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-overlay span {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    border: 2px solid #fff;
    padding: 10px 30px;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-more {
    text-align: center;
}
.btn-more {
    display: inline-block;
    padding: 14px 50px;
    border: 2px solid #212121;
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    transition: all 0.3s;
}
.btn-more:hover {
    background: #212121;
    color: #fff;
}

/* === SEC 7: Services === */
.sec-services {
    background: #fff;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.service-card:hover {
    background: #fff;
    border-color: #0063ff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,99,255,0.1);
}
.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
}
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.service-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #212121;
}
.service-card p {
    font-size: 15px;
    color: #888;
    line-height: 1.6;
}

/* === SEC 7.5: 작업과정 === */
.sec-process-steps {
    background: #0d0d0d;
    padding: 80px 0;
}

.sec-process-steps .section-title.light {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 24px;
}

.sec-process-steps .section-title.light .highlight {
    color: #0063ff;
}

.process-desc-text {
    text-align: center;
    margin-bottom: 60px;
}

.process-desc-text p {
    color: #fff;
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

.process-steps {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    padding: 0 10px;
    transition: transform 0.4s ease-in-out;
}

.step-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #2b2b2b;
    border: 2px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: all 0.4s ease-in-out;
}

.step-title {
    color: #0063ff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.step-desc {
    color: #fff;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 45px;
    flex-shrink: 0;
    width: 40px;
}

.connector-line {
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #0063ff 0%, #ffffff33 100%);
    position: relative;
    overflow: hidden;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #0063ff, transparent);
    animation: lineFlow 2s linear infinite;
    transform: translateX(-100%);
}

@keyframes lineFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .process-step {
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
    }

    .step-connector {
        padding-top: 0;
        width: 2px;
        height: 40px;
        flex-direction: column;
    }

    .connector-line {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, #0063ff 0%, #ffffff33 100%);
    }

    .connector-line::after {
        background: linear-gradient(180deg, transparent, #0063ff, transparent);
        animation: lineFlowV 2s linear infinite;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        transform: translateY(-100%);
    }

    @keyframes lineFlowV {
        0% { transform: translateY(-100%); }
        100% { transform: translateY(100%); }
    }

    .sec-process-steps .section-title.light {
        font-size: 1.4rem;
    }
}

/* === SEC 8: FAQ === */
.sec-faq {
    background: #fff;
}
.faq-section-container {
    display: flex;
    gap: 50px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}
.faq-section-header {
    flex: 1;
    min-width: 300px;
}
.faq-section-header .tag {
    color: #0063ff;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 10px;
}
.faq-section-header .title {
    color: #000;
    font-size: 48px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: -1.44px;
    margin-bottom: 20px;
}
.faq-section-header .description {
    color: #000;
    font-size: 20px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -1.2px;
}
.faq-list-container {
    flex: 1.5;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-question {
    display: flex;
    align-items: center;
    padding: 22px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}
.faq-question .q-icon {
    font-weight: bold;
    margin-right: 15px;
    font-size: 2.1rem;
    font-family: 'Poppins', sans-serif;
}
.faq-question .text {
    flex-grow: 1;
    font-size: 20px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -1.3px;
}
.faq-question .arrow {
    width: 9px;
    height: 9px;
    border-right: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(45deg);
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 22px;
    line-height: 1.6;
}
.faq-answer p {
    padding: 22px;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: -1.3px;
}
/* Odd items: white background */
.faq-item:nth-child(odd) {
    border: 1px solid #dce2e8;
    background: #fff;
}
.faq-item:nth-child(odd):hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.faq-item:nth-child(odd) .q-icon {
    color: #0063ff;
}
.faq-item:nth-child(odd) .text {
    color: #333;
}
.faq-item:nth-child(odd) .arrow {
    border-color: #0063ff;
}
.faq-item:nth-child(odd) .faq-answer {
    color: #555;
    background: #fafafa;
}
/* Even items: blue background */
.faq-item:nth-child(even) {
    border: 1px solid #0063ff;
    background: #0063ff;
}
.faq-item:nth-child(even):hover {
    box-shadow: 0 4px 15px rgba(0, 99, 255, 0.3);
}
.faq-item:nth-child(even) .q-icon,
.faq-item:nth-child(even) .text,
.faq-item:nth-child(even) .arrow {
    color: #fff;
    border-color: #fff;
}
.faq-item:nth-child(even) .faq-answer {
    color: #555;
    background: #fff;
}
/* Active state */
.faq-item.active .arrow {
    transform: rotate(-135deg);
}
.faq-item.active .faq-answer {
    max-height: 300px;
}

/* === SEC 9: Contact Form === */
.sec-contact {
    background: #0d0d0d;
}
/* Contact 2-column layout */
.contact-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.contact-intro {
    flex: 5;
    padding-top: 40px;
}
.contact-form-wrap {
    flex: 6;
    max-width: 600px;
}
/* Dynamic title section */
.dynamic-title-section-wrapper {
    color: #fff;
    margin-bottom: 50px;
}
.dynamic-main-title {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -2px;
}
.dynamic-highlight-text {
    color: #0063ff;
    transition: opacity 0.3s ease-in-out;
    display: inline-block;
}
.dynamic-description {
    font-size: 1.4rem;
    color: #b0b0b0;
    margin: 25px 0 0;
    line-height: 1.7;
    letter-spacing: -1.5px;
}
/* Kakao consult button */
.kakao-consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FEE500;
    color: #3C1E1E;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    animation: float 3.5s ease-in-out infinite;
}
.kakao-consult-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(254,229,0,0.3);
}
.kakao-icon { font-size: 1.3rem; }
/* Resource CTA */
.resource-btn {
    display: block;
    margin-top: 16px;
    width: fit-content;
    padding: 12px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.resource-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-2px);
}
/* Policy Modal */
.policy-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.policy-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    color: #ddd;
}
.policy-modal-content h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 24px;
}
.policy-modal-content h3 {
    font-size: 1rem;
    color: #fff;
    margin: 20px 0 8px;
}
.policy-body p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #aaa;
    margin-bottom: 12px;
}
.policy-modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}
.policy-modal-close:hover { color: #fff; }
/* File upload */
.form-file-wrap {
    margin-top: 15px;
}
.form-file-wrap .file-label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-bottom: 8px !important;
}
.file-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.file-upload-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #0063ff;
}
.file-upload-btn input[type="file"] {
    display: none;
}
.file-name-display {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-left: 10px;
}
/* Process step active animation */
.process-step.active {
    transform: scale(1.1);
}
.process-step.active .step-icon {
    background: #0063ff;
    border-color: #0063ff;
    box-shadow: 0 0 25px rgba(0,99,255,0.5);
}
.process-step.active .step-title {
    text-shadow: 0 0 10px rgba(0,98,255,0.58);
}
.process-step.active .step-desc {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
    .contact-intro { padding-top: 0; }
    .kakao-consult-btn { margin-top: 20px; }
    .resource-btn { font-size: 0.9rem; padding: 10px 16px; }
    .dynamic-main-title { font-size: 1.92rem; }
    .dynamic-description { font-size: 0.95rem; }
    .process-step.active { transform: scale(1.05); }
    .form-step-title { text-align: center; }
}
.form-step {
    display: none;
}
.form-step.active {
    display: block;
}
.form-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #0063ff;
    border-radius: 2px;
    transition: width 0.5s;
}
.progress-text {
    color: rgba(255,255,255,0.5);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}
.form-group label {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}
.form-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.option-item {
    cursor: pointer;
}
.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    display: none;
}
.option-item span {
    display: block;
    padding: 18px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
}
.option-item input:checked + span,
.option-item:hover span {
    background: rgba(0,99,255,0.15);
    border-color: #0063ff;
    color: #fff;
}
.form-input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}
.form-input:focus {
    border-color: #0063ff;
}
.form-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.form-textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    min-height: 150px;
    resize: vertical;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}
.form-textarea:focus {
    border-color: #0063ff;
}
.form-textarea::placeholder {
    color: rgba(255,255,255,0.4);
}
.form-agree {
    margin-bottom: 20px;
}
.form-agree label {
    font-size: 14px !important;
    color: rgba(255,255,255,0.6) !important;
    font-weight: 400 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.form-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0063ff;
}
.form-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.btn-next, .btn-submit {
    flex: 1;
    padding: 18px;
    background: #0063ff;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}
.btn-next:hover, .btn-submit:hover {
    background: #0053d6;
}
.btn-prev {
    flex: 0 0 100px;
    padding: 18px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-prev:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* === FOOTER === */
.footer {
    background: #0d0d0d;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.footer-logo img {
    height: 150px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}
.footer-sns {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-sns span {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
.sns-link {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}
.sns-link:hover {
    color: #0063ff;
}
.footer-info {
    margin-bottom: 40px;
}
.footer-info p {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    line-height: 1.8;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #fff;
}
.copyright {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
}

/* === Page Load Sequence === */
body.loading .cursor-dot,
body.loading .cursor-ring { opacity: 0 !important; }
body.loading #header { transform: translateY(-100%); }
body.loading .hero-slide-content { opacity: 0; }
body.loading .scroll-indicator { opacity: 0; }
body.loading .kakao-float-btn { transform: translateY(100px); opacity: 0; }

#header {
    transition: all 0.3s, transform 0.8s var(--ease-out-expo);
}
.hero-slide-content {
    transition: opacity 0.8s var(--ease-out-quart);
}
.scroll-indicator {
    transition: opacity 0.6s var(--ease-out-quart) 1.2s;
}
.kakao-float-btn {
    transition: background 0.2s, transform 0.8s var(--ease-out-expo), opacity 0.6s var(--ease-out-quart);
}

/* === Hero Title Clip-Reveal Enhancement === */
.hero-title-line {
    overflow: hidden;
}
.hero-title-line .slide-anim {
    transform: translateY(110%);
    opacity: 1;
}
.swiper-slide-active .hero-title-line .slide-anim {
    transform: translateY(0);
    opacity: 1;
    transition: transform 1s var(--ease-out-expo);
}

/* === Parallax Scroll Depth === */
.section[data-parallax] {
    will-change: transform;
}
.parallax-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* === Enhanced Hover States === */
.diff-card-v2 {
    transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart);
}
.diff-card-v2:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,99,255,0.35);
}
.service-card-v2 {
    transition: transform 0.5s var(--ease-out-quart), box-shadow 0.5s var(--ease-out-quart);
}
.service-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.portfolio-item {
    transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart);
    overflow: hidden;
    border-radius: 8px;
}
.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.15);
}
.portfolio-item img {
    transition: transform 0.6s var(--ease-out-quart), opacity 0.6s var(--ease-out-quart);
}
.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Button Ripple Effect */
.btn-estimate,
.review-more-btn,
.btn-next,
.btn-prev {
    position: relative;
    overflow: hidden;
}
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* FAQ Arrow Bounce */
.faq-question .arrow {
    transition: transform 0.4s var(--ease-out-expo);
}
.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
}

/* Client Logo Hover - handled in main section */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0063ff, #00b4ff);
    z-index: 10001;
    transform-origin: left;
    transform: scaleX(0);
    transition: none;
}

/* === Mouse Follower Cursor === */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s, width 0.3s var(--ease-out-quart), height 0.3s var(--ease-out-quart);
}
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s, width 0.4s var(--ease-out-quart), height 0.4s var(--ease-out-quart), border-color 0.3s;
}
.cursor-dot.active, .cursor-ring.active {
    opacity: 1;
}
.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(255,255,255,0.9);
}
.cursor-dot.hover {
    width: 4px;
    height: 4px;
}
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* === Portfolio Horizontal Slider (원본 gallery2 스타일) === */
.sec-portfolio {
    background: #fff;
}
.sec-portfolio .section-header {
    margin-bottom: 80px;
}
.portfolio-slider-wrap {
    width: 100%;
    overflow: hidden;
}
.portfolio-slider {
    width: 100%;
    padding-bottom: 10px;
}
.portfolio-slider .swiper-wrapper {
    cursor: grab;
}
.portfolio-slider .swiper-wrapper:active {
    cursor: grabbing;
}
.portfolio-slide {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}
.portfolio-slide-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease-out-quart);
}
.portfolio-slide:hover .portfolio-slide-img {
    transform: scale(1.06);
}
.portfolio-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
}
.portfolio-slide:hover .portfolio-slide-caption {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-slide-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.portfolio-slide-desc {
    font-size: 13px;
    opacity: 0.8;
}
.portfolio-more {
    text-align: center;
}
.btn-more {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid #ddd;
    border-radius: 9px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s var(--ease-out-quart);
}
.btn-more:hover {
    border-color: #0063ff;
    color: #0063ff;
}

/* === Clip-path Portfolio Reveals === */
.portfolio-item.clip-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s var(--ease-out-quart);
}
.portfolio-item.clip-reveal.visible {
    clip-path: inset(0);
}
.portfolio-item.clip-reveal:nth-child(even) {
    clip-path: inset(0 100% 0 0);
}
.portfolio-item.clip-reveal:nth-child(even).visible {
    clip-path: inset(0);
}

/* === Image Load Transitions === */
.service-card-bg,
.portfolio-item img,
.client-logo-item img {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}
.service-card-bg.img-loaded,
.portfolio-item img.img-loaded,
.client-logo-item img.img-loaded {
    opacity: 1;
    transform: none;
}

/* === Text Split Stagger === */
.text-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-quart), transform 0.5s var(--ease-out-quart);
}
.text-animate.visible {
    opacity: 1;
    transform: none;
}

/* === Process Step Cycling === */
.process-step {
    transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}
.process-steps-line.cycling .process-step {
    opacity: 0.4;
    transform: scale(0.95);
}
.process-steps-line.cycling .process-step.active {
    opacity: 1;
    transform: scale(1.05);
}
.step-progress {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background: #0063ff;
    border-radius: 2px;
}
.process-step.active .step-progress {
    animation: stepProgress 2.3s linear forwards;
}
@keyframes stepProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* === KakaoTalk Evidence Gallery === */
.kakao-evidence {
    margin-top: 50px;
}
.evidence-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.evidence-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: rgba(255,255,255,0.1);
}
.evidence-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.4s var(--ease-out-quart);
}
.evidence-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* === Nav Link Underline Animation === */
.desktop-nav ul li a {
    position: relative;
}
.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    height: 2px;
    background: #0063ff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-quart);
}
.desktop-nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
    .portfolio-item.clip-reveal {
        clip-path: none !important;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 991px) {
    .section { padding: 100px 0; }
    .section-title { font-size: 38px; }
    .hero-text h1 { font-size: 52px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .process-layout { gap: 40px; }
    .process-left { flex: 0 0 45%; }
    .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-layout-v2 { flex-direction: column; }
    .diff-left-v2 { flex: none; width: 100%; }
    .physics-container { width: 100%; }
    .reviews-layout { flex-direction: column; gap: 40px; }
    .reviews-left { flex: none; width: 100%; }
    .services-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .faq-section-container { flex-direction: column; gap: 30px; }
    .faq-section-header { min-width: auto; }
    .faq-section-header .title { font-size: 36px; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .header-inner { height: 90px; padding: 0 20px; }
    .logo img { height: 110px; }
    .btn-estimate { display: none; }
    .mobile-menu { padding-top: 90px; }

    .hero { height: 560px; }
    .hero-title-line { font-size: 32px; }
    .hero-subtitle { font-size: 14px; }
    .hero-subtitle-area { margin-top: 16px; }
    .hero-slide-content { padding-left: 20px; padding-bottom: 60px; }
    .scroll-indicator { display: none; }

    .section { padding: 80px 0; }
    .container { padding: 0 20px; }
    .section-title { font-size: 30px; letter-spacing: -1px; }
    .section-label { font-size: 12px; margin-bottom: 12px; }
    .sub-desc { font-size: 15px; }

    .sec-revision { padding-top: 110px; padding-bottom: 50px; }
    .revision-content { flex-direction: column; gap: 20px; align-items: stretch; }
    .revision-text { margin-bottom: 20px; }
    .revision-badge { width: 90px; height: 90px; margin: 30px auto 0; transform: none !important; }
    .badge-text { font-size: 16px; }
    .revision-text { text-align: left; }

    .process-layout { flex-direction: column; gap: 30px; }
    .process-left { flex: none; }
    .process-left .section-title.light { font-size: 28px; }
    .workline-table thead th { font-size: 12px; padding: 10px 12px; }
    .workline-table tbody td { font-size: 13px; padding: 12px; }
    .client-logo-grid { grid-template-columns: 1fr; }
    .client-logo-item img { max-width: 90px; max-height: 36px; }

    .faq-section-container { flex-direction: column; gap: 25px; }
    .faq-section-header .tag { font-size: 24px; }
    .faq-section-header .title { font-size: 28px; }
    .faq-section-header .description { font-size: 16px; line-height: 30px; }
    .faq-question .text { font-size: 16px; line-height: 28px; }
    .faq-question .q-icon { font-size: 1.6rem; }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .portfolio-item { aspect-ratio: 1; }

    .services-grid { grid-template-columns: 1fr; gap: 15px; }
    .service-card { padding: 30px 25px; display: flex; align-items: center; gap: 20px; text-align: left; }
    .service-icon { width: 50px; height: 50px; margin: 0; flex-shrink: 0; }
    .service-card h4 { font-size: 17px; margin-bottom: 5px; }
    .service-card p { font-size: 14px; }

    .faq-question p { font-size: 15px; }
    .faq-answer p { font-size: 14px; padding-left: 35px; }

    .diff-layout-v2 { flex-direction: column; gap: 30px; }
    .diff-left-v2 { flex: none; width: 100%; text-align: center; }
    .physics-container { width: 100%; height: 280px; }
    .diff-cards-grid { grid-template-columns: 1fr; }
    .diff-card-inner { padding: 24px 22px 22px; }
    .reviews-layout { flex-direction: column; gap: 30px; }
    .reviews-left { flex: none; width: 100%; }
    .reviews-left .section-title { font-size: 26px; }
    .reviews-right { flex: none; width: 100%; min-height: 200px; }
    .sec-reviews { padding: 60px 0; }
    .services-grid-v2 { grid-template-columns: 1fr; }
    .service-card-v2 { aspect-ratio: 16/9; }
    .process-steps-line::before { display: none; }
    .kakao-float-btn { padding: 12px 20px; font-size: 14px; bottom: 20px; right: 20px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 36px; }
    .case-highlights { grid-template-columns: repeat(2, 1fr); }
    .case-metric { font-size: 24px; }
    .evidence-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-card-text { font-size: 18px; }
    .diff-emoji { position: static; margin-bottom: 12px; }
    .diff-emoji img { width: 60px; height: 60px; }
    .diff-tags-v2 { justify-content: center; }

    .form-options { grid-template-columns: 1fr; }
    .contact-form-wrap { width: 100%; }
    .kakao-consult-btn { display: flex; justify-content: center; }

    .footer-top { flex-direction: column; gap: 20px; align-items: flex-start; }
    .footer-bottom { flex-direction: column; gap: 15px; align-items: flex-start; }
}
