:root {
--bg: #050608;
    --panel: rgba(9, 10, 13, 0.88);
    --panel-soft: rgba(14, 15, 19, 0.88);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text: #f7f7f8;
    --muted: #b6b6bd;
    --muted-dark: #8a8a92;
    --accent: #ff007f;
    --accent-soft: #ff2a97;
    --accent-dark: #c90063;
    --sidebar-width: 228px;
    --radius: 18px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 0, 127, 0.11), transparent 26%),
        linear-gradient(135deg, #040507 0%, #07080b 50%, #030406 100%);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

body::before {
position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
}

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

button,
a {
-webkit-tap-highlight-color: transparent;
}

button {
font: inherit;
}

.site-shell {
min-height: 100vh;
}

.sidebar {
position: fixed;
    top: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 50;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 12px 18px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(5, 6, 8, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.brand {
display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 14px 28px;
}

.brand__name {
color: var(--accent);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.brand__role {
color: #d6d6da;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.nav {
display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav__link {
display: flex;
    align-items: center;
    gap: 16px;
    min-height: 55px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #e5e5e8;
    font-size: 15px;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.nav__link:hover {
color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    transform: translateX(3px);
}

.nav__link.active {
color: #fff;
    border-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 10px 35px rgba(255, 0, 127, 0.22);
}

.nav__icon {
width: 26px;
    color: #b7b7bd;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.nav__link.active .nav__icon {
color: #fff;
}

.sidebar__bottom {
display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 16px 2px 0;
}

.socials {
display: flex;
    justify-content: space-around;
    align-items: center;
}

.socials a {
display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: #b9b9bf;
    font-size: 14px;
    font-weight: 800;
    transition: color 160ms ease, transform 160ms ease;
}

.socials a:hover {
color: var(--accent);
    transform: translateY(-2px);
}

.main {
margin-left: calc(var(--sidebar-width) + 30px);
    padding: 14px 14px 40px;
}

.panel {
position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(10, 11, 14, 0.94), rgba(5, 6, 8, 0.92));
    box-shadow: var(--shadow);
}

.hero {
min-height: 555px;
    display: grid;
    grid-template-columns: minmax(430px, 1fr) minmax(430px, 0.95fr);
    align-items: center;
    padding: 82px 46px 30px 70px;
}

.hero__glow {
position: absolute;
    top: 35%;
    left: 58%;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.25), transparent 66%);
    filter: blur(15px);
    transform: translate(-50%, -50%);
}

.hero__content {
position: relative;
    z-index: 3;
    max-width: 570px;
}

.eyebrow {
margin: 0 0 14px;
    color: var(--accent-soft);
    font-size: 20px;
    font-weight: 800;
}

.hero h1 {
display: flex;
    flex-direction: column;
    margin: 0;
    font-size: clamp(54px, 5.25vw, 82px);
    line-height: 0.92;
    letter-spacing: -4px;
}

.accent-text {
color: var(--accent);
}

.hero__role {
margin: 23px 0 14px;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
}

.typing-caret {
display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 5px;
    vertical-align: -3px;
    background: var(--accent);
    animation: blink 900ms infinite;
}

@keyframes blink {
50% {
        opacity: 0;
    }
}

.hero__description {
max-width: 540px;
    margin: 0;
    color: #c3c3ca;
    font-size: 18px;
    line-height: 1.55;
}

.hero__actions {
display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 32px;
}

.button {
min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 27px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #fff;
    font-weight: 800;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.button:hover {
transform: translateY(-2px);
}

.button--primary {
background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 15px 35px rgba(255, 0, 127, 0.2);
}

.button--primary:hover {
box-shadow: 0 18px 48px rgba(255, 0, 127, 0.33);
}

.button--outline {
border-color: rgba(255, 0, 127, 0.9);
    color: var(--accent-soft);
    background: rgba(255, 255, 255, 0.015);
}

.button--outline:hover {
background: rgba(255, 0, 127, 0.08);
}

.button--full {
width: 100%;
}

.hero__visual {
position: absolute;
    right: 105px;
    bottom: 0;
    z-index: 2;
    width: min(42vw, 600px);
    height: 95%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.hero__visual img {
position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

.portrait-glow {
position: absolute;
    inset: 12% 0 0;
    border-radius: 45%;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 0, 127, 0.55), transparent 45%),
        linear-gradient(90deg, transparent, rgba(255, 0, 127, 0.32), transparent);
    filter: blur(30px);
}

.connect-button {
position: absolute;
    top: 22px;
    right: 24px;
    z-index: 5;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    color: var(--accent-soft);
    font-weight: 800;
    background: rgba(5, 6, 8, 0.58);
    backdrop-filter: blur(15px);
}

.connect-button__dot,
.role-card__dot {
width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 24px rgba(255, 0, 127, 0.9);
}

.role-card {
position: absolute;
    right: 26px;
    bottom: 38px;
    z-index: 4;
    width: 220px;
    min-height: 205px;
    padding: 23px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(8, 9, 12, 0.77);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.role-card__code {
color: var(--accent);
    font-size: 34px;
    font-weight: 900;
}

.role-card h2 {
margin: 17px 0 10px;
    font-size: 17px;
}

.role-card p {
margin: 0;
    color: #bdbdc4;
    line-height: 1.55;
}

.role-card__dot {
position: absolute;
    right: 22px;
    bottom: 22px;
}

.projects {
margin-top: 18px;
    padding: 24px;
}

.section-heading {
display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading h2 {
margin: 0;
    font-size: 26px;
}

.section-heading a {
color: var(--accent-soft);
    font-weight: 700;
}

.section-heading a span {
margin-left: 12px;
    font-size: 23px;
}

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

.project-card {
overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(14, 15, 19, 0.9), rgba(7, 8, 10, 0.95));
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.project-card:hover {
border-color: rgba(255, 0, 127, 0.35);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
    transform: translateY(-5px);
}

.project-card__preview {
min-height: 205px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.project-card__body {
padding: 15px 16px 14px;
}

.project-card__body h3 {
margin: 0 0 6px;
    font-size: 19px;
}

.project-card__body p {
min-height: 44px;
    margin: 0;
    color: #b5b5bc;
    font-size: 14px;
    line-height: 1.5;
}

.project-card__footer {
display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.tags {
display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tags span {
padding: 6px 9px;
    border-radius: 6px;
    color: #d8d8dc;
    background: rgba(255, 255, 255, 0.06);
    font-size: 11px;
}

.project-link {
flex: 0 0 auto;
    color: var(--accent);
    font-size: 27px;
    line-height: 1;
}

.image-preview {
height: 230px;
    overflow: hidden;
    background: #111216;
    border-bottom: 1px solid var(--border);
}

.image-preview img {
width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.project-card:hover .image-preview img {
transform: scale(1.04);
}

.terminal-cursor {
font-size: 22px;
    animation: blink 900ms infinite;
}

.content-section,
.contact {
display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1.2fr);
    gap: 60px;
    align-items: center;
    margin-top: 18px;
    padding: 58px;
}

.content-section h2,
.contact h2 {
margin: 0;
    font-size: clamp(30px, 3vw, 48px);
    letter-spacing: -1.5px;
}

.content-section > p {
margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.skill-list {
display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-list span {
padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #e8e8eb;
    background: rgba(255, 255, 255, 0.04);
}

.contact {
grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
    align-items: start;
}

.menu-button {
display: none;
}

@media (max-width: 1200px) {
.hero {
        grid-template-columns: 1fr;
        padding-left: 46px;
    }

    .hero__visual {
        right: -20px;
        width: 55vw;
        opacity: 0.62;
    }

    .hero__content {
        max-width: 600px;
    }

    .role-card {
        display: none;
    }

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

    .project-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
:root {
        --sidebar-width: 270px;
    }

    .sidebar {
        transform: translateX(calc(-100% - 30px));
        transition: transform 220ms ease;
    }

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

    .main {
        margin-left: 0;
        padding-top: 72px;
    }

    .menu-button {
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 80;
        width: 46px;
        height: 46px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--border-strong);
        border-radius: 10px;
        background: rgba(7, 8, 10, 0.88);
        backdrop-filter: blur(18px);
    }

    .menu-button span {
        width: 20px;
        height: 2px;
        background: #fff;
    }

    .hero {
        min-height: 620px;
        padding: 72px 32px 32px;
    }

    .hero__visual {
        right: -80px;
        width: 75vw;
    }

    .connect-button {
        top: 18px;
    }
}

@media (max-width: 700px) {
.hero {
        min-height: 720px;
        align-items: flex-start;
        padding: 96px 24px 28px;
    }

    .hero h1 {
        font-size: clamp(45px, 13vw, 64px);
        letter-spacing: -2.5px;
    }

    .hero__description {
        font-size: 16px;
    }

    .hero__visual {
        right: -100px;
        bottom: -20px;
        width: 110vw;
        height: 65%;
        opacity: 0.36;
    }

    .connect-button {
        right: 16px;
        padding: 0 15px;
        font-size: 13px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
    }

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

    .project-card:last-child {
        grid-column: auto;
    }

    .content-section,
    .contact {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px 24px;
    }

    .contact .button {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
.main {
        padding-right: 8px;
        padding-left: 8px;
    }

    .panel {
        border-radius: 14px;
    }

    .hero {
        padding-right: 18px;
        padding-left: 18px;
    }

    .projects {
        padding: 17px;
    }

    .project-card__preview {
        min-height: 190px;
        padding: 12px;
    }
}

.contact__intro p:last-child {
max-width: 470px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.contact-form {
display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

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

.contact-form__field {
display: flex;
    flex-direction: column;
    gap: 9px;
}

.contact-form__field > span {
color: #e9e9ec;
    font-size: 14px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: rgba(3, 4, 6, 0.72);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form input {
min-height: 52px;
    padding: 0 15px;
}

.contact-form textarea {
min-height: 150px;
    padding: 14px 15px;
    resize: vertical;
    line-height: 1.5;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
color: var(--muted-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
border-color: rgba(255, 0, 127, 0.8);
    background: rgba(8, 9, 12, 0.92);
    box-shadow: 0 0 0 4px rgba(255, 0, 127, 0.1);
}

.contact-form__footer {
display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.contact-form__status {
min-height: 22px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.contact-form__status.is-success {
color: #7ee2a8;
}

.contact-form__status.is-error {
color: #ff7b99;
}

.contact-form__submit {
flex: 0 0 auto;
    cursor: pointer;
}

.contact-form__submit:disabled {
cursor: wait;
    opacity: 0.68;
    transform: none;
}

.contact-form__botcheck {
position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
.contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
.contact-form {
        padding: 19px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form__submit {
        width: 100%;
    }
}

.experience {
margin-top: 18px;
    padding: 40px;
}

.timeline {
position: relative;
    margin-top: 30px;
    padding-left: 52px;
}

.timeline::before {
content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 2px;
    border-radius: 99px;
    background: linear-gradient(
        to bottom,
        var(--accent),
        rgba(255, 0, 127, 0.15)
    );
}

.timeline__item {
position: relative;
    margin-bottom: 42px;
}

.timeline__item:last-child {
margin-bottom: 0;
}

.timeline__dot {
position: absolute;
    top: 22px;
    left: -49px;
    z-index: 2;

    width: 16px;
    height: 16px;

    border: 3px solid #090a0d;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 3px rgba(255, 0, 127, 0.12),
        0 0 18px rgba(255, 0, 127, 0.65);
}

.timeline__content {
padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.timeline__content:hover {
border-color: rgba(255, 0, 127, 0.4);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.timeline__date {
color:#8d9098;
    font-weight:600;
    letter-spacing:.5px;
    text-transform:uppercase;
}

.timeline__content h3 {
color:#fff;
    font-size:28px;
    font-weight:700;
    margin:8px 0 6px;
}

.timeline__content h4 {
color:var(--accent);
    font-size:18px;
    font-weight:600;
    margin:0 0 12px;
}

.timeline__content p {
color:#9b9ba3;
}

@media (max-width: 700px) {
.experience {
        padding: 28px 20px;
    }

    .timeline {
        padding-left: 38px;
    }

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

    .timeline__dot {
        left: -38px;
    }
}

.section-description {
max-width:470px;
    margin:20px 0 0;
    color:var(--muted);
    font-size:17px;
    line-height:1.65;
}

.education {
margin-top: 18px;
    padding: 40px;
}

.project-page {
margin-left: calc(var(--sidebar-width) + 30px);
    padding: 30px 14px 50px;
}

.project-back {
display: inline-flex;
    margin-bottom: 24px;
    color: var(--muted);
    font-weight: 700;
}

.project-back:hover {
color: var(--accent);
}

.project-hero {
    margin-bottom: 24px;
    padding: 70px;
}

.project-hero h1 {
max-width: 900px;
    margin: 0;
    font-size: clamp(48px, 7vw, 90px);
    line-height: 0.95;
    letter-spacing: -4px;
}

.project-lead {
max-width: 750px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
}

.project-page__actions {
display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.project-cover {
width: 100%;
    margin-top: 18px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(
        145deg,
        rgba(14, 15, 19, 0.95),
        rgba(5, 6, 8, 0.96)
    );
}

.project-details,
.project-feature {
display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 1.3fr);
    gap: 60px;
    align-items: start;
    margin-top: 18px;
    padding: 58px;
}

.project-details h2,
.project-feature h2 {
margin: 0;
    font-size: clamp(30px, 4vw, 48px);
}

.project-details > p,
.project-feature p,
.project-list {
margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.project-feature {
align-items: center;
}

.project-feature img {
display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b0c10;
}

.project-feature--reverse > div {
order: 2;
}

.project-feature--reverse > img {
order: 1;
}

.project-list {
padding-left: 22px;
}

.project-list li + li {
margin-top: 10px;
}

.project-list li::marker {
color: var(--accent);
}

@media (max-width: 800px) {
.project-page {
        padding: 14px;
    }

    .project-hero,
    .project-details,
    .project-feature {
        padding: 32px 24px;
    }

    .project-details,
    .project-feature {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-feature--reverse > div,
    .project-feature--reverse > img {
        order: initial;
    }

    .project-hero h1 {
        letter-spacing: -2px;
    }

    .project-page__actions {
        flex-direction: column;
    }

    .project-page__actions .button {
        width: 100%;
    }
}

.project-header {
position: sticky;
    top: 0;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 30px;
    border-bottom: 1px solid var(--border);

    background: rgba(5, 6, 8, 0.88);
    backdrop-filter: blur(20px);
}

.project-header__brand {
color: var(--accent);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.project-header__nav {
display: flex;
    align-items: center;
    gap: 24px;
}

.project-header__nav a {
color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease;
}

.project-header__nav a:hover {
color: var(--accent);
}

@media (max-width: 650px) {
.project-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .project-header__nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .project-header__nav a {
        font-size: 13px;
    }
}

.project-page .project-back {
display: inline-flex;
    align-items: center;
    margin: 4px 0 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.project-page .project-back:hover {
color: var(--accent);
    transform: translateX(-3px);
}

.project-cover img {
display: block;
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    background: #0b0c10;
}

@media (max-width: 900px) {
.project-page {
        margin-left: 0;
        padding-top: 72px;
    }
}

@media (max-width: 700px) {
.project-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .project-cover {
        padding: 10px;
    }
}

.project-navigation {
display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    padding: 20px;
}

.project-navigation__card {
position: relative;

    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    text-decoration: none;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

a.project-navigation__card:hover {
border-color: var(--accent);
    background: rgba(255, 0, 111, 0.06);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.22);

    transform: translateY(-4px);
}

.project-navigation__label {
color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-navigation__card strong {
max-width: 240px;

    color: var(--text);
    font-size: 19px;
    line-height: 1.35;
}

.project-navigation__arrow {
color: var(--accent);
    font-size: 24px;
    font-weight: 800;
}

.project-navigation__card--current {
border-color: rgba(255, 0, 111, 0.5);

    background:
        linear-gradient(
            145deg,
            rgba(255, 0, 111, 0.1),
            rgba(255, 255, 255, 0.02)
        );
}

.project-navigation__current {
width: fit-content;

    padding: 6px 10px;

    border: 1px solid rgba(255, 0, 111, 0.3);
    border-radius: 999px;

    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 950px) {
.project-navigation {
        grid-template-columns: 1fr;
    }

    .project-navigation__card {
        min-height: 110px;
    }
}

.adventure-demo {
margin-top: 0;
}

.adventure-demo__header {
display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.adventure-demo__header h2 {
margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
}

.adventure-demo__reset {
padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.adventure-demo__reset:hover {
border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.adventure-terminal {
overflow: hidden;
    border: 1px solid rgba(255, 0, 111, 0.35);
    border-radius: 16px;
    background: #050609;
    box-shadow:
        inset 0 0 35px rgba(255, 0, 111, 0.03),
        0 24px 60px rgba(0, 0, 0, 0.28);
}

.adventure-terminal__output {
min-height: 390px;
    max-height: 520px;
    padding: 26px;
    overflow-y: auto;
    color: #d8d8df;
    font-family:
        "Courier New",
        Courier,
        monospace;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.adventure-terminal__line {
margin: 0 0 5px;
}

.adventure-terminal__line--command {
color: var(--accent);
}

.adventure-terminal__line--success {
color: #88e6a1;
}

.adventure-terminal__line--warning {
color: #ffc76b;
}

.adventure-terminal__line--danger {
color: #ff7474;
}

.adventure-terminal__form {
display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid var(--border);
    background: #090a0e;
}

.adventure-terminal__prompt {
color: var(--accent);
    font-family: "Courier New", Courier, monospace;
    font-size: 20px;
    font-weight: 800;
}

.adventure-terminal__form input {
width: 100%;
    padding: 11px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
}

.adventure-terminal__form input::placeholder {
color: #65656f;
}

.adventure-terminal__form button {
padding: 9px 14px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.adventure-demo__commands {
display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.adventure-demo__commands > span {
margin-right: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.adventure-demo__commands button {
padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        color 160ms ease,
        background 160ms ease;
}

.adventure-demo__commands button:hover {
border-color: var(--accent);
    background: rgba(255, 0, 111, 0.07);
    color: var(--text);
}

.adventure-demo__note {
margin: 16px 2px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 650px) {
.adventure-demo {
        padding: 20px 14px;
    }

    .adventure-demo__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .adventure-terminal__output {
        min-height: 330px;
        padding: 18px;
        font-size: 13px;
    }

    .adventure-terminal__form {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .adventure-terminal__form button {
        display: none;
    }
}
