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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7f4ee;
    color: #111111;
    min-height: 100vh;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 72px 0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    animation: pageFade 0.9s ease both;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

.header {
    position: sticky;
    top: 0;
    height: 72px;
    background: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 9999;
    animation: headerDrop 0.7s ease both;
    transition: background 0.4s ease, border-color 0.4s ease;
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

.header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 15px;
    font-weight: 350;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #111;
}

body.dark .logo {
    color: #f5f5f5;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.65;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.theme-btn {
    margin-left: 32px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.52);
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover {
    color: #111111;
    background: transparent;
    transform: translateY(-1px);
}

.hero {
    padding-top: 64px;
    animation: sectionRise 0.9s ease both;
    animation-delay: 0.12s;
}

.hero section {
    max-width: 760px;
}

.interests-section {
    margin-top: 28px !important;
    padding-bottom: 54px !important;
    max-width: 100% !important;
}

.interests-title {
    margin-bottom: 22px;
}

.interests-title::after {
    display: none !important;
    content: none !important;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(10, max-content);
    justify-content: center;
    column-gap: 12px;
    row-gap: 18px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.interests-grid .interest-pill:nth-child(-n+10) {
    grid-row: 1;
}

.interests-grid .interest-pill:nth-child(n+11) {
    grid-row: 2;
}

.interests-grid .interest-pill:nth-child(11) {
    grid-column: 2;
}

.interests-grid .interest-pill:nth-child(12) {
    grid-column: 3;
}

.interests-grid .interest-pill:nth-child(13) {
    grid-column: 4;
}

.interests-grid .interest-pill:nth-child(14) {
    grid-column: 5;
}

.interests-grid .interest-pill:nth-child(15) {
    grid-column: 6;
}

.interests-grid .interest-pill:nth-child(16) {
    grid-column: 7;
}

.interests-grid .interest-pill:nth-child(17) {
    grid-column: 8;
}

.interest-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    line-height: 1;
    color: rgba(0, 0, 0, 0.56);
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(0, 0, 0, 0.065);
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.interest-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.62);
    color: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 0, 0, 0.13);
}

body.dark .interest-pill {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
}

body.dark .interest-pill:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

body.dark .interests-grid {
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

@keyframes sectionRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

h1 {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
    color: #111111;
    margin: 0;
}

.subtitle {
    margin-top: 22px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.42);
}

.bio {
    margin-top: 42px;
    max-width: 700px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.58);
}

.ai-section {
    margin-top: 78px;
    max-width: 820px;
    animation: sectionRise 0.9s ease both;
    animation-delay: 0.24s;
}

.ai-label {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.ai-description {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.58);
    max-width: 720px;
    margin-bottom: 22px;
}

.ai-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ai-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.chat-container {
    margin-top: 28px;
    width: 100%;
    max-height: 600px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease, margin-top 0.6s ease;
}

.chat-container.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.chat-messages {
    min-height: 180px;
    max-height: 300px;
    overflow-y: auto;
    padding: 22px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    font-size: 15px;
    line-height: 1.7;
    width: fit-content;
}

.user-message {
    align-self: flex-end;
    text-align: right;
    color: #111111;
    max-width: 55%;
}

.bot-message {
    align-self: flex-start;
    text-align: left;
    color: rgba(0, 0, 0, 0.72);
    max-width: 70%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ai-icon {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-top: 4px;
    opacity: 0.55;
}

.chat-form {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
    width: 100%;
}

.chat-form input {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
    font: inherit;
    font-size: 15px;
    outline: none;
}

.chat-form input::placeholder {
    color: rgba(0, 0, 0, 0.42);
}

.chat-form button {
    padding: 13px 28px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-form button:hover {
    background: rgba(0, 0, 0, 0.05);
}

#typingIndicator {
    opacity: 0.55;
    font-style: italic;
    animation: typingPulse 1.2s infinite ease-in-out;
}

@keyframes typingPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.75;
    }
}

.work-section {
    margin-top: 88px;
    padding-bottom: 54px;
    max-width: 100%;
    animation: sectionRise 0.9s ease both;
    animation-delay: 0.36s;
}

.chat-open .work-section {
    margin-top: 120px;
}

.section-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title::after {
    content: "01";
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.experience-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    column-gap: 20px;
    align-items: start;
    padding: 0 0 26px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.company-logo {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-top: 2px;
}

.experience-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-name {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #111111;
    margin: 0;
}

.company-role {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.55);
}

.company-description {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.55);
    margin-top: 6px;
    max-width: 680px;
}

.company-date {
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.36);
    white-space: nowrap;
    margin-top: 2px;
    justify-self: end;
}

.projects-section {
    margin-top: 15px;
    padding-bottom: 54px;
    max-width: 100%;
    animation: sectionRise 0.9s ease both;
    animation-delay: 0.28s;
}

.projects-section .section-title {
    margin-bottom: 5px;
}

.projects-title::after {
    content: "03";
}

.project-card {
    display: grid;
    grid-template-columns: 44px 1fr 36px;
    grid-template-areas: "projectLogo projectInfo projectGithub";
    column-gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    box-shadow: none;
    transition: opacity 0.25s ease;
}

.project-card:hover {
    opacity: 0.72;
}

.project-logo-wrap {
    grid-area: projectLogo;
    width: 38px;
    height: 38px;
    align-self: center;
    justify-self: start;
    flex-shrink: 0;
}

.project-logo {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.project-info {
    grid-area: projectInfo;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-name,
.project-info h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #111111;
    margin: 0;
}

.project-description,
.project-info p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.55);
    margin-top: 4px;
    max-width: 760px;
}

.github-link {
    grid-area: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: auto !important;
    width: 28px;
    height: 28px;
    text-decoration: none;
    flex-shrink: 0;
}

.github-icon,
.github-link img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    display: block;
    opacity: 0.52;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.github-link:hover .github-icon,
.github-link:hover img {
    opacity: 1;
    transform: translateY(-1px);
}

.education-section {
    margin-top: 12px;
    padding-bottom: 54px;
    max-width: 100%;
    animation: sectionRise 0.9s ease both;
    animation-delay: 0.42s;
}

.education-title::after {
    display: none !important;
    content: none !important;
}

.projects-title::after {
    content: "03";
}

body.dark {
    background: #151515;
    color: #ffffff;
}

body.dark .header {
    background: rgba(21, 21, 21, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark h1,
body.dark .company-name,
body.dark .section-title,
body.dark .ai-label,
body.dark .project-name,
body.dark .project-info h3 {
    color: #ffffff;
}

body.dark .subtitle,
body.dark .bio,
body.dark .ai-description,
body.dark .bot-message,
body.dark .company-description,
body.dark .project-description,
body.dark .project-info p {
    color: rgba(255, 255, 255, 0.62);
}

body.dark .company-role,
body.dark .company-date,
body.dark .nav a {
    color: rgba(255, 255, 255, 0.45);
}

body.dark .section-title::after {
    color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

body.dark .experience-item,
body.dark .project-card {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .chat-form input,
body.dark .theme-btn,
body.dark .chat-form button {
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark .chat-form input {
    background: rgba(255, 255, 255, 0.05);
}

body.dark .chat-form input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

body.dark .chat-form button,
body.dark .theme-btn {
    color: rgba(255, 255, 255, 0.58);
}

body.dark .ai-toggle {
    background: #ffffff;
    color: #111111;
}

body.dark .theme-btn:hover,
body.dark .theme-btn:hover {
    color: #ffffff;
}

body.dark .github-icon,
body.dark .github-link img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.interests-section {
    margin-top: 28px !important;
    padding-bottom: 70px !important;
    max-width: 100% !important;
}

.interests-title {
    margin-bottom: 22px !important;
}

.interests-title::after {
    display: none !important;
    content: none !important;
}

.interests-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px 12px !important;
    max-width: 980px !important;
    margin: 0 auto !important;
}

.interests-grid .interest-pill {
    grid-row: auto !important;
    grid-column: auto !important;
}

.interest-pill {
    width: auto !important;
    min-width: 0 !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
}

.menu-btn {
    display: none;
    margin-left: auto;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 22px;
    cursor: pointer;
}

.letter-page {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
    padding-top: 48px;
    padding-bottom: 90px;
}

.letter-card {
    width: 100%;
    max-width: 820px;
    min-height: 760px;
    padding: 58px 62px 90px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(0, 0, 0, 0.075);
}

.letter-kicker {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.42);
    margin-bottom: 18px;
}

.letter-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1;
    margin-bottom: 42px;
}

.letter-body {
    max-width: 690px;
}

.letter-body p {
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.62);
    margin-bottom: 24px;
}

.letter-signature {
    margin-top: 42px;
    color: #111111 !important;
    font-weight: 500;
}

body.dark .letter-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .letter-kicker,
body.dark .letter-body p {
    color: rgba(255, 255, 255, 0.62);
}

body.dark .letter-signature {
    color: #ffffff !important;
}

.project-actions {
    grid-area: projectGithub;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 10px;
}

.project-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.52);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.project-detail-link:hover {
    color: #111111;
    transform: translateY(-3px);
}

body.dark .project-detail-link {
    color: rgba(255, 255, 255, 0.58);
}

body.dark .project-detail-link:hover {
    color: #ffffff;
}

.project-detail-page {
    min-height: calc(100vh - 72px);
    padding: 76px 0 96px;
}

.project-hero-detail {
    max-width: 780px;
    margin-bottom: 46px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 42px;
    color: rgba(0, 0, 0, 0.48);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    color: #111111;
    transform: translateX(-2px);
}

.project-detail-logo {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-bottom: 28px;
}

.project-kicker {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.42);
    margin-bottom: 18px;
}

.project-detail-title {
    font-size: clamp(44px, 7vw, 78px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.95;
    margin-bottom: 24px;
}

.project-detail-subtitle {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.58);
}

.project-detail-card {
    max-width: 820px;
    padding: 34px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.project-detail-card h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.project-detail-card p {
    max-width: 700px;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(0, 0, 0, 0.58);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 720px;
}

.feature-list span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.56);
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(0, 0, 0, 0.065);
}

.project-github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-github-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

body.dark .back-link {
    color: rgba(255, 255, 255, 0.52);
}

body.dark .back-link:hover {
    color: #ffffff;
}

body.dark .project-kicker,
body.dark .project-detail-subtitle,
body.dark .project-detail-card p {
    color: rgba(255, 255, 255, 0.62);
}

body.dark .project-detail-card {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark .feature-list span {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
}

body.dark .project-github-button {
    background: #ffffff;
    color: #111111;
}

.project-detail-subtitle {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.58);
    margin-bottom: 14px;
}

.project-meta {
    display: flex;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 14px;
    align-items: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

.meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: breathe 1.8s ease-in-out infinite;
}

.meta-pill.collaborative {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.16);
}

.meta-pill.collaborative .meta-dot {
    background: #60a5fa;
}

.meta-pill.independent {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.16);
}

.meta-pill.independent .meta-dot {
    background: #fca5a5;
}

.meta-pill.solo {
    color: #b45309;
    background: rgba(180, 83, 9, 0.08);
    border: 1px solid rgba(180, 83, 9, 0.18);
}

.meta-pill.solo .meta-dot {
    background: #b45309;
}

.project-detail-card:first-of-type {
    padding-top: 34px;
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.45);
    }
}

.project-hero-detail {
    max-width: 780px;
    margin-bottom: 0 !important;
}

.project-detail-subtitle {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.58);
    margin-bottom: 10px !important;
}

.project-meta {
    display: flex;
    gap: 10px;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    align-items: center;
}

.project-detail-card {
    max-width: 820px;
    padding: 34px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.project-detail-card:first-of-type {
    padding-top: 34px !important;
}

.meta-pill.independent {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.16);
}

.meta-pill.independent .meta-dot {
    background: #fca5a5;
}

.project-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.project-github-button,
.project-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
    position: relative;
    top: 0;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.project-github-button {
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
}

.project-github-button:hover {
    transform: translateY(-2px);
    background: #000000;
}

.project-secondary-button {
    background: transparent;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.project-secondary-button:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.05);
    color: #111111;
    text-decoration: none;
}

body.dark .project-github-button {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

body.dark .project-github-button:hover {
    background: rgba(255, 255, 255, 0.92);
}

body.dark .project-secondary-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}

body.dark .project-secondary-button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.project-note {
    margin-top: 12px;
    margin-left: 210px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.48);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-note::before {
    content: "&#8599;&#xfe0e;";
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.38);
}

body.dark .project-note {
    color: rgba(255, 255, 255, 0.52);
}

body.dark .project-note::before {
    color: rgba(255, 255, 255, 0.36);
}

@media (max-width: 768px) {
    .project-note {
        margin-left: 0;
    }
}

.projects-page {
    min-height: calc(100vh - 72px);
    padding: 82px 0 96px;
}

.projects-hero {
    max-width: 760px;
    margin-bottom: 58px;
}

.projects-kicker {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.42);
    margin-bottom: 18px;
}

.projects-page-title {
    font-size: clamp(46px, 7vw, 82px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.95;
    margin-bottom: 24px;
}

.projects-page-subtitle {
    max-width: 690px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.58);
}

.projects-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
}

.projects-slider::-webkit-scrollbar {
    height: 6px;
}

.projects-slider::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.showcase-card {
    min-width: 360px;
    max-width: 360px;
    min-height: 460px;
    scroll-snap-align: start;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(0, 0, 0, 0.075);
    display: flex;
    flex-direction: column;
}

.showcase-logo {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 26px;
}

.showcase-card .project-meta {
    margin-bottom: 22px;
}

.showcase-card h2 {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 18px;
}

.showcase-card p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.58);
    margin-bottom: 34px;
}

.showcase-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 12px 22px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

body.dark .projects-kicker,
body.dark .projects-page-subtitle,
body.dark .showcase-card p {
    color: rgba(255, 255, 255, 0.62);
}

body.dark .showcase-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .showcase-link {
    background: #ffffff;
    color: #111111;
}

body.dark .projects-slider::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
}

.confidential-page {
    min-height: calc(100vh - 72px);
    padding: 82px 0 96px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.lock-card {
    width: 100%;
    max-width: 560px;
    padding: 54px 48px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(0, 0, 0, 0.075);
    text-align: center;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.lock-card.unlocked {
    opacity: 0;
    transform: translateY(-12px);
}

.lock-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 26px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(0, 0, 0, 0.42);
    background: rgba(255, 255, 255, 0.35);
}

.lock-kicker {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.42);
    margin-bottom: 16px;
}

.lock-title {
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.95;
    margin-bottom: 22px;
}

.lock-description {
    max-width: 420px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.56);
}

.password-form {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.password-form input {
    width: 112px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.11);
    background: rgba(255, 255, 255, 0.34);
    color: inherit;
    font: inherit;
    font-size: 18px;
    text-align: center;
    outline: none;
    letter-spacing: 0.18em;
}

.password-form button {
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    background: #111111;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.password-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.password-message {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(180, 83, 9, 0.85);
}

.confidential-content {
    display: none;
    width: 100%;
}

.confidential-content.visible {
    display: block;
    animation: sectionRise 0.7s ease both;
}

body.dark .lock-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .lock-icon {
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .lock-kicker,
body.dark .lock-description {
    color: rgba(255, 255, 255, 0.62);
}

body.dark .password-form input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark .password-form button {
    background: #ffffff;
    color: #111111;
}

.lock-disclaimer {
    margin: 26px auto 0;
    max-width: 460px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.42);
}

.disclaimer-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 1;
    filter: none;
}

body.dark .lock-disclaimer {
    color: rgba(255, 255, 255, 0.46);
}

.project-detail-card p {
    margin-bottom: 28px;
}

.project-detail-card p:last-child {
    margin-bottom: 0;
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.project-reading-meta {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.48);
    font-weight: 500;
}

body.dark .project-reading-meta {
    color: rgba(255, 255, 255, 0.52);
}

.letter-card {
    max-width: 840px;
    min-height: auto;
    padding: 64px 68px 72px;
}

.letter-body {
    max-width: 720px;
    margin-top: 18px;
}

.letter-body p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(0, 0, 0, 0.58);
    margin-bottom: 34px;
    padding-left: 22px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.letter-body p:last-child {
    margin-bottom: 0;
}

body.dark .letter-body p {
    color: rgba(255, 255, 255, 0.62);
    border-left-color: rgba(255, 255, 255, 0.12);
}

.letter-card h1 {
    font-size: 58px;
    line-height: 1;
    letter-spacing: -2.5px;
    margin-bottom: 42px;
}

.letter-page {
    position: relative;
}

.back-home {
    position: absolute;
    right: 18px;
    bottom: 110px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 15px;
    font-weight: 500;

    color: #7a7a7a;
    text-decoration: none;

    transition: opacity 0.2s ease;
}

body.dark .back-home {
    color: rgba(255, 255, 255, 0.48);
}

.company-role {
    transform: translateY(2px);
}

.experience-item {
    position: relative;
}

.experience-item {
    position: relative;
}

.experience-arrow {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);

    width: 24px;
    height: 24px;

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

    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    color: rgba(0, 0, 0, 0.52);
    text-decoration: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}

.experience-arrow:hover {
    color: #111111;
    transform: translateY(-53%) translateX(2px);
}

body.dark .experience-arrow {
    color: rgba(255, 255, 255, 0.58);
}

.floward-page {
    position: relative;
    overflow: hidden;
}

.floward-home {
    position: absolute;
    top: 60px;
    left: 32px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

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

    color: rgba(0, 0, 0, 0.48) !important;
    text-decoration: none !important;

    transition:
        color 0.2s ease,
        font-weight 0.2s ease,
        transform 0.2s ease;
}

.floward-home:visited {
    color: rgba(0, 0, 0, 0.48) !important;
    text-decoration: none !important;
}

.floward-home:hover,
.floward-home:focus,
.floward-home:active {
    color: rgba(0, 0, 0, 0.72) !important;
    font-weight: 600;
    transform: translateX(-2px);
    text-decoration: none !important;
}

body.dark .floward-home,
body.dark .floward-home:visited {
    color: rgba(255, 255, 255, 0.52) !important;
}

body.dark .floward-home:hover,
body.dark .floward-home:focus,
body.dark .floward-home:active {
    color: #ffffff !important;
}

.floward-left {
    position: sticky;
    top: 120px;
    height: fit-content;
    padding-top: 185px;
}

.floward-left::before {
    content: "";
    position: absolute;

    top: -460px;
    left: -400px;

    width: 980px;
    height: 980px;

    background-image: url("../assets/nbg-floward-logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.09;

    filter:
        brightness(0) contrast(0.7) blur(0.5px);

    pointer-events: none;
    z-index: -1;
}

body.dark .floward-left::before {
    opacity: 0.09;

    filter:
        brightness(1.5) contrast(0.9) blur(0.4px);
}

.floward-page .floward-home {
    top: 60px !important;
}

.hero-top {
    position: relative;
}

.pdf-button {
    position: absolute;
    top: 10px;
    right: -270px;

    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;

    padding: 10px 18px;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    transition: 0.25s ease;
}

.pdf-mode .no-pdf {
    display: none !important;
}

.pdf-mode #pdfContent {
    background: #f7f3ec !important;
    color: #111 !important;
    opacity: 1 !important;
}

@media print {

    .header,
    .no-pdf,
    .ai-section,
    .project-actions,
    .experience-arrow,
    .github-link {
        display: none !important;
    }

    body {
        zoom: 0.72;
        background: #f7f3ec !important;
        color: #111 !important;
    }

    #pdfContent {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .hero {
        padding-top: 20px !important;
        padding-bottom: 35px !important;
    }

    .hero h1 {
        font-size: 54px !important;
        margin-bottom: 12px !important;
    }

    .subtitle {
        margin-bottom: 24px !important;
    }

    .work-section,
    .projects-section,
    .education-section,
    .interests-section {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .project-card,
    .experience-item {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .interests-grid {
        gap: 10px !important;
    }

    .interest-pill {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    @page {
        size: A4;
        margin: 0.25in;
    }
}

@media print {

    body,
    body.dark,
    body.dark * {
        color: #111 !important;
    }

    body.dark {
        background: #f7f3ec !important;
    }

    body.dark #pdfContent,
    body.dark .hero,
    body.dark .work-section,
    body.dark .projects-section,
    body.dark .education-section,
    body.dark .interests-section {
        background: #f7f3ec !important;
    }

    body.dark .subtitle,
    body.dark .bio,
    body.dark .company-role,
    body.dark .company-description,
    body.dark .project-description,
    body.dark .company-date {
        color: rgba(0, 0, 0, 0.6) !important;
    }

    body.dark .interest-pill {
        color: #111 !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        background: transparent !important;
    }

    body.dark .company-logo,
    body.dark .project-logo {
        filter: none !important;
    }
}

body.dark .pdf-button {
    color: #f5f5f5 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark .pdf-button:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 700px) {

    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        padding: 0 22px 90px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .header {
        height: 64px !important;
    }

    .header-inner {
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
    }

    .logo {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    .header-actions {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
        background: transparent !important;
        border: none !important;
        font-size: 26px !important;
    }

    .theme-btn {
        margin-left: 0 !important;
    }

    .nav {
        position: absolute !important;
        top: 64px !important;
        right: 0 !important;
        display: none !important;
        flex-direction: column !important;
        gap: 16px !important;
        min-width: 180px !important;
        padding: 18px !important;
        border-radius: 18px !important;
        background: rgba(247, 244, 238, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        z-index: 999 !important;
    }

    body.dark .nav {
        background: rgba(15, 15, 15, 0.96) !important;
    }

    .nav.open {
        display: flex !important;
    }

    .pdf-button {
        display: none !important;
    }

    .hero {
        padding-top: 46px !important;
    }

    .hero h1 {
        font-size: 38px !important;
        line-height: 1 !important;
    }

    .subtitle {
        font-size: 12px !important;
        margin-top: 16px !important;
        letter-spacing: 2px !important;
    }

    .bio {
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-top: 28px !important;
    }

    .ai-section {
        margin-top: 52px !important;
    }

    .ai-label {
        font-size: 28px !important;
    }

    .ai-description {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .ai-toggle {
        width: auto !important;
        padding: 12px 24px !important;
        font-size: 15px !important;
    }

    .work-section,
    .projects-section,
    .education-section,
    .interests-section {
        margin-top: 46px !important;
        padding-bottom: 30px !important;
    }

    .section-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }

    .experience-item,
    .project-card {
        display: grid !important;
        grid-template-columns: 42px 1fr 64px !important;
        column-gap: 16px !important;
        align-items: center !important;
        padding: 14px 0 !important;
    }

    .company-logo,
    .project-logo,
    .project-logo-wrap {
        width: 36px !important;
        height: 36px !important;
    }

    .company-name,
    .project-name,
    .project-info h3 {
        font-size: 18px !important;
    }

    .company-role,
    .company-description,
    .project-description,
    .project-info p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .company-date {
        grid-column: 2 !important;
        justify-self: start !important;
        font-size: 13px !important;
        margin-top: 4px !important;
    }

    .project-actions {
        justify-self: end !important;
        gap: 12px !important;
    }

    .project-detail-link,
    .experience-arrow {
        font-family: Arial, Helvetica, sans-serif !important;
        font-variant-emoji: text !important;
        font-size: 20px !important;
        color: rgba(0, 0, 0, 0.55) !important;
    }

    body.dark .project-detail-link,
    body.dark .experience-arrow {
        color: rgba(255, 255, 255, 0.55) !important;
    }

    .github-link img,
    .github-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .interests-grid {
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .interest-pill {
        font-size: 11px !important;
        padding: 7px 12px !important;
    }

    .letter-page {
        max-width: 100% !important;
        padding-top: 48px !important;
        padding-bottom: 80px !important;
    }

    .letter-card {
        max-width: 100% !important;
        padding: 42px 34px 54px !important;
        border-radius: 28px !important;
    }

    .letter-kicker {
        font-size: 12px !important;
        margin-bottom: 18px !important;
    }

    .letter-card h1 {
        font-size: 38px !important;
        line-height: 1 !important;
        letter-spacing: -2px !important;
        margin-bottom: 34px !important;
    }

    .letter-body {
        max-width: 100% !important;
    }

    .letter-body p {
        font-size: 15px !important;
        line-height: 1.8 !important;
        padding-left: 18px !important;
        margin-bottom: 28px !important;
    }

    .project-detail-page {
        padding-top: 48px !important;
    }

    .project-detail-title {
        font-size: 38px !important;
    }

    .project-detail-card p {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .feature-list {
        gap: 10px !important;
    }

    .feature-list span {
        font-size: 12px !important;
        padding: 8px 13px !important;
    }

    .project-buttons {
        gap: 12px !important;
    }

    .project-github-button,
    .project-secondary-button {
        width: auto !important;
        padding: 12px 22px !important;
    }

    .chat-container {
        margin-top: 26px !important;
    }

    .user-message {
        color: rgba(0, 0, 0, 0.78) !important;
    }

    .bot-message {
        color: rgba(0, 0, 0, 0.68) !important;
    }

    body.dark .user-message {
        color: rgba(255, 255, 255, 0.82) !important;
    }

    body.dark .bot-message {
        color: rgba(255, 255, 255, 0.66) !important;
    }

    body.dark .chat-form input,
    body.dark .chat-form button {
        color: rgba(255, 255, 255, 0.82) !important;
    }

    .floward-page {
        padding: 34px 0 90px !important;
        overflow: hidden !important;
    }

    .floward-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 54px !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .floward-home {
        position: relative !important;
        top: -22px !important;
        left: 0 !important;
        margin-bottom: -12px !important;
        display: inline-flex !important;
        z-index: 3 !important;
    }

    .floward-page .floward-home {
        top: -22px !important;
    }

    .floward-left {
        position: relative !important;
        top: auto !important;
        padding-top: 115px !important;
        width: 100% !important;
    }

    .floward-left::before {
        width: 320px !important;
        height: 320px !important;
        top: -85px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        opacity: 0.07 !important;
    }

    .floward-kicker {
        font-size: 12px !important;
        letter-spacing: 0.22em !important;
        margin-bottom: 22px !important;
    }

    .floward-title {
        font-size: 72px !important;
        line-height: 0.9 !important;
        margin-bottom: 24px !important;
    }

    .floward-subtitle {
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .timeline-wrap {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        gap: 64px !important;
    }

    .timeline-line {
        left: 6px !important;
        top: 10px !important;
        bottom: 40px !important;
    }

    .timeline-item {
        padding-left: 42px !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .timeline-dot {
        left: 0 !important;
        top: 8px !important;
        width: 12px !important;
        height: 12px !important;
    }

    .timeline-number {
        font-size: 11px !important;
        margin-bottom: 14px !important;
    }

    .timeline-item h2 {
        font-size: 34px !important;
        line-height: 1 !important;
        margin-bottom: 14px !important;
    }

    .timeline-item p {
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .exposure-minimal {
        gap: 28px !important;
        margin-top: 34px !important;
    }

    .exposure-minimal span {
        font-size: 22px !important;
    }

    .exposure-minimal p {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
}