/* =========================================================
   CAMELMARK
   Profile Stylesheet
========================================================= */


/* =========================================================
   01. VARIABLES
========================================================= */

:root {

    --bg-main: #f4f3ef;
    --bg-paper: #fbfaf6;
    --bg-soft: #e6e2d8;
    --bg-dark: #151515;

    --text-main: #171717;
    --text-sub: #6f6b62;
    --text-muted: #999185;
    --text-light: #f4f3ef;

    --line: #d4d0c6;
    --line-dark: rgba(255, 255, 255, 0.16);

    --accent: #b66f49;
    --accent-deep: #6f4938;
    --accent-blue: #235c76;

    --navbar-bg: rgba(244, 243, 239, 0.9);
    --navbar-height: 8vh;

    --font-main:
        "Pretendard",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-title:
        "Pretendard",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --transition-fast: 0.25s ease;
    --transition-normal: 0.4s ease;
    --transition-image:
        transform 0.7s cubic-bezier(0.2, 0.6, 0.3, 1);
}


/* =========================================================
   02. RESET
========================================================= */

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;
    padding: 0;

    background:
        radial-gradient(circle at 8% 10%, rgba(35, 92, 118, 0.12), transparent 28rem),
        linear-gradient(180deg, #f8f6ef 0%, var(--bg-main) 36%, #efede7 100%);
    color: var(--text-main);

    font-family: var(--font-main);

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

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

button {
    font: inherit;
}


/* =========================================================
   03. COMMON
========================================================= */

.container-fluid {
    width: 100%;
}

.profile-container {

    width: 100%;
    max-width: 1240px;

    margin: 0 auto;
    padding-left: clamp(1.25rem, 5vw, 4rem) !important;
    padding-right: clamp(1.25rem, 5vw, 4rem) !important;
}

.profile-kicker,
.profile-section-heading p {

    margin: 0 0 1rem;

    color: var(--accent-deep);

    font-size: 12px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: 0.18em;
}

.lang-en {
    display: none;
}

body[data-lang="en"] .lang-ko {
    display: none;
}

body[data-lang="en"] .lang-en {
    display: inline;
}

body[data-lang="en"] div.lang-en,
body[data-lang="en"] ul.lang-en,
body[data-lang="en"] p.lang-en {
    display: block;
}

.profile-section-heading {

    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 5rem);

    align-items: end;

    margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}

.profile-section-heading h2 {

    margin: 0;

    font-size: clamp(28px, 4.4vw, 64px);
    font-weight: 650;

    line-height: 0.98;
    letter-spacing: 0;
}


/* =========================================================
   04. NAVBAR
========================================================= */

#mainNavbar {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    width: 100%;
    height: var(--navbar-height);

    min-height: 64px;

    background: var(--navbar-bg);

    border-bottom: 1px solid transparent;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        background var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

#mainNavbar.scrolled {

    background: rgba(244, 243, 239, 0.96);
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow: 0 14px 40px rgba(23, 23, 23, 0.07);
}

#mainNavbar .navbar-container {

    height: 100%;

    padding-left: clamp(1.25rem, 4vw, 4rem) !important;
    padding-right: clamp(1.25rem, 4vw, 4rem) !important;

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

    gap: 4vw;
}

.site-logo {

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;

    color: var(--text-main) !important;

    font-family: var(--font-title);

    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;

    line-height: 1;
    letter-spacing: 0.12em;

    white-space: nowrap;
}

#mainNavbar .navbar-collapse {

    flex: 0 0 auto;

    width: auto;

    margin-left: auto;
}

#mainNavbar .navbar-nav {

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    gap: clamp(18px, 2vw, 34px);

    margin: 0;
    padding: 0;
}

#mainNavbar .nav-item {
    margin: 0;
    padding: 0;
}

#mainNavbar .nav-link {

    position: relative;

    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0 !important;

    color: var(--text-sub) !important;

    font-size: clamp(14px, 0.95vw, 17px);
    font-weight: 600;

    line-height: 1;
    white-space: nowrap;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

#mainNavbar .nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    height: 1px;

    background: currentColor;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform var(--transition-normal);
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {

    color: var(--text-main) !important;

    transform: translateY(-1px);
}

#mainNavbar .nav-link:hover::after,
#mainNavbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {

    padding: 0.35rem;

    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* =========================================================
   05. BASIC
========================================================= */

.profile-page {

    width: 100%;

    background: transparent;
    color: var(--text-main);
}

.profile-basic {

    padding-top: calc(var(--navbar-height) + clamp(4rem, 8vh, 7rem));
    padding-bottom: clamp(4rem, 9vh, 7rem);
}

.profile-topbar {

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

    margin-bottom: 1rem;
}

.profile-topbar .profile-kicker {
    margin-bottom: 0;
}

.language-switch {

    display: inline-flex;
    align-items: center;

    padding: 3px;

    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.45);
}

.language-button {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 32px;

    padding: 0 0.7rem;

    color: var(--text-sub);
    background: transparent;

    border: 0;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;

    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}

.language-button.active {

    color: var(--text-light);
    background: var(--bg-dark);
}

.profile-title {

    margin: 0 0 clamp(2rem, 4vw, 3.5rem);

    color: var(--text-main);

    font-family: var(--font-title);

    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 650;

    line-height: 1.08;
    letter-spacing: 0;
    word-break: keep-all;
}

.profile-basic-layout {

    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);

    align-items: start;
}

.profile-photo {

    width: 168px;
    aspect-ratio: 3 / 4;

    overflow: hidden;
    background: var(--bg-soft);
}

.profile-photo img {

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

.profile-information {

    width: 100%;

    border-top: 1px solid var(--text-main);
}

.profile-information-row {

    display: grid;
    grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 4rem);

    align-items: center;

    min-height: 52px;

    border-bottom: 1px solid var(--line);
}

.profile-information-label {

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 700;

    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-information-value {

    color: var(--text-main);

    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 520;

    line-height: 1.4;
}


/* =========================================================
   06. CAREER
========================================================= */

.profile-career {

    padding-top: clamp(3.5rem, 8vh, 6rem);
    padding-bottom: clamp(4rem, 9vh, 7rem);

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

.profile-section-title {

    margin: 0;

    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 640;

    line-height: 1.15;
    letter-spacing: 0;
}

.profile-section-description {

    max-width: 720px;

    margin: 1rem 0 clamp(1.5rem, 3vw, 2.5rem);

    color: var(--text-sub);

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

.career-list {

    width: 100%;

    border-top: 1px solid var(--text-main);
}

.career-item {

    position: relative;

    display: block;

    padding: clamp(1rem, 2vw, 1.45rem) 0 clamp(1rem, 2vw, 1.45rem) 1.25rem;

    border-bottom: 1px solid var(--line);
}

.career-item::before {

    content: "";

    position: absolute;
    top: 1.65rem;
    left: 0;

    width: 6px;
    height: 6px;

    background: var(--accent);
    border-radius: 999px;
}

.career-content h3 {

    margin: 0;

    font-size: clamp(17px, 1.35vw, 21px);
    font-weight: 620;

    line-height: 1.2;
    letter-spacing: 0;
}

.career-content p {

    max-width: 720px;

    margin: 0.35rem 0 0;

    color: var(--text-sub);

    font-size: 14px;
    line-height: 1.75;
}

.career-entry {

    max-width: 920px;
    margin-top: 1.1rem;
}

.career-entry:first-child {
    margin-top: 0.65rem;
}

.career-entry h4 {

    margin: 0 0 0.45rem;

    color: var(--text-main);

    font-size: 14px;
    font-weight: 680;

    line-height: 1.45;
}

.career-detail-list {

    display: grid;
    gap: 0.32rem;

    margin: 0.45rem 0 0;
    padding-left: 1.1rem;

    color: var(--text-sub);

    font-size: 14px;
    line-height: 1.75;
}

.career-detail-list ul {

    display: grid;
    gap: 0.2rem;

    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

.career-detail-list a {

    color: var(--accent-blue);
    border-bottom: 1px solid rgba(35, 92, 118, 0.35);
}


/* =========================================================
   10. FOOTER
========================================================= */

.site-footer {

    width: 100%;

    padding: 1.5rem 0;

    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.58);

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.footer-inner {

    width: 100%;

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

    gap: 2rem;
}

.footer-center {

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 0.9rem;

    text-align: center;
}

.footer-social {

    display: inline-flex;
    align-items: center;

    gap: 0.45rem;
}

.footer-social a {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.72);

    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.footer-social a:hover {

    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);

    transform: translateY(-1px);
}

.footer-social i {
    font-size: 0.95rem;
    line-height: 1;
}


/* =========================================================
   11. REVEAL
========================================================= */

.reveal {

    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.is-visible {

    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   12. TABLET
========================================================= */

@media (max-width: 991.98px) {

    :root {
        --navbar-height: 70px;
    }

    #mainNavbar .navbar-collapse {

        width: 100%;

        margin-top: 1rem;
        padding: 1.2rem 0;

        background: rgba(244, 243, 239, 0.98);

        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    #mainNavbar .navbar-nav {

        flex-direction: column;
        align-items: flex-start;

        gap: 1rem;
    }

    #mainNavbar .nav-link {

        font-size: 15px;

        padding: 0.35rem 0 !important;
    }

    .profile-section-heading,
    .profile-links-inner {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   13. MOBILE
========================================================= */

@media (max-width: 575.98px) {

    body {
        background:
            radial-gradient(circle at 5% 5%, rgba(35, 92, 118, 0.12), transparent 18rem),
            var(--bg-main);
    }

    .site-logo {
        font-size: 16px;
    }

    #mainNavbar .nav-link {
        font-size: 15px;
    }

    .profile-basic {
        padding-top: calc(var(--navbar-height) + 3.5rem);
    }

    .profile-title {

        font-size: clamp(25px, 8vw, 34px);
        line-height: 1.15;
    }

    .profile-basic-layout {

        grid-template-columns: 112px minmax(0, 1fr);
        gap: 1rem;
    }

    .profile-photo {
        width: 112px;
    }

    .profile-information-row,
    .career-item {

        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .profile-information-row {

        align-items: start;

        min-height: auto;
        padding: 1rem 0;
    }

    .profile-information-label {
        font-size: 10px;
    }

    .profile-information-value {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .career-item {
        padding: 1.35rem 0;
    }

    .profile-links h2 {
        font-size: clamp(26px, 9vw, 38px);
    }

    .profile-link-list a {
        min-height: 66px;
    }

    .footer-inner {

        flex-direction: column;
        align-items: center;

        gap: 6px;
    }

}
