:root {
    --bg: #02040c;
    --g1: rgba(255, 255, 255, .032);
    --gb: rgba(255, 255, 255, .065);
    --gh: rgba(255, 255, 255, .055);
    --c1: #5bb8ff;
    --c2: #00eeff;
    --c3: #3dffa0;
    --c4: #b088ff;
    --c5: #ffcc44;
    --cr: #ff6b6b;
    --t1: #c8ddf0;
    --t2: #4e7090;
    --t3: #82a8c8;
    --w: #ecf5ff;
    --fa: 'Vazirmatn', sans-serif;
    --fm: 'JetBrains Mono', monospace;
    --rd: 14px;
    --rs: 8px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    font-size: 16px;
    scroll-behavior: auto
}

body {
    background: var(--bg);
    color: var(--t1);
    font-family: var(--fa);
    overflow-x: hidden;
    direction: rtl;
    -webkit-font-smoothing: antialiased
}

::-webkit-scrollbar {
    width: 2px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: rgba(91, 184, 255, .2);
    border-radius: 1px
}

/* WORLD CANVAS — fixed behind everything */
#W {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block
}

/* Post-process layers */
.pp-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(2, 4, 12, .9) 100%)
}

.pp-grain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .015;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px
}

.pp-scanlines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, .04) 3px, rgba(0, 0, 0, .04) 6px);
    opacity: .35
}

.pp-bloom {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(91, 184, 255, .022), transparent 65%);
    mix-blend-mode: screen;
    transition: opacity 2s
}

#prog {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 1.5px;
    z-index: 999;
    background: linear-gradient(90deg, var(--c3), var(--c1), var(--c2));
    box-shadow: 0 0 20px var(--c1), 0 0 40px rgba(91, 184, 255, .2);
    transition: width .1s
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 500;
    padding: .8rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 4, 12, .55);
    backdrop-filter: blur(40px) saturate(220%) brightness(.9);
    -webkit-backdrop-filter: blur(40px) saturate(220%);
    border-bottom: 1px solid rgba(91, 184, 255, .06);
    transition: background .4s
}

nav.scrolled {
    background: rgba(2, 4, 12, .75)
}

.logo {
    font-family: var(--fm);
    font-size: .92rem;
    color: var(--c1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .3rem;
    letter-spacing: .05em
}

.logo em {
    color: var(--c3);
    font-style: normal
}

.navl {
    display: flex;
    gap: 1.6rem;
    list-style: none
}

.navl a {
    font-size: .78rem;
    color: var(--t2);
    text-decoration: none;
    letter-spacing: .07em;
    transition: color .2s;
    position: relative
}

.navl a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--c1);
    transition: width .3s;
    box-shadow: 0 0 6px var(--c1)
}

.navl a:hover {
    color: var(--c1)
}

.navl a:hover::after {
    width: 100%
}

.ncta {
    background: rgba(91, 184, 255, .08);
    border: 1px solid rgba(91, 184, 255, .18);
    color: var(--c1);
    padding: .36rem .95rem;
    border-radius: var(--rs);
    font-family: var(--fa);
    font-size: .76rem;
    cursor: pointer;
    transition: all .3s
}

.ncta:hover {
    background: rgba(91, 184, 255, .15);
    box-shadow: 0 0 24px rgba(91, 184, 255, .12)
}

.ham {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer
}

.ham span {
    display: block;
    width: 19px;
    height: 1.5px;
    background: var(--c1);
    transition: .3s;
    transform-origin: center
}

/* SECTION BASE */
.s {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10
}

.si {
    max-width: 1160px;
    width: 100%;
    padding: 5.5rem 2.5rem;
    position: relative;
    z-index: 20
}

/* Frosted Glass — VisionOS level */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, .055) 0%, rgba(255, 255, 255, .022) 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--rd);
    backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .15);
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(91, 184, 255, .04) 0%, transparent 60%);
    pointer-events: none
}

.glass:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .032) 100%);
    border-color: rgba(91, 184, 255, .18);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4), 0 0 0 1px rgba(91, 184, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .12)
}

/* LABEL */
.lbl {
    font-family: var(--fm);
    font-size: .64rem;
    color: var(--c1);
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .6rem
}

.lbl::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(91, 184, 255, .3), transparent)
}

/* TYPOGRAPHY */
.hxl {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    font-weight: 900;
    color: var(--w);
    line-height: 1.02;
    letter-spacing: -.03em
}

.hlg {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--w);
    line-height: 1.07
}

.grd {
    background: linear-gradient(135deg, var(--c1), var(--c2) 50%, var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.grd2 {
    background: linear-gradient(135deg, var(--c4), var(--c1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.desc {
    font-size: .95rem;
    color: var(--t2);
    max-width: 560px;
    line-height: 1.88;
    margin-bottom: 2.5rem
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.65rem;
    border-radius: var(--rs);
    font-family: var(--fa);
    font-size: .85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s cubic-bezier(.16, 1, .3, 1);
    font-weight: 600;
    border: none
}

.bp {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #020510;
    box-shadow: 0 4px 20px rgba(91, 184, 255, .2), 0 0 0 1px rgba(91, 184, 255, .08)
}

.bp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(91, 184, 255, .35)
}

.bg2 {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--t3);
    backdrop-filter: blur(12px)
}

.bg2:hover {
    border-color: rgba(91, 184, 255, .28);
    color: var(--c1);
    transform: translateY(-2px);
    background: rgba(91, 184, 255, .06)
}

/* HERO */
.htag {
    font-family: var(--fm);
    font-size: .68rem;
    color: var(--c3);
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    justify-content: flex-end
}

.htag::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--c3);
    box-shadow: 0 0 8px var(--c3)
}

.twrap {
    font-family: var(--fm);
    font-size: clamp(.85rem, 2vw, 1.05rem);
    color: var(--t2);
    margin-bottom: 1.7rem;
    display: block;
    min-height: 1.4em
}

.tcur {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--c1);
    vertical-align: middle;
    animation: bc .7s step-end infinite;
    box-shadow: 0 0 8px var(--c1)
}

@keyframes bc {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: 0
    }
}

.hbtns {
    display: flex;
    gap: .8rem;
    flex-direction: row-reverse;
    flex-wrap: wrap
}

.hstats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-direction: row-reverse
}

.hstat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--fm);
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(91, 184, 255, .3))
}

.hstat span {
    font-size: .72rem;
    color: var(--t2);
    letter-spacing: .07em
}

.sh {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    animation: bob 2.2s ease-in-out infinite;
    opacity: .6
}

@keyframes bob {
    0%, 100% {
        transform: translateX(-50%) translateY(0)
    }
    50% {
        transform: translateX(-50%) translateY(7px)
    }
}

.shm {
    width: 16px;
    height: 26px;
    border: 1.5px solid rgba(91, 184, 255, .25);
    border-radius: 8px;
    position: relative
}

.shm::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5px;
    height: 5px;
    background: var(--c1);
    border-radius: 2px;
    animation: sd 1.5s ease-in-out infinite
}

@keyframes sd {
    0% {
        opacity: 1;
        top: 4px
    }
    100% {
        opacity: 0;
        top: 13px
    }
}

.sh span {
    font-family: var(--fm);
    font-size: .58rem;
    color: var(--t2);
    letter-spacing: .14em
}

/* ABOUT */
.abg {
    display: grid;
    grid-template-columns:1fr 1.12fr;
    gap: 4rem;
    align-items: start
}

.tl {
    position: relative;
    display: flex;
    flex-direction: column
}

.tl::before {
    content: '';
    position: absolute;
    right: 9px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(91, 184, 255, .5), rgba(91, 184, 255, .03))
}

.tli {
    padding-right: 2.2rem;
    padding-bottom: 1.9rem;
    position: relative;
    opacity: 0;
    transform: translateX(12px)
}

.tli::before {
    content: '';
    position: absolute;
    right: 4px;
    top: 7px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid rgba(91, 184, 255, .35);
    transition: all .5s cubic-bezier(.16, 1, .3, 1)
}

.tli.v::before {
    border-color: var(--c1);
    background: rgba(91, 184, 255, .15);
    box-shadow: 0 0 16px rgba(91, 184, 255, .5), 0 0 32px rgba(91, 184, 255, .2)
}

.tyr {
    font-family: var(--fm);
    font-size: .63rem;
    color: var(--c1);
    letter-spacing: .1em;
    margin-bottom: .28rem
}

.tro {
    font-size: .92rem;
    font-weight: 600;
    color: var(--w);
    margin-bottom: .22rem
}

.tde {
    font-size: .79rem;
    color: var(--t2);
    line-height: 1.65
}

.abi p {
    font-size: .88rem;
    color: var(--t2);
    line-height: 1.85;
    margin-bottom: .95rem
}

.certs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .75rem
}

.cert {
    font-family: var(--fm);
    font-size: .63rem;
    padding: .18rem .62rem;
    border-radius: 20px;
    border: 1px solid rgba(91, 184, 255, .16);
    background: rgba(91, 184, 255, .05);
    color: var(--c1)
}

/* SKILLS */
.skg {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(282px, 1fr));
    gap: 1.15rem
}

.skc {
    padding: 1.35rem;
    border-radius: var(--rd);
    opacity: 0;
    transform: translateY(20px);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1)
}

.skh {
    display: flex;
    align-items: center;
    gap: .82rem;
    margin-bottom: .95rem
}

.sk3 {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden
}

.sk3 canvas {
    width: 100% !important;
    height: 100% !important;
    display: block
}

.skn {
    font-size: .88rem;
    font-weight: 600;
    color: var(--w)
}

.sks {
    font-family: var(--fm);
    font-size: .62rem;
    color: var(--t2);
    margin-top: .1rem
}

.skbg {
    height: 2.5px;
    background: rgba(255, 255, 255, .05);
    border-radius: 2px;
    overflow: hidden;
    margin: .82rem 0
}

.skb {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 1.4s cubic-bezier(.16, 1, .3, 1)
}

.skts {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem
}

.skt {
    font-family: var(--fm);
    font-size: .58rem;
    color: var(--t2);
    padding: .12rem .42rem;
    background: rgba(255, 255, 255, .038);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 4px
}

/* PROJECTS */
.pjg {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.25rem
}

.pjc {
    border-radius: var(--rd);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all .35s cubic-bezier(.16, 1, .3, 1);
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, .048) 0%, rgba(255, 255, 255, .018) 100%);
    border: 1px solid rgba(255, 255, 255, .088);
    backdrop-filter: blur(28px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07)
}

.pjc:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(91, 184, 255, .2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(91, 184, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .1)
}

.pjpre {
    height: 148px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.pjem {
    position: relative;
    z-index: 2;
    font-size: 2.3rem;
    filter: drop-shadow(0 0 14px rgba(91, 184, 255, .5))
}

.pjbdg {
    position: absolute;
    top: .8rem;
    left: .8rem;
    z-index: 3;
    font-family: var(--fm);
    font-size: .58rem;
    padding: .14rem .48rem;
    border-radius: 4px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600
}

.bsec {
    background: rgba(255, 107, 107, .1);
    color: var(--cr);
    border: 1px solid rgba(255, 107, 107, .2)
}

.bdev {
    background: rgba(61, 255, 160, .08);
    color: var(--c3);
    border: 1px solid rgba(61, 255, 160, .2)
}

.bnet {
    background: rgba(91, 184, 255, .08);
    color: var(--c1);
    border: 1px solid rgba(91, 184, 255, .2)
}

.blnx {
    background: rgba(255, 204, 68, .08);
    color: var(--c5);
    border: 1px solid rgba(255, 204, 68, .2)
}

.pjbd {
    padding: 1.15rem 1.25rem
}

.pjt {
    font-size: .93rem;
    font-weight: 600;
    color: var(--w);
    margin-bottom: .36rem
}

.pjd {
    font-size: .79rem;
    color: var(--t2);
    line-height: 1.65;
    margin-bottom: .82rem
}

.pjtc {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
    margin-bottom: .82rem
}

.td2 {
    font-family: var(--fm);
    font-size: .61rem;
    display: flex;
    align-items: center;
    gap: .26rem;
    color: var(--t2)
}

.dt {
    width: 6px;
    height: 6px;
    border-radius: 50%
}

.pjls {
    display: flex;
    gap: .65rem;
    padding: .8rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

.pl {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-family: var(--fm);
    font-size: .68rem;
    color: var(--t2);
    text-decoration: none;
    transition: color .2s
}

.pl:hover {
    color: var(--c1)
}

/* ARTICLES */
.arg {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(292px, 1fr));
    gap: 1.15rem
}

.arc {
    padding: 1.35rem;
    border-radius: var(--rd);
    opacity: 0;
    transform: translateY(18px);
    transition: all .35s cubic-bezier(.16, 1, .3, 1);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, .016) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(28px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .065)
}

.arc:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(91, 184, 255, .16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4)
}

.arcat {
    font-family: var(--fm);
    font-size: .62rem;
    color: var(--c1);
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: .52rem
}

.art {
    font-size: .9rem;
    font-weight: 600;
    color: var(--w);
    line-height: 1.45;
    margin-bottom: .58rem
}

.are {
    font-size: .78rem;
    color: var(--t2);
    line-height: 1.65;
    margin-bottom: .82rem
}

.arm {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--fm);
    font-size: .63rem;
    color: var(--t2)
}

/* COMPANY */
.cos {
    padding: 4rem 2.5rem;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    z-index: 10
}

.coc {
    background: linear-gradient(135deg, rgba(255, 255, 255, .052) 0%, rgba(255, 255, 255, .018) 100%);
    border: 1px solid rgba(255, 255, 255, .095);
    border-radius: var(--rd);
    backdrop-filter: blur(32px);
    padding: 2.4rem 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: all .4s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
    position: relative;
    overflow: hidden
}

.coc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91, 184, 255, .035), rgba(61, 255, 160, .015));
    pointer-events: none
}

.coc:hover {
    border-color: rgba(91, 184, 255, .17);
    box-shadow: 0 20px 56px rgba(0, 0, 0, .35)
}

.col2 {
    font-size: 2.7rem
}

.coi h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--w);
    margin-bottom: .42rem
}

.coi p {
    font-size: .84rem;
    color: var(--t2);
    line-height: 1.72;
    max-width: 450px
}

/* CONTACT */
.ctg {
    display: grid;
    grid-template-columns:1fr 1.18fr;
    gap: 3.5rem;
    align-items: start
}

.cti p {
    font-size: .86rem;
    color: var(--t2);
    line-height: 1.75;
    margin-top: .9rem;
    margin-bottom: 1.65rem
}

.cils {
    display: flex;
    flex-direction: column;
    gap: .82rem
}

.cit {
    display: flex;
    align-items: center;
    gap: .68rem;
    font-size: .84rem
}

.cit a {
    color: var(--c1);
    text-decoration: none;
    transition: opacity .2s
}

.cit a:hover {
    opacity: .8
}

.cic {
    width: 33px;
    height: 33px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    flex-shrink: 0
}

.fm2 {
    display: flex;
    flex-direction: column;
    gap: .82rem
}

.fg {
    display: flex;
    flex-direction: column;
    gap: .3rem
}

.fg label {
    font-size: .7rem;
    color: var(--t2);
    font-family: var(--fm);
    letter-spacing: .06em
}

.fg input, .fg textarea {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--rs);
    padding: .62rem .92rem;
    color: var(--t1);
    font-family: var(--fa);
    font-size: .84rem;
    width: 100%;
    outline: none;
    transition: all .25s
}

.fg input:focus, .fg textarea:focus {
    border-color: rgba(91, 184, 255, .3);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 3px rgba(91, 184, 255, .06)
}

.fg textarea {
    resize: vertical;
    min-height: 100px
}

/* CODE BLOCK */
.cb2 {
    background: rgba(1, 3, 10, .9);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: var(--rd);
    overflow: hidden;
    margin-top: 1.35rem
}

.ch2 {
    background: rgba(255, 255, 255, .022);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    padding: .48rem .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.cd {
    display: flex;
    gap: 5px
}

.cc {
    width: 9px;
    height: 9px;
    border-radius: 50%
}

.cf {
    font-family: var(--fm);
    font-size: .68rem;
    color: var(--t2)
}

.cbody {
    padding: 1.05rem 1.25rem;
    font-family: var(--fm);
    font-size: .74rem;
    line-height: 1.8;
    color: #7a9ab2;
    overflow-x: auto;
    white-space: pre
}

.kw {
    color: #c792ea
}

.fn {
    color: #82aaff
}

.str {
    color: #c3e88d
}

.cmt {
    color: #304858;
    font-style: italic
}

.num {
    color: #f78c6c
}

.op {
    color: var(--c2)
}

/* FOOTER */
footer {
    position: relative;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 1.55rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--t2);
    font-size: .74rem;
    background: rgba(2, 4, 12, .8);
    backdrop-filter: blur(24px)
}

footer a {
    color: var(--c1);
    text-decoration: none
}

/* MODALS */
.mov {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(1, 2, 8, .9);
    backdrop-filter: blur(24px);
    padding: 2rem;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center
}

.mov.open {
    display: flex
}

.mo {
    background: linear-gradient(145deg, rgba(8, 14, 32, .98), rgba(5, 10, 22, .98));
    border: 1px solid rgba(91, 184, 255, .1);
    border-radius: 18px;
    max-width: 840px;
    width: 100%;
    margin-top: 4rem;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03)
}

.mh {
    padding: 1.25rem 1.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.mc {
    width: 27px;
    height: 27px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: var(--t2);
    cursor: pointer;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s
}

.mc:hover {
    border-color: var(--cr);
    color: var(--cr)
}

.mb {
    padding: 1.65rem
}

.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    margin-bottom: 1.35rem
}

.tb {
    padding: .45rem .95rem;
    font-size: .76rem;
    color: var(--t2);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--fa);
    transition: all .25s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px
}

.tb.a {
    color: var(--c1);
    border-bottom-color: var(--c1)
}

.tp {
    display: none
}

.tp.a {
    display: block
}

.ch3 {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .65rem 0
}

.chp {
    font-size: .74rem;
    padding: .25rem .72rem;
    border-radius: 20px;
    background: rgba(255, 107, 107, .07);
    border: 1px solid rgba(255, 107, 107, .17);
    color: var(--cr)
}

.csp {
    font-size: .74rem;
    padding: .25rem .72rem;
    border-radius: 20px;
    background: rgba(61, 255, 160, .06);
    border: 1px solid rgba(61, 255, 160, .17);
    color: var(--c3)
}

.tg {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(115px, 1fr));
    gap: .65rem;
    margin-top: .65rem
}

.ti {
    padding: .52rem .72rem;
    border-radius: 8px;
    background: rgba(91, 184, 255, .05);
    border: 1px solid rgba(91, 184, 255, .12);
    font-size: .7rem;
    color: var(--c1);
    font-family: var(--fm);
    display: flex;
    align-items: center;
    gap: .35rem
}

.gal {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: .65rem;
    margin-top: .65rem
}

.gi {
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative
}

.gl {
    position: absolute;
    bottom: .3rem;
    right: .3rem;
    font-family: var(--fm);
    font-size: .56rem;
    color: var(--t2);
    background: rgba(0, 0, 0, .65);
    padding: .06rem .35rem;
    border-radius: 3px
}

#aub {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    font-size: .9rem;
    color: var(--t2);
    transition: all .3s
}

#aub.on {
    border-color: rgba(91, 184, 255, .3);
    color: var(--c1)
}

@media (max-width: 900px) {
    .navl, .ncta {
        display: none
    }

    .ham {
        display: flex
    }

    .abg, .ctg {
        grid-template-columns:1fr
    }

    .hstats {
        gap: 1.4rem;
        flex-wrap: wrap
    }

    .si {
        padding: 5rem 1.2rem
    }

    .cos {
        padding: 3rem 1.2rem
    }

    .gal {
        grid-template-columns:repeat(2, 1fr)
    }

    .coc {
        flex-direction: column;
        text-align: center
    }
}

/* ── MOBILE NAV ── */
@media (max-width: 768px) {
    nav {
        padding: .6rem 1.2rem;
    }

    .navl {
        display: none;
    }

    .ncta {
        display: none;
    }

    .ham {
        display: flex;
    }

    .ham.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .ham.open span:nth-child(2) {
        opacity: 0;
    }

    .ham.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .navl.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(2,4,12,.97);
        padding: 1.2rem 2rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,.06);
        gap: 1.2rem;
        z-index: 499;
        backdrop-filter: blur(30px);
    }

    .navl.mobile-open a {
        font-size: .85rem;
        padding: .5rem 0;
    }
}

/* ── Skills Grid — Responsive & Safe ── */
.skg {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.15rem;
}

/* اگر فقط ۱ یا ۲ مهارت باشه، وسط چین بشن */
@media (min-width: 769px) {
    .skg:has(.skc:only-child),
    .skg:has(.skc:nth-child(2):last-child) {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        max-width: 750px;
        margin: 0 auto;
    }
}

/* ── Projects Grid ── */
.pjg {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ── Articles Grid ── */
.arg {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.15rem;
}