*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Vazirmatn',sans-serif;
scroll-behavior:smooth;
}

body{
background:#0f0f0f;
color:#fff;
line-height:1.8;
}

a{
text-decoration:none;
}

.container{
width:90%;
max-width:1200px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
padding:70px 0;
}

header{
background:linear-gradient(135deg,#111,#1c1c1c);
min-height:100vh;
display:flex;
align-items:center;
}

.left{
flex:1;
text-align:center;
}

.left img{
width:330px;
height:330px;
object-fit:cover;
border-radius:50%;
border:6px solid #d4af37;
box-shadow:0 0 40px rgba(212,175,55,.4);
transition:.4s;
}

.left img:hover{
transform:scale(1.05);
}

.right{
flex:1;
padding:30px;
}

.right h1{
font-size:55px;
margin-bottom:10px;
color:#d4af37;
}

.right h3{
font-size:25px;
margin-bottom:20px;
font-weight:400;
}

.right p{
font-size:18px;
color:#ccc;
margin-bottom:30px;
}

.btn{
display:inline-block;
padding:14px 40px;
background:#d4af37;
color:#111;
border-radius:40px;
font-weight:bold;
transition:.3s;
}

.btn:hover{
background:#fff;
transform:translateY(-4px);
}

section{
padding:90px 10%;
}

section h2{
font-size:40px;
margin-bottom:40px;
text-align:center;
color:#d4af37;
position:relative;
}

section h2::after{
content:"";
display:block;
width:80px;
height:4px;
background:#d4af37;
margin:12px auto;
border-radius:20px;
}

.about p{
max-width:900px;
margin:auto;
text-align:center;
font-size:19px;
color:#ddd;
}

.skill{
margin-bottom:25px;
}

.skill span{
display:block;
margin-bottom:8px;
font-weight:bold;
}

.bar{
height:12px;
background:#333;
border-radius:30px;
overflow:hidden;
}

.bar div{
height:100%;
background:#d4af37;
border-radius:30px;
}

.card{
background:#1b1b1b;
padding:30px;
border-radius:15px;
margin:25px auto;
max-width:850px;
box-shadow:0 8px 25px rgba(0,0,0,.4);
transition:.4s;
}

.card:hover{
transform:translateY(-10px);
}

.card h3{
margin-bottom:15px;
color:#d4af37;
}

.card p{
color:#ddd;
}

#contact{
text-align:center;
}

#contact p{
margin:18px 0;
font-size:18px;
}

#contact i{
color:#d4af37;
margin-left:10px;
font-size:22px;
}

footer{
background:#111;
padding:25px;
text-align:center;
color:#888;
margin-top:40px;
}

::-webkit-scrollbar{
width:8px;
}

::-webkit-scrollbar-thumb{
background:#d4af37;
border-radius:20px;
}

::-webkit-scrollbar-track{
background:#111;
}

@media(max-width:900px){

.container{
flex-direction:column-reverse;
text-align:center;
}

.right{
padding:0;
margin-bottom:40px;
}

.right h1{
font-size:40px;
}

.left img{
width:240px;
height:240px;
}

section{
padding:70px 8%;
}

.hidden{

opacity:0;

transform:translateY(60px);

transition:all .8s ease;

}

.show{

opacity:1;

transform:translateY(0);

}

}