/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
@font-face {
    font-family: vazir;
    src: url(./fonts/woff2/IRANSansWeb_Light.woff2);
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
*{
    list-style: none !important;
    text-decoration: none !important;
    font-family: vazir;
}
body{
    background-color: white;
    font-family: vazir;
}
 #lottie-container {
      width: 400px;
      height: 350px;
      /* margin: 0 auto; */
    }
     #lottie-container2 {
      width: 400px;
      height: 400px;
      /* margin: 0 auto; */
    }
.p20-x{
    padding-left: 20px;
    padding-right: 20px;
}
.p20-y{
    padding-top: 20px;
    padding-bottom: 20px;
}
.whitecolor{
    color: white;
}
.greencolor{
    color: green;
}
.response-right{
    display: flex;
    align-items: center;
}
.humbbergeroutside{
    border: 1px solid white;
    background-color: white;
}
.humbergerinside{
     background-color: white;
     width: 1em;
     height: 1em;
}
/* NAVIGATION */
nav{
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: transparent;
    transition: background-color 0.3s ease;
   
}
nav .navbar{
    padding-left: 20px;
    display: none;
}
nav.scrolled{
    background-color: #343a40;;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
nav.scrolled ul li  a,nav.scrolled ul li h1, nav.scrolled a i {
    color: #e9ecef !important; /* سفید یا روشن */
}
nav ul{
    display: flex;
    align-items: center;
}
nav ul li h1{
    font-size: 25px;
    padding-right: 20px;
    /* font-weight: 500; */
}
nav ul li a{
    font-size: 20px;
    color: black;
    font-weight: 300;
}
nav ul li{
    padding-left: 40px;
}
nav ul li:hover{
    opacity: 0.5;
}
nav >a{
    padding-left: 20px;
    padding-top: 3px;
}
nav >a i{
    color: black;
}
.sun-switch i{
        color: black;
}
.sun-switch{
    font-size: 30px;
    padding-left: 40px;
}
/* Home */
#Home{
    scroll-margin-top: 100vh;
}
.home{
    display: flex;
    align-items: center;
    /* justify-content: center; */
    padding-right: 25%;
}
.description-home{
    padding-right: 40px;
}
.description-home h1{
    font-size: 25px;
    font-family: vazir;
    text-align: center;
    padding-bottom: 10px;
}
.description-home p {
    font-size: 18px;
    font-family: vazir;
    opacity: 0.6;
    line-height: 1.4;
}
/* About me */
#Aboutme{
     scroll-margin-top: 100px;
}
.about-me{
    /* padding-top: 20px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 25%;
    padding-left: 20%;
    font-family: vazir;
    /* flex-direction: column; */
}
/* .about-me__info{
    padding-left: 100px;
    
} */

.about-me .about-me__info h1{
    font-size: 25px;
} 
 .about-me .about-me__info p{
    padding-top: 10px;
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.6;
}
/* Skills */
#skills{
     scroll-margin-top: 70px;
}
.skills{
    padding-left: 20%;
    padding-right: 20%;
    padding-top: 60px;
}
.skill-bar{
	width: 100%;
	max-width: 400px;
	margin: 20px auto;
    margin-left: 20px;
	font-family: sans-serif;
}
.label{
	margin-bottom: 6px;
	font-weight: bold;
	color: #333;
}
.bar{
	background-color: #eee;
	border-radius: 10px;
	overflow: hidden;
	height: 20px;
	box-shadow: inset 0 0 5px #ccc;
}
.fill{
	height: 100%;
	background: linear-gradient(to right,#00c6ff,#0072ff);
	text-align: right;
	padding-right: 10px;
	color: white;
	font-size: 14px;
	line-height: 20px;
	border-radius: 10px 0 0 10px;
	transition: width 0.6s ease;
}
.skills-content{
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: 100px; */
    border: 1px solid rgba(21, 21, 22, 0.3);
    border-radius: 5px;
}
.skills-content h1{
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    font-size: 25px;
}
.skills-content ul{
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}
.skills-content ul li{
    font-size: 18px;
    padding-top: 10px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    /* color: green; */
}
.skills-content ul li input{
    margin-left: 10px;
}
/* Projects */
#Projects{
     scroll-margin-top: 70px;
}
.project{
    padding-left: 20%;
    padding-right: 20%;
    padding-top: 40px;
    padding-bottom: 60px;
}
.project-content{
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(21, 21, 22, 0.3);
    border-radius: 5px;
}
.project-content h1{
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    font-size: 25px;
}
.project-content ul li{
    margin-top: 10px;
    margin-bottom: 20px;
}
/* Contact us */
#contactus{
     scroll-margin-top: 70px;
}
.contact-us{
    padding-left: 20%;
    padding-right: 20%;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 20px;
}
.contact-us h1{
    padding-bottom: 10px;
    font-size: 20px;
}
.contact-us__all{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.contact-us__all .copyright{
    opacity: 0.5;
}
.contact-us ul{
    display: flex;
    justify-content: flex-end;
}
.contact-us ul li a {
    color: black;
}
.contact-us ul li a i{
    font-size: 40px;
}
/* Dropdown */
.dropdown{
    display: flex;
    justify-content: center;
    padding-right: 20%;
    padding-left: 20%;
    padding-top: 20px;
    padding-bottom: 20px;
}
.dropdown li{
    padding-left: 20px;
}
.dropdown  li a{
  text-decoration: none;
  color: white;
  font-family: vazir;
}
/* Responsive Part */
@media (max-width: 1400px){
    .home{
        padding-right: 13%;
    }
}
@media (max-width: 1096px) {
    .home{
        padding-right: 12%;
        padding-left: 12%;
    }
    .about-me{
        padding-right: 12%;
        padding-left: 12%;
    }
    .skills{
        padding-right: 12%;
        padding-left: 12%;
    }
    .project{
        padding-right: 12%;
        padding-left: 12%;
    }
    .contact-us{
        padding-right: 12%;
        padding-left: 12%;
    }
    .email-me{
        opacity: 0;
    }
    .contact-us__all .copyright p{
        font-size: 15px;
    }
}
@media (max-width:1000px) {
    .home{
        padding-left: 10%;
        padding-right: 10%;
    }
}
@media (max-width:940px) {
    nav ul li a{
        font-size: 18px;
    }
    nav ul li {
        padding-left: 35px;
    }
     nav ul li h1{
        font-size: 20px;
     }
         .home{
        padding-left: 0%;
        padding-right: 7%;
    }
        .about-me{
        padding-right: 7%;
        padding-left: 0%;
    }
    .skills{
        padding-right: 7%;
        padding-left: 5%;
    }
    .project{
        padding-right: 7%;
        padding-left: 5%;
    }
    .contact-us{
        padding-right: 7%;
        padding-left: 5%;
    }

}
@media (max-width:890px){
             .home{
        padding-left: 0%;
        padding-right: 5%;
    }
}
@media (max-width:850px){
             .home{
        padding-left: 0%;
        padding-right: 3%;
    }
}
@media (max-width:800px){
    nav ul li a{
        font-size: 15px;
    }
     .home{
        padding-left: 2%;
        padding-right: 5%;
    }
    .home .description-home p{
        font-size: 15px;
    }
    .home .description-home h1{
        font-size: 20px;
    }
    nav a i{
        font-size:25px;
    }
     #lottie-container {
      width: 350px;
      height: 350px;
    }
    .about-me .about-me__info p{
        font-size: 15px;
    }
     .about-me .about-me__info h1{
        font-size: 20px;
     }
     .skills .skills-content h1,.project .project-content h1,footer h1{
        font-size: 20px;
     }
          .contact-us{
        padding-right: 6%;
        padding-left: 5%;
    }

}
@media (max-width:750px){
             .home{
        padding-left: 4%;
        padding-right: 4%;
    }
        .about-me{
        padding-right: 4%;
        padding-left: 2%;
    }
    .skills{
        padding-right: 4%;
        padding-left: 4%;
    }
    .project{
        padding-right: 4%;
        padding-left: 4%;
    }
        .contact-us{
        padding-right: 2%;
        padding-left: 4%;
    }
    nav .sun-switch{
        padding-left: 30px;
    }
     nav a i{
        font-size:20px;
    }
    nav ul li:not(.logo){
        display: none;
    }
    nav{
        justify-content: space-between;
        padding-right: 20%;
        padding-left: 20%;
    }
    nav .navbar{
        display: block;
    }
 
}
@media (max-width:700px){
    .dropdown{
        justify-content: space-between;
        padding-right: 10%;
        padding-left: 10%;
    }
    .home{
        flex-direction: column;
    }
    .about-me{
        flex-direction: column-reverse;
    }
    .contact-us h1{
        text-align: center;
        padding-bottom: 20px;
    }
    .contact-us .contact-us__all{
        flex-direction: column-reverse;
    }
}
@media (max-width:550px){
     #lottie-container{
        width: 300px;
        height: 300px;
     }
    #lottie-container2{
        width: 300px;
        height: 300px;
    }
    .about-me .about-me__info p {
        font-size: 12px;
    }
    .dropdown{
        padding-left: 5%;
        padding-right: 5%;
    }
}
@media (max-width:450px){
    nav{
        padding-left: 10%;
    }
        .dropdown{
        flex-direction: column;
        direction: rtl;
    }
        .dropdown li{
            padding-top: 10px;
        }
        .skills .skills-content h1{
            font-size: 18px;
        }
        .project .project-content h1{
            font-size: 18px;
        }
        .skills .skills-content ul li span{
            font-size: 15px;
        }
        .home .description-home{
            padding-right: 0;
        }
        .about-me .about-me__info h1{
            text-align: center;
        }
         .about-me .about-me__info p{
            font-size: 18px;
         }
}
@media (max-width:400px){
    nav{
        padding-left: 5%;
    }
         #lottie-container{
        width: 250px;
        height: 250px;
     }
    #lottie-container2{
        width: 250px;
        height: 250px;
    }
         .skills .skills-content ul li span{
            font-size: 13px;
        }
}
@media (max-width:350px){
    .home .description-home p{
        font-size: 12px;
    }
}
@media (max-width:321px){
    .contact-us .contact-us__all .copyright p{
        font-size: 13px;
    }
        nav .response-right a {
        padding-left: 20px;
    }


}
@media (max-width:300px){
        .home .description-home{
            padding-right: 15px;
        }
        .home .description-home h1{
            text-align: center;
        }
         #lottie-container{
        width: 200px;
        height: 200px;
     }
    #lottie-container2{
        width: 200px;
        height: 200px;
    }
    nav{
        padding-left: 0;
    }
    nav .navbar{
        padding-left: 2%;
    }
    nav ul li h1{
        padding-right: 10px;
        font-size: 18px;
    }
    nav .response-right a {
        padding-left: 10px;
    }
    /* .home .description-home h1{
        text-align: start;
    } */
    .home .description-home p{
        font-size: 13px;
    }
}