@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

html, body { height: 100%; overflow-x: hidden; overflow-y: auto; }
body { font-family: 'Pretendard', sans-serif; font-size: 16px; background-color: #302F2E; color: #f2f2f2; margin: 0; padding: 0; overflow-y: auto; }
h1 { font-size: 2.2rem; margin: 0.5rem 0; font-weight: 600; }
h2 { font-size: 1.6rem; margin: 0.5rem 0; color: #e6e6e6; font-weight: 600; }
h3 { font-size: 1.3rem; margin: 0.4rem 0; color: #DBDBDB; font-weight: 400; }
p { font-size: 1rem; margin: 0.3rem 0; color: #CFCFCF; line-height: 1.6; font-weight: 400; }
q { color: #838383; font-style: italic; quotes: none; }
b { font-weight: 500; }

highlight { color: #FFCE2E; }
underline { border-bottom: 2px solid #FFCE2E; padding-bottom: 2px;}
white { color: #f2f2f2; }


.container { width: calc(100% - 40px); margin-left: 40px;}
.container_inner { display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 20px auto; max-width: 800px; width: 100%;}

#header { display: flex; position: fixed; flex-direction: column; justify-content: space-between; align-items: center; height: 100%; width: 40px; background-color: #FFCE2E; z-index: 100; }
#logo { margin-top: 20px; width: 40px; height: 40px; }

#footer { width: 100%; height: 40px; margin-top: 80px; background-color: #302F2E; color: #CFCFCF; display: flex; justify-content: flex-end; align-items: center; padding: 40px; box-sizing: border-box; }
#footer p { font-size: 12px; margin-right: 40px; }

#profile { width: 140px; height: 140px; border-radius: 50%; }

#menu_group { display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 10px; height: 100%; margin-bottom: 20px; }
.menu { width: 20px; height: 20px; }

.social_links { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; }
.social_links a { color: #7e7e7ea5; font-weight: 400; text-decoration: none; transition: all 0.2s ease; }
.social_links a:hover { color: #FFCE2E; font-weight: 600; }

.profile_section { display: flex; flex-direction: row; justify-content: start; align-items: center; gap: 20px; width: 100%; margin: 40px 0; }
.profile_info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

.section_anchor { scroll-margin-top: -10px; }
.section_title { width: 100%; padding: 12px 0; position: -webkit-sticky; position: sticky; top: 0; z-index: 10; background-color: #302F2E; display: flex; justify-content: center; }

.section_title_inner { position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; width: 100%; max-width: 800px; margin: 0 auto; box-sizing: border-box; padding-bottom: 12px; border-bottom: 1px solid #404040; }
.section_title.is-stuck .section_title_inner { padding-bottom: 0; border-bottom: none; }

.section_title_inner > a { z-index: 2; }
.section_title_inner h1 { transform: translateZ(0) scale(1); transform-origin: left center; transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 220ms cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.section_title.is-stuck .section_title_inner h1 { transform: translateZ(0) scale(1.06); letter-spacing: 0.2px; }
@media (prefers-reduced-motion: reduce) { .section_title_inner h1 { transition: none; } }

.section_title.is-stuck .dot_group > a:nth-of-type(1) { transform: translateX(-90px); }
.section_title.is-stuck .dot_group > a:nth-of-type(2) { transform: translateX(-60px); }
.section_title.is-stuck .dot_group > a:nth-of-type(3) { transform: translateX(-30px); }
.section_title.is-stuck .dot_group > a svg circle { fill: #FEF2CD; transition: fill 0.2s ease; }
.section_title.is-stuck .dot_group > a:hover svg circle { fill: #FFCE2E; }

#core.section_title.is-stuck .dot_group > a:nth-of-type(1) svg circle { fill:#FFCE2E; }
#career.section_title.is-stuck .dot_group > a:nth-of-type(2) svg circle { fill:#FFCE2E; }
#projects.section_title.is-stuck .dot_group > a:nth-of-type(3) svg circle { fill:#FFCE2E; }
#activities.section_title.is-stuck .dot_group > a:nth-of-type(4) svg circle { fill:#FFCE2E; }

.dot_group { display: flex; align-items: center; z-index: 999; }
.dot_group > a { display: inline-block; transform: translateX(0); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.dot { position: absolute; left: -40px; top: 50%; transform: translateY(-50%); }

.problemsolve.card_list { display: flex; flex-direction: column; gap: 20px; width: 100%; box-sizing: border-box; padding: 20px 0; margin-bottom: 80px; }
.problemsolve.card_item { display: flex; flex-direction: row; padding: 0.8rem 1.2rem 1.2rem 0.8rem; background-color: #2A2928; border-radius: 1.5rem; column-gap: 0.8rem; align-items: start; text-align: left; }
.problemsolve.card_info {width: 100%;}
.problemsolve.card_img { width: 100px; height: 100px; object-fit: cover; }
.problemsolve.card_title { font-size: 20px; font-weight: 800; margin: 0.5rem 0.5rem 0.5rem 0; }

.collab.card_list { display: flex; flex-direction: row; gap: 20px; width: 100%; box-sizing: border-box; padding: 20px 0; margin-bottom: 80px; flex-wrap: nowrap; }
.collab.card_item { display: flex; flex-direction: column; padding: 0.8rem 1.2rem 1.2rem 0.8rem; background-color: #2A2928; border-radius: 1.5rem; column-gap: 0.8rem; align-items: start; text-align: left; flex: 1 1 0; }
.collab.card_info {width: 100%;}
.collab.card_img { box-sizing: border-box; width: 100%; object-fit: cover; border-radius: 1rem; margin-bottom: 1rem; }
.collab.card_title { font-size: 20px; font-weight: 800; margin: 0.5rem 0.5rem 0.5rem 0; }

.card_button_group { display: flex; flex-direction: row; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.card_button { background-color: #FFCE2E; color: #2A2928; font-weight: 700; padding: 0.5rem 1rem; border: none; border-radius: 0.6rem; cursor: pointer; width: fit-content; }
.card_button:hover { filter: brightness(0.9); }


.experiences_list { margin-bottom: 80px; } 
.career_item { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }

.career_left { position: sticky; top: 110px; align-self: start; margin-bottom: 40px;}
.career_logo_wrap { width: 110px; height: 110px; border-radius: 20px; background: #2A2928; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.career_company { margin: 8px 0 6px 0; }
.career_role, .career_period { opacity: 0.85; margin-top: 4px; }

.career_right { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 28px; padding-bottom: 40px;}
.career_title_block { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.career_title { margin-top: 0; margin-bottom: 12px; color: #e6e6e6; font-weight: 700; }
.text_button { padding: 0 0 0.3rem 0; background-color: transparent; border: none; border-bottom: 1px solid #FFCE2E; color: #FFCE2E; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.text_button:hover { border-bottom: 1px solid #f7d979; color: #f7d979; }
.career_summary_box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px 16px; line-height: 1.6; margin-bottom: 12px; }
.career_tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 18px 0; }
.career_tags span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 6px; background: #474337; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2px; color: #FFCE2E; }
.career_headline { font-size: 1.5rem; font-weight: 700; margin: 10px 0 18px 0; }
.career_block { margin: 18px 0 22px 0; }
.career_block_title { font-weight: 400; margin-bottom: 10px; border-left: 2px solid rgba(255,255,255,0.12); padding-left: 8px; color: #838383; }
.career_list { margin: 0; padding-left: 18px; line-height: 1.7; opacity: 0.92; }

.career_links { margin-top: 10px; opacity: 0.9; }
.career_links img:hover { opacity: 0.55; cursor: pointer; }
.career_links img { width: 36px; height: 36px; }
.career_link_sep { opacity: 0.55; margin: 0 6px; }

.activities_list { width: 100%; display: flex; justify-content: flex-start; flex-direction: column; padding: 24px 0 6px 0; gap: 56px; }
.activity_period { margin: 0px; font-size: 1rem; line-height: 1.75; }
.activity_desc { margin-top: 12px; font-size: 1.15rem; line-height: 1.75; }

@media (max-width: 1200px) 
{
    .dot_group { display: none; }
}

@media (max-width: 900px) 
{
    #header { display: flex; position: fixed; flex-direction: row; justify-content: space-between; align-items: center; height: 40px; width: 100%; background-color: #FFCE2E; z-index: 100; }
    #logo { margin: 0 0 0 10px; width: 40px; height: 40px; }
    #menu_group { display: flex; flex-direction: row; justify-content: end; align-items: center; gap: 10px; width: 100%; margin: 0 20px 0 0; }
    #footer { padding: 10px; }
    #footer p { margin-right: 0; }

    .container { width: 100%; margin: 40px 0;}
    .section_anchor { scroll-margin-top: -10px; }
    .section_title { width: 100%; padding: 12px 0; position: -webkit-sticky; position: sticky; top: 40px; z-index: 10; background-color: #302F2E; display: flex; justify-content: center; }

    .career_item { grid-template-columns: 1fr; }
    .career_left { position: static; display: flex; flex-direction: row; align-items: center; column-gap: 20px; margin: 0; }
    .career_logo_wrap { margin: 0;}
    .career_info { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; height: 100%; }
    .career_links img { width: 24px; height: 24px; }
    .career_right { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; }

    /* Core cards: 3-column wrap under 900px */
    .collab.card_list { flex-wrap: wrap; }
    .collab.card_item { flex: 1 1 calc(33.333% - 14px); min-width: 220px; max-width: calc(50% - 40px); }
    .card_button_group { display: flex; width: 100%; justify-content: flex-end; }

    .activities_list { gap: 40px; }
}

@media (max-width: 820px) 
{
    .container { padding: 0 16px; box-sizing: border-box; }
    .profile_section { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px)
{
    #menu_group, #header a { display: none; }
    #header { height: 20px; }
    #footer { padding: 24px 16px; height: auto; }
    #footer p { margin-right: 0; right: 0;}

    .container { width: 100%; margin-left: 0; padding: 0 16px; box-sizing: border-box; }
    .container_inner { margin: 16px auto; max-width: 100%; }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.05rem; }
    p  { font-size: 0.95rem; }

    #profile { width: 112px; height: 112px; }
    .profile_section { margin: 28px 0; gap: 16px; }

    .dot_group { display: none; }
    .section_title { top: 20px; }
    .section_title_inner { padding: 0 0 10px 0; }
    .section_title.is-stuck .section_title_inner h1 { transform: translateZ(0) scale(1.02); letter-spacing: 0; }

    .core_section {width: 100%;}
    .problemsolve.card_img { display: none; }
    .problemsolve.card_title { font-size: 1rem;}
    .problemsolve.card_info p { font-size: 0.8rem; }

    .card_button { font-size: 0.7rem; }
    .card_button_group { justify-content: flex-end; }

    .career_summary_box { font-size: 0.8rem; }
    .career_headline { font-size: 1.25rem; }
    .career_block_title { font-size: 0.9rem; }
    .career_list { font-size: 0.9rem; }

    .collab.card_list { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
    .collab.card_item { flex-direction: row; max-width: 100%; align-items: start; gap: 14px; padding: 0.9rem; }
    .collab.card_img { width: 80px; height: 80px; border-radius: 0.9rem; margin-bottom: 0; flex: 0 0 auto; }
    .collab.card_info { flex: 1 1 auto; width: auto; }
    .collab.card_title { font-size: 1.05rem; margin: 0.2rem 0 0.4rem 0; }
    .collab.card_info p { font-size: 0.85rem; line-height: 1.5; }
}