/* ================================
   기본 설정
================================ */

:root {
    --background: #0e0f12;
    --surface: #17191e;
    --surface-light: #1d2026;
    --text-primary: #f3f3f1;
    --text-secondary: #a5a7ad;
    --line: #2a2d34;
    --accent: #9a7cff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background);
    color: var(--text-primary);
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

.section {
    width: min(1400px, calc(100% - 96px));
    margin: 0 auto;
    padding: 130px 0;
}


/* ================================
   상단 메뉴
================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 76px;
    padding: 0 48px;

    background-color: rgba(14, 15, 18, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 36px;
}

nav a {
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-primary);
}

nav a::after {
    position: absolute;
    bottom: -10px;
    left: 0;

    width: 0;
    height: 2px;

    background-color: var(--accent);
    content: "";
    transition: width 0.2s ease;
}

nav a:hover::after {
    width: 100%;
}


/* ================================
   Hero
================================ */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;

    min-height: 100vh;
    padding: 150px 6% 80px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 76px 0 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(8, 9, 12, 1) 5%,
            rgba(8, 9, 12, 0.72) 38%,
            rgba(8, 9, 12, 0.12) 75%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-name {
    margin: 0 0 8px;
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.hero h1 {
    margin: 22px 0 12px;
    color: var(--accent);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: 4px;
}

.hero-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(15px, 1.4vw, 19px);
}

.hero-button {
    position: absolute;
    right: 6%;
    bottom: 82px;
    z-index: 2;

    padding: 15px 26px;
    color: var(--accent);
    border: 1px solid var(--accent);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.hero-button:hover {
    color: #101114;
    background-color: var(--accent);
}


/* ================================
   임시 이미지 영역
================================ */

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #777b85;
    background:
        linear-gradient(
            135deg,
            #191c22 0%,
            #232833 50%,
            #17191e 100%
        );
}

.placeholder-image span {
    padding: 12px 18px;
    border: 1px solid #3b3f49;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* ================================
   섹션 제목
================================ */

.section-heading {
    margin-bottom: 42px;
}

.section-heading p {
    margin: 0 0 7px;
    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 3px;
}

.section-heading h2::after {
    display: block;

    width: 50px;
    height: 3px;
    margin-top: 16px;

    background-color: var(--accent);
    content: "";
}


/* ================================
   프로젝트
================================ */

.projects {
    padding-top: 120px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    overflow: hidden;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-info {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;

    min-height: 112px;
    padding: 22px 24px;
}

.project-number {
    align-self: start;
    color: var(--accent);
    font-weight: 800;
}

.project-info h3 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.4;
}

.project-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.project-arrow {
    color: var(--accent);
    font-size: 25px;
}


/* ================================
   About
================================ */

.about {
    border-top: 1px solid var(--line);
}

.about-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 70px;
}

.about-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 210px;
    aspect-ratio: 1;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50%;

    font-size: 54px;
    font-weight: 800;
    letter-spacing: -4px;
}

.about-text {
    max-width: 850px;
}

.about-text h3 {
    margin: 0 0 22px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.35;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 17px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;

    margin: 30px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.skill-list li {
    color: var(--accent);
    font-weight: 700;
}

.document-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.document-downloads .outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    text-align: center;
}

.document-download-disabled {
    color: var(--text-secondary);
    border-color: var(--line);
    cursor: not-allowed;
}


/* ================================
   Resume
================================ */

.resume {
    border-top: 1px solid var(--line);
}

.resume-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding: 48px;
    background-color: var(--surface);
    border: 1px solid var(--line);
}

.resume-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 18px;
}

.outline-button {
    flex-shrink: 0;
    padding: 14px 24px;
    color: var(--accent);
    border: 1px solid var(--accent);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.outline-button:hover {
    color: var(--background);
    background-color: var(--accent);
}


/* ================================
   Contact
================================ */

.contact {
    padding-top: 160px;
    padding-bottom: 160px;
    text-align: center;
}

.contact-label {
    margin: 0;
    color: var(--accent);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
}

.contact h2 {
    margin: 20px 0;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.1;
}

.contact > p:not(.contact-label) {
    color: var(--text-secondary);
}

.email-link {
    display: inline-block;
    margin-top: 20px;

    color: var(--accent);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;

    margin-top: 45px;
}

.social-links a {
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--text-primary);
}


/* ================================
   Footer
================================ */

footer {
    padding: 30px 48px;
    color: #777b85;
    border-top: 1px solid var(--line);

    font-size: 13px;
    text-align: center;
}


/* ================================
   태블릿 · 모바일
================================ */

@media (max-width: 900px) {
    .section {
        width: min(100% - 48px, 1400px);
        padding: 90px 0;
    }

    .site-header {
        height: 68px;
        padding: 0 24px;
    }

    nav {
        gap: 20px;
    }

    .hero {
        min-height: 820px;
        padding: 130px 24px 100px;
    }

    .hero-image {
        inset: 68px 0 0;
    }

    .hero-button {
        right: auto;
        bottom: 40px;
        left: 24px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-symbol {
        width: 150px;
    }

    .resume-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .logo {
        font-size: 13px;
        letter-spacing: 2px;
    }

    nav a {
        display: none;
    }

    nav a:first-child,
    nav a:last-child {
        display: block;
    }

    .hero-name {
        letter-spacing: -1px;
    }

    .hero h1 {
        letter-spacing: 2px;
    }

    .project-info {
        grid-template-columns: auto 1fr;
    }

    .project-arrow {
        display: none;
    }

    .resume-box {
        padding: 30px 24px;
    }

    .document-downloads {
        flex-direction: column;
        gap: 14px;
    }

    .document-downloads .outline-button {
        width: 100%;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

/* ================================
   전체 프로젝트 보기 버튼
================================ */

.project-list-action {
    display: flex;
    justify-content: center;

    margin-top: 48px;
}

.project-list-action .outline-button {
    min-width: 220px;

    text-align: center;
}


/* ================================
   전체 프로젝트 페이지
================================ */

.work-page {
    background-color: var(--background);
}

.work-main {
    width: min(1400px, calc(100% - 96px));
    margin: 0 auto;

    padding: 76px 0 120px;
}

.work-header {
    padding: 80px 0 70px;
}

.work-back-link {
    display: inline-block;

    margin-bottom: 55px;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;

    transition: color 0.2s ease;
}

.work-back-link:hover {
    color: var(--accent);
}

.work-header .section-heading {
    margin-bottom: 25px;
}

.work-header .section-heading h1 {
    margin: 0;

    color: var(--text-primary);

    font-size: clamp(42px, 7vw, 88px);
    line-height: 1;
    letter-spacing: 2px;
}

.work-header .section-heading h1::after {
    display: block;

    width: 50px;
    height: 3px;
    margin-top: 22px;

    background-color: var(--accent);

    content: "";
}

.work-description {
    max-width: 620px;
    margin: 0;

    color: var(--text-secondary);

    font-size: 16px;
    line-height: 1.8;
}

.all-projects {
    padding-bottom: 20px;
}


/* ================================
   현재 Work 메뉴 표시
================================ */

.site-header nav a.active {
    color: var(--text-primary);
}

.site-header nav a.active::after {
    width: 100%;
}


/* ================================
   전체 프로젝트 페이지 반응형
================================ */

@media (max-width: 900px) {

    .work-main {
        width: calc(100% - 48px);
    }

    .work-header {
        padding: 65px 0 55px;
    }

}


@media (max-width: 620px) {

    .work-main {
        width: calc(100% - 32px);
        padding-top: 68px;
    }

    .work-header {
        padding: 50px 0;
    }

    .work-back-link {
        margin-bottom: 40px;
    }

    .project-list-action {
        margin-top: 36px;
    }

    .project-list-action .outline-button {
        width: 100%;
    }

}
