:root {
    --bg: #06111f;
    --bg-2: #091726;
    --sidebar: #05142a;
    --sidebar-2: #081c36;
    --panel: rgba(11, 20, 33, 0.95);
    --panel-2: rgba(13, 23, 38, 0.94);
    --border: rgba(255, 255, 255, 0.08);
    --text: #eef4fb;
    --muted: #9bacbe;
    --accent: #44d14d;
    --accent-2: #2fcf5c;
    --nav-active: rgba(255, 255, 255, 0.08);
    --chip: rgba(255, 255, 255, 0.04);
    --shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

:root.theme-light {
    --bg: #eef3f8;
    --bg-2: #dfe7f1;
    --sidebar: #0f2748;
    --sidebar-2: #16365f;
    --panel: rgba(255, 255, 255, 0.98);
    --panel-2: rgba(247, 250, 252, 0.98);
    --border: rgba(15, 23, 42, 0.08);
    --text: #112033;
    --muted: #516273;
    --accent: #20b455;
    --accent-2: #16a34a;
    --nav-active: rgba(255, 255, 255, 0.14);
    --chip: rgba(15, 23, 42, 0.05);
    --shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(68, 209, 77, 0.1), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.09), transparent 28%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%),
        linear-gradient(135deg, rgba(68, 209, 77, 0.03), transparent 50%);
    pointer-events: none;
}

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

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

h1,
h2,
h3,
strong {
    margin: 0;
    color: var(--text);
}

svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.portfolio-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 324px 1fr;
    min-height: 100vh;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(5, 20, 42, 0.92);
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #eef4fb;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100vh;
    overflow-y: auto;
    padding: 28px 22px;
    background:
        linear-gradient(180deg, var(--sidebar-2), var(--sidebar)),
        var(--sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar__profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 10px 4px;
    text-align: center;
}

.avatar-frame {
    width: 158px;
    height: 158px;
    flex: 0 0 158px;
    border-radius: 999px;
    overflow: hidden;
    border: 4px solid #2f65ff;
    background: linear-gradient(180deg, #f7faff, #e3ebf8);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    display: block;
}

.sidebar__profile-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.sidebar__profile-copy h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fbff;
}

.sidebar__profile-copy p {
    margin: 0;
}

.sidebar__headline {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dce6f8;
}

.sidebar__meta {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 248px;
    margin-top: 6px;
}

.sidebar__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7e0ee;
    font-size: 1.03rem;
    font-weight: 600;
    text-align: left;
}

.sidebar__meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #f4f7fd;
}

.sidebar__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 0 10px;
}

.sidebar__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f4f7fd;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.sidebar__social a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.sidebar__social a svg {
    width: 20px;
    height: 20px;
}

.menu {
    display: grid;
    gap: 4px;
    margin-top: 4px;
}

.menu__item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 0 16px;
    color: #dfe9f6;
    font-size: 1rem;
    font-weight: 700;
    transition: background 140ms ease, padding-left 140ms ease;
}

.menu__item:hover,
.menu__item.is-active {
    background: var(--nav-active);
    padding-left: 20px;
}

.menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #edf3fb;
}

.sidebar__footer {
    margin-top: auto;
    padding: 0 10px;
}

.mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    width: 100%;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #edf4fb;
    cursor: pointer;
}

.toggle-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(68, 209, 77, 0.12);
}

.toggle-label {
    font-size: 0.88rem;
    font-weight: 600;
}

.workspace {
    padding: 40px clamp(36px, 6vw, 108px);
}

.workspace > * {
    width: min(100%, 1020px);
    margin-left: auto;
    margin-right: auto;
}
.panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.workspace__hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 4px 0 0;
    margin-bottom: 22px;
}

.hero-copy {
    display: grid;
    gap: 10px;
}

.hero-copy .eyebrow {
    margin-bottom: 8px;
}

.hero-copy .chip-row {
    margin-top: 8px;
}

.eyebrow {
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--accent);
    line-height: 1.04;
}

.hero-text {
    margin-top: 0;
    max-width: 720px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
}

.project-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.project-meta svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.project-chip-row {
    margin-top: 4px;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
}

.project-chip--accent {
    color: var(--accent);
    background: rgba(68, 209, 77, 0.12);
    border-color: rgba(68, 209, 77, 0.18);
}

.project-detail-stack {
    display: grid;
    gap: 6px;
}

.project-section {
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.project-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.project-section h4 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

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

.project-accordion {
    padding: 0;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-accordion:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
    border-color: rgba(68, 209, 77, 0.35);
}

:root.theme-light .project-accordion:hover {
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.project-accordion[open] {
    border-color: rgba(68, 209, 77, 0.45);
}

.project-accordion__summary {
    display: block;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
    transition: background 180ms ease;
}

.project-accordion__summary:hover {
    background: rgba(68, 209, 77, 0.06);
}

.project-accordion__summary::-webkit-details-marker {
    display: none;
}

.project-accordion__summary::marker {
    display: none;
    content: "";
}

.project-accordion__period {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.project-accordion__headline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.project-accordion__title {
    display: block;
    font-size: clamp(1.34rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
}

.project-accordion__chevron {
    width: 12px;
    height: 12px;
    margin-top: 8px;
    flex: 0 0 12px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 180ms ease, border-color 180ms ease;
}

.project-accordion[open] .project-accordion__chevron {
    transform: rotate(-135deg);
    border-color: var(--accent);
}

.project-accordion__summary-text {
    display: block;
    margin-top: 6px;
    max-width: 760px;
    color: var(--muted);
    font-size: 0.96rem;
}

.project-accordion__chips {
    margin-top: 14px;
}

.project-accordion__chips span {
    min-height: 28px;
    padding: 0 12px;
    font-size: 0.8rem;
    background: rgba(68, 209, 77, 0.1);
    color: var(--accent);
    border: 1px solid rgba(68, 209, 77, 0.25);
    border-radius: 999px;
    font-weight: 600;
}

:root.theme-light .project-accordion__chips span {
    background: rgba(32, 180, 85, 0.1);
    border-color: rgba(32, 180, 85, 0.3);
}

.project-accordion__body {
    display: grid;
    gap: 18px;
    padding: 22px 24px 26px;
    border-top: 1px solid var(--border);
}

.project-accordion__link {
    margin-top: 4px;
    min-height: 42px;
    padding: 0 18px;
    width: fit-content;
}

.project-summary-grid {
    align-items: stretch;
}

.project-summary-card {
    display: grid;
    gap: 12px;
    min-height: 100%;
}

.project-summary-title {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.project-summary-card .bullet-list {
    margin: 0;
}

.content-stack {
    display: grid;
    gap: 22px;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.recognition-groups {
    align-items: start;
}

.recognition-group {
    display: grid;
    gap: 14px;
}

.recognition-group__header {
    margin-bottom: 0;
}

.recognition-group__header h4 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text);
}

.recognition-stack {
    display: grid;
    gap: 12px;
}

.award-list {
    display: grid;
    gap: 12px;
}

.award-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: start;
}

.award-item__date {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent);
}

.award-item__body {
    display: grid;
    gap: 6px;
}

.award-item__body p {
    margin: 0;
    color: var(--muted);
}

.panel {
    padding: 24px;
}

.panel-header {
    margin-bottom: 16px;
}

.panel-header h3 {
    font-size: 1.34rem;
    font-weight: 700;
}

.panel-body > * + * {
    margin-top: 14px;
}

.info-list,
.meta-list,
.bullet-list {
    display: grid;
    gap: 14px;
}

.info-card {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.recognition-card {
    display: grid;
    gap: 8px;
    min-height: 100%;
}

.recognition-card strong {
    margin: 0;
}

.activity-card {
    display: grid;
    gap: 8px;
}

.activity-stack {
    display: grid;
    gap: 14px;
}

.activity-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.activity-meta {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent);
}

.activity-role {
    font-weight: 700;
    color: var(--text);
}

.publication-list {
    display: grid;
    gap: 18px;
}

.publication-entry {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.publication-date {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted);
}

.publication-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
}

.publication-authors {
    color: var(--muted);
}

.author-highlight {
    color: var(--text);
    font-weight: 800;
}

.publication-venue {
    color: var(--accent);
    font-weight: 700;
}

.publication-summary {
    color: var(--muted);
}

.publication-chip-row {
    margin-top: 2px;
}

.education-timeline {
    position: relative;
    display: grid;
    gap: 30px;
    padding-left: 4px;
}

.education-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 19px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(68, 209, 77, 0.28), var(--border));
}

.education-record {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 20px;
}

.education-record__rail {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    padding-top: 8px;
}

.education-record__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.65);
}

.education-record.is-current .education-record__dot {
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 0 0 6px rgba(68, 209, 77, 0.14);
}

.education-record__body {
    display: grid;
    gap: 12px;
    padding-bottom: 4px;
}

.education-record__topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.education-degree {
    margin: 0;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text);
}

.education-school {
    margin-top: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.education-period {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.education-period svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.education-facts {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-facts li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.65;
}

.education-facts li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.education-facts strong {
    color: var(--text);
    font-weight: 700;
}

.experience-timeline {
    position: relative;
    display: grid;
    gap: 30px;
    padding-left: 4px;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 19px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(68, 209, 77, 0.28), var(--border));
}

.experience-record {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 20px;
}

.experience-record__rail {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    padding-top: 8px;
}

.experience-record__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.65);
}

.experience-record.is-current .experience-record__dot {
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 0 0 6px rgba(68, 209, 77, 0.14);
}

.experience-record__body {
    display: grid;
    gap: 12px;
    padding-bottom: 4px;
}

.experience-record__topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.experience-role {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text);
}

.experience-org {
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.experience-period {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.experience-period svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.experience-facts {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.experience-facts li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.65;
}

.experience-facts li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.experience-facts strong {
    color: var(--text);
    font-weight: 700;
}

.info-card strong {
    display: block;
    margin-bottom: 6px;
}

.meta-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.timeline-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(68, 209, 77, 0.1);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bullet-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--chip);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
}

.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 420ms ease forwards;
}

.fade-up:nth-child(2) {
    animation-delay: 70ms;
}

.fade-up:nth-child(3) {
    animation-delay: 120ms;
}

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

@media (max-width: 980px) {
    .portfolio-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: auto;
        width: min(320px, 88vw);
        transform: translateX(-105%);
        transition: transform 180ms ease;
        z-index: 35;
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
    }

    .workspace {
        padding: 76px 16px 16px;
    }

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

    .workspace__hero {
        flex-direction: column;
        align-items: start;
        gap: 16px;
    }
}

@media (max-width: 720px) {
    .avatar-frame {
        width: 132px;
        height: 132px;
        flex-basis: 132px;
    }

    .sidebar__profile-copy h1 {
        font-size: 1.7rem;
    }

    .sidebar__headline,
    .sidebar__meta-item {
        font-size: 1rem;
    }

    .education-record {
        grid-template-columns: 24px 1fr;
        gap: 14px;
    }

    .education-timeline::before {
        left: 16px;
    }

    .education-degree {
        font-size: 1.35rem;
    }

    .experience-record {
        grid-template-columns: 24px 1fr;
        gap: 14px;
    }

    .experience-timeline::before {
        left: 16px;
    }

    .experience-role {
        font-size: 1.28rem;
    }

    .award-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-accordion__summary,
    .project-accordion__body {
        padding-left: 8px;
        padding-right: 8px;
    }

    .project-accordion__headline {
        gap: 12px;
    }

    .eyebrow {
        font-size: clamp(1.72rem, 7vw, 2.35rem);
    }
}
