/* 최신 모던 디자인 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1f3a5f;          /* 신뢰감 있는 네이비 */
    --primary-rgb: 31, 58, 95;    /* rgba 사용을 위한 RGB */
    --accent: #5b7a99;            /* 보조 색상 (차분한 블루그레이) */
    --on-primary: #ffffff;
    --text: #1f2937;
    --muted: #4b5563;
    --bg: #f7fafc;
    --surface: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

header {
    background: #ffffff;
    color: var(--text);
    padding: 0.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    color: var(--text);
    cursor: pointer;
}

.logo {
    width: 72px;
    height: auto;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li {
    display: inline;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--text);
    text-decoration: none;
}



main {
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 80vh;
}

section {
    margin: 0;
    background: #ffffff;
    padding: 4rem 3rem;
    display: block;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

section h2 {
    color: #000000;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    letter-spacing: -0.02em;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

section h3 {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

ul li {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.1rem;
    color: #4a5568;
    transition: color 0.3s ease;
}

ul li:hover {
    color: #000000;
}

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

a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

footer {
    background: var(--primary);
    color: var(--on-primary);
    text-align: center;
    padding: 2rem 3rem;
    margin-top: 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

/* 기존 갤러리 그리드는 다른 페이지에서 유지 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

/* 슬라이더 내 이미지 공통 스타일 */
.splide__slide img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }



.hero {
    position: relative;
    min-height: 65vh;
    display: grid;
    align-items: center;
    padding: 5rem 3rem 6rem;
    color: #ffffff;
    background:
      linear-gradient( to bottom right, rgba(var(--primary-rgb),0.55), rgba(var(--primary-rgb),0.35) ),
      url('images/work/YL-01-01.jpg') center/cover no-repeat;
}

/* 하단 페이드로 아래 컨텐츠 존재 시각화 */
.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.15), rgba(0,0,0,0));
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero p.lead {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin: 0 0 2rem;
}

.cta {
    display: flex;
    gap: 1rem;
}

/* 스크롤 유도 버튼 */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.5);
    animation: cue-bounce 1.8s infinite;
}

@keyframes cue-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* 모바일 폴딩 메뉴 */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,0.06); display: none; padding: 0.5rem 1rem; }
  header.menu-open .nav-menu { display: block; }
  nav ul { margin: 0; flex-direction: column; gap: 0; }
  nav a { display: block; padding: 0.75rem 0.5rem; }
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: rgba(var(--primary-rgb),0.9); }

.btn-ghost { background: rgba(255,255,255,0.12); color: #ffffff; }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

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

.card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.card a { color: var(--accent); border-bottom-color: transparent; }
.card a:hover { border-bottom-color: var(--accent); }

.section-lead { color: var(--muted); margin: 0 0 1.25rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { background: #eef2f7; color: #384152; border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; }

.badges-logos { gap: 1rem; }
.badge-logo { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: center; width: 160px; height: 72px; }
/* 로고는 로딩 완료 전까지 숨김 (깨진 아이콘 방지) */
.badge-logo img { max-height: 40px; width: auto; visibility: hidden; filter: grayscale(100%) contrast(1) opacity(0.85); }
.badge-logo img.is-loaded { visibility: visible; }
.badge-logo img.is-loaded:hover { filter: grayscale(0%) opacity(1); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.timeline li { background: var(--surface); border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem 1rem 1rem 1rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.timeline .step { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: 0 0 auto; }
.timeline h3 { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--text); }
.timeline p { margin: 0; color: var(--muted); }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.metric { background: var(--surface); border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem; text-align: center; }
.metric strong { display: block; font-size: 1.8rem; color: var(--primary); line-height: 1; margin-bottom: 0.35rem; }
.metric span { color: var(--muted); font-size: 0.95rem; }

/* 반응형 디자인 */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
        flex-direction: row;
        text-align: left;
    }

    .logo {
        width: 80px;
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    main {
        padding: 0;
        min-height: 70vh;
    }

    section {
        padding: 1.5rem;
        min-height: 70vh;
    }

    section h2 {
        font-size: 1.8rem;
    }

    section h3 {
        font-size: 1.3rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gallery img {
        height: 150px;
    }
}