@charset "UTF-8";

/* ========================================================
   1. 기본 초기화 및 폰트 설정
   ======================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    background-color: #0f172a; /* 쨍한 백색 대신 묵직한 다크 슬레이트 블루 */
    color: #94a3b8; /* 부드러운 연회색 글씨로 눈 피로도 감소 */
}

/* ========================================================
   2. 전체 레이아웃 (Flex 좌우 분할 시스템)
   ======================================================== */
section {
    display: flex;
    height: 100dvh;
    overflow: hidden;
}

/* ========================================================
   Navigation
   ======================================================== */
nav {
    display: flex;
    flex-direction: column;
    width: 35%;
    height: 100%;
    padding: 100px 4% 60px 16%;
/*    padding: 100px 5% 60px 15%;*/
    background: #090d16;
    border-right: 1px solid rgba(255,255,255,.03);
    flex-shrink: 0;
}

    /* Name */
    nav h1 {
        margin: 0 0 8px;
        font-size: 1.8rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -.5px;
        color: #f8fafc;
    }

    nav h4 {
        margin: 0;
        font-size: .85rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #38bdf8;
    }

    /* Navigation Menu */
    nav ul {
        list-style: none;
        margin: 64px 0 0; /* 💡 하단 마진을 지우고 spacer가 밀어내도록 수정 */
        padding: 0;
    }

        nav ul li + li {
            margin-top: 20px;
        }

        nav ul li a {
            display: inline-block;
            color: #64748b;
            text-decoration: none;
            font-size: .9rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            transition: color .25s ease, transform .25s ease;
        }

            nav ul li a:hover {
                color: #f8fafc;
                transform: translateX(4px);
            }

/* 💡 빈 공간을 만들어 상단 메뉴와 하단 요소를 확실하게 분리 */
.nav-spacer {
    flex: 1;
    min-height: 40px; /* 스페이스 최소 높이 지정 */
}

/* Resume */
.resume-button {
    display: inline-flex;
    align-items: center; /* 💡 아이콘 세로 축 중앙 정렬 */
    gap: 6px; /* 💡 글자와 아이콘 사이의 최적의 간격 조정 */
    width: fit-content;
    color: #94a3b8;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color .25s ease, transform .25s ease;
    margin-bottom: 24px; /* 💡 하단 소셜 아이콘들과의 명확한 세로 간격 확보 */
}

    /* 💡 Font Awesome 아이콘의 미세한 위 쏠림 현상 정교하게 교정 */
    .resume-button i {
        display: inline-block;
        font-size: 0.8rem; /* 대문자 크기 서식 밸런스를 위해 소폭 축소 */
        transform: translateY(0.5px); /* 미세한 수평 오차 보정 */
    }

    .resume-button:hover {
        color: #38bdf8;
        transform: translateX(4px);
    }

/* Contact */
.contact-info {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 0; /* 💡 상단 마진을 지우고 버튼의 마진값으로 제어 */
}

    .contact-info a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 1.35rem;
        text-decoration: none;
        transition: color .25s ease, transform .25s ease;
    }

        .contact-info a:hover {
            color: #38bdf8;
            transform: translateY(-2px);
        }

/* 우측 콘텐츠 영역 */
article {
    padding-top: 100px;
    padding-left: 60px;
    padding-right: 15%;
    width: 70%;
    height: 100%;
    background-color: #0f172a; /* 본문 스크롤 영역 메인 톤 */
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* 본문 문단 타이포그래피 */
p {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 2.2em;
    min-width: 500px;
    max-width: 720px;
    color: #94a3b8; /* 텍스트 가독성을 확보하는 은은한 그레이 */
    word-break: keep-all; /* 영문 단어가 중간에 쪼개져서 줄바꿈되는 것을 방지 */
}

    /* 볼드 텍스트 포인트 튜닝 */
    p strong {
        color: #38bdf8; /* 일반 검은색 볼드 대신, 핵심 스택을 블루 네온으로 강조 */
        font-weight: 700;
        word-break: keep-all; /* 영문 단어가 중간에 쪼개져서 줄바꿈되는 것을 방지 */
    }

/* ========================================================
   3. Projects 섹션 (다크 테마 전용 카드 레이아웃)
   ======================================================== */
.outer {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05); /* 쨍한 선 대신 은은한 다크 보더 */
    background: #1e293b; /* 프로젝트 카드는 배경보다 살짝 밝은 차콜로 분리 */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 30px;
    min-width: 500px;
    max-width: 720px;
}

    /* 호버 시 네온 보더가 켜지며 부드럽게 반응하는 효과 */
    .outer:hover {
        transform: translateY(-5px);
        border-color: rgba(56, 189, 248, 0.4); /* 호버 시 네온 블루 테두리 점등 */
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    }

.image {
    flex: 0 0 200px;
    margin: 15px;
    /*background: #0f172a;*/ /* 이미지 수납 박스는 한 톤 다운 */
    border-radius: 6px;
    display: flex;
    align-items: center;
/*    justify-content: center;*/
}

    .image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border: 1px solid rgba(255, 255, 255, 0.03);
        border-radius: 4px;
    }

.inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 20px 5px;
}

.box {
    margin-bottom: 12px;
}

.title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #f8fafc; /* 프로젝트 제목 화이트로 강조 */
    margin-bottom: 6px;
}

img {
    max-width: 100%;
    height: auto;
}

/* 스킬 스택 컨테이너 및 태그 칩 */
.skill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.skillstack {
    display: inline-block;
    background: rgba(56, 189, 248, 0.08); /* 네온 블루 베이스의 투명 칩 스타일 */
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8; /* 텍스트 포인트 컬러와 통일 */
    border: 1px solid rgba(56, 189, 248, 0.15);
    white-space: nowrap;
}

/* View More 버튼 컨테이너 */
.view-more-container {
    text-align: left;
    margin-top: 12px;
    margin-bottom: 50px;
    width: 100%;
    min-width: 500px;
    max-width: 720px;
    box-sizing: border-box;
}

/* 화살표 없이 정중앙에 정갈하게 배치되는 유리 질감 버튼 */
.view-more-button {
    display: flex;
    justify-content: center; /* 글자만 완벽하게 정중앙에 배치 */
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 24px;
    font-size: 1.02rem;
    font-weight: 600;
    color: #cbd5e1; /* 밝고 선명한 실버 화이트 */
    text-decoration: none;
    letter-spacing: 0.04em; /* 자간을 미세하게 넓혀 텍스트 단독 가독성 향상 */

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    /* 호버 시 부드러운 전환 효과 */
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

    /* 🔥 마우스 올렸을 때(Hover) 효과 (수평 이동 제거, 깔끔하게 수직 업 💡) */
    .view-more-button:hover {
        color: #38bdf8; /* 네온 스카이블루 */
        background: rgba(56, 189, 248, 0.06);
        border-color: rgba(56, 189, 248, 0.4);
        /* 화살표가 없으므로 오른쪽 이동(translateX) 대신 위로만 4px 부드럽게 상승 */
        transform: translateY(-4px);
    }



/* ========================================================
   4. Experience 및 기타 섹션 공통 세팅
   ======================================================== */
.content-section {
    padding-top: 100px;
    margin-top: -100px;
    margin-bottom: 100px;
}

article h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f8fafc;
    line-height: 1.1;
    margin-top: 0 !important;
    margin-bottom: 35px;
}


/* ========================================================
   5. 반응형 웹 디자인 (모바일 대응 최적화)
   ======================================================== */
@media (max-width: 750px) {
    section {
        display: block;
        height: auto;
        overflow: visible;
    }

    nav {
        width: 100%;
        height: auto;
        padding: 60px 40px 40px 40px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* 💡 모바일 화면에서는 세로 정렬(flex:1) 기능이 불필요하므로 숨김 처리 */
    .nav-spacer {
        display: none;
    }

    /* 💡 모바일 환경에서 줄바꿈 후 아래 여백 추가 */
    .resume-button {
        margin-top: 40px;
        margin-bottom: 24px;
    }

    /* 모바일 환경에서 아이콘 영역 상단 여백 확보 및 바닥 패딩 초기화 */
    .contact-info {
        margin-top: 0;
        padding-bottom: 0;
    }

    article {
        width: 100%;
        padding: 60px 40px;
    }

    .content-section {
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 60px;
    }

    p, .outer, .about-headline {
        min-width: 100%;
        max-width: 100%;
    }

    .outer {
        display: flex;
        flex-direction: column;
    }

    .image {
        margin: 20px auto 10px auto;
        flex: 0 0 auto;
        width: calc(100% - 40px);
        height: 180px;
    }

    .inner {
        padding: 20px;
    }
}

/* ========================================================
   5. Projects Archive - Card Version (일체형 아카이브 레이아웃)
   ======================================================== */
.archive-card-body {
    background-color: #0f172a; /* 메인과 동일한 딥 다크 네이비 */
    margin: 0;
    padding: 0;
}

/* 메인페이지의 콘텐츠 정렬선에 대응하는 중앙 가이드 정렬 박스 */
.archive-card-wrapper {
    max-width: 720px; /* 기존 카드 최대 폭인 720px과 정확히 일치시켜 일체감 확보 💡 */
    margin: 0 auto;
    padding: 80px 20px;
}

.archive-card-header {
    margin-bottom: 48px;
}

/* 상단 메인으로 돌아가는 링크 버튼 디자인 (project4 감성 동기화 💡) */
.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* 화살표와 텍스트 사이 간격 */

    font-size: 1.02rem; /* 본문 프로젝트 링크와 크기 밸런스 일치 */
    font-weight: 600;
    color: #94a3b8; /* 평소에는 차분한 그레이시 블루 */
    text-decoration: none; /* 밑줄 해제 */
    letter-spacing: 0.02em;
    /* 호버 시 쫀득하고 부드럽게 왼쪽으로 밀리도록 타이밍 함수 설정 */
    transition: color 0.2s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

    /* 🔥 마우스 올렸을 때(Hover) 인터랙션 효과 */
    .back-home-link:hover {
        color: #38bdf8; /* 메인 테마 색상인 네온 스카이블루 점등 */
        transform: translateX(-6px); /* [핵심] 뒤로가기 흐름에 맞춰 왼쪽으로 스르륵 6px 이동 */
    }

    /* 굵고 선명한 화살표 아이콘 애니메이션 제어 */
    .back-home-link i {
        font-size: 1rem;
        color: #64748b; /* 평소 화살표는 글자보다 한 톤 차분하게 다운 */
        transition: color 0.2s ease, transform 0.25s ease;
    }

    /* 호버 시 화살표만 왼쪽으로 살짝 더 튕기는 디테일 */
    .back-home-link:hover i {
        color: #38bdf8;
        transform: translateX(-2px); /* 글자가 밀릴 때 화살표 끝이 2px 더 시원하게 전진 */
    }


.archive-card-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin-top: 16px;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.archive-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

.archive-card-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 카드 상단에 노출될 연도 및 소속 정보 태그 */
.archive-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

/* 이미지가 아직 준비되지 않은 프로젝트 카드를 위한 세련된 다크 솔리드 썸네일 박스 */
.image-placeholder {
    width: 100%;
    height: 110px; /* 메인 이미지 비율과 밸런스 매칭 */
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* 모바일 반응형 조율 */
@media (max-width: 768px) {
    .archive-card-wrapper {
        padding: 40px 16px;
    }

    .archive-card-header h1 {
        font-size: 2rem;
    }
}
