/* =========================================================
   services03.css
   ========================================================= */

/* ── 히어로 배경 설정 ── */
.s03-hero-bg {
    position: absolute;
    top: -90px;
    right: 0;
    width: 42%;
    height: calc(55vh + 90px);
    background:
        linear-gradient(to right, #0b0b0b 0%, rgba(11,11,11,0.7) 18%, transparent 45%),
        url('/img/3_services/service_1.png') top center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
}

.s03-page .s01-first-view {
    isolation: isolate;
    z-index: 0;
}

.s03-info-container,
.s03-glass-card,
.s03-card-grid-3,
.s03-card-grid-3 .lc-card {
    position: relative;
    z-index: 3;
}

/* ── services01.css 타이포 스타일 복제 ── */
.s01-hero-title {
    background: linear-gradient(90deg, #4a4f58 0%, #8a8d94 4%, #ffffff 11%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: clamp(38px, 5.5vw, 80px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.s01-typing-cursor {
    display: inline-block;
    color: #ffffff;
    font-weight: 200;
    margin-left: 6px;
}

.blinking {
    animation: s01TypingBlink 1s step-end infinite;
}

@keyframes s01TypingBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ── 본문 콘텐츠 영역 ── */
.s03-info-container { 
    padding: 60px 0 120px;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.s03-info-container .lc-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.s03-glass-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 56px 56px;
    min-height: 320px;
    margin-bottom: 36px;
    border-radius: 18px;
    background-color: #0b0b0b;
    border: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s ease;
}
.s03-glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.55) 35%, rgba(255,255,255,0) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
.s03-glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 100%, rgba(232, 50, 50, 0.65) 0%, rgba(220, 38, 38, 0.38) 16%, rgba(190, 30, 30, 0.14) 36%, transparent 58%),
        radial-gradient(circle at 95% 95%, rgba(255, 110, 100, 0.42) 0%, transparent 26%);
    opacity: 0.95;
}

.s03-anim {
    opacity: 0; 
    transform: translateY(36px);
}
.s03-anim.is-visible { 
    opacity: 1; 
    transform: none;
}
.s03-glass-card.s03-anim.is-visible:hover,
.s03-glass-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(232, 50, 50, 0.28),
        0 12px 50px rgba(220, 38, 38, 0.22);
}

.s03-glass-card .lc-section-title { 
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 28px;
    background: linear-gradient(90deg, #4a4f58 0%, #8a8d94 14%, #ffffff 32%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.s03-glass-card .lc-section-desc {
    font-size: clamp(13px, 0.95vw, 14.5px);
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin: 0 0 12px;
    word-break: keep-all;
    max-width: none;
}
.s03-glass-card .lc-section-desc:last-child { margin-bottom: 0; }

.s03-card-grid-3 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px;
    margin-top: 40px;
}

.s03-card-grid-3 .lc-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    padding: 32px 28px;
    border-radius: 16px;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.s03-card-grid-3 .lc-card:hover {
    background: #ea4c38;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.lc-card-title {
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.35;
}

.lc-card-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.78;
    margin: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.s03-card-grid-3 .lc-card:hover .lc-card-title { color: #fff; }
.s03-card-grid-3 .lc-card:hover .lc-card-desc { color: rgba(255,255,255,0.82); }

/* 더 보기 버튼 */
.lc-btn {
    display: inline-block;
    margin-top: auto;
    padding-top: 24px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}
.lc-btn::after {
    content: ' →';
    transition: margin-left 0.2s ease;
}
.lc-btn:hover {
    color: #cccccc;
}
.lc-btn:hover::after {
    margin-left: 6px;
}

/* ── 반응형 처리 ── */
@media (max-width: 1024px) {
    .s03-card-grid-3 { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .s03-hero-bg { width: 100%; }
    .s03-info-container { padding: 40px 20px 80px; }
    .s03-info-container .lc-section-inner { padding: 0; }
    .s03-glass-card { padding: 36px 28px; min-height: 0; border-radius: 14px; }
    .s03-card-grid-3 { grid-template-columns: 1fr; }
}
