h1 {
    text-align: center;
    width: 100%;
    display: block;
}

.portfolio-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.portfolio-heading-icon {
    color: #7c5cff;
    font-size: .9em;
}

.portfolio-nav-icon {
    margin-right: 4px;
    vertical-align: -3px;
    font-size: 18px;
}

.btn-gradient .portfolio-nav-icon {
    color: white;
}

.framework {
    /* width: min(1100px, 92vw); */
    padding: 28px;
    border: 1px solid #202632;
    border-radius: 18px;
    background: #0d1017;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .45),
        inset 0 1px rgba(255, 255, 255, .03);
}

/* HEADER */

.framework .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.framework .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.framework .logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c5cff, #4f8cff);
    box-shadow: 0 0 25px rgba(100, 90, 255, .35);
}

.framework .title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    color: white;
}

.framework .subtitle {
    font-size: 11px;
    color: #697386;
    margin-top: 3px;
}

.framework .status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #7f8a9d;
}

.framework .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43e6a3;
    box-shadow: 0 0 12px #43e6a3;
}

/* FLOW */

.framework .flow {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 18px;
    align-items: center;
}

.framework .node {
    padding: 22px;
    border: 1px solid #252c38;
    border-radius: 14px;
    background: #11151d;
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.framework .node-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #687386;
    margin-bottom: 8px;
}

.framework .node-name {
    font-size: 16px;
    font-weight: 600;
}

.framework .node-desc {
    margin-top: 6px;
    font-size: 11px;
    color: #687386;
}

/* CONNECTION */

.framework .connection {
    position: relative;
    height: 2px;
    background: #242b38;
}

.framework .connection::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #7c5cff;
    box-shadow: 0 0 14px #7c5cff;
    animation: travel 2s linear infinite;
}

@keyframes travel {

    from {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    to {
        left: 100%;
        opacity: 0;
    }
}

/* EVENTS */

.framework .events {
    margin-top: 24px;
    display: flex;
    grid-template-columns: 0.3fr 1fr;
    gap: 18px;
    grid-auto-flow: row;
    justify-items: stretch;
    flex-direction: column;
    align-items: stretch;
}

.framework .panel {
    border: 1px solid #202632;
    border-radius: 14px;
    background: #0b0e14;
    overflow: hidden;
}

.framework .panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #202632;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #687386;
}

.framework .log {
    padding: 0 15px;
    height: 190px;
    overflow: hidden;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    margin: 0;
}

.framework .log-line {
    display: flex;
    gap: 12px;
    padding: 2px 0;
    opacity: 0;
    transform: translateY(5px);
    animation: appear .5s forwards;
}

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

.framework .time {
    color: #465063;
}

.framework .function {
    color: #a7b0c0;
}

.framework .success {
    margin-left: auto;
    color: #43e6a3;
}

/* DATA */

.framework .data {
    padding: 18px;
}

.framework .metric {
    margin-bottom: 18px;
}

.framework .metric-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.framework .metric-name {
    font-size: 11px;
    color: #737e91;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.framework .metric-value {
    font-size: 12px;
    font-weight: 600;
}

.framework .progress {
    height: 5px;
    border-radius: 10px;
    background: #202631;
    overflow: hidden;
}

.framework .progress-bar {
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6e5cff, #52a0ff);
    animation: progress 4s ease-in-out infinite alternate;
}

@keyframes progress {
    from {
        width: 35%;
    }

    to {
        width: 72%;
    }
}

.framework .badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(124, 92, 255, .1);
    color: #9b8aff;
    font-size: 10px;
}

/* LEARNING DEMO */

.learning-demo {
    overflow: hidden;
    padding: 22px;
    border: 1px solid #202632;
    border-radius: 16px;
    background: #0d1017;
    color: white;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .03);
    font-family: inherit;
}

.learning-topbar,
.learning-progress-row,
.learning-brand,
.learning-streak { display: flex; align-items: center; }
.learning-topbar, .learning-progress-row { justify-content: space-between; }
.learning-brand { gap: 10px; }
.learning-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #7c5cff, #4f8cff); color: white; font-size: 20px; box-shadow: 0 0 25px rgba(100, 90, 255, .35); }
.learning-eyebrow, .learning-kicker { display: block; color: #687386; font-size: 9px; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.learning-brand strong { display: block; font-size: 14px; }
.learning-avatar { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #252c38; border-radius: 50%; color: #9b8aff; font-size: 10px; font-weight: 700; }
.learning-progress-row { margin-top: 25px; }
.learning-progress-row strong { font-size: 12px; }
.learning-streak { gap: 4px; color: #43e6a3; font-size: 11px; font-weight: 700; }
.learning-streak .material-symbols-outlined { font-size: 16px; }
.learning-progress { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 20px; background: #202631; }
.learning-progress span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6e5cff, #52a0ff); transition: width .35s ease; }
.learning-content { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; margin-top: 23px; }
.learning-modules { display: grid; align-content: start; gap: 7px; }
.learning-module { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #697386; cursor: pointer; font: inherit; font-size: 10px; text-align: left; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.learning-module span { color: #465063; font-size: 10px; font-weight: 700; }
.learning-module:hover, .learning-module.is-active { border-color: #252c38; background: #11151d; color: white; }
.learning-module.is-active span { color: #9b8aff; }
.learning-lesson { min-height: 176px; padding: 17px; border-radius: 12px; background: #11151d; color: white; }
.learning-lesson-icon { color: #9b8aff; font-size: 25px; }
.learning-lesson .learning-kicker { margin-top: 10px; color: #687386; }
.learning-lesson h3 { margin: 4px 0 7px; color: white; font-size: 17px; line-height: 1.15; }
.learning-lesson p { max-width: 220px; margin: 0; color: #a7b0c0; font-size: 11px; line-height: 1.45; }
.learning-action { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; padding: 7px 10px; border: 0; border-radius: 6px; background: #7c5cff; color: white; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
.learning-action .material-symbols-outlined { font-size: 15px; }

@media(max-width: 800px) {
    .learning-content { grid-template-columns: 1fr; }
    .learning-modules { grid-template-columns: repeat(3, 1fr); }
    .learning-module { display: block; min-height: 55px; padding: 8px; }
    .learning-module span { display: block; margin-bottom: 4px; }
}

@media(max-width: 800px) {

    .framework .flow {
        grid-template-columns: 1fr;
    }

    .framework .connection {
        display: none;
    }

    .framework .events {
        grid-template-columns: 1fr;
    }
}