* {
    box-sizing: border-box
}

:root {
    --bg: #0b1020;
    --panel: #111a2e;
    --panel2: #151f35;
    --text: #edf2ff;
    --muted: #9aa8c2;
    --line: rgba(180, 198, 230, .13);
    --cyan: #64e4dc;
    --purple: #9d8cff
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    line-height: 1.65;
    background-image: radial-gradient(ellipse at 80% 0%, rgba(75, 91, 176, .16), transparent 34%), radial-gradient(ellipse at 0% 50%, rgba(28, 145, 153, .08), transparent 30%)
}

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

.site-shell {
    max-width: 1240px;
    margin: auto;
    padding: 0 42px
}

.topbar {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Space Grotesk";
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.6px
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--cyan), #8d8bff);
    color: #09111e;
    font-size: 18px
}

.brand-dot {
    color: var(--cyan)
}

nav {
    display: flex;
    gap: 34px;
    color: var(--muted);
    font-size: 13px
}

nav a:hover,
.top-cta:hover,
.text-link:hover {
    color: var(--cyan)
}

.top-cta {
    font-size: 13px;
    font-weight: 700
}

.top-cta span {
    color: var(--cyan);
    margin-left: 8px
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 23px
}

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 30px;
    padding: 80px 0 65px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 20px
}

.status-dot,
.pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #63dfb0;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 12px #63dfb0
}

.hero h1,
h2 {
    font-family: "Space Grotesk";
    letter-spacing: -2.8px;
    line-height: 1.08
}

.hero h1 {
    font-size: clamp(48px, 6vw, 76px);
    margin: 0 0 24px
}

.gradient-text {
    background: linear-gradient(100deg, #6ce4d8 5%, #9b91ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero-lead {
    max-width: 520px;
    color: #aab6cc;
    font-size: 16px;
    line-height: 1.8
}

.hero-actions {
    display: flex;
    gap: 13px;
    margin-top: 32px
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 13px 19px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    transition: .2s
}

.button span {
    font-size: 16px
}

.button-primary {
    background: linear-gradient(110deg, #6be1d7, #9b91ff);
    color: #0b1221
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px #69dcd533
}

.button-quiet {
    border: 1px solid var(--line);
    color: #d8e0f1
}

.button-outline {
    border: 1px solid rgba(192, 207, 237, .25)
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 45px;
    color: #71809e;
    font-size: 10px
}

.meta-divider {
    height: 3px;
    width: 3px;
    background: #56647f;
    border-radius: 50%
}

.hero-art {
    height: 430px;
    position: relative;
    display: grid;
    place-items: center
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #7169dc;
    filter: blur(110px);
    opacity: .18;
    z-index: -1
}

.orbit {
    position: absolute;
    border: 1px solid rgba(116, 213, 216, .15);
    border-radius: 50%;
    transform: rotate(-25deg)
}

.orbit-one {
    width: 450px;
    height: 230px
}

.orbit-two {
    width: 380px;
    height: 310px;
    transform: rotate(35deg)
}

.code-window {
    width: min(100%, 420px);
    border: 1px solid rgba(157, 173, 216, .23);
    border-radius: 15px;
    background: linear-gradient(145deg, #17243b, #0d1528);
    box-shadow: 0 35px 80px #0008;
    overflow: hidden;
    z-index: 1;
    transform: rotate(-3deg)
}

.window-bar {
    height: 43px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
    color: #70809e;
    font-size: 10px
}

.window-bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fa827f
}

.window-bar i:nth-child(2) {
    background: #e9c66d
}

.window-bar i:nth-child(3) {
    background: #67d5a5
}

.window-bar span {
    margin-left: 12px
}

.code-lines {
    padding: 25px 22px 18px;
    font: 12px/2.25 monospace;
    color: #d5def2
}

.code-lines p {
    margin: 0
}

.code-lines b {
    color: #52617e;
    font-weight: 400;
    margin-right: 15px
}

.pink {
    color: #e99bd1
}

.blue {
    color: #8eaaff
}

.green {
    color: #9bdfb5
}

.muted {
    color: #7888a5
}

.code-footer {
    border-top: 1px solid var(--line);
    padding: 12px 20px;
    color: #7f90ad;
    font-size: 10px
}

.floating-chip {
    position: absolute;
    z-index: 2;
    padding: 11px 14px;
    background: #1a2941;
    border: 1px solid #344663;
    border-radius: 10px;
    box-shadow: 0 15px 35px #0006;
    font-size: 15px;
    color: var(--cyan)
}

.floating-chip span {
    font-size: 10px;
    color: #dce6f6;
    margin-left: 6px
}

.chip-mobile {
    top: 68px;
    right: 0
}

.chip-api {
    bottom: 55px;
    left: 0;
    color: #a99aff
}

.stats-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 25px 0;
    margin-bottom: 110px
}

.stats-strip div {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--line)
}

.stats-strip div:last-child {
    border: 0
}

.stats-strip strong {
    font-family: "Space Grotesk";
    font-size: 17px
}

.stats-strip span {
    font-size: 10px;
    color: #8190aa;
    margin-top: 4px
}

.section {
    padding: 0 0 110px
}

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

.section-heading .eyebrow {
    margin-bottom: 13px
}

.section h2,
.contact-section h2 {
    font-size: clamp(34px, 4vw, 48px);
    margin: 0
}

.section-heading>p {
    max-width: 390px;
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 4px
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 25px
}

.filter {
    border: 1px solid var(--line);
    background: transparent;
    color: #9aa8c2;
    padding: 8px 14px;
    border-radius: 30px;
    font: inherit;
    font-size: 10px;
    cursor: pointer
}

.filter.active,
.filter:hover {
    background: #1c2a40;
    color: var(--cyan);
    border-color: #456a7a
}

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

.project-card {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(22, 33, 55, .95), rgba(14, 22, 39, .95));
    border-radius: 14px;
    overflow: hidden;
    transition: .25s
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 228, 220, .4);
    box-shadow: 0 20px 45px #0003
}

.project-card.hidden {
    display: none
}

.project-image {
    height: 190px;
    position: relative;
    overflow: hidden;
    background: #17243a
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s
}

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

.project-type {
    position: absolute;
    left: 14px;
    top: 14px;
    background: #0b1324d9;
    border: 1px solid #ffffff20;
    border-radius: 30px;
    padding: 5px 9px;
    font-size: 8px;
    letter-spacing: 1px;
    color: #c7d6eb
}

.project-content {
    padding: 19px
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.project-top h3 {
    font: 600 18px "Space Grotesk";
    margin: 0
}

.project-number {
    font: 11px monospace;
    color: #5f7191
}

.project-content p {
    color: #9aa8c2;
    font-size: 11px;
    line-height: 1.8;
    min-height: 60px;
    margin: 12px 0
}

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

.tags span {
    font-size: 9px;
    color: #9eb0ca;
    background: #202e47;
    padding: 5px 8px;
    border-radius: 5px
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    margin-top: 17px;
    padding-top: 13px;
    font-size: 10px
}

.placeholder-link {
    color: var(--cyan)
}

.private-label {
    color: #657590;
    font-size: 9px
}

.edit-hint {
    font-size: 10px;
    color: #71809e;
    margin-top: 18px
}

.about-section {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
    align-items: center;
    padding-top: 20px
}

.about-visual {
    height: 350px;
    display: grid;
    place-items: center
}

.about-card {
    width: 290px;
    height: 290px;
    border: 1px solid #3c526e;
    border-radius: 25px;
    background: linear-gradient(145deg, #1b3550, #17213b);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
    box-shadow: 0 25px 70px #0005
}

.about-symbol {
    font: 700 60px "Space Grotesk";
    color: var(--cyan);
    z-index: 1
}

.about-caption {
    font: 600 23px/1.3 "Space Grotesk";
    z-index: 1
}

.about-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
    background-size: 25px 25px;
    mask-image: linear-gradient(130deg, black, transparent 80%)
}

.about-copy .eyebrow {
    margin-bottom: 15px
}

.about-copy h2 {
    font-size: 42px;
    margin: 0 0 24px
}

.about-copy p {
    font-size: 12px;
    color: #9aa8c2;
    line-height: 1.9
}

.text-link {
    display: inline-block;
    margin-top: 13px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700
}

.skills-section {
    padding-top: 20px;
    margin-left: 30px;
    margin-right: 30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px
}

.skill-group {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #111b2e
}

.skill-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #21374a;
    color: var(--cyan);
    font-size: 18px
}

.skill-group h3 {
    font: 600 14px "Space Grotesk";
    margin: 18px 0 8px
}

.skill-group p {
    font-size: 10px;
    color: #91a0ba;
    line-height: 1.8;
    margin: 0
}

.contact-section {
    border: 1px solid #34465e;
    border-radius: 20px;
    background: radial-gradient(ellipse at 85% 10%, #6d68b52a, transparent 40%), linear-gradient(120deg, #15253a, #11192d);
    text-align: center;
    padding: 75px 25px;
    margin-bottom: 70px
}

.contact-section .eyebrow {
    margin-bottom: 15px
}

.contact-section h2 {
    font-size: 50px
}

.contact-section p {
    font-size: 12px;
    color: #9baac4;
    margin: 20px auto 25px
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap
}

.contact-actions .button {
    gap: 12px
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 25px 0 35px;
    color: #74839e;
    font-size: 10px
}

footer .brand {
    color: var(--text);
    font-size: 16px
}

footer .brand-mark {
    width: 27px;
    height: 27px;
    font-size: 14px;
    border-radius: 8px
}

footer>a:last-child {
    color: var(--cyan)
}

@media(max-width:900px) {
    .site-shell {
        padding: 0 25px
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 65px
    }

    .hero-art {
        height: 370px;
        max-width: 570px;
        width: 100%;
        margin: auto
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .about-section {
        gap: 35px
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:620px) {
    .site-shell {
        padding: 0 18px
    }

    .topbar {
        height: 70px
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #101a2d;
        padding: 20px 25px;
        z-index: 10;
        flex-direction: column;
        gap: 18px;
        border-bottom: 1px solid var(--line)
    }

    nav.open {
        display: flex
    }

    .top-cta {
        margin-left: auto;
        margin-right: 18px
    }

    .menu-toggle {
        display: block
    }

    .hero {
        padding: 65px 0 35px;
        min-height: 0
    }

    .hero h1 {
        font-size: 48px
    }

    .hero-lead {
        font-size: 14px
    }

    .hero-meta {
        flex-wrap: wrap;
        margin-top: 30px
    }

    .hero-art {
        height: 310px
    }

    .code-window {
        width: 88%
    }

    .orbit-one {
        width: 320px
    }

    .orbit-two {
        width: 280px
    }

    .chip-mobile {
        right: -3px;
        top: 25px
    }

    .chip-api {
        left: -3px;
        bottom: 24px
    }

    .stats-strip {
        margin-bottom: 75px;
        padding: 20px 0
    }

    .stats-strip strong {
        font-size: 13px
    }

    .stats-strip span {
        font-size: 8px;
        text-align: center
    }

    .section {
        padding-bottom: 75px
    }

    .section-heading {
        display: block
    }

    .section-heading>p {
        margin-top: 18px
    }

    .section h2 {
        font-size: 36px
    }

    .filter-row {
        overflow: auto;
        padding-bottom: 5px
    }

    .filter {
        white-space: nowrap
    }

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

    .project-image {
        height: 205px
    }

    .project-content p {
        min-height: 0
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .about-visual {
        height: 270px
    }

    .about-card {
        width: 245px;
        height: 245px
    }

    .about-copy h2 {
        font-size: 35px
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px
    }

    .skill-group {
        padding: 16px
    }

    .skill-group h3 {
        font-size: 12px
    }

    .skill-group p {
        font-size: 9px
    }

    .contact-section {
        padding: 55px 16px;
        margin-bottom: 45px
    }

    .contact-section h2 {
        font-size: 38px
    }

    footer {
        gap: 12px;
        flex-wrap: wrap
    }

    footer>span {
        order: 3;
        width: 100%
    }
}

/* Interactive project detail dialog */
.project-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit
}

.project-open:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -3px;
    border-radius: 14px
}

.project-image .image-open {
    position: absolute;
    right: 14px;
    bottom: 13px;
    background: #0b1324e8;
    border: 1px solid #ffffff30;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--cyan);
    opacity: 0;
    transform: translateY(5px);
    transition: .2s
}

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

.details-link {
    color: var(--cyan);
    font-weight: 700
}

.details-link b {
    margin-left: 5px
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(3, 7, 16, .82);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.modal-backdrop.show {
    display: flex
}

.project-modal {
    position: relative;
    width: min(850px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    background: #111b2e;
    border: 1px solid #43536d;
    border-radius: 18px;
    box-shadow: 0 35px 100px #000b
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ffffff35;
    background: #0b1426;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer
}

.modal-visual {
    min-height: 100%;
    background: #17243a;
    display: flex;
    align-items: center
}

.modal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px
}

.modal-body {
    padding: 36px 32px 32px
}

.modal-body .eyebrow {
    margin-bottom: 10px
}

.modal-body h2 {
    font: 700 32px/1.15 "Space Grotesk";
    letter-spacing: -1.3px;
    margin: 0 0 15px
}

.modal-description {
    font-size: 12px;
    color: #aab7cd;
    line-height: 1.85;
    margin-bottom: 23px
}

.modal-body h3 {
    font: 600 13px "Space Grotesk";
    margin: 22px 0 10px
}

.modal-body ul {
    padding-left: 18px;
    margin: 0;
    color: #aab7cd;
    font-size: 11px;
    line-height: 1.85
}

.modal-body li {
    padding-left: 3px;
    margin-bottom: 6px
}

.modal-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px
}

.modal-links a {
    border: 1px solid #42616b;
    color: var(--cyan);
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700
}

.modal-links a:hover {
    background: #1c3545
}

body.modal-open {
    overflow: hidden
}

@media(max-width:700px) {
    .project-modal {
        grid-template-columns: 1fr;
        max-height: 92vh
    }

    .modal-visual {
        max-height: 170px;
        min-height: 0
    }

    .modal-visual img {
        height: 170px;
        min-height: 0
    }

    .modal-body {
        padding: 25px 21px
    }

    .modal-body h2 {
        font-size: 27px
    }

    .modal-close {
        top: 9px;
        right: 9px
    }
}

.experience-section {
    padding-top: 5px;
    margin-left: 30px;
}

.experience-list {
    border-top: 1px solid var(--line)
}

.experience-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 28px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line)
}

.experience-date {
    font: 700 10px "Space Grotesk";
    letter-spacing: 1.5px;
    color: var(--cyan);
    padding-top: 5px
}

.experience-detail h3 {
    font: 600 17px "Space Grotesk";
    margin: 0 0 8px
}

.experience-detail h3 span {
    font: 400 13px "DM Sans";
    color: #8e9db8
}

.experience-detail p {
    font-size: 11px;
    line-height: 1.85;
    color: #9aa8c2;
    margin: 0;
    max-width: 850px
}

@media(max-width:620px) {
    .experience-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 19px 0
    }

    .experience-detail h3 {
        font-size: 15px
    }
}

.backend-section {
    padding-top: 8px;
    margin-left: 30px;
    margin-right: 30px;
}

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

.backend-project {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(22, 33, 55, .95), rgba(14, 22, 39, .95))
}

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

.backend-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #21374a;
    color: var(--cyan);
    font-size: 19px
}

.backend-stack {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: #8fa2bf
}

.backend-project h3 {
    font: 600 20px "Space Grotesk";
    margin: 0 0 9px
}

.backend-project p {
    font-size: 11px;
    line-height: 1.85;
    color: #aab7cd;
    margin: 0 0 13px
}

.backend-project ul {
    margin: 0;
    padding-left: 17px;
    color: #91a0ba;
    font-size: 10px;
    line-height: 1.9
}

.backend-project li {
    padding-left: 3px;
    margin: 4px 0
}

@media(max-width:620px) {
    .backend-project-grid {
        grid-template-columns: 1fr
    }

    .backend-project {
        padding: 20px
    }
}

.card-external-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 19px 17px
}

.card-external-links a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #42616b;
    color: var(--cyan);
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
    transition: .2s
}

.card-external-links a:hover {
    background: #1c3545;
    border-color: var(--cyan)
}

/* Real product logos in the main project grid */
.project-image.logo-project {
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px
}

.project-image.logo-project img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s
}

.project-card:hover .project-image.logo-project img {
    transform: scale(1.035)
}

.modal-visual.logo-visual {
    background: #f5f7fb;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.modal-visual.logo-visual img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 430px;
    object-fit: contain
}

@media(max-width:700px) {
    .modal-visual.logo-visual {
        padding: 14px
    }

    .modal-visual.logo-visual img {
        min-height: 130px;
        max-height: 170px
    }
}