@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #f5f7fb;
    --bg-layer: #eef2f7;
    --bg-panel: #ffffff;
    --bg-panel-strong: #ffffff;
    --bg-muted: #e2e8f0;
    --bg-dark: #0f172a;
    --text-primary: #111827;
    --text-secondary: #475569;
    --border-color: #dbe4ee;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f766e;
    --gradient-header: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    --card-bg: var(--bg-panel-strong);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.05);
    --shadow-strong: 0 14px 36px rgba(15, 23, 42, 0.08);
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.7;
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

body::before {
    display: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.page-hero {
    padding: 16px 24px 0;
}

.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    background: var(--gradient-header);
    box-shadow: none;
    overflow: hidden;
}

.hero-shell::before {
    display: none;
}

.hero-shell::after {
    display: none;
}

.hero-copy,
.hero-side {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}

.language-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.language-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-tab:hover,
.language-tab.active {
    color: var(--text-primary);
    background: var(--bg-layer);
    border-color: var(--border-color);
    text-decoration: none;
}

.hero-kicker,
.section-kicker,
.fact-label {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker,
.section-kicker {
    display: none;
}

.name {
    display: block;
    margin: 0;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-summary {
    display: none;
}

.hero-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    max-width: 760px;
    margin-top: 2px;
}

.contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.contact a {
    color: var(--text-primary);
    font-weight: 600;
}

.contact a:hover {
    color: var(--primary-dark);
}

.hero-side {
    display: flex;
    justify-content: flex-end;
    justify-self: end;
    width: 100%;
}

.portrait-card {
    width: 136px;
    max-width: 100%;
    padding: 0;
    border-radius: 14px;
    background: transparent;
}

.profile-pic {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.hero-facts {
    display: none;
}

.fact-card {
    display: none;
}

.fact-card:last-child {
    grid-column: auto;
}

.fact-card strong {
    display: none;
}

.page-shell {
    width: min(100%, var(--content-width));
    margin: 18px auto 40px;
    padding: 0 24px;
}

.content-section {
    display: block;
    margin-bottom: 30px;
}

.section-intro {
    display: block;
    margin-bottom: 18px;
    padding-top: 0;
}

.section-title {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.section-copy {
    display: none;
}

.chronology-list,
.summary-container,
.timeline-container,
.tech-icons-container {
    min-width: 0;
}

.resume-page .chronology-chart {
    display: none;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
    overflow-x: auto;
}

.resume-page.has-chronology-chart .chronology-chart {
    display: block;
}

.resume-page.has-chronology-chart .chronology-scroll {
    display: none;
}

.resume-page .chronology-chart canvas {
    display: block;
    width: auto;
    max-width: none;
    height: 100%;
}

.chronology-scroll {
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.chronology-list,
.summary-container,
.timeline-container {
    padding-top: 0;
}

.chronology-list {
    --chronology-line-top: 120px;
    --chronology-dot-size: 12px;
    --chronology-gap: 16px;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0;
    position: relative;
    padding: 8px 0 0;
}

.chronology-list::before {
    content: '';
    position: absolute;
    top: var(--chronology-line-top);
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
}

.chronology-item {
    --accent: var(--primary);
    position: relative;
    min-width: 0;
    min-height: 248px;
}

.chronology-period {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.chronology-title {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.4;
}

.chronology-card {
    position: absolute;
    left: 6px;
    right: 6px;
    min-height: 90px;
    padding: 12px 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.chronology-item::before {
    content: '';
    position: absolute;
    top: var(--chronology-line-top);
    left: 50%;
    width: var(--chronology-dot-size);
    height: var(--chronology-dot-size);
    border-radius: 999px;
    background: var(--accent);
    transform: translate(-50%, -50%);
}

.chronology-item::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.chronology-item:nth-child(odd)::after {
    top: calc(var(--chronology-line-top) - 28px);
    height: 28px;
}

.chronology-item:nth-child(even)::after {
    top: calc(var(--chronology-line-top));
    height: 28px;
}

.chronology-item:nth-child(odd) .chronology-card {
    top: 0;
}

.chronology-item:nth-child(even) .chronology-card {
    top: calc(var(--chronology-line-top) + var(--chronology-gap));
}

.chronology-item.edu {
    --accent: #64748b;
}

.chronology-item.wedata {
    --accent: #0891b2;
}

.chronology-item.lotte {
    --accent: #2563eb;
}

.chronology-item.gmarket {
    --accent: var(--secondary);
}

.summary-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0 0 0 32px;
    margin: 0;
}

.summary-list br {
    display: none;
}

.summary-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 1px;
    background: var(--border-color);
}

.summary-list li {
    --accent: var(--primary);
    position: relative;
    min-height: 0;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.summary-list li::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -27px;
    width: 10px;
    height: 10px;
    border: 3px solid var(--bg-color);
    border-radius: 999px;
    background: var(--accent);
}

.summary-list li.edu {
    --accent: #64748b;
}

.summary-list li.wedata {
    --accent: #0891b2;
}

.summary-list li.lotte {
    --accent: #2563eb;
}

.summary-list li.gmarket {
    --accent: var(--secondary);
}

.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 0 0 32px;
}

.year-section {
    position: relative;
    display: block;
    padding-top: 0;
    border-top: 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 1px;
    background: var(--border-color);
}

.year {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
}

.year::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -31px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--bg-color);
    border-radius: 999px;
    background: #64748b;
}

.year-label {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.year-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.year-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.year-company-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.resume-page:not(.education-page) .project-icon {
    display: none;
}

.project {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: none;
}

.project-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    padding: 7px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-layer);
    object-fit: contain;
}

.project-icon.gmarket {
    width: 52px;
    height: 52px;
}

.project h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.03em;
}

.project p,
.project li {
    margin: 0 0 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.project ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.project li + li {
    margin-top: 6px;
}

.project strong {
    color: var(--text-primary);
}

.project code {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.project > div[style*="position: absolute"] {
    position: absolute !important;
    top: 22px !important;
    right: 22px !important;
    left: auto !important;
    width: auto !important;
    min-width: 52px;
    height: 30px !important;
    padding: 0 12px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
    font-size: 12px;
}

details .project h3 {
    padding-right: 82px;
}

details {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #fff;
    box-shadow: none;
    padding: 0 22px 8px;
}

details[open] {
    background: #fff;
}

summary {
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-primary);
}

details summary span {
    color: var(--text-secondary);
    font-size: 13px;
}

.video-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    justify-content: center;
}

.video-group .video-container {
    width: 100%;
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-project-grid {
    align-items: start;
}

.video-container {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #080808;
    box-shadow: none;
}

.preview-overlay {
    border-radius: inherit;
}

.play-button {
    box-shadow: 0 18px 40px rgba(224, 62, 31, 0.3);
}

.video-caption {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.video-summary {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.tech-icons-container {
    position: relative;
    padding: 26px 0;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: none;
    overflow: hidden;
}

.tech-icons-container::before,
.tech-icons-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 1;
    pointer-events: none;
}

.tech-icons-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--card-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

.tech-icons-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--card-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

.tech-icons {
    display: flex;
    width: max-content;
    gap: 0;
    --marquee-distance: 0px;
    --tech-gap: 54px;
    animation: tech-scroll 20s linear infinite;
    will-change: transform;
}

.tech-icons-group {
    display: flex;
    align-items: center;
    gap: var(--tech-gap);
    padding-right: var(--tech-gap);
}

.tech-icons img {
    width: auto;
    height: 42px;
    opacity: 0.94;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.tech-icons img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.main-footer {
    padding: 0 24px 48px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-panel);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}

.social-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-2px);
    background: var(--bg-layer);
}

.social-links img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

@keyframes tech-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(var(--marquee-distance) * -1), 0, 0);
    }
}

@media (max-width: 980px) {
    .hero-shell {
        grid-template-columns: minmax(0, 1fr) 148px;
        gap: 16px;
        padding: 16px 18px;
    }

    .hero-copy {
        min-width: 0;
    }

    .hero-contact-list {
        gap: 6px 12px;
    }

    .hero-side {
        justify-self: end;
    }

    .portrait-card {
        width: 128px;
    }

    .chronology-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .chronology-list {
        --chronology-line-top: 108px;
        --chronology-gap: 14px;
        width: max(100%, 980px);
        gap: 10px;
        padding-right: 6px;
    }

    .chronology-list.education-chronology {
        width: max(100%, 620px);
    }

    .chronology-item {
        min-height: 222px;
    }

    .chronology-card {
        left: 4px;
        right: 4px;
        min-height: 82px;
        padding: 10px 10px 9px;
    }

    .chronology-period {
        font-size: 10px;
    }

    .chronology-title {
        font-size: 12px;
    }

    .hero-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-intro {
        display: block;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 12px 12px 0;
    }

    .hero-shell {
        grid-template-columns: minmax(0, 1fr) 92px;
        align-items: start;
        justify-items: stretch;
        padding: 14px;
        border-radius: 18px;
        gap: 12px;
        text-align: left;
    }

    .hero-copy {
        align-items: flex-start;
        padding-right: 0;
        gap: 10px;
    }

    .language-tabs,
    .hero-contact-list {
        justify-content: flex-start;
    }

    .language-tabs {
        gap: 6px;
    }

    .language-tab {
        min-height: 32px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .name {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .hero-contact-list {
        gap: 4px 10px;
        max-width: none;
    }

    .contact {
        gap: 6px;
        font-size: 12px;
    }

    .contact a {
        overflow-wrap: anywhere;
    }

    .portrait-card {
        width: 92px;
    }

    .hero-side {
        justify-self: end;
    }

    .page-shell {
        margin-top: 18px;
        padding: 0 12px;
    }

    .chronology-list {
        --chronology-line-top: 92px;
        --chronology-gap: 12px;
        --chronology-dot-size: 10px;
        width: max(100%, 860px);
        gap: 8px;
        padding-top: 6px;
        padding-right: 4px;
    }

    .chronology-list.education-chronology {
        width: max(100%, 560px);
    }

    .chronology-item {
        min-height: 190px;
    }

    .chronology-item:nth-child(odd)::after {
        top: calc(var(--chronology-line-top) - 24px);
        height: 24px;
    }

    .chronology-item:nth-child(even)::after {
        top: var(--chronology-line-top);
        height: 24px;
    }

    .chronology-card {
        left: 3px;
        right: 3px;
        min-height: 72px;
        padding: 9px 9px 8px;
        border-radius: 12px;
    }

    .chronology-period {
        margin-bottom: 4px;
        font-size: 9px;
    }

    .chronology-title {
        font-size: 11px;
        line-height: 1.35;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .summary-list {
        grid-template-columns: 1fr;
    }

    .year-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .timeline-container {
        gap: 16px;
        padding-left: 0;
    }

    .timeline-container::before,
    .year::before {
        display: none;
    }

    .year {
        gap: 6px;
        margin-bottom: 10px;
        font-size: 1.7rem;
    }

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

    .project {
        padding: 16px;
        border-radius: 16px;
    }

    .project-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
        padding: 6px;
        border-radius: 14px;
    }

    .project-icon.gmarket {
        width: 44px;
        height: 44px;
    }

    .project h3 {
        margin-bottom: 8px;
        font-size: 0.98rem;
    }

    .project p,
    .project li {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .project > div[style*="position: absolute"] {
        position: static !important;
        display: inline-flex !important;
        margin-bottom: 12px;
        min-width: 48px;
        height: 32px !important;
        padding: 0 10px;
        font-size: 11px;
    }

    details .project h3 {
        padding-right: 0;
    }

    details {
        padding: 0 14px 6px;
        border-radius: 18px;
    }

    details summary {
        align-items: flex-start;
    }

    details summary span {
        float: none !important;
        flex-shrink: 0;
        margin-left: 8px;
        font-size: 11px;
        white-space: nowrap;
    }

    .video-group {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .video-group .video-container,
    .video-project-grid .project {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .tech-icons-container {
        padding: 20px 0;
        border-radius: 22px;
    }

    .tech-icons {
        --tech-gap: 34px;
        animation-duration: 16s;
    }

    .tech-icons img {
        height: 34px;
    }

    .main-footer {
        padding: 0 14px 36px;
    }

    .social-links {
        padding: 14px;
        border-radius: 22px;
    }

    .social-links a {
        width: 100%;
    }

    .resume-page .chronology-chart {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .resume-page .chronology-chart canvas {
        min-width: 980px;
    }
}

@media (max-width: 560px) {
    .hero-shell {
        grid-template-columns: minmax(0, 1fr) 76px;
    }

    .portrait-card {
        width: 76px;
    }

    .contact {
        font-size: 11px;
    }

    .chronology-list {
        width: max(100%, 820px);
    }

    .chronology-list.education-chronology {
        width: max(100%, 520px);
    }

    .resume-page .chronology-chart {
        padding: 12px;
    }

    .resume-page .chronology-chart canvas {
        min-width: 1080px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
