body{
    font-family: 'vazir';
    background-color: #f5f5f5 ;
    margin: 0;
    padding: 0;
}

header{
    background-color: rgba(255, 255, 255, 0.178);
    /* box-shadow: 1px 1px 5px rgb(255, 255, 255); */
    color: #333333;
    border-radius: 15px;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem;
    /* opacity: 0.8; */
    flex-wrap: wrap;
    top: 1rem;
    position: sticky;
    z-index: 1000;
    backdrop-filter: blur(20px);
}
header ul{
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
header ul li{
    display: inline-block;
    padding: 0 1rem;
}
header ul li a{
    color: #1f2b50 ;
    text-decoration: none;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* این باعث میشه ویدیو بدون بهم ریختگی کامل صفحه رو بپوشونه */
    z-index: -1; /* میفرستیمش زیر بقیه محتوا */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* مشکی با شفافیت ۴۰ درصد */
    z-index: -1;
  }

.madar{
    display: flex;
    gap: 10rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    
}
.caption{
    font-size: xx-large;
    white-space: nowrap;
    z-index: 10;
}
.resume-file a{
    text-decoration: none;
    color: #1f2b50;
}
.resume-file{
    background-color: darkgray;
    width: 200px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    margin-right: 5rem;
    margin-top: -80px;
    position: absolute;
    transition: 0.4s;
}
.resume-file:hover{
    scale: 0.9;    
}
.profile{
    width: 350px;
    height: 350px;
    border-radius: 38% 62% 49% 51% / 60% 58% 42% 40% ;
    background-color: #333333;
    animation: profile 7s infinite;
    justify-content: center;
    align-items: center;
}

@keyframes profile{
    0%{transform: translate(0,10px); }
    25%{transform: translate(0,-5px);}
    50%{transform: translate(0,10px); scale: 104%;}
    75%{transform: translate(0,-5px);}
    100%{transform: translate(0,10px);}
}


h2{
    text-decoration: underline rgb(212, 212, 212) 14px;
    margin: 1rem;
}

.about-me{
    justify-content: center;
    display: flex;
}

.background{
    width: 60%;
    height: 15rem;
    background-color: #707579;
    box-shadow: 2px 5px 10px black;
    border-radius: 15px;
}
#about-me-text{
    padding: 2rem;
    color: aliceblue;
}

.boxs{
    display: flex;
    margin: 2rem;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.box1,.box2,.box3{
    width: 20rem;
    height: 13rem;
    border-radius: 15px;
    background-color: #333333;
    transition: 0.2s;
    color: #f5f5f5;
    justify-content: center;
    display: flex;
    font-family: 'Gill Sans MT';
    text-shadow: 2px 2px  black;

}

.box1:hover,.box2:hover,.box3:hover{
    scale: 1.1;
    background-position: 50% 0;
    background-repeat: no-repeat;
    background-size: auto 100%;
    border: 2px solid rgb(212, 212, 212);
    box-shadow: 2px 1px 20px black;
}
.box1:hover{
    background-image: url(site1.png);
}
.box2:hover{
    background-image: url(site2.png);
}
.box3:hover{
    background-image: url(site3.png);
}

@media (max-width:730px){
    .madar{
        gap: auto;
    }
    .caption{
        font-size: large;
    }
    .profile{
        width: 325px;
    }
    header ul li{
        display: none;
    }
    header{
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    h2{
        text-align: center;
    }
    .background{
        width: 70%;
        height: 18rem;
    }
    #about-me-text{
        padding: 1rem;
    }
    .boxs{
        white-space: nowrap;
        display: grid;
    }
    .resume-file{
        position: absolute;
        top: 300px;
        z-index: 100;
    }
    .contaner{
        align-items: center;
        display: flex;
    }

}

/* .skills{
    justify-self: center;
}
.skills-box{
    width: 60rem;
    height: 50rem;
    border-radius: 500px;
    background-color: #707579;
    
}
.skills-navar{
    background-color: #707579;
    width: 200px;
    height: 5px;
} */
