@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;900&display=swap');

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

body{
font-family:Vazirmatn,Arial,sans-serif;
background:#070b14;
color:#f4f7ff;
min-height:100vh;
overflow-x:hidden
}

body:before{
content:"";
position:fixed;
inset:0;
background:
radial-gradient(circle at 15% 20%,#123d6840,transparent 30%),
radial-gradient(circle at 85% 80%,#5b21b640,transparent 30%);
pointer-events:none;
z-index:-1
}

nav{
min-height:76px;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 7%;
border-bottom:1px solid #ffffff12;
background:#070b14ee;
backdrop-filter:blur(15px);
position:sticky;
top:0;
z-index:10;
gap:15px
}

.logo{
font-size:24px;
font-weight:900;
letter-spacing:2px;
color:white;
text-decoration:none;
direction:ltr
}

.logo span,h1 span{color:#55d6ff}

.nav-links{display:flex;gap:25px}

.nav-links a{
color:#aeb9cc;
text-decoration:none;
transition:.3s
}

.nav-links a:hover,.nav-links .active{color:#55d6ff}

.menu{
display:none;
background:none;
border:0;
color:white;
font-size:25px
}

.language{
background:#ffffff08;
border:1px solid #55d6ff55;
color:#55d6ff;
padding:8px 13px;
border-radius:9px;
cursor:pointer
}

.hero{
min-height:calc(100vh - 76px);
display:grid;
grid-template-columns:1.2fr .8fr;
align-items:center;
gap:50px;
padding:7%
}

.eyebrow{
color:#55d6ff;
font-size:13px;
letter-spacing:3px;
margin-bottom:15px;
font-weight:700
}

.hero h1,.page h1{
font-size:clamp(38px,6vw,72px);
line-height:1.3;
margin-bottom:22px
}

.lead{
font-size:20px;
color:#aeb9cc;
max-width:650px;
line-height:2
}

.buttons{
display:flex;
gap:14px;
margin-top:30px;
flex-wrap:wrap
}

.btn{
display:inline-block;
padding:13px 25px;
border-radius:12px;
text-decoration:none;
border:1px solid #55d6ff55;
cursor:pointer;
font-family:inherit
}

.primary{
background:#55d6ff;
color:#06101a;
font-weight:800
}

.ghost{
color:white;
background:#ffffff08
}

.hero-card{
height:380px;
display:grid;
place-items:center;
position:relative
}

.orb{
width:280px;
height:280px;
border-radius:50%;
background:radial-gradient(circle at 35% 30%,#55d6ff,#2563eb 35%,#7c3aed 70%,transparent 71%);
filter:blur(2px);
box-shadow:0 0 100px #2563eb88;
animation:float 4s ease-in-out infinite
}

.code-card{
position:absolute;
background:#0c1322dd;
border:1px solid #ffffff18;
border-radius:18px;
padding:28px;
display:flex;
flex-direction:column;
gap:10px;
box-shadow:0 20px 60px #0008;
direction:ltr
}

.code-card span{color:#71809a}
.code-card strong{font-size:25px}

.stats{
display:flex;
justify-content:center;
gap:80px;
padding:30px;
border-top:1px solid #ffffff12
}

.stats div{text-align:center}
.stats b{display:block;font-size:32px;color:#55d6ff}
.stats small{color:#8793a8}

.page{
padding:70px 7%;
max-width:1250px;
margin:auto;
min-height:calc(100vh - 150px)
}

.glass{
background:#ffffff07;
border:1px solid #ffffff12;
border-radius:22px;
padding:30px;
box-shadow:0 20px 60px #0003;
backdrop-filter:blur(10px)
}

.about{
max-width:850px;
line-height:2;
color:#c3cada
}

.about h2{color:white;margin-bottom:15px}
.about p{margin-bottom:15px}

.skill-grid,.project-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px
}

.skill h3{margin-bottom:18px}
.skill b{display:block;margin-top:10px;color:#55d6ff}

.bar{
height:9px;
background:#182131;
border-radius:20px;
overflow:hidden
}

.bar i{
display:block;
height:100%;
background:linear-gradient(90deg,#55d6ff,#7c3aed);
border-radius:20px
}

.project-grid{grid-template-columns:repeat(3,1fr)}

.project{transition:.3s}

.project:hover{
transform:translateY(-8px);
border-color:#55d6ff55
}

.icon{
font-size:38px;
color:#55d6ff;
margin-bottom:15px
}

.project p{
color:#aeb9cc;
line-height:1.9;
margin:12px 0
}

.tags{
font-size:12px;
color:#55d6ff
}

.gallery{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:18px
}

.pic{
height:220px;
border-radius:18px;
display:grid;
place-items:center;
font-weight:900;
letter-spacing:2px;
background:linear-gradient(135deg,#12385a,#27134e);
border:1px solid #ffffff12;
transition:.3s;
overflow:hidden
}

.pic img{
width:100%;
height:100%;
object-fit:cover
}

.pic:nth-child(even){
background:linear-gradient(135deg,#26354b,#4b194f)
}

.pic:hover{transform:scale(1.03)}

.contact{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
line-height:2
}

.contact h2{font-size:30px;margin-bottom:15px}
.contact p{color:#aeb9cc;margin-bottom:20px}

.contact-item{
color:#55d6ff;
margin:8px 0;
overflow-wrap:anywhere
}

.contact a{
color:#55d6ff;
text-decoration:none;
direction:ltr;
unicode-bidi:plaintext
}

form{
display:flex;
flex-direction:column;
gap:14px
}

input,textarea{
background:#050912;
border:1px solid #ffffff15;
color:white;
border-radius:12px;
padding:15px;
font-family:inherit
}

textarea{
height:150px;
resize:vertical
}

form .btn{border:0}

.site-footer{
text-align:center;
padding:25px;
border-top:1px solid #ffffff12;
color:#8793a8;
font-size:13px
}

@keyframes float{
50%{transform:translateY(-15px) scale(1.03)}
}

@media(max-width:800px){

.nav-links{
display:none;
position:absolute;
top:76px;
left:0;
right:0;
background:#080d18;
padding:20px;
flex-direction:column;
text-align:center
}

.nav-links.open{display:flex}
.menu{display:block}

.hero{
grid-template-columns:1fr;
text-align:center
}

.lead{margin:auto}
.buttons{justify-content:center}
.hero-card{height:300px}

.skill-grid,.project-grid,.gallery,.contact{
grid-template-columns:1fr
}

.stats{gap:35px}
.page{padding:50px 5%}
.page h1{font-size:42px}

}

body.en{direction:ltr}
body.en .page{text-align:left}
body.en .hero{text-align:left}

@media(max-width:420px){
.stats{gap:20px}
.stats b{font-size:27px}
.orb{width:230px;height:230px}
}