:root {
    --font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --bg: #06101d;
    --bg-secondary: #0b1c31;
    --surface: rgba(11, 27, 47, 0.7);
    --surface-strong: rgba(13, 31, 54, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.055);
    --text: #f5f8ff;
    --muted: #a9b6c9;
    --primary: #67e8f9;
    --primary-strong: #22d3ee;
    --accent: #a78bfa;
    --accent-secondary: #818cf8;
    --success: #5eead4;
    --warning: #fbbf24;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(103, 232, 249, 0.38);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.22);
    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 26px;
    --container: 1180px;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #eef3f8;
    --bg-secondary: #f8fbff;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(15, 48, 78, 0.055);
    --text: #102033;
    --muted: #596b7e;
    --primary: #087f9a;
    --primary-strong: #0891b2;
    --accent: #6941c6;
    --accent-secondary: #4338ca;
    --success: #047857;
    --warning: #b45309;
    --border: rgba(15, 48, 78, 0.14);
    --border-strong: rgba(8, 127, 154, 0.42);
    --shadow: 0 24px 65px rgba(37, 62, 85, 0.15);
    --shadow-soft: 0 14px 38px rgba(37, 62, 85, 0.11);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-family);
    color: var(--text);
    background:
        radial-gradient(circle at 8% 5%, rgba(34, 211, 238, 0.13), transparent 31rem),
        radial-gradient(circle at 91% 13%, rgba(139, 92, 246, 0.14), transparent 30rem),
        linear-gradient(145deg, var(--bg) 0%, var(--bg-secondary) 54%, #10243d 100%);
    background-attachment: fixed;
    transition:
        background-color 0.35s ease,
        color 0.35s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0, transparent 72%);
    mask-image: radial-gradient(circle at 50% 18%, #000 0, transparent 72%);
}

body::selection {
    color: #06101d;
    background: var(--primary);
}

button,
input {
    font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(103, 232, 249, 0.55);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    color: #06101d;
    background: var(--primary);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.tech-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    pointer-events: none;
}

.ambient {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.ambient--one {
    top: -180px;
    right: -120px;
    width: 430px;
    height: 430px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 68%);
    animation: ambient-drift-one 16s ease-in-out infinite alternate;
}

.ambient--two {
    bottom: -220px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.13), transparent 68%);
    animation: ambient-drift-two 19s ease-in-out infinite alternate;
}

[data-theme="light"] .tech-background {
    opacity: 0.34;
}

[data-theme="light"] .ambient--one {
    background: radial-gradient(circle, rgba(8, 145, 178, 0.12), transparent 68%);
}

[data-theme="light"] .ambient--two {
    background: radial-gradient(circle, rgba(105, 65, 198, 0.1), transparent 68%);
}

@keyframes ambient-drift-one {
    to {
        transform: translate3d(-35px, 28px, 0) scale(1.08);
    }
}

@keyframes ambient-drift-two {
    to {
        transform: translate3d(30px, -24px, 0) scale(1.06);
    }
}

.page {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding:
        clamp(18px, 3vw, 34px)
        clamp(14px, 3vw, 34px)
        0;
}

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 75% 15%, rgba(103, 232, 249, 0.13), transparent 28rem),
        linear-gradient(145deg, var(--surface-strong), rgba(9, 23, 41, 0.86));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero::after {
    content: "";
    position: absolute;
    top: -130px;
    right: -80px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(139, 92, 246, 0.035),
        0 0 0 90px rgba(103, 232, 249, 0.02);
    pointer-events: none;
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(34px, 6vw, 66px);
    padding: 10px 10px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.brand:hover {
    color: var(--primary);
}

.brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(103, 232, 249, 0.34);
    border-radius: 12px;
    color: #06101d;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.18);
    font-size: 0.76rem;
    letter-spacing: -0.04em;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.header__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
    animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
    50% {
        box-shadow: 0 0 0 7px rgba(94, 234, 212, 0.04);
    }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: var(--surface-soft);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--border-strong);
    background: var(--surface);
    transform: translateY(-1px);
}

.theme-toggle__symbol {
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.45s ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__symbol {
    transform: rotate(45deg);
}

.theme-toggle__text {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: clamp(36px, 7vw, 82px);
    padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 78px) clamp(54px, 7vw, 86px);
}

.hero__content {
    max-width: 720px;
}

.eyebrow,
.section-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow span,
.section-heading__eyebrow span {
    color: var(--accent);
}

.hero__title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.75rem, 6vw, 5.25rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero__title span {
    display: block;
    background: linear-gradient(105deg, var(--text) 5%, var(--primary) 48%, var(--accent) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__subtitle {
    margin: 20px 0 0;
    color: var(--primary);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    font-weight: 750;
}

.hero__description {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(0.96rem, 1.6vw, 1.05rem);
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease,
        box-shadow 0.24s ease;
}

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

.button--primary {
    color: #06101d;
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.2);
}

.button--primary:hover {
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.27);
}

.button--secondary {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.button--secondary:hover {
    border-color: var(--border-strong);
    background: var(--surface-strong);
}

.hero__visual {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
    perspective: 900px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 50%;
}

.orbit--one {
    width: 330px;
    height: 330px;
    transform: rotateX(66deg) rotateZ(-12deg);
}

.orbit--two {
    width: 270px;
    height: 270px;
    border-color: rgba(167, 139, 250, 0.2);
    transform: rotateX(66deg) rotateZ(28deg);
}

.orbit--three {
    width: 205px;
    height: 205px;
    border-style: dashed;
    animation: orbit-spin 22s linear infinite;
}

@keyframes orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

.code-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 360px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: rotateY(-5deg) rotateX(3deg);
    transition: transform 0.45s ease;
}

.hero__visual:hover .code-panel {
    transform: rotateY(0) rotateX(0) translateY(-4px);
}

.code-panel__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 39px;
    padding: 0 13px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.code-panel__bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.code-panel__bar span:first-child {
    background: rgba(251, 113, 133, 0.72);
}

.code-panel__bar span:nth-child(2) {
    background: rgba(251, 191, 36, 0.72);
}

.code-panel__bar span:last-child {
    background: rgba(94, 234, 212, 0.72);
}

.code-panel__body {
    padding: 22px;
    overflow-x: auto;
}

.code-panel pre {
    margin: 0;
    color: var(--muted);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.83rem;
    line-height: 1.75;
    white-space: pre;
}

.code-keyword {
    color: var(--accent);
}

.code-property {
    color: var(--primary);
}

.code-punctuation {
    color: var(--text);
}

.visual-chip {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--primary);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.78rem;
    font-weight: 800;
    animation: chip-float 4s ease-in-out infinite;
}

.visual-chip--one {
    top: 16%;
    left: 7%;
}

.visual-chip--two {
    right: 5%;
    bottom: 22%;
    color: var(--accent);
    animation-delay: -1.3s;
}

.visual-chip--three {
    top: 10%;
    right: 13%;
    animation-delay: -2.4s;
}

@keyframes chip-float {
    50% {
        transform: translateY(-8px);
    }
}

.content-section,
.stats-section {
    position: relative;
    z-index: 1;
    padding: clamp(46px, 7vw, 82px) 0;
    scroll-margin-top: 20px;
}

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

.section-heading {
    max-width: 720px;
    margin: 0 auto clamp(26px, 4vw, 38px);
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 820;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p:last-child {
    max-width: 610px;
    margin: 13px auto 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.portfolio-tools {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field__icon {
    position: absolute;
    left: 14px;
    z-index: 1;
    width: 20px;
    height: 20px;
    color: var(--muted);
    pointer-events: none;
}

.search-field__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
}

.search-field__control {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 43px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    background: var(--surface-soft);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.search-field__control::placeholder {
    color: var(--muted);
    opacity: 0.75;
}

.search-field__control:hover {
    border-color: var(--border-strong);
}

.search-field__control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.12);
    background: var(--surface-strong);
}

.search-clear {
    position: absolute;
    right: 9px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.search-clear:hover {
    color: var(--text);
    background: var(--surface-soft);
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter-chip {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.filter-chip:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.filter-chip--active,
.filter-chip[aria-pressed="true"] {
    color: #06101d;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(34, 211, 238, 0.16);
}

.result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.result-meta span:first-child {
    color: var(--text);
    font-weight: 750;
}

.result-meta span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.result-meta span:last-child::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

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

.project-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 480px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 38%),
        var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.35s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
    background:
        radial-gradient(circle at 88% 4%, rgba(103, 232, 249, 0.12), transparent 30%),
        radial-gradient(circle at 5% 95%, rgba(167, 139, 250, 0.1), transparent 34%);
    transition: opacity 0.3s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    top: -70px;
    left: 35%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(103, 232, 249, 0.1);
    filter: blur(35px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.project-card:hover::before,
.project-card:hover::after {
    opacity: 1;
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(145deg, rgba(103, 232, 249, 0.1), transparent),
        #10273c;
}

[data-theme="light"] .project-media {
    background:
        linear-gradient(145deg, rgba(8, 145, 178, 0.12), transparent),
        #dcebf4;
}

.project-media > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.5s ease,
        filter 0.3s ease;
}

.project-card:hover .project-media > img {
    transform: scale(1.035);
    filter: saturate(1.06);
}

.project-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text);
}

.project-placeholder__grid {
    position: absolute;
    inset: 17px;
    border: 1px dashed rgba(103, 232, 249, 0.22);
    border-radius: 16px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 26px 26px;
}

.project-placeholder__glyph {
    position: relative;
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 26px;
    color: var(--primary);
    background:
        radial-gradient(circle, rgba(103, 232, 249, 0.18), transparent 68%),
        rgba(255, 255, 255, 0.045);
    box-shadow:
        inset 0 0 26px rgba(103, 232, 249, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.18);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    transform: rotate(-4deg);
}

.project-placeholder__category {
    position: absolute;
    right: 17px;
    bottom: 14px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(5, 17, 30, 0.58);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-theme="light"] .project-placeholder__category {
    background: rgba(255, 255, 255, 0.68);
}

.status-pill {
    position: absolute;
    top: 13px;
    right: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgba(94, 234, 212, 0.25);
    border-radius: 999px;
    color: var(--success);
    background: rgba(5, 20, 29, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
}

.project-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 21px;
}

.project-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.project-index {
    display: grid;
    width: 39px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(103, 232, 249, 0.22);
    border-radius: 10px;
    color: var(--primary);
    background: rgba(103, 232, 249, 0.07);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.69rem;
    font-weight: 800;
}

.category-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.category-indicator i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.08);
}

.project-card__title {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    transition: color 0.2s ease;
}

.project-card:hover .project-card__title {
    color: var(--primary);
}

.project-card__description {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.technology-list li {
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.68rem;
    font-weight: 750;
}

.project-card__footer {
    margin-top: auto;
    padding-top: 22px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 47px;
    padding: 0 15px;
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.11), rgba(167, 139, 250, 0.09));
    font-size: 0.88rem;
    font-weight: 850;
    text-decoration: none;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.project-link:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.18), rgba(167, 139, 250, 0.14));
    box-shadow: 0 10px 28px rgba(34, 211, 238, 0.13);
    transform: translateY(-2px);
}

.project-link__arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #06101d;
    background: var(--primary);
    transition: transform 0.22s ease;
}

.project-link:hover .project-link__arrow {
    transform: translateX(3px);
}

.no-results {
    display: grid;
    min-height: 360px;
    place-items: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
}

.no-results__content {
    max-width: 430px;
    padding: 36px;
    text-align: center;
}

.no-results__icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 19px;
    color: var(--primary);
    background: var(--surface-soft);
    font-size: 2rem;
}

.no-results h3 {
    margin: 0;
    font-size: 1.5rem;
}

.no-results p {
    margin: 10px auto 22px;
    color: var(--muted);
    line-height: 1.6;
}

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

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

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background-color 0.35s ease;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -45px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.13), transparent 68%);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 11px;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat-card small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 9px;
    color: var(--muted);
}

.site-footer {
    position: relative;
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(4, 12, 23, 0.2));
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 36px 0 28px;
}

.footer__intro .brand {
    margin-bottom: 12px;
}

.footer__intro > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer__copyright {
    margin-top: 12px !important;
    color: var(--muted);
    font-size: 0.8rem !important;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.footer__nav a {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.footer__nav a:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.78rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 750;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.back-to-top:hover {
    border-color: var(--border-strong);
    background: var(--surface-soft);
    transform: translateY(-1px);
}

html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1020px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .hero__content {
        max-width: none;
    }

    .hero__visual {
        min-height: 330px;
    }

    .portfolio-tools {
        grid-template-columns: 1fr;
    }

    .filter-list {
        justify-content: flex-start;
    }

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

    .footer__nav {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .page {
        width: 100%;
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero {
        border-radius: 25px;
    }

    .topbar {
        margin-bottom: 34px;
    }

    .header__status {
        display: none;
    }

    .hero__grid {
        gap: 22px;
        padding: 42px 22px 52px;
    }

    .hero__visual {
        min-height: 290px;
    }

    .orbit--one {
        width: 270px;
        height: 270px;
    }

    .orbit--two {
        width: 220px;
        height: 220px;
    }

    .orbit--three {
        width: 170px;
        height: 170px;
    }

    .code-panel {
        width: 300px;
    }

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

    .project-card {
        min-height: 455px;
    }

    .result-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 21px;
    }

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

@media (max-width: 520px) {
    .topbar {
        padding-right: 8px;
        padding-left: 8px;
        border-radius: 17px;
    }

    .brand > span:last-child {
        display: none;
    }

    .theme-toggle__text {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        padding: 8px;
        justify-content: center;
    }

    .hero__title {
        font-size: clamp(2.45rem, 13vw, 3.65rem);
    }

    .hero__subtitle {
        line-height: 1.45;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 310px;
        margin-right: auto;
        margin-left: auto;
    }

    .button {
        width: 100%;
    }

    .hero__visual {
        min-height: 255px;
    }

    .code-panel {
        width: 270px;
    }

    .code-panel__body {
        padding: 18px;
    }

    .code-panel pre {
        font-size: 0.73rem;
    }

    .visual-chip {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .portfolio-tools {
        padding: 12px;
    }

    .filter-list {
        flex-wrap: nowrap;
        padding-bottom: 3px;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }

    .filter-chip {
        flex: 0 0 auto;
    }

    .project-card {
        min-height: 445px;
        border-radius: 21px;
    }

    .project-card__content {
        padding: 18px;
    }

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

    .stat-card {
        border-radius: 21px;
    }

    .footer__nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__nav a {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html.js .reveal {
        opacity: 1;
        transform: none;
    }
}
