@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #08101e;
    --surface: #0d1728;
    --surface2: #111e32;
    --line: #233149;
    --text: #eef3fb;
    --muted: #91a0b7;
    --blue: #5b8cff;
    --blue2: #9ab7ff;
    --gold: #d8b579;
    --green: #70d09a;
    --max: 1180px;
    --radius: 14px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Vazirmatn", "IRANSansX", "IRANSans", Tahoma, sans-serif;
    font-size: 16px;
    line-height: 24px
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 16, 30, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px
}

.brand-mark {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(154, 183, 255, .35);
    background: rgba(91, 140, 255, .08);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--blue2);
    font-weight: 800;
    font-size: 12px
}

.brand-copy strong {
    display: block;
    font-size: 14px
}

.brand-copy small {
    display: block;
    color: #74859e;
    font-size: 9px;
    direction: ltr;
    letter-spacing: .7px;
    text-align: right
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    color: #b9c6d7
}

.nav-links a {
    padding: 8px 0
}

.nav-links a:hover {
    color: #fff
}

.nav-download {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(91, 140, 255, .35);
    padding: 9px 12px !important;
    border-radius: 8px;
    background: rgba(91, 140, 255, .08);
    color: #eef3fb !important
}

.menu-toggle {
    display: none;
    background: none;
    color: #eef3fb;
    border: 0
}

.hero {
    min-height: 665px;
    display: grid;
    grid-template-columns:1.05fr .95fr;
    align-items: center;
    gap: 65px;
    padding: 80px 0 65px
}

.availability {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font-size: 12px;
    margin-bottom: 20px
}

.availability i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(112, 208, 154, .1)
}

h1 {
    font-size: clamp(38px, 4.2vw, 57px);
    line-height: 64px;
    letter-spacing: -1.1px;
    margin: 0 0 20px;
    max-width: 700px
}

h1 span, h2 span {
    color: var(--blue2)
}

.hero-lead {
    margin: 0;
    max-width: 650px;
    font-size: 16px;
    line-height: 24px;
    color: var(--muted)
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 28px 0 22px
}

.btn {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600
}

.btn.primary {
    background: var(--blue);
    color: #061021;
    border-color: var(--blue)
}

.btn.secondary {
    background: var(--surface)
}

.checks {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #8e9db2;
    font-size: 11px
}

.checks span {
    display: flex;
    align-items: center;
    gap: 6px
}

.checks svg {
    width: 14px;
    color: var(--green)
}

.hero-visual {
    position: relative;
    height: 500px;
    display: grid;
    place-items: center
}

.portrait {
    width: 350px;
    height: 450px;
    border-radius: 18px;
    border: 1px solid rgba(154, 183, 255, .3);
    overflow: hidden;
    position: relative;
    background: #0f192a;
    box-shadow: 26px 26px 0 rgba(91, 140, 255, .05)
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block
}

.portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(3, 8, 16, .92) 100%)
}

.portrait-meta {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px
}

.portrait-meta span {
    font-size: 8px;
    color: #a6b2c4;
    letter-spacing: 1px;
    direction: ltr
}

.portrait-meta b {
    font-size: 8px;
    color: var(--blue2)
}

.stat-badge, .code-badge {
    position: absolute;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2)
}

.stat-badge {
    top: 52px;
    right: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column
}

.stat-badge strong {
    font-size: 28px;
    color: var(--blue2);
    line-height: 1.1
}

.stat-badge span {
    font-size: 9px;
    color: var(--muted)
}

.code-badge {
    left: 0;
    bottom: 40px;
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 10px 13px;
    color: var(--gold);
    direction: ltr;
    font-size: 10px
}

.metrics {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #0b1424
}

.metrics-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr)
}

.metrics-grid div {
    padding: 24px;
    border-left: 1px solid var(--line)
}

.metrics-grid div:first-child {
    border-left: 0
}

.metrics-grid strong {
    font-size: 27px;
    line-height: 1.2
}

.metrics-grid span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px
}

.section {
    padding: 104px 0
}

.section-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 36px;
    margin-bottom: 42px
}

.eyebrow-small {
    font-size: 11px;
    color: var(--blue2);
    font-weight: 700;
    margin-bottom: 9px
}

.section-intro h2 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -.7px;
    margin: 0
}

.section-intro p {
    max-width: 370px;
    margin: 0;
    color: var(--muted);
    font-size: 12px
}

.home-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px
}

.feature-card {
    background: linear-gradient(145deg, #0f1a2d, #0b1423);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 27px;
    min-height: 246px
}

.feature-card svg {
    color: var(--blue2);
    width: 24px;
    margin-bottom: 34px
}

.feature-card h3 {
    font-size: 20px;
    line-height: 28px;
    margin: 0 0 7px
}

.feature-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 2;
    margin: 0 0 19px
}

.about-layout {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: 70px
}

.about-layout p {
    font-size: 14px;
    color: var(--muted);
    line-height: 22px
}

.about-layout .lead {
    font-size: 16px;
    line-height: 24px;
    color: #dfe7f3
}

.facts {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 7px
}

.facts div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 12px
}

.facts div:last-child {
    border-bottom: 0
}

.facts span {
    color: #7788a1
}

.skills {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 30px 70px
}

.skill {
    padding: 16px 0;
    border-bottom: 1px solid var(--line)
}

.skill-head, .skill-foot {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.skill-head strong {
    font-size: 13px
}

.skill-head span {
    font-size: 11px;
    color: var(--gold)
}

.bar {
    height: 7px;
    border-radius: 999px;
    background: #18263d;
    margin: 10px 0
}

.bar i {
    height: 100%;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), #a6c0ff)
}

.skill-foot {
    font-size: 9px;
    color: #687991
}

.skill-foot b {
    color: var(--blue2)
}

.service-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.service-grid article {
    min-height: 220px;
    padding: 30px;
    position: relative;
    border-left: 1px solid var(--line)
}

.service-grid article:first-child {
    border-left: 0
}

.service-grid svg {
    color: var(--blue2);
    width: 24px;
    margin-bottom: 32px
}

.service-grid article > span {
    position: absolute;
    top: 30px;
    right: 5px;
    color: #52637e;
    font-size: 11px
}

.service-grid h3 {
    font-size: 17px;
    margin: 0 0 6px
}

.service-grid p {
    font-size: 11px;
    color: var(--muted);
    margin: 0
}

.projects {
    display: grid;
    gap: 22px
}

.project-card {
    display: grid;
    grid-template-columns:1.22fr .78fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface)
}

.site-shot {
    min-height: 335px;
    padding: 20px;
    position: relative;
    background: radial-gradient(circle at 20% 20%, rgba(91, 140, 255, .16), transparent 36%)
}

.site-shot.hezar {
    background: radial-gradient(circle at 20% 20%, rgba(71, 202, 191, .14), transparent 36%)
}

.site-shot.infine {
    background: radial-gradient(circle at 20% 20%, rgba(153, 113, 255, .16), transparent 36%)
}

.site-shot.prfx {
    background: radial-gradient(circle at 20% 20%, rgba(216, 181, 121, .13), transparent 36%)
}

.shot-top {
    height: 33px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0b1321;
    border-radius: 9px 9px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px
}

.shot-top i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #43536b
}

.shot-top span {
    margin-right: auto;
    color: #63738a;
    direction: ltr;
    font-size: 8px
}

.shot-content {
    height: 252px;
    display: flex;
    background: #0a1220;
    border: 1px solid rgba(255, 255, 255, .08);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    overflow: hidden
}

.shot-side {
    width: 19%;
    background: #0e192b;
    border-left: 1px solid rgba(255, 255, 255, .05)
}

.shot-main {
    flex: 1;
    padding: 21px
}

.shot-brand {
    width: 28%;
    height: 10px;
    background: #2a3b54;
    border-radius: 4px;
    margin-bottom: 15px
}

.shot-hero {
    width: 72%;
    height: 55px;
    border-radius: 6px;
    background: linear-gradient(90deg, #152743, #0f2139);
    border: 1px solid rgba(91, 140, 255, .14);
    margin-bottom: 15px
}

.shot-cols {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 8px
}

.shot-cols i {
    height: 42px;
    border-radius: 5px;
    background: #142136;
    border: 1px solid rgba(255, 255, 255, .05)
}

.shot-block {
    height: 62px;
    margin-top: 15px;
    border-radius: 6px;
    background: #10213a;
    border: 1px solid rgba(91, 140, 255, .11)
}

.shot-badge {
    position: absolute;
    left: 31px;
    top: 31px;
    font-size: 8px;
    color: #70829b
}

.project-body {
    padding: 37px;
    border-right: 1px solid var(--line)
}

.project-number {
    color: var(--blue2);
    font-size: 10px
}

.project-kind {
    color: var(--gold);
    font-size: 10px;
    margin-top: 5px
}

.project-body h3 {
    font-size: 24px;
    line-height: 1.5;
    margin: 7px 0
}

.project-url {
    display: flex;
    direction: ltr;
    align-items: center;
    gap: 6px;
    color: #89a9f4;
    font-size: 9px;
    word-break: break-all
}

.project-body p {
    font-size: 11px;
    line-height: 2;
    color: var(--muted);
    margin: 15px 0
}

.tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 14px 0 20px
}

.tags span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 9px;
    color: #aab8cb
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px
}

.timeline {
    border-top: 1px solid var(--line)
}

.timeline article {
    display: grid;
    grid-template-columns:190px 18px 1fr;
    gap: 18px;
    padding: 27px 0;
    border-bottom: 1px solid var(--line)
}

.timeline-date {
    font-size: 11px;
    color: var(--blue2)
}

.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue);
    margin-top: 8px;
    box-shadow: 0 0 0 5px rgba(91, 140, 255, .09)
}

.timeline-body span {
    font-size: 10px;
    color: var(--gold)
}

.timeline-body h3 {
    font-size: 16px;
    margin: 2px 0
}

.timeline-body p {
    font-size: 11px;
    color: var(--muted);
    margin: 0
}

.cert-grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 20px
}

.cert-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px
}

.cert-image {
    aspect-ratio: 16/10;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08)
}

.cert-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover
}

.cert-meta {
    display: grid;
    grid-template-columns:1fr 120px;
    gap: 12px;
    padding: 14px 4px 2px
}

.cert-meta div {
    min-width: 0
}

.cert-meta span {
    display: block;
    color: #71829a;
    font-size: 9px;
    margin-bottom: 2px
}

.cert-meta strong {
    display: block;
    font-size: 12px;
    line-height: 1.7
}

.contact-panel {
    display: grid;
    grid-template-columns:1fr .9fr;
    gap: 55px;
    padding: 55px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, #0f1c31, #0b1525)
}

.contact-panel .section-intro {
    display: block;
    margin-bottom: 22px
}

.contact-panel .section-intro h2 {
    font-size: 45px;
    line-height: 52px
}

.contact-actions {
    display: flex;
    gap: 10px
}

.contact-list {
    display: grid;
    align-content: center
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line)
}

.contact-list a:last-child {
    border-bottom: 0
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0b1424;
    color: var(--blue2);
    display: grid;
    place-items: center
}

.contact-list div {
    flex: 1
}

.contact-list small {
    display: block;
    color: #6e7f97;
    font-size: 9px
}

.contact-list strong {
    display: block;
    font-size: 11px;
    direction: ltr;
    text-align: right
}

.cta {
    margin: 0 auto 85px;
    padding: 33px 36px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0d182a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.cta h2 {
    font-size: 32px;
    margin: 0 0 5px
}

.cta p {
    font-size: 11px;
    color: var(--muted);
    margin: 0
}

.footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: #6d7e96;
    font-size: 9px
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer-row a {
    display: flex;
    align-items: center;
    gap: 5px
}

.footer-row a svg {
    transform: rotate(180deg)
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        padding: 12px;
        background: #0d1728;
        border: 1px solid var(--line);
        border-radius: 0 0 12px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px
    }

    .nav-links.is-open {
        display: flex
    }

    .nav-links a {
        padding: 10px 12px
    }

    .menu-toggle {
        display: grid;
        place-items: center
    }

    .hero {
        grid-template-columns:1fr;
        gap: 35px;
        padding-top: 45px
    }

    .hero-copy {
        order: 2
    }

    .hero-visual {
        order: 1;
        height: 420px
    }

    .metrics-grid {
        grid-template-columns:1fr 1fr
    }

    .metrics-grid div {
        border-bottom: 1px solid var(--line)
    }

    .home-grid, .service-grid {
        grid-template-columns:1fr
    }

    .service-grid article {
        border-left: 0;
        border-bottom: 1px solid var(--line)
    }

    .about-layout, .contact-panel {
        grid-template-columns:1fr
    }

    .skills {
        grid-template-columns:1fr
    }

    .project-card {
        grid-template-columns:1fr
    }

    .project-body {
        border-right: 0;
        border-top: 1px solid var(--line)
    }

    .section-intro {
        flex-direction: column;
        align-items: flex-start
    }

    .cta {
        flex-direction: column;
        align-items: flex-start
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 28px)
    }

    body {
        font-size: 14px
    }

    .hero {
        padding: 35px 0 45px
    }

    .hero-visual {
        height: 345px
    }

    .portrait {
        width: 258px;
        height: 338px
    }

    .stat-badge {
        right: -1px;
        top: 25px
    }

    .code-badge {
        left: -1px;
        bottom: 13px
    }

    h1 {
        font-size: 35px;
        line-height: 44px;
        letter-spacing: -.5px
    }

    .hero-lead {
        font-size: 14px;
        line-height: 20px
    }

    .checks {
        display: grid;
        gap: 5px
    }

    .metrics-grid div {
        padding: 18px 12px
    }

    .metrics-grid strong {
        font-size: 22px
    }

    .metrics-grid span {
        font-size: 9px
    }

    .section {
        padding: 78px 0
    }

    .section-intro h2 {
        font-size: 28px;
        line-height: 36px
    }

    .feature-card {
        min-height: 0
    }

    .site-shot {
        min-height: 255px;
        padding: 12px
    }

    .shot-content {
        height: 190px
    }

    .shot-main {
        padding: 13px
    }

    .project-body {
        padding: 26px
    }

    .timeline article {
        grid-template-columns:1fr;
        gap: 4px
    }

    .timeline-dot {
        display: none
    }

    .cert-grid {
        grid-template-columns:1fr
    }

    .contact-panel {
        padding: 30px
    }

    .contact-panel .section-intro h2 {
        font-size: 32px;
        line-height: 40px
    }

    .contact-actions {
        flex-direction: column
    }

    .contact-actions .btn {
        width: 100%
    }

    .footer-row {
        flex-direction: column;
        gap: 8px;
        text-align: center
    }
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    border-bottom: 1px solid rgba(154, 183, 255, .28);
    padding-bottom: 5px
}

.page {
    min-height: 630px
}

.menu-toggle {
    gap: 4px
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #eef3fb
}

.nav-links a.active {
    color: #fff
}

.site-shot.hezar {
    background: radial-gradient(circle at 20% 20%, rgba(71, 202, 191, .14), transparent 36%)
}

.site-shot.infine {
    background: radial-gradient(circle at 20% 20%, rgba(153, 113, 255, .16), transparent 36%)
}

.site-shot.prfx {
    background: radial-gradient(circle at 20% 20%, rgba(216, 181, 121, .13), transparent 36%)
}

.detail-top {
    display: grid;
    grid-template-columns:.9fr 1.1fr;
    gap: 50px;
    align-items: center
}

.detail-top h2 {
    font-size: 48px;
    margin: 0 0 12px
}

.detail-lead {
    font-size: 15px;
    color: var(--muted);
    line-height: 2.1
}

.detail-shot {
    min-height: 360px;
    border-radius: 16px
}

.detail-note {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02)
}

.detail-note span {
    color: var(--gold);
    font-size: 10px
}

.detail-note p {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--muted)
}

@media (max-width: 900px) {
    .detail-top {
        grid-template-columns:1fr
    }

    .detail-top h2 {
        font-size: 38px
    }
}

/* Theme system */
:root {
    color-scheme: dark
}

html[data-theme="light"] {
    color-scheme: light
}

html[data-theme="light"] body {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface2: #eef3fa;
    --line: #dbe3ef;
    --text: #172033;
    --muted: #60708a;
    --blue: #396fe8;
    --blue2: #315fc7;
    --gold: #a9792c;
    --green: #2c9b66
}

html[data-theme="light"] .header {
    background: rgba(247, 249, 252, .88);
    border-bottom-color: rgba(16, 32, 56, .08)
}

html[data-theme="light"] .nav-links {
    color: #53627a
}

html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .nav-links a.active {
    color: #172033
}

html[data-theme="light"] .hero, html[data-theme="light"] .section, .cta {
    background: var(--bg)
}

html[data-theme="light"] .metrics {
    background: #fff
}

html[data-theme="light"] .skills-merged {
    background: #f0f4fa
}

html[data-theme="light"] .feature-card, html[data-theme="light"] .service-grid article, html[data-theme="light"] .project-card, html[data-theme="light"] .contact-panel, html[data-theme="light"] .cert-card, html[data-theme="light"] .facts {
    background: var(--surface);
    box-shadow: 0 10px 35px rgba(35, 55, 85, .06)
}

html[data-theme="light"] .portrait, html[data-theme="light"] .shot-top, html[data-theme="light"] .shot-content, html[data-theme="light"] .contact-icon {
    background: #eaf0f8
}

html[data-theme="light"] .shot-main, html[data-theme="light"] .site-shot {
    background: #eef3f9
}

html[data-theme="light"] .shot-side {
    background: #e0e8f2
}

html[data-theme="light"] .shot-brand, html[data-theme="light"] .shot-cols i, html[data-theme="light"] .shot-block {
    background: #cbd7e7
}

html[data-theme="light"] .shot-hero {
    background: linear-gradient(90deg, #d7e2f2, #e9eff7)
}

html[data-theme="light"] .stat-badge, html[data-theme="light"] .code-badge {
    background: #fff;
    box-shadow: 0 12px 28px rgba(36, 57, 90, .12)
}

html[data-theme="light"] .btn.secondary {
    background: #fff
}

html[data-theme="light"] .nav-download {
    background: rgba(57, 111, 232, .07);
    color: #172033 !important
}

html[data-theme="light"] .bar {
    background: #d8e1ed
}

html[data-theme="light"] .footer {
    color: #64758d
}

.theme-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    min-height: 38px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 10px;
    margin-right: 10px
}

.theme-toggle .theme-sun, .theme-toggle .theme-moon {
    font-size: 15px;
    line-height: 1
}

.theme-toggle .theme-moon {
    display: none
}

.theme-toggle:hover {
    border-color: rgba(91, 140, 255, .5)
}

html[data-theme="light"] .theme-toggle .theme-sun {
    display: none
}

html[data-theme="light"] .theme-toggle .theme-moon {
    display: inline
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(91, 140, 255, .07);
    color: var(--blue2);
    margin-bottom: 10px
}

.metric-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

.about-profile {
    display: grid;
    grid-template-columns:340px 1fr;
    gap: 60px;
    align-items: center
}

.about-photo {
    height: 430px;
    border-radius: 18px;
    border: 1px solid rgba(154, 183, 255, .3);
    overflow: hidden;
    position: relative;
    background: #0f192a
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block
}

.about-photo:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(3, 8, 16, .88) 100%)
}

.about-photo span {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 18px;
    color: #dbe4f2;
    font-size: 8px;
    letter-spacing: 1.2px;
    direction: ltr
}

.about-copy .lead {
    font-size: 17px !important;
    line-height: 28px !important;
    color: var(--text) !important
}

.about-copy p {
    max-width: 690px
}

.about-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px
}

.facts-wide {
    margin-top: 35px;
    display: grid;
    grid-template-columns:repeat(4, 1fr)
}

.skills-merged {
    background: #0d1728;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

@media (max-width: 900px) {
    .theme-toggle {
        position: absolute;
        left: 55px;
        top: 20px
    }

    .nav {
        min-height: 76px
    }

    .about-profile {
        grid-template-columns:1fr;
        gap: 30px
    }

    .about-photo {
        width: min(100%, 350px);
        margin-inline: auto
    }

    .facts-wide {
        grid-template-columns:1fr 1fr
    }

    .about-actions {
        flex-wrap: wrap
    }
}

@media (max-width: 560px) {
    .theme-toggle {
        left: 48px;
        top: 19px;
        padding: 0 9px
    }

    .theme-toggle .theme-label {
        display: none
    }

    .metric-icon {
        width: 32px;
        height: 32px
    }

    .metric-icon svg {
        width: 16px;
        height: 16px
    }

    .about-profile {
        gap: 22px
    }

    .about-photo {
        height: 350px
    }

    .about-copy .lead {
        font-size: 15px !important;
        line-height: 23px !important
    }

    .facts-wide {
        grid-template-columns:1fr
    }

    .cert-meta {
        grid-template-columns:1fr 90px
    }
}
