@charset "UTF-8";

/* hero 배경만 정의 — hero-body는 components.css */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../../image/rnd/development/background.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

/* ══════════════ FULL-BLEED CONTENT SECTIONS ══════════════
   각 섹션: 배경이미지 전체화면 + 50% 어둠 오버레이
══════════════════════════════════════════════════════════ */
.content-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.5vw, 40px);
    padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 60px);
}
.content-section::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,.50);
    z-index: 0;
}
.content-section > * { position: relative; z-index: 1; }

.cs-1 { background-image: url('../../image/rnd/development/autonomousBackground.jpg'); }
.cs-2 { background-image: url('../../image/rnd/development/developmentBackground.jpg'); }
.cs-3 { background-image: url('../../image/rnd/development/busBackground.jpg'); }

/* ── 섹션 하단 제목+설명 블록 ── */
.sec-intro {
    width: min(1550px, 92%);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.2vw, 20px);
}
.sec-intro h2 {
    color: white;
    font-size: clamp(28px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.2;
}
.sec-intro p {
    color: rgba(255,255,255,.75);
    font-size: clamp(14px, 1.4vw, 24px);
    font-weight: 500;
    line-height: 1.6;
    max-width: 1475px;
}

/* ── 주요기술 원형 아이콘 ── */
.tech-wrap {
    width: min(1550px, 92%);
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 48px);
}
.tech-label {
    color: white;
    font-size: clamp(20px, 2.2vw, 36px);
    font-weight: 700;
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(12px, 2vw, 32px);
}
.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1.2vw, 16px);
}
.tech-circle {
    width: clamp(80px, 9vw, 160px);
    height: clamp(80px, 9vw, 160px);
    border-radius: 50%;
    background: rgba(255,255,255,.70);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: background .25s ease, transform .25s ease;
}
.tech-circle:hover {
    background: rgba(144,0,206,.35);
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(144,0,206,.22), 0 0 28px rgba(144,0,206,.30);
}
.tech-circle img { width: 62%; height: 62%; object-fit: contain; }
.tech-name {
    text-align: center;
    color: white;
    font-family: 'Nanum Square', sans-serif;
    font-size: clamp(11px, 0.9vw, 16px);
    font-weight: 600;
    line-height: 1.4;
}

/* ── 구축사례 카드 2×2 그리드 ── */
.case-grid {
    width: min(1550px, 92%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.5vw, 20px);
}
.case-card {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.case-card.visible:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(0,0,0,.25);
}
.case-card img {
    width: 100%;
    height: clamp(130px, 14vw, 220px);
    object-fit: cover;
}
.case-card-body {
    padding: clamp(14px, 1.5vw, 20px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: center;
}
.case-card-title {
    font-size: clamp(14px, 1.2vw, 20px);
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    text-align: center;
}
.case-card-desc {
    font-size: clamp(12px, 0.9vw, 15px);
    font-weight: 500;
    color: rgba(0,0,0,.55);
    line-height: 1.55;
}

.case-card,
.tech-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease;
}
.case-card.visible,
.tech-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .tech-circle {
        width: clamp(70px, 10vw, 130px);
        height: clamp(70px, 10vw, 130px);
    }
    .tech-name { font-size: clamp(12px, 1.3vw, 22px); }
}
@media (max-width: 768px) {
    .content-section { background-attachment: scroll; }
}
@media (max-width: 480px) {
    .case-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
