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

:root {
    /* Palette: deep brown base + teal accents */
    --black: #2b2119;
    --black-mid: #3b2a20;
    --black-light: #6b4f3a;
    /* Teal family (cool, green-blue) */
    --teal: #0f766e;          /* primary accent */
    --teal-bright: #14b8a6;   /* buttons, hovers */
    --teal-soft: #22cbbb;     /* borders, highlights */
    --teal-muted: #e0f7f4;    /* body text on dark bg */
    /* Semantic aliases mapped to teal */
    --neon-pink: var(--teal);
    --neon-pink-bright: var(--teal-bright);
    --neon-pink-glow: var(--teal-soft);
    --neon-pink-muted: var(--teal-muted);
    --hotpink: var(--teal);
    --hotpink-bright: var(--teal-bright);
    --hotpink-dark: var(--teal-soft);
    --hotpink-muted: var(--teal-muted);
    --bg-dark: var(--black);
    --bg-mid: var(--black-mid);
    --white: #fdf7ec;
    --gray: var(--black-light);
    --light-gray: #b69575;
    --border: var(--teal-soft);
    --accent: var(--teal);
    --accent-hover: var(--teal-bright);
    --folder-beige: #f5e7d2;
    --folder-beige-active: #e7d3b8;
    --folder-placeholder: #d5bda0;
    --folder-placeholder-text: #4b3320;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: var(--white);
    background-color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    font-size: 0.975rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Nav bar: dark brown background, white text */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background-color: #1a1510;
    border: none;
}

.nav .logo,
.nav .nav-link {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #ffffff;
    text-decoration: none;
}

.nav .nav-link:hover {
    color: #ffffff;
    opacity: 0.85;
}

.nav .nav-link {
    position: relative;
    padding-bottom: 0.15rem;
}

.nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.2s ease;
}

.nav .nav-link:hover::after {
    width: 100%;
}

/* Legacy: neon-nav uses same as .nav */
.nav.neon-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1a1510;
    z-index: 1000;
    padding: 0.75rem 0;
    border: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-home {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-decoration: none;
}

.nav-name {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
    -webkit-text-stroke: 0.5px rgba(255,255,255,0.5);
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.nav.neon-nav .nav-link {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-decoration: none;
}

.nav.neon-nav .nav-link:hover {
    color: #ffffff;
    opacity: 0.85;
}

main {
    margin-top: 52px;
}

/* Live layout: simple centered hero (matches index.html) */
.hero {
    padding: 5.25rem 2rem 4rem;
    background-color: var(--black);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.hero-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(2.6rem, 4.6vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.2rem;
    color: var(--white);
}

/* Two-column main: left = big title + bio, right = CLICK ME + folders */
.hero.main-split {
    min-height: calc(100vh - 52px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 3rem 4rem;
    background-color: var(--black);
    max-width: 1600px;
    margin: 0 auto;
}

.main-left {
    padding-right: 2rem;
}

/* Big title: extremely bold condensed sans, all caps, neon pink — like DESIGN PORTFOLIO */
.hero-big-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.95;
    color: var(--neon-pink);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-bio {
    max-width: 560px;
}

.hero-bio p {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-bio p:last-child {
    margin-bottom: 0;
}

.main-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

/* CLICK ME: neon pink bg, thin black border, black text — like reference */
.click-me-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--black);
    background: var(--neon-pink);
    color: var(--black);
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}

.click-me-btn:hover {
    opacity: 0.95;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
}

/* Folder stack: beige/cream tabs + body, black outline — like reference */
.folder-stack {
    width: 100%;
    max-width: 420px;
    border: 2px solid var(--black);
    background: var(--folder-beige);
    border-radius: 0;
    overflow: hidden;
}

.folder-tabs {
    display: flex;
    border-bottom: 2px solid var(--black);
}

.folder-tab {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.4rem;
    background: var(--folder-beige);
    border-right: 1px solid var(--black);
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.folder-tab:last-child {
    border-right: none;
}

.folder-tab.active {
    background: var(--folder-beige-active);
    font-weight: 600;
}

.folder-tab a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.folder-body {
    padding: 1.25rem;
    min-height: 200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.folder-body .placeholder {
    background: var(--folder-placeholder);
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    color: var(--folder-placeholder-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.folder-body .placeholder-large {
    grid-column: 1;
    grid-row: 1 / -1;
}

.folder-body .placeholder-small {
    min-height: 80px;
}

.hero-subtitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--light-gray);
    font-weight: 500;
    letter-spacing: 0.18em;
    margin-bottom: 0.8rem;
}

.hero-education {
    margin-top: 1.25rem;
    text-align: left;
    max-width: 520px;
}

.hero-edu-item {
    margin-bottom: 0.75rem;
}

.hero-edu-item:last-child {
    margin-bottom: 0;
}

.hero-edu-school {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.01em;
}

.hero-edu-degree {
    font-size: 0.95rem;
    color: var(--light-gray);
    font-weight: 400;
    margin-top: 0.2rem;
}

.hero-edu-years {
    color: var(--teal-soft);
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
}

.section-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--white);
}

.section-title .resume-dl {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--hotpink-dark);
    text-decoration: none;
}

.section-title .resume-dl:hover {
    color: var(--hotpink);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    border: 2px solid var(--hotpink-dark);
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--black-mid);
    border-radius: 10px;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 14px 40px rgba(13, 148, 136, 0.25);
    transform: translateY(-4px);
}

.project-card.project-link {
    text-decoration: none;
    color: inherit;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: var(--white);
}

.project-description {
    font-size: 0.875rem;
    color: var(--hotpink-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-meta {
    font-size: 0.75rem;
    color: var(--hotpink-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-notebook-badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.project-notebook-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.project-notebook-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--hotpink-dark);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
}

.project-notebook-link:hover {
    border-color: var(--accent);
    color: var(--white);
}

.project-card.project-card-multi {
    cursor: default;
}

.project-card.project-card-multi:hover {
    transform: none;
}

.project-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.about-content {
    max-width: 100%;
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--teal-muted);
}

.awards-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.awards-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.awards-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--hotpink);
}

.about-content a {
    color: var(--hotpink-dark);
    font-weight: 500;
}

.about-content a:hover {
    color: var(--accent);
}

.contact-content {
    max-width: 700px;
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--teal-muted);
}

.contact-content a {
    color: var(--hotpink-dark);
    font-weight: 500;
}

.contact-content a:hover {
    color: var(--accent);
}

.contact {
    border-top: 1px solid var(--border);
}

/* Scroll for resume — blurb + arrow button (same style as click me) */
.scroll-for-resume {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--black);
}

.scroll-blurb {
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--hotpink-muted);
    margin-bottom: 1rem;
}

.scroll-resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid var(--neon-pink);
    background: var(--neon-pink);
    color: var(--black);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 999px;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s ease;
}

.scroll-resume-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 24px var(--neon-pink-glow);
    transform: translateY(2px);
}

.scroll-resume-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.scroll-resume-arrow {
    line-height: 1;
}

/* Timeline: reveal on scroll */
.timeline-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.timeline-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* (email gate removed)
.submit-btn was here - reuse if adding a contact form submit button
*/
.submit-btn {
    background-color: var(--hotpink);
    color: var(--black);
    border: none;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 999px;
    transition: background-color 0.2s, color 0.2s, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background-color: var(--hotpink-bright);
    color: var(--black);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(20, 184, 166, 0.35);
}

.submit-btn:focus-visible {
    outline: 2px solid var(--hotpink-bright);
    outline-offset: 3px;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    display: none;
}

.form-message.success {
    display: block;
    background-color: var(--hotpink-muted);
    color: var(--black);
}

.form-message.error {
    display: block;
    background-color: var(--black-light);
    color: var(--hotpink-bright);
}

.resume {
    border-top: 2px solid var(--hotpink);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

/* Time-axis timeline (Gantt/calendar style): vertical axis = time, boxes positioned by date */
.timeline.timeline-axis {
    position: relative;
    height: var(--timeline-height, 900px);
    padding: 3rem 0.5rem 0;
}

.timeline-axis-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--neon-pink-muted), var(--neon-pink), var(--neon-pink-muted));
    transform: translateX(-50%);
    z-index: 1;
}

/* Section labels above left and right sides */
.timeline-side-label {
    position: absolute;
    top: -2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hotpink);
    z-index: 25;
    pointer-events: none;
}

.timeline-side-label-left {
    left: 0;
    right: 50%;
    text-align: center;
}

.timeline-side-label-right {
    left: 50%;
    right: 0;
    text-align: center;
}

.timeline-axis-labels {
    position: absolute;
    left: 51%;
    top: 0;
    bottom: 0;
    width: 3rem;
    margin-left: 0;
    transform: none;
    z-index: 25;
    pointer-events: none;
}

.timeline-year {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hotpink-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Tick marks on axis at each box start date */
.timeline-start-mark {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--hotpink-bright);
    transform: translate(-50%, -50%);
    z-index: 4;
    box-sizing: border-box;
    border: 2px solid var(--black);
}

/* Horizontal tick lines from start-date mark to each box */
.timeline-tick-lines {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.timeline-tick-line {
    position: absolute;
    height: 2px;
    background: var(--hotpink-dark);
    transform: translateY(-50%);
    opacity: 0.9;
    border-radius: 1px;
}

.timeline-box {
    position: absolute;
    margin: 0 2px;
    box-sizing: border-box;
    z-index: 3;
    padding: 0.25rem;
    transition: z-index 0s 0.25s, width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), min-width 0.35s ease, min-height 0.35s ease, left 0.35s ease, top 0.35s ease, bottom 0.35s ease;
}

.timeline-box:hover {
    z-index: 30;
    transition: z-index 0s 0s, width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), min-width 0.35s ease, min-height 0.35s ease, left 0.35s ease, top 0.35s ease, bottom 0.35s ease;
    /* Never shrink: width/height only grow. Left/top/bottom stay so box doesn’t move. */
    min-width: max(320px, calc(var(--lane-width-pct) * 1%));
    width: max(320px, calc(var(--lane-width-pct) * 1%)) !important;
    min-height: 420px;
    /* Do not set height or bottom: auto — keep top/bottom so height never shrinks */
    margin-left: -2px;
    margin-right: -2px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--accent);
    border-radius: 10px;
}

.timeline-box-inner {
    height: 100%;
    min-height: 0;
    border-radius: 8px;
    background-color: var(--box-color, var(--black-mid));
    color: var(--white);
    padding: 0.75rem 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-radius 0.3s ease;
    border: 1px solid var(--hotpink-dark);
}

.timeline-box:hover .timeline-box-inner {
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: none;
}

/* Always visible: date, title, company */
.timeline-box-header {
    flex-shrink: 0;
}

.timeline-box .timeline-date {
    color: var(--hotpink-bright);
    font-size: 0.6rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
    letter-spacing: 0.03em;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
}

.timeline-box .timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hotpink);
    margin-bottom: 0.25rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.timeline-box .timeline-company {
    font-size: 0.875rem;
    color: var(--hotpink-bright);
    margin-bottom: 0;
    margin-top: 0.2rem;
    line-height: 1.35;
    font-weight: 600;
}

/* Expand on hover: description + achievements (actual scrolling handled by .timeline-box-inner) */
.timeline-box-body {
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.05s;
}

.timeline-box:hover .timeline-box-body {
    opacity: 1;
    overflow: visible;
    transition: opacity 0.28s ease 0.02s;
}

.timeline-box-body .timeline-location {
    font-size: 0.75rem;
    color: var(--hotpink-bright);
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    line-height: 1.3;
}

.timeline-box-body .timeline-description {
    font-size: 0.8125rem;
    color: var(--hotpink-bright);
    line-height: 1.55;
    margin-bottom: 0.6rem;
    -webkit-line-clamp: unset;
    display: block;
}

.timeline-box .timeline-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: var(--hotpink-bright);
    line-height: 1.5;
}

.timeline-box .timeline-achievements li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.35rem;
}

.timeline-box .timeline-achievements li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--hotpink-bright);
}

/* Education boxes with relevant courses: show all courses in a tooltip on hover */
.timeline-courses-tooltip {
    opacity: 0;
    margin-top: 0;
    flex-shrink: 0;
    transition: opacity 0.3s ease 0.05s;
}

.timeline-box:hover .timeline-courses-tooltip {
    opacity: 1;
    margin-top: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hotpink-dark);
    transition: opacity 0.28s ease 0.02s;
}

.timeline-courses-tooltip-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--hotpink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.timeline-courses-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: var(--hotpink-bright);
    line-height: 1.55;
}

.timeline-courses-list li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.3rem;
}

.timeline-courses-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--hotpink-bright);
}

.timeline-content {
    width: calc(50% - 3rem);
    min-height: calc(8rem + var(--duration-ratio, 0.5) * 14rem);
    padding: 2rem;
    background-color: var(--black-mid);
    border: 2px solid var(--hotpink-dark);
    transition: all 0.3s ease;
}

.timeline-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hotpink-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
    color: var(--white);
}

.timeline-company {
    font-size: 1rem;
    color: var(--hotpink-muted);
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.timeline-location {
    font-size: 0.875rem;
    color: var(--hotpink-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-description {
    font-size: 0.875rem;
    color: var(--hotpink-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-achievements li {
    font-size: 0.875rem;
    color: var(--hotpink-muted);
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.timeline-achievements li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--hotpink);
}

.timeline-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--hotpink-muted);
}

/* Mobile stacked timeline (cards + toggle) */
.timeline-mobile {
    border-radius: 12px;
    border: 1px solid var(--hotpink-dark);
    background-color: var(--black-mid);
    padding: 1.5rem 1.25rem 1.75rem;
}

.timeline-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 999px;
    background-color: var(--black);
    border: 1px solid var(--hotpink-dark);
    margin-bottom: 1.25rem;
}

.timeline-toggle-btn {
    border: none;
    background: transparent;
    color: var(--hotpink-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.timeline-toggle-btn.is-active {
    background-color: var(--hotpink);
    color: var(--black);
}

.timeline-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-mobile-item {
    padding: 1rem 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background-color: rgba(15, 23, 42, 0.7);
}

.timeline-mobile-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.15);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hotpink-muted);
    margin-bottom: 0.4rem;
}

.timeline-mobile-date {
    font-size: 0.75rem;
    color: var(--hotpink-bright);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.timeline-mobile-title {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--white);
}

.timeline-mobile-meta {
    font-size: 0.8rem;
    color: var(--hotpink-muted);
    margin-bottom: 0.45rem;
}

.timeline-mobile-description {
    font-size: 0.8rem;
    color: var(--hotpink-muted);
    line-height: 1.6;
    margin-bottom: 0.45rem;
}

.timeline-mobile-achievements {
    list-style: none;
    padding: 0;
    margin: 0 0 0.4rem 0;
    font-size: 0.78rem;
    color: var(--hotpink-muted);
}

.timeline-mobile-achievements li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.timeline-mobile-achievements li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--hotpink);
}

.timeline-mobile-courses {
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
    padding-top: 0.45rem;
    margin-top: 0.1rem;
}

.timeline-mobile-courses-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--hotpink);
    margin-bottom: 0.2rem;
}

.timeline-mobile-courses ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.76rem;
    color: var(--hotpink-muted);
}

.timeline-mobile-courses li {
    margin-bottom: 0.15rem;
}

.footer {
    border-top: 2px solid var(--hotpink);
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--black);
    color: var(--hotpink-muted);
    font-size: 0.875rem;
}

/* Notebook modal: header and download link */
.modal-content-notebook .notebook-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.notebook-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--white);
}

.notebook-download-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--hotpink-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
}

.notebook-download-link:hover {
    border-color: var(--accent);
    color: var(--white);
}

.notebook-viewer {
    margin-top: 0;
    padding: 1.5rem 0;
    background-color: var(--black);
    border-radius: 6px;
    border: 1px solid var(--hotpink-dark);
}

.notebook-viewer.notebook-loading,
.notebook-viewer .notebook-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hotpink-muted);
}

.notebook-viewer .notebook-error {
    color: var(--hotpink-muted);
    padding: 2rem;
}

.notebook-viewer .notebook-error a {
    color: var(--accent);
}

.notebook-viewer .notebook-error code {
    font-size: 0.9em;
    background: var(--black-mid);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--accent);
}

/* Jupyter-like notebook cells */
.jp-Notebook {
    font-family: 'Inter', system-ui, sans-serif;
}

.jp-Cell {
    margin-bottom: 1.25rem;
    padding: 0;
}

.jp-MarkdownCell {
    padding: 0.5rem 0;
}

.jp-MarkdownCell-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--hotpink-muted);
}

.jp-MarkdownCell-content h1,
.jp-MarkdownCell-content h2,
.jp-MarkdownCell-content h3 {
    color: var(--white);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.jp-MarkdownCell-content h1 { font-size: 1.5rem; }
.jp-MarkdownCell-content h2 { font-size: 1.25rem; }
.jp-MarkdownCell-content h3 { font-size: 1.1rem; }

.jp-MarkdownCell-content p { margin-bottom: 0.75rem; }
.jp-MarkdownCell-content ul, .jp-MarkdownCell-content ol { margin: 0.5rem 0 0.75rem 1.25rem; }
.jp-MarkdownCell-content code {
    font-family: ui-monospace, monospace;
    font-size: 0.875em;
    background: var(--black-mid);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent);
}

.jp-CodeCell {
    border-left: 3px solid var(--accent);
    background: rgba(30, 30, 35, 0.6);
    border-radius: 0 6px 6px 0;
    overflow: hidden;
}

.jp-InputArea {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 1rem;
}

.jp-InputPrompt {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--hotpink-dark);
    font-family: ui-monospace, monospace;
    min-width: 3.5em;
    text-align: right;
}

.jp-InputArea-editor {
    flex: 1;
    overflow-x: auto;
}

.jp-InputArea-editor pre {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: ui-monospace, monospace;
}

.jp-InputArea-editor code {
    background: none;
    padding: 0;
}

.jp-Cell-outputWrapper {
    padding: 0 1rem 0.75rem 1rem;
    padding-left: calc(1rem + 3.5em + 0.75rem);
}

.jp-OutputArea {
    font-size: 0.85rem;
}

.jp-OutputArea-prompt {
    font-size: 0.8rem;
    color: var(--hotpink-dark);
    font-family: ui-monospace, monospace;
    margin-bottom: 0.25rem;
}

.jp-OutputArea-item pre,
.jp-OutputArea-item .jp-Output-output {
    margin: 0.25rem 0;
    padding: 0.5rem;
    background: var(--black);
    border-radius: 4px;
    overflow-x: auto;
    font-family: ui-monospace, monospace;
    line-height: 1.45;
    color: var(--hotpink-muted);
}

.jp-OutputArea-item img.jp-Output-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.jp-Stream.jp-stderr {
    color: var(--teal-bright);
}

/* Override highlight.js inside notebook to match theme */
.notebook-viewer .hljs {
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--black-mid);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    border: 2px solid var(--hotpink);
}

.modal-content h2 {
    color: var(--white);
}

.modal-content p {
    color: var(--hotpink-muted);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--black);
    border: 2px solid var(--hotpink);
    font-size: 2rem;
    cursor: pointer;
    color: var(--hotpink);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
    background-color: var(--hotpink);
    color: var(--black);
}

@media (max-width: 968px) {
    .hero.main-split {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .main-left {
        padding-right: 0;
    }

    .main-right {
        align-items: center;
    }

    .folder-stack {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-name {
        position: static;
        transform: none;
        order: -1;
        width: 100%;
        text-align: center;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-big-title {
        font-size: 3rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .container {
        padding: 4rem 1.5rem;
    }

    .hero + .about .container {
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

    /* Axis-based desktop timeline is replaced by stacked mobile cards via JS */
}
