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

:root {
    --primary-color: #1d1d1f;
    --secondary-color: #06c;
    --accent-color: #0071e3;
    --text-color: #1d1d1f;
    --text-light: #6e6e73;
    --bg-color: #fbfbfd;
    --card-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    z-index: 100;
}

.sidebar-content {
    padding: 60px 40px;
}

.profile-section {
    text-align: center;
}

.profile-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f5f5f7;
    border: 3px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-light);
}

.profile-section h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.tagline {
    font-size: 0.95rem;
    margin-bottom: 28px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

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

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-links a:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Bio Section in Sidebar */
.bio-section {
    padding-top: 40px;
    padding-left: 8px;
    padding-right: 8px;
}

.bio-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.bio-section p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Bio Card */
.bio-card {
    background: transparent;
    border-radius: 0;
    padding: 0 24px;
    box-shadow: none;
    border: none;
}

.bio-card:hover {
    transform: none;
    box-shadow: none;
}

.bio-card h2 {
    color: var(--text-color);
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.bio-card h2 i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.8rem;
}

.bio-card p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1rem;
    text-align: justify;
}

/* Main Content */
.main-content {
    margin-left: 320px;
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-alt {
    background-color: #ffffff;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.8rem;
}

.scholar-profile-root {
    margin-top: 12px;
}

body[data-page="publications"] #publications-title {
    margin-bottom: 12px;
}

.scholar-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: left;
    padding-left: 5px;
}

.scholar-view-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scholar-view-button:hover,
.scholar-view-button:focus-visible {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-color);
    outline: none;
}

.scholar-view-button.is-active {
    background: #338de9;
    color: #fff;
    border-color: #338de9;
    box-shadow: 0 3px 8px rgba(51, 141, 233, 0.22);
}

.scholar-view-section {
    display: none;
}

.scholar-view-section.is-active {
    display: block;
}

.scholar-publications-card,
.scholar-stats-card,
.scholar-coauthors-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.scholar-publications-card {
    padding: 20px 8px 28px 32px;
}

.scholar-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.scholar-table-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px max-content;
    gap: 16px;
    align-items: center;
    padding: 12px 8px 12px 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5f6368;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
    margin: -20px -8px 8px -32px;
}

.scholar-table-header span:nth-child(2),
.scholar-table-header span:nth-child(3) {
    text-align: right;
}

.scholar-table-header span:nth-child(2) {
    padding-right: 12px;
}

.scholar-table-header span:nth-child(3) {
    padding-right: 12px;
}

.scholar-publications-list {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    body[data-page="publications"] #publications-title {
        margin-bottom: 20px;
    }

    .scholar-profile-root {
        margin-top: 16px;
    }

    .scholar-view-toggle {
        margin-bottom: 10px;
    }

    .scholar-view-button {
        padding: 8px 16px;
    }

    .scholar-publications-card {
        padding: 32px 8px 32px 32px;
    }

    .scholar-table-header {
        margin: -32px -8px 8px -32px;
    }
}

.scholar-publications-empty {
    padding: 24px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.scholar-paper-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px max-content;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: start;
    transition: background-color 0.2s ease, margin 0.2s ease, padding 0.2s ease;
}

.scholar-paper-row:hover {
    background-color: #f8f9fa;
    margin: 0 -8px;
    padding: 20px 8px;
    border-radius: 8px;
}

.scholar-paper-content {
    min-width: 0;
}

.scholar-paper-title {
    display: inline-block;
    font-size: 17px;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.4;
}

.scholar-paper-title:hover {
    color: #0b57d0;
}

.scholar-paper-authors {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 2px;
    line-height: 1.4;
}

.scholar-paper-venue {
    font-size: 0.875rem;
    color: var(--text-light);
}

.scholar-paper-cited,
.scholar-paper-year {
    text-align: right;
    font-size: 0.95rem;
    color: var(--text-light);
    white-space: nowrap;
}

.scholar-paper-cited {
    padding-right: 12px;
}

.scholar-paper-year {
    padding-right: 12px;
}

.scholar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.scholar-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scholar-badge-1st {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.scholar-badge-ranking {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.scholar-badge-patent {
    background: linear-gradient(135deg, #34a853, #0f9d58);
}

.scholar-badge-journal {
    background: linear-gradient(135deg, #a569bd, #bb8fce);
}

.scholar-badge-award {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #4a2b00;
}

.scholar-badge-download {
    background: linear-gradient(135deg, #9e9e9e, #757575);
}

.scholar-badge-top-download {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.scholar-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}

.scholar-paper-cited,
.scholar-paper-year {
    text-align: right;
    font-size: 0.95rem;
    color: var(--text-light);
    white-space: nowrap;
}

.scholar-paper-cited {
    padding-right: 20px;
}

.scholar-ellipsis-row {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-light);
    letter-spacing: 0.4em;
    padding: 16px 0 8px;
}

.scholar-toggle-row {
    text-align: center;
    margin-top: 12px;
}

.talks-toggle-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.scholar-toggle-button {
    border: none;
    background: rgba(66, 133, 244, 0.12);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scholar-toggle-button::before {
    content: '';
    width: 12px;
    height: 12px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23787878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    transition: transform 0.2s ease;
}

.scholar-toggle-button[data-state="expanded"]::before {
    transform: rotate(180deg);
}

.talks-sort-button::before {
    display: none;
}

.talk-card-animate {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.05s ease-out, transform 1.05s ease-out;
    will-change: opacity, transform;
}

.talk-card-animate-active {
    opacity: 1;
    transform: translateY(0);
}

.scholar-toggle-button:hover,
.scholar-toggle-button:focus-visible {
    background: rgba(66, 133, 244, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.scholar-paper-cited a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.scholar-paper-cited a:hover {
    text-decoration: underline;
}

.scholar-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.scholar-stats-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.scholar-stats-total {
    text-align: center;
}

.scholar-citations-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-top: 8px;
}

.citation-toggle-btn {
    margin-top: 8px;
    padding: 0;
    font-size: 0.7rem;
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    position: relative;
    padding-bottom: 1px;
}

.citation-toggle-btn i {
    font-size: 0.6rem;
}

.citation-toggle-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.citation-toggle-btn:hover::after,
.citation-toggle-btn:focus-visible::after {
    opacity: 1;
}

.scholar-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.scholar-stats-table th,
.scholar-stats-table td {
    padding: 8px 0;
    text-align: left;
}

.scholar-stats-table th {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.scholar-stats-table td {
    color: var(--text-color);
}

.scholar-chart-wrapper {
    width: 100%;
    height: 180px;
}

.scholar-chart-wrapper canvas {
    width: 100%;
    height: 100%;
}

.scholar-coauthors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.scholar-coauthor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    background: rgba(66, 133, 244, 0.05);
    transition: transform 0.2s ease, background 0.2s ease;
}

.scholar-coauthor-item:hover {
    transform: translateX(4px);
    background: rgba(66, 133, 244, 0.12);
}

.scholar-coauthor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8eaed, #dadce0);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scholar-coauthor-info {
    flex: 1;
    min-width: 0;
}

.scholar-coauthor-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.scholar-coauthor-affiliation {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1050px) {
    .scholar-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .scholar-citations-number {
        font-size: 4rem;
    }
}

@media (max-width: 680px) {
    .scholar-publications-card,
    .scholar-stats-card,
    .scholar-coauthors-card {
        padding: 24px;
    }

    .scholar-publications-card {
        padding: 24px 8px 24px 24px;
    }

    .scholar-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .scholar-citations-number {
        font-size: 3.5rem;
    }

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

    .scholar-table-header,
    .scholar-paper-row {
        grid-template-columns: minmax(0, 1fr) 60px max-content;
        gap: 8px;
    }

    .scholar-table-header {
        padding: 10px 8px 10px 12px;
        margin: -24px -8px 8px -24px;
        font-size: 0.625rem;
        border-radius: 16px 16px 0 0;
    }

    .scholar-table-header span:nth-child(3) {
        padding-right: 10px;
    }

    .scholar-paper-row {
        padding: 16px 0;
    }

    .scholar-paper-row:hover {
        margin: 0 -8px;
        padding: 16px 8px;
        border-radius: 8px;
    }

    .scholar-paper-title {
        font-size: 0.9375rem;
        margin-bottom: 6px;
    }

    .scholar-paper-authors,
    .scholar-paper-venue {
        font-size: 0.8125rem;
    }

    .scholar-paper-cited,
    .scholar-paper-year {
        font-size: 0.85rem;
        padding-right: 10px;
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline-card {
    position: relative;
}

.timeline-card:not(.talk-item) {
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-rows: repeat(3, auto);
    column-gap: 18px;
    row-gap: 6px;
    align-items: start;
}

.timeline-icon {
    font-size: 2.4rem;
    background: transparent;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.timeline-card:not(.talk-item) .timeline-icon {
    position: static;
    grid-row: 1 / span 3;
    align-self: center;
    margin-bottom: 0;
}

.timeline-card:not(.talk-item) h3,
.timeline-card:not(.talk-item) .role,
.timeline-card:not(.talk-item) .date {
    grid-column: 2;
}

.timeline-card:not(.talk-item) h3 {
    margin: 0;
    line-height: 1.25;
}

.timeline-card:not(.talk-item) .role {
    margin: 0;
    line-height: 1.3;
}

.timeline-card:not(.talk-item) .date {
    margin: 0 0 10px;
    line-height: 1.3;
}

.timeline-date-note {
    font-size: 0.8em;
    opacity: 0.75;
}

.timeline-card:not(.talk-item) > :not(.timeline-icon):not(h3):not(.role):not(.date) {
    grid-column: 1 / -1;
}

.timeline-icon-inner {
    --icon-image-scale: 1;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(max(0, 1 - var(--icon-image-scale, 1)) * 50%);
}

.timeline-icon-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-card h3 {
    color: var(--text-color);
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

/* Talk items without icons */
.talk-item {
    padding-left: 24px;
}

/* Single line items with icons (talks, volunteer, awards) */
.single-line-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
}

.timeline-card.single-line-card {
    display: flex;
    align-items: center;
}

.single-line-card .timeline-icon {
    flex: 0 0 auto;
}

.single-line-card .single-line-text {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 1rem;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 400;
}

.timeline-card ul {
    margin-left: 20px;
    margin-top: 14px;
}

.timeline-card li {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.timeline-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.achievement-card {
    text-align: center;
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover {
    transform: translateY(-6px);
}

.achievement-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.achievement-card:nth-child(1) .achievement-icon {
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
}

.achievement-card:nth-child(2) .achievement-icon {
    background: linear-gradient(135deg, #ff9500 0%, #ff6700 100%);
}

.achievement-card:nth-child(3) .achievement-icon {
    background: linear-gradient(135deg, #ff375f 0%, #ff1744 100%);
}

.achievement-card:nth-child(4) .achievement-icon {
    background: linear-gradient(135deg, #30d158 0%, #00c7be 100%);
}

.achievement-card:nth-child(5) .achievement-icon {
    background: linear-gradient(135deg, #bf5af2 0%, #a037e8 100%);
}

.achievement-card:nth-child(6) .achievement-icon {
    background: linear-gradient(135deg, #64d2ff 0%, #0a84ff 100%);
}

.achievement-card-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.achievement-card-link:hover {
    transform: translateY(-4px);
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.08);
}

.achievement-icon i {
    font-size: 2rem;
    color: white;
}

.achievement-card h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.achievement-number .number-divider {
    margin: 0 0.4em;
    color: var(--text-light);
    font-weight: 300;
}

.achievement-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

.achievements-cta {
    text-align: center;
    margin-top: 48px;
}

.cta-button {
    display: inline-block;
    padding: 13px 32px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
    letter-spacing: -0.01em;
}

.cta-button:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.35);
}

.cta-button i {
    margin-right: 8px;
}

/* Footer */
.footer {
    background: transparent;
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
}

.nav-link:hover {
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-color);
}

.nav-link.active {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-content {
        padding: 40px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .achievement-card {
        padding: 32px 24px;
    }

    .achievement-number {
        font-size: 2.2rem;
    }

    .cta-button {
        padding: 11px 28px;
        font-size: 0.95rem;
    }
    
    .timeline-card {
        padding-left: 0;
    }

    .timeline-card:not(.talk-item) {
        grid-template-columns: 58px 1fr;
    }

    .single-line-card {
        gap: 16px;
    }

    .timeline-icon {
        width: 58px;
        height: 58px;
        font-size: 2.2rem;
    }
    
    .sidebar-nav {
        margin-top: 32px;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.9rem;
    }

    .card {
        padding: 24px;
    }

    .bio-card h2 {
        font-size: 1.6rem;
    }

    .profile-section h1 {
        font-size: 1.6rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .sidebar-content {
        padding: 30px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 30px 0;
    }

    .profile-section h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .bio-card {
        padding: 0 16px;
    }

    .bio-card h2 {
        font-size: 1.4rem;
    }

    .card {
        padding: 20px;
        border-radius: 12px;
    }

    .timeline-card:not(.talk-item) {
        grid-template-columns: 54px 1fr;
        column-gap: 14px;
        row-gap: 4px;
    }

    .single-line-card {
        gap: 14px;
    }

    .timeline-card:not(.talk-item) h3 {
        margin: 0;
        line-height: 1.25;
    }

    .timeline-card:not(.talk-item) .role {
        margin: 0;
        line-height: 1.3;
    }

    .timeline-card:not(.talk-item) .date {
        margin: 0 0 8px;
        line-height: 1.3;
    }

    .timeline-icon {
        width: 54px;
        height: 54px;
        font-size: 2.0rem;
    }

    .timeline-card h3 {
        font-size: 1.1rem;
    }

    .achievement-card h3 {
        font-size: 1.1rem;
    }

    .achievement-number {
        font-size: 2rem;
    }

    .achievement-icon {
        width: 56px;
        height: 56px;
    }

    .achievement-icon i {
        font-size: 1.8rem;
    }

    .social-links {
        gap: 16px;
    }

    .social-links a {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .sidebar-content {
        padding: 24px 12px;
    }

    .container {
        padding: 0 12px;
    }

    .section {
        padding: 24px 0;
    }

    .profile-section h1 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .tagline {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .profile-image {
        width: 90px;
        height: 90px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .section-title i {
        font-size: 1.4rem;
    }

    .bio-card h2 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .bio-card h2 i {
        font-size: 1.4rem;
    }

    .bio-card {
        padding: 0 12px;
    }

    .card {
        padding: 16px;
        border-radius: 10px;
    }

    .timeline-card h3 {
        font-size: 1rem;
    }

    .timeline-card ul {
        margin-left: 16px;
    }

    .timeline-card li,
    .timeline-card p,
    .bio-card p {
        font-size: 0.9rem;
    }

    .achievement-card {
        padding: 24px 16px;
    }

    .achievement-card h3 {
        font-size: 1rem;
    }

    .achievement-number {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .achievement-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .achievement-icon i {
        font-size: 1.5rem;
    }

    .achievement-desc {
        font-size: 0.85rem;
    }

    .achievements-cta {
        margin-top: 32px;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 14px;
    }

    .social-links a {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .nav-link i {
        font-size: 1rem;
    }

    .footer {
        font-size: 0.85rem;
        padding: 30px 0;
    }

    .role {
        font-size: 0.95rem;
    }

    .date {
        font-size: 0.85rem;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .single-line-card {
        gap: 12px;
    }

    .single-line-card .single-line-text {
        font-size: 0.9rem;
    }
}

/* Formal marker highlight */
.highlight-yellow {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 40%, 
        rgba(255, 235, 59, 0.5) 40%, 
        rgba(255, 235, 59, 0.5) 100%
    );
    padding: 0 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
