/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-h: 60px;
    --red:   #FF0000;
    --black: #0f0f0f;
    --bg:    #ffffff;
    --g100:  #f5f5f5;
    --g200:  #e8e8e8;
    --g400:  #aaaaaa;
    --text:  #0f0f0f;
    --muted: #606060;
    --ease:  cubic-bezier(0.4, 0, 0.2, 1);
    --font:  'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    height: var(--nav-h);
    background: #fff;
    border-bottom: 1px solid var(--g200);
    transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled {
    box-shadow: 0 1px 16px rgba(0,0,0,0.07);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.logo-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-transform: uppercase;
    padding-bottom: 3px;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    border-radius: 2px;
    transition: width 0.28s var(--ease);
}
.nav-link:hover          { color: var(--text); }
.nav-link.active         { color: var(--red);  }
.nav-link:hover::after,
.nav-link.active::after  { width: 100%; }

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
}
.hamburger span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.28s var(--ease);
}
.hamburger.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg);  }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================
   SECTION BASE — 모두 표시 (스크롤 방식)
   ========================================= */
.section {
    display: block;
    width: 100%;
}

/* =========================================
   ABOUT
   ========================================= */
.section-about {
    display: flex;
    flex-direction: column;
    background: var(--black);
}

/* ── 영상 블록: 첫 화면 꽉 채움 ── */
.video-block {
    width: 100%;
    height: 100vh;
    margin-top: var(--nav-h);
    /* 첫 섹션만 nav-h 만큼 내려줌 */
    margin-top: 0;
    padding-top: var(--nav-h);
    background: #000;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}
.video-block iframe {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100% - var(--nav-h));
    border: none;
    display: block;
}

/* ── 소개 이미지 세로 배치 ── */
.about-images {
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-img-item {
    line-height: 0;
    padding: 40px 0;
}

.about-img-item img {
    display: block;
    width: 942px;
    height: auto;
    max-width: 100%;
}

/* ── 회사 정보 ── */
.company-info {
    width: 100%;
    background: #fff;
    padding: 60px 48px;
    border-top: 1px solid var(--g200);
}

.company-info-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-info p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.info-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.03em;
}

/* =========================================
   SERVICE
   ========================================= */
.section-service {
    background: #fff;
    /* 네브바 높이만큼 scroll-margin 설정 (anchor 이동 시 가려지지 않게) */
    scroll-margin-top: var(--nav-h);
}

.service-img-wrap {
    line-height: 0;
    display: flex;
    justify-content: center;
    padding: 80px 0 60px;
}

.service-img-wrap img {
    display: block;
    width: 1100px;
    height: auto;
    max-width: 100%;
}

/* =========================================
   PORTFOLIO
   ========================================= */
.section-portfolio {
    background: #fff;
    scroll-margin-top: var(--nav-h);
}

/* 세로 리스트 */
.pf-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0 80px;
    gap: 48px;
}

/* 개별 아이템 */
.pf-item {
    display: block;
    text-decoration: none;
    line-height: 0;
}

/* 이미지 래퍼 */
.pf-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* 호버: 살짝 축소 */
.pf-item:hover .pf-img-wrap {
    transform: scale(0.97);
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

/* 이미지 원본 사이즈 */
.pf-img-wrap img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100vw;
}

/* 호버 오버레이 */
.pf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.28s var(--ease);
}
.pf-item:hover .pf-overlay {
    opacity: 1;
}
.pf-overlay i {
    font-size: 4rem;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    transition: transform 0.25s var(--ease);
}
.pf-item:hover .pf-overlay i {
    transform: scale(1.1);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    width: 100%;
    background: #fff;
    padding: 60px 48px;
    border-top: 1px solid var(--g200);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-inner p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .site-footer { padding: 48px 20px; }
    .footer-inner p { font-size: 0.95rem; }
}

/* =========================================
   섹션 구분선
   ========================================= */
.section-service,
.section-portfolio {
    border-top: 1px solid var(--g200);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-container { padding: 0 20px; }

    .nav-menu {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.36s var(--ease);
        border-bottom: 1px solid var(--g200);
        z-index: 800;
    }
    .nav-menu.open { max-height: 180px; }

    .nav-link {
        width: 100%; text-align: center;
        padding: 18px; font-size: 0.68rem;
        border-bottom: 1px solid var(--g200);
    }
    .nav-link::after { display: none; }
    .hamburger { display: flex; }

    .company-info { padding: 48px 20px; }
    .company-info p { font-size: 0.95rem; }
    .info-label { font-size: 0.95rem; }

    .service-img-wrap { padding: 40px 0; }
    .pf-list { padding: 40px 16px 60px; gap: 32px; }
}

@media (max-width: 480px) {
    .pf-list { padding: 30px 10px 50px; gap: 24px; }
}
