/* Page header */

.page-header {
    padding-top: calc(var(--landing-header-height) + 50px);
    padding-bottom: 50px;
}

.page-header__title {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.page-header__desc {
    color: white;
    opacity: .5;
    max-width: 700px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .page-header {
        padding-top: calc(var(--landing-header-height) + 40px);
        padding-bottom: 30px;
    }

    .page-header__title {
        font-size: 30px;
    }
}

/* Projects */

.projects {
    padding-bottom: 110px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 90px;
}

@media (max-width: 991px) {
    .projects {
        padding-bottom: 60px;
    }

    .projects-list {
        gap: 50px;
    }
}

/* Project */

.project {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
    scroll-margin-top: calc(var(--landing-header-height) + 30px);
}

.project:nth-child(even) {
    grid-template-columns: 1fr 1.1fr;
}

.project:nth-child(even) .project-media {
    order: 2;
}

.project-media {
    position: relative;
    display: block;
    border-radius: 20px;
}

.project-media::after {
    content: '';
    position: absolute;
    inset: -12%;
    z-index: -1;
    background: radial-gradient(60% 60% at 30% 25%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
    opacity: .35;
    filter: blur(30px);
    transition: opacity .35s;
    pointer-events: none;
}

.project-media:hover::after {
    opacity: .6;
}

.project-open {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--accent-text, #fff);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px -6px color-mix(in srgb, var(--accent) 70%, transparent);
    opacity: 0;
    transform: translateY(8px);
    transition: .25s;
    pointer-events: none;
}

.project-media:hover .project-open {
    opacity: 1;
    transform: translateY(0);
}

.project-body {
    max-width: 560px;
}

.project-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.project-logo {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 18px -6px #00000080, inset 0 0 0 1px #ffffff12;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-badge {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: color-mix(in srgb, var(--accent) 55%, white);
}

.project-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.2;
    color: white;
}

.project-desc {
    color: white;
    opacity: .55;
    line-height: 1.6;
    margin-bottom: 26px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.project-tag {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    background: #ffffff0d;
    color: #ffffffcc;
}

@media (max-width: 991px) {
    .project,
    .project:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .project:nth-child(even) .project-media {
        order: 0;
    }

    .project-body {
        max-width: 100%;
    }

    .project-head {
        margin-bottom: 18px;
    }

    .project-title {
        font-size: 26px;
    }

    /* No hover on touch screens — keep the button visible */
    .project-open {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .project-link {
        width: 100%;
        justify-content: center;
    }
}

/* Browser mockup */

.mockup {
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #14151a;
    border: 1px solid #ffffff14;
    box-shadow: 0 30px 60px -20px #00000099, inset 0 1px 0 #ffffff0f;
    transition: transform .35s ease, border-color .35s ease;
}

.project-media:hover .mockup {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 45%, #ffffff14);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    height: 38px;
    flex-shrink: 0;
    background: #0f1013;
    border-bottom: 1px solid #ffffff0d;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff1f;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding: 5px 14px;
    border-radius: 100px;
    background: #ffffff0a;
    color: #ffffff8c;
    font-size: 12px;
    font-weight: 500;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-url .material-symbols-rounded {
    font-size: 13px;
    color: color-mix(in srgb, var(--accent) 60%, white);
}

.mockup-view {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(90% 110% at 15% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
        linear-gradient(160deg, #17181d, #101115);
}

.mockup-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s ease;
}

.project-media:hover .mockup-view img {
    transform: scale(1.03);
}

/* Screens */

.ui {
    position: absolute;
    inset: 0;
    padding: 18px;
}

.ui b,
.ui i,
.ui span,
.ui em {
    display: block;
    border-radius: 4px;
    background: #ffffff17;
}

/* Feed */

.ui--feed {
    display: flex;
    gap: 14px;
}

.ui-rail {
    width: 46px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    align-items: center;
    background: #ffffff08;
    border-radius: 12px;
}

.ui-brand {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--accent);
}

.ui-nav {
    width: 22px;
    height: 8px;
    border-radius: 100px;
}

.ui-nav.is-active {
    background: color-mix(in srgb, var(--accent) 70%, transparent);
    width: 26px;
}

.ui-stream {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.ui-card {
    background: #ffffff06;
    border: 1px solid #ffffff0d;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ui-poster {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ui-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 45%, #ffffff22);
    flex-shrink: 0;
}

.ui-meta { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ui-meta b { width: 45%; height: 8px; }
.ui-meta i { width: 28%; height: 6px; opacity: .6; }

.ui-text { display: flex; flex-direction: column; gap: 6px; }
.ui-text span { height: 7px; }
.ui-text span:nth-child(1) { width: 92%; }
.ui-text span:nth-child(2) { width: 74%; }
.ui-text span:nth-child(3) { width: 60%; }

.ui-photo {
    height: 74px;
    border-radius: 8px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 30%, #ffffff12), #ffffff08);
}

.ui-actions { display: flex; gap: 16px; }
.ui-actions span { width: 34px; height: 7px; opacity: .5; }

/* Terminal */

.ui--term {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ui-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ui-tool {
    background: #ffffff06;
    border: 1px solid #ffffff0d;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ui-tool__ico {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.ui-tool b { width: 60%; height: 7px; }
.ui-tool i { width: 85%; height: 6px; opacity: .55; }

.ui-console {
    flex: 1;
    background: #0c0d10;
    border: 1px solid #ffffff0d;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ui-cline { display: flex; align-items: center; gap: 7px; }
.ui-cline em { height: 7px; }
.ui-cline .p { width: 8px; background: color-mix(in srgb, var(--accent) 80%, white); border-radius: 2px; }
.ui-cline .c1 { width: 22%; }
.ui-cline .c2 { width: 30%; opacity: .7; }
.ui-cline .c3 { width: 14%; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ui-cline .o { width: 55%; opacity: .4; margin-left: 15px; }
.ui-cline .ok { width: 9px; height: 9px; border-radius: 50%; background: #28c840; opacity: .8; }
.ui-cline .cur { width: 8px; height: 12px; border-radius: 1px; background: color-mix(in srgb, var(--accent) 80%, white); animation: uiBlink 1.2s steps(1) infinite; }

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

/* Editor */

.ui--code {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.ui-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 12px 0;
    background: #ffffff05;
}

.ui-tabs span {
    width: 58px;
    height: 22px;
    border-radius: 8px 8px 0 0;
    background: #ffffff08;
}

.ui-tabs span.is-active {
    background: #ffffff12;
    border-top: 2px solid var(--accent);
}

.ui-editor {
    flex: 1;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #0e0f13;
}

.ui-gutter {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 2px;
}

.ui-gutter i { width: 12px; height: 7px; opacity: .3; }

.ui-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ui-cl { display: flex; align-items: center; gap: 7px; }
.ui-cl--in { padding-left: 18px; }
.ui-cl--in2 { padding-left: 36px; }
.ui-cl em { height: 7px; border-radius: 3px; }
.ui-cl .kw { width: 34px; background: color-mix(in srgb, var(--accent) 75%, white); }
.ui-cl .fn { width: 52px; background: #7cc5ff; opacity: .85; }
.ui-cl .va { width: 40px; background: #ffffff26; }
.ui-cl .st { width: 78px; background: #8ce0a0; opacity: .8; }
.ui-cl .nu { width: 26px; background: #ffb86b; opacity: .85; }
.ui-cl .op { width: 12px; background: #ffffff26; }
.ui-cl .br { width: 14px; background: #ffffff1f; }
.ui-cl .cm { width: 96px; background: #ffffff14; }

/* Links */

.ui--links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px;
}

.ui-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ui-pfp {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 70%, white), color-mix(in srgb, var(--accent) 45%, #ffffff22));
}

.ui-profile b { width: 92px; height: 9px; }
.ui-profile i { width: 128px; height: 6px; opacity: .55; }

.ui-socials {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.ui-socials s {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff1f;
}

.ui-btns {
    width: 100%;
    max-width: 230px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 4px;
}

.ui-btns span {
    height: 24px;
    border-radius: 100px;
    background: #ffffff0d;
    border: 1px solid #ffffff12;
}

.ui-btns span.is-accent {
    background: color-mix(in srgb, var(--accent) 28%, transparent);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Dashboard */

.ui--server {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.ui-srv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.ui-srv-head b { width: 104px; height: 10px; }

.ui-srv-head span {
    width: 58px;
    height: 20px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.ui-srv-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ui-srv {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    background: #ffffff06;
    border: 1px solid #ffffff0d;
    border-radius: 10px;
}

.ui-srv s {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 3px #28c84022;
    flex-shrink: 0;
}

.ui-srv__name {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ui-srv__name b { width: 52%; height: 8px; }
.ui-srv__name i { width: 30%; height: 6px; opacity: .5; }

.ui-srv em {
    width: 38px;
    height: 9px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--accent) 55%, white);
    opacity: .9;
}
