.projects,
.notes,
.experience,
.resume {
    position: relative;
    z-index: 3;
}

.projects-band,
.notes-band,
.experience-band,
.resume-band {
    position: relative;
    overflow: visible;
    border-top: 0;
}

.resume,
.projects {
    padding: 76px 0 132px;
}

.notes {
    padding: 84px 0 132px;
}

.experience {
    padding: 84px 0 64px;
}

.section-wave {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.section-wave-top {
    top: -96px;
}

:root[data-theme="dark"] .section-wave-top {
    top: -118px;
}

:root[data-theme="dark"] .resume-band .section-wave path {
    fill: #06201f;
}

:root[data-theme="dark"] .projects-band .section-wave path {
    fill: #071827;
}

:root[data-theme="dark"] .notes-band .section-wave path {
    fill: #171238;
}

:root[data-theme="dark"] .experience-band .section-wave path {
    fill: #061a2a;
}

/* ---------- RESUME ---------- */

.resume-band {
    width: 100%;
    background: linear-gradient(180deg, #e8fbf7 0, #e8fbf7 132px, #f7fffc 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.20);
}

.resume-band::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background:
            radial-gradient(340px 170px at 14% 18%, rgba(45, 212, 191, 0.18), transparent 70%),
            radial-gradient(320px 160px at 84% 18%, rgba(56, 189, 248, 0.14), transparent 72%);
    opacity: 0.95;
}

.resume-band .section-eyebrow {
    color: #0f766e;
}

:root[data-theme="dark"] .resume-band {
    background: linear-gradient(180deg, #06201f 0, #06201f 132px, #061321 100%);
    border-bottom-color: rgba(96, 165, 250, 0.12);
}

:root[data-theme="dark"] .resume-band::before {
    background:
            radial-gradient(340px 170px at 14% 18%, rgba(45, 212, 191, 0.08), transparent 70%),
            radial-gradient(320px 160px at 84% 18%, rgba(34, 211, 238, 0.07), transparent 72%);
    opacity: 0.22;
}

:root[data-theme="dark"] .resume-band .section-eyebrow {
    color: #5eead4;
}

.resume-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

.resume-role-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 8px;
}

.resume-role-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(20, 184, 166, 0.34);
    background: rgba(240, 253, 250, 0.86);
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

:root[data-theme="dark"] .resume-role-cloud span {
    border-color: rgba(45, 212, 191, 0.20);
    background: rgba(20, 184, 166, 0.10);
    color: #99f6e4;
}

.resume-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.resume-metric {
    min-height: 128px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background:
            radial-gradient(150px 80px at 100% 0%, rgba(56, 189, 248, 0.10), transparent 70%),
            rgba(255, 255, 255, 0.92);
    box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.04),
            0 0 0 1px rgba(255, 255, 255, 0.38) inset;
}

.resume-metric strong {
    display: block;
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0;
    color: var(--text);
}

.resume-metric span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

:root[data-theme="dark"] .resume-metric {
    border-color: rgba(96, 165, 250, 0.14);
    background:
            radial-gradient(150px 80px at 100% 0%, rgba(34, 211, 238, 0.06), transparent 70%),
            rgba(15, 27, 45, 0.86);
    box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.20),
            0 0 0 1px rgba(148, 163, 184, 0.06) inset;
}

.resume-principles,
.resume-capabilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.resume-principle,
.resume-capability,
.resume-preferences {
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.resume-principle,
.resume-capability {
    padding: 24px;
    border-radius: 24px;
}

.resume-principle {
    min-height: 220px;
}

.resume-principle h3,
.resume-capability h3,
.resume-preferences h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--text);
}

.resume-principle p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

:root[data-theme="dark"] .resume-principle,
:root[data-theme="dark"] .resume-capability,
:root[data-theme="dark"] .resume-preferences {
    border-color: rgba(96, 165, 250, 0.16);
    background: rgba(15, 27, 45, 0.88);
    box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.22),
            0 0 0 1px rgba(148, 163, 184, 0.06) inset;
}

.resume-capability ul,
.resume-preferences ul {
    margin: 0;
    padding-left: 20px;
}

.resume-capability li,
.resume-preferences li {
    margin-bottom: 9px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
}

.resume-capability li:last-child,
.resume-preferences li:last-child {
    margin-bottom: 0;
}

.resume-preferences {
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 24px;
    background:
            linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.92));
}

:root[data-theme="dark"] .resume-preferences {
    background:
            linear-gradient(135deg, rgba(15, 27, 45, 0.92), rgba(12, 43, 48, 0.76));
}

/* ---------- PROJECTS ---------- */

.projects-band {
    width: 100%;
    background: linear-gradient(180deg, #e3f3ff 0, #e3f3ff 132px, #f5fbff 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.26);
}

.projects-band::before {
    content: "";
    position: absolute;
    top: 132px;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background:
            radial-gradient(280px 140px at 14% 22%, rgba(56, 189, 248, 0.24), transparent 70%),
            radial-gradient(320px 160px at 84% 72%, rgba(59, 130, 246, 0.16), transparent 72%);
    opacity: 0.95;
}

.projects-band .section-eyebrow {
    color: #0891b2;
}

:root[data-theme="dark"] .projects-band {
    background: linear-gradient(180deg, #071827 0, #071827 132px, #061321 100%);
    border-bottom-color: rgba(56, 189, 248, 0.12);
}

:root[data-theme="dark"] .projects-band::before {
    opacity: 0.18;
}

:root[data-theme="dark"] .projects-band .section-eyebrow {
    color: #67e8f9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    position: relative;
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background:
            radial-gradient(220px 100px at 100% 0%, rgba(56, 189, 248, 0.14), transparent 70%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow:
            0 18px 40px rgba(37, 99, 235, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

:root[data-theme="dark"] .project-card {
    border-color: rgba(96, 165, 250, 0.14);
    background:
            radial-gradient(220px 100px at 100% 0%, rgba(34, 211, 238, 0.06), transparent 70%),
            linear-gradient(180deg, rgba(15, 27, 45, 0.96), rgba(8, 21, 35, 0.96));
    box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.22),
            0 0 0 1px rgba(148, 163, 184, 0.06) inset;
}

:root[data-theme="dark"] .project-card:hover {
    border-color: rgba(103, 232, 249, 0.34);
    box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.28),
            0 0 34px rgba(34, 211, 238, 0.08);
}

.project-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.project-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.project-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------- NOTES ---------- */

.notes-band {
    width: 100%;
    background: linear-gradient(180deg, #eee7ff 0, #eee7ff 132px, #fbf7ff 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.30);
}

.notes-band::before {
    content: "";
    position: absolute;
    top: 132px;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background:
            radial-gradient(300px 160px at 18% 24%, rgba(167, 139, 250, 0.24), transparent 70%),
            radial-gradient(260px 140px at 86% 18%, rgba(168, 85, 247, 0.16), transparent 72%);
    opacity: 0.95;
}

.notes-band .section-eyebrow {
    color: #7c3aed;
}

:root[data-theme="dark"] .notes-band {
    background: linear-gradient(180deg, #171238 0, #171238 132px, #100d2a 100%);
    border-bottom-color: rgba(196, 181, 253, 0.26);
}

:root[data-theme="dark"] .notes-band::before {
    opacity: 0.30;
}

:root[data-theme="dark"] .notes-band .section-eyebrow {
    color: #c4b5fd;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.note-card {
    display: block;
    min-height: 180px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.30);
    background:
            radial-gradient(220px 110px at 100% 0%, rgba(168, 85, 247, 0.12), transparent 70%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 255, 0.98));
    box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.38) inset;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.28);
    box-shadow:
            0 18px 40px rgba(99, 102, 241, 0.10),
            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

:root[data-theme="dark"] .note-card {
    border-color: rgba(167, 139, 250, 0.14);
    background:
            radial-gradient(220px 110px at 100% 0%, rgba(168, 85, 247, 0.06), transparent 70%),
            linear-gradient(180deg, rgba(20, 27, 50, 0.96), rgba(13, 20, 40, 0.96));
    box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.22),
            0 0 0 1px rgba(148, 163, 184, 0.06) inset;
}

:root[data-theme="dark"] .note-card:hover {
    border-color: rgba(196, 181, 253, 0.32);
    box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.28),
            0 0 34px rgba(168, 85, 247, 0.08);
}

.note-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.note-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

.note-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------- EXPERIENCE ---------- */

.experience-band {
    width: 100%;
    background: linear-gradient(180deg, #e6f0ff 0, #e6f0ff 132px, #f4f9ff 100%);
}

.experience-band::before {
    content: "";
    position: absolute;
    top: 132px;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background:
            radial-gradient(260px 140px at 16% 18%, rgba(59, 130, 246, 0.16), transparent 72%),
            radial-gradient(320px 170px at 82% 24%, rgba(16, 185, 129, 0.10), transparent 72%);
    opacity: 0.94;
}

.experience-band .section-eyebrow {
    color: #2563eb;
}

:root[data-theme="dark"] .experience-band {
    background: linear-gradient(180deg, #061a2a 0, #061a2a 132px, #04101b 100%);
}

:root[data-theme="dark"] .experience-band::before {
    opacity: 0.22;
}

:root[data-theme="dark"] .experience-band .section-eyebrow {
    color: #93c5fd;
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #60a5fa, #dbeafe);
}

.timeline-item {
    position: relative;
    margin-bottom: 26px;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 28px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 6px rgba(219, 234, 254, 0.95);
}

:root[data-theme="dark"] .timeline::before {
    background: linear-gradient(180deg, #38bdf8, rgba(96, 165, 250, 0.16));
}

:root[data-theme="dark"] .timeline-marker {
    background: #67e8f9;
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.15);
}

.timeline-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background:
            radial-gradient(180px 80px at 100% 0%, rgba(59, 130, 246, 0.08), transparent 70%),
            rgba(255, 255, 255, 0.92);
    box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.35) inset;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.timeline-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow:
            0 18px 40px rgba(37, 99, 235, 0.10),
            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

:root[data-theme="dark"] .timeline-card {
    border-color: rgba(96, 165, 250, 0.16);
    background:
            radial-gradient(180px 80px at 100% 0%, rgba(59, 130, 246, 0.06), transparent 70%),
            rgba(15, 27, 45, 0.88);
    box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.22),
            0 0 0 1px rgba(148, 163, 184, 0.06) inset;
}

:root[data-theme="dark"] .timeline-card:hover {
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.28),
            0 0 34px rgba(59, 130, 246, 0.08);
}

.timeline-date {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
}

.timeline-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.company {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--text-soft);
}

.desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.toggle:hover {
    color: #1d4ed8;
}

:root[data-theme="dark"] .toggle:hover {
    color: #93c5fd;
}

.toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    border-radius: 10px;
}

.toggle-label {
    display: inline-block;
}

.toggle-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.toggle-icon::before {
    transform: translate(-50%, -50%);
}

.toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.timeline-item.open .toggle-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0.4);
}

.timeline-details {
    margin-top: 18px;
}

.timeline-details[hidden] {
    display: none;
}

.timeline-details-inner {
    padding-top: 18px;
    border-top: 1px solid rgba(37, 99, 235, 0.10);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

.timeline-details-inner > *:first-child {
    margin-top: 0;
}

.timeline-details-inner h2,
.timeline-details-inner h3,
.timeline-details-inner h4 {
    margin: 24px 0 10px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.timeline-details-inner h2 {
    font-size: 22px;
    line-height: 1.15;
}

.timeline-details-inner h3 {
    font-size: 18px;
    line-height: 1.2;
}

.timeline-details-inner p {
    margin: 0 0 14px;
}

.timeline-details-inner ul,
.timeline-details-inner ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

.timeline-details-inner li {
    margin-bottom: 8px;
}

.timeline-details-inner code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.timeline-details-inner :not(pre) > code {
    padding: 0.14em 0.4em;
    border-radius: 8px;
    background: #eef2ff;
    color: #334155;
}

:root[data-theme="dark"] .timeline-details-inner :not(pre) > code {
    background: rgba(96, 165, 250, 0.14);
    color: #dbeafe;
}

.timeline-details-inner pre {
    overflow-x: auto;
    margin: 14px 0 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #0f172a;
    color: #e2e8f0;
}

.timeline-details-inner pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

@media (max-width: 980px) {
    .resume-intro {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .resume-role-cloud {
        justify-content: flex-start;
        padding-top: 0;
    }

    .resume-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .resume-principles,
    .resume-capabilities {
        grid-template-columns: 1fr;
    }

    .project-grid,
    .notes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .resume,
    .projects {
        padding: 64px 0 108px;
    }

    .notes {
        padding: 68px 0 108px;
    }

    .experience {
        padding: 68px 0 56px;
    }

    .section-wave-top {
        top: -72px;
        height: 96px;
    }

    :root[data-theme="dark"] .section-wave-top {
        top: -72px;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-description {
        font-size: 17px;
        line-height: 1.58;
    }

    .resume-metrics,
    .project-grid,
    .notes-grid {
        gap: 14px;
    }

    .resume-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resume-role-cloud {
        gap: 6px;
    }

    .resume-role-cloud span {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 12px;
    }

    .resume-metric {
        min-height: 112px;
        padding: 16px;
        border-radius: 20px;
    }

    .resume-metric strong {
        font-size: 26px;
    }

    .project-card,
    .note-card,
    .timeline-card,
    .resume-principle,
    .resume-capability,
    .resume-preferences {
        padding: 18px;
        border-radius: 20px;
    }

    .resume-principle {
        min-height: auto;
    }

    .resume-principles,
    .resume-capabilities {
        gap: 14px;
    }

    .resume-principle h3,
    .resume-capability h3,
    .resume-preferences h3,
    .project-card h3,
    .note-card h3 {
        font-size: 18px;
        line-height: 1.15;
    }

    .resume-principle p,
    .resume-capability li,
    .resume-preferences li,
    .project-card p,
    .note-card p,
    .desc,
    .timeline-details-inner {
        font-size: 15px;
        line-height: 1.6;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 4px;
    }

    .timeline-marker {
        left: -20px;
        top: 24px;
        width: 12px;
        height: 12px;
        box-shadow: 0 0 0 5px rgba(219, 234, 254, 0.95);
    }

    .timeline-card h3 {
        font-size: 20px;
    }

    .company,
    .timeline-date,
    .project-meta,
    .note-meta {
        font-size: 13px;
    }

    .tags {
        gap: 6px;
    }

    .tag {
        padding: 5px 9px;
        font-size: 12px;
    }

    .projects-more,
    .notes-more-wrap {
        margin-top: 18px;
    }

    .timeline-item {
        margin-bottom: 18px;
    }
}
