
body{
	font-family: 'EB Garamond', serif ;
	direction: rtl;
}
.font-name {
	font-family: 'Tangerine', serif;  
	font-size: 45px;
	font-weight: bolder;
}
p{
    	font-family: 'Tangerine', serif;  
}
.fa-text-height:before {
	content: " " !important;
}

a{
	text-decoration: none;
	cursor: pointer;
}
.navbar-toggler{
	width: 47px;
	height: 40px;
}

.navbar-toggler .line{
	width: 100%;
	float: left;
	height: 2px;
	background-color: #7676ee;
	margin-bottom:5px;
}

.line-center{
	padding-top: 2px;
}

.text-nav{
	color:  #7676ee;
	font-size: 20px;
	font-weight: bold;
}
.w-slider{
	width: 100%;
	height: 100vh;
}
.text-div{
	top:400px;
	left:40px;
}
#slider a:hover{
	color: red;
	cursor: pointer;
}
.fix-img{
	background-image:  url(../image/Pic.webp);
	background-position: center center;
	background-size: cover;
	background-attachment: fixed;
	height: 700px;
	left: 0;
	top: 0;

	max-width: none!important;
	transition: opacity .2s;
}
@media (max-width: 768px) {
    .fix-img {
        background-image: url(../image/Pic.webp);
    }
}

#activity p{
	line-height: 2em;font-size: 18px;
}

.section .mfn-parallax {
	position: absolute;
	right: 0;
	max-width: 100%;
	transition: opacity .2s;
}

#about{
	margin-bottom: 30px;
}
#about h2{
	padding-top: 40px;
	font-size: 30px;
	/*font-family: futura-ptfutura-pt;*/
	font-weight: bold;
	text-align: center;
}
#about p{
	padding-top: 20px;
	font-size: 16px;
	left: 20px;
	right: 20px;
	text-align: left;
	margin: auto;
	margin-bottom: 20px;
}

.button{
	background-color: #4CAF50; /* Green */
	border: none;
	color: white;
	padding: 12px 25px;
	text-decoration: none;
	/*display: inline-block;*/
	font-size: 16px;
	/*margin: 4px 2px;*/
	transition-duration: 0.4s;
	cursor: pointer;
	margin:0 auto;
	display:block;
	margin-top: 100px;
}

.button1 {
	background-color: #111111;
	border: 2px solid #555555;
}

.button1:hover {
	background-color: #555555;
	color: white;
}
.bg-skills{
	background-color: #101010;
}

#skills h2{
	color: white;
	font-weight: bold;
	font-size: 60px;
	text-align: center;
	padding-top: 50px;
}
.margin-skill-icon{
	margin-bottom: 100px;
	margin-top: 100px;
}
.img-point{
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(68,68,51,0.5)), url(../image/Pic.webp);
	background-attachment: fixed;
	background-position: center center;
	background-size: auto;
	height: 700px;
}

.img-gradient{
	position:relative;
	display:inline-block;
}
.img-gradient:after {
	content:'';
	position:absolute;
	left:0; top:0;
	width:100%; height:100%;
	display:inline-block;
	background: -moz-linear-gradient(top, rgba(0,47,75,0.5) 0%, rgba(97, 92, 91, 0.5) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(97, 94, 94, 0.5)), color-stop(100%,rgba(0,47,75,0.5))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(0,47,75,0.5) 0%, rgba(88, 87, 86, 0.5) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, rgba(0,47,75,0.5) 0%, rgba(71, 70, 49, 0.5) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, rgba(0,47,75,0.5) 0%, rgba(102, 94, 95, 0.5) 100%); /* IE10+ */
	background: linear-gradient(to bottom, rgba(0,47,75,0.5) 0%, rgba(57, 54, 54, 0.5) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#002f4b', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
}
.img-gradient img{
	display:block;
}
.text {
	color: white;
	font-size: 20px;
	position: absolute;
	top: 50%;
	left: 50%;
	height: 100%;	transform: translate(-50%, -50%);
	text-align: center;
}
.box {
	position: absolute;
	top: 50%;
	left: 50%;

	transform: translate(-50%, -50%);
	width: 150px;
	height: 80px;
	background: #4a5b63;
	overflow: hidden;
}

.figure {
	width: 100%;
	overflow: hidden;
}

.figure img {
	width: 100%;
	transition: .5s
}

.box:hover .figure img {
	transform: scale(0);
	filter: blur();
}

.caption {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #4545aa;
	transform: scale(2);
	opacity: 0;
	transition: .5s;
}

.box:hover .caption {
	transform: scale(1);
	opacity: 1;
}

.about {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	padding: 40px;
	box-sizing: border-box;
	text-align: center;
}

.about h2 {
	color: #fff;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
	font-size: 30px;
}

.about p {
	color: #fff;
	margin: 20px 0 0;
	padding: 0;
	font-size: 16px
}
#about a{

}
small {
	color: #fff
}
.margin-project{
	margin-top: 150px;
	margin-bottom: 200px;
}
.margin-project1{
	margin-top: 150px;
	margin-bottom: 150px;
	align-content: center;
}
.bg-subscribe{
	background-color: #f5f4f4;
}
.Subscribe p {
	margin-bottom: 50px;
}
.border-top{

	border-top-color: #c82333;
}
.Subscribe span {
	border-top: 3px solid black;

}
.background {
	/*background-image: url("../image/jeshoots-com-pUAM5hPaCRI-unsplash.jpg");*/
	display: block;
	position: relative;
}

.background::after {
	content: "";
	background: rgba(100, 125, 5, 0);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.background > * {
	z-index: 10;
}


.background-img-skill::after{
	background: rgba(100, 2, 5, 10);
}
.opacity-skill{
	opacity: 0.7;
}
.button2 {
	background-color: white;
	color: black;
	border: 2px solid #555555;

}

.button2:hover {
	background-color: #0c0c0c;
	color: white;

}
.opacity{

	opacity: 0.3;
}
.bg-allright {
	background-color: #cdcbcb;
}


#skills-icon img {
	filter: gray; /* IE6-9 */
	-webkit-filter: grayscale(2); /* Google Chrome, Safari 6+ & Opera 15+ */
	filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */
}

/* Disable grayscale on hover */
img:hover {
	-webkit-filter: grayscale(0);
	filter: none;
}
.parallax-item .scroll-arrow {
	display: none;
	cursor: pointer;
	position: absolute;
	bottom: 24px;
	left: 50%;
	margin-left: -75px;
	width: 150px;
	z-index: 10;
	height: 30px;
	text-align: center;
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.parallax-item .scroll-arrow:before {
	font-size: 32px;
	width: 32px;
	height: 32px;
	line-height: 32px;
}
.parallax-item .scroll-arrow:before {
	font-family: 'squarespace-ui-font';
	font-style: normal;
	speak: none;
	font-weight: normal;
	-webkit-font-smoothing: antialiased;
	content: "\e02d";
	text-align: center;
	display: inline-block;
	vertical-align: middle;
}
.fa-twitter:hover{
	color:dodgerblue !important;
}
.fa-facebook-f:hover{
	color:dodgerblue !important;
}
.fa-instagram:hover{
	color:dodgerblue !important;
}
.fa-linkedin-in:hover{
	color:dodgerblue !important;
}
.a-link:hover{
	color:dodgerblue !important;

}

#myCarousel h4{
	font-size:70px;
	margin-bottom:15px;
	color: #181515;
	line-height:100%;
	letter-spacing:0.5px;
	font-weight:600;
}
#myCarousel p{
	font-size:35px;
	margin-bottom:15px;
	color:#181515;
}
#myCarousel .carousel-item a{background:#d5b39f; font-size:14px; color:#FFF; padding:13px 32px; display:inline-block; }
#myCarousel .carousel-item a:hover{background:#394fa2; text-decoration:none;  }

#myCarousel .carousel-item h4{-webkit-animation-name:fadeInLeft; animation-name:fadeInLeft;}
#myCarousel .carousel-item p{-webkit-animation-name:slideInRight; animation-name:slideInRight;}
#myCarousel .carousel-item a{-webkit-animation-name:fadeInUp; animation-name:fadeInUp;}
#myCarousel .carousel-item .mask img{-webkit-animation-name:slideInRight; animation-name:slideInRight; display:block; height:auto; max-width:100%;}
#myCarousel h4, #myCarousel p, #myCarousel a, #myCarousel .carousel-item .mask img{-webkit-animation-duration: 4s;
	animation-duration: 4s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
}
#myCarousel .container {max-width: 1430px;  }
#myCarousel .carousel-item{height:100%; min-height:100vh; }
#myCarousel{position:relative; z-index:1; background:url("../image/Slider-Heshmat1.webp") center center no-repeat; background-size:cover; }

.carousel-control-next, .carousel-control-prev{height:40px; width:40px; padding:12px; top:50%; bottom:auto; transform:translateY(-50%); background-color: #a2a1a1; }

@supports (transform-style:preserve-3d) {
	.carousel-fade .carousel-item-left.active, .carousel-fade .carousel-item-next, .carousel-fade .carousel-item-prev, .carousel-fade .carousel-item-prev.active, .carousel-fade .carousel-item.active {
		-webkit-transform:translate3d(0, 0, 0);
		transform:translate3d(0, 0, 0)
	}
}
.carousel-fade .carousel-item-left.active, .carousel-fade .carousel-item-next, .carousel-fade .carousel-item-prev, .carousel-fade .carousel-item-prev.active, .carousel-fade .carousel-item.active {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

@-webkit-keyframes fadeInLeft {
	from {
		opacity: 0;
		-webkit-transform: translate3d(-100%, 0, 0);
		transform: translate3d(-100%, 0, 0);
	}

	to {
		opacity: 1;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}

 

.fadeInLeft {
	-webkit-animation-name: fadeInLeft;
	animation-name: fadeInLeft;
}

.margin-top-h4{
    margin-top:10px;
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fadeOut {
  animation-name: fadeOut;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		-webkit-transform: translate3d(0, 100%, 0);
		transform: translate3d(0, 100%, 0);
	}

	to {
		opacity: 1;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}

.fadeInUp {
	-webkit-animation-name: fadeInUp;
	animation-name: fadeInUp;
}



@keyframes slideInRight {
	from {
		-webkit-transform: translate3d(100%, 0, 0);
		transform: translate3d(100%, 0, 0);
		visibility: visible;
	}

	to {
		-webkit-transform: translate3d(100px, 0, 0);
		transform: translate3d(0px, 100%, 100px);
	}
}

.slideInRight {
	-webkit-animation-name: slideInRight;
	animation-name: slideInRight;
}
.nav-to-content{
	bottom: 40px;
	display: inline;
	position: absolute;
	right: calc(50% - 22px);
	z-index: 3;
}
@media (max-width: 576px) {
	.img-fluid-mobile {
		width: 75%;  
		margin-bottom: 20px;    
	}
}
/* حالت موبایل */
@media (max-width: 768px) {
	.carousel-item h4 {
		font-size: 1.2rem;  
		transform: translate(0, 0) !important; 
	}

	.carousel-item p {
		font-size: 1rem;  
		transform: translate(0, 0) !important; 
	}
}

 
@media (min-width: 769px) {
	.carousel-item h4 {
		font-size: 2rem;  
		transform: translate(200px, 200px); 
	}

	.carousel-item p {
		font-size: 1.2rem;  
		transform: translate(0, 0); 
	}
}
/* تنظیمات برای حالت موبایل */
@media (max-width: 768px) {
	.carousel-item h4, .carousel-item p {
		font-size: 1.5rem; 
	}
	.carousel-item h4 {
		margin: 0;  
		padding: 0;  
		transform: none;  
		margin-top : 100px;
	}
	.carousel-item p {
		margin: 0;  
		padding: 0; 
		transform: none; 
		margin: 20px;
	}
}


.hovereffect {
	width: 100%;
	height: 100%;
	float: left;
	overflow: hidden;
	position: relative;
	text-align: center;
	cursor: default;
}

.hovereffect .overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	overflow: hidden;
	top: 0;
	left: 0;
}

.hovereffect img {
	display: block;
	position: relative;
	-webkit-transition: all 0.4s ease-in;
	transition: all 0.4s ease-in;
}

.hovereffect:hover img {
	filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feColorMatrix type="matrix" color-interpolation-filters="sRGB" values="0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0" /><feGaussianBlur stdDeviation="3" /></filter></svg>#filter');
	filter: grayscale(1) blur(3px);
	-webkit-filter: grayscale(1) blur(3px);
	-webkit-transform: scale(1.2);
	-ms-transform: scale(1.2);
	transform: scale(1.2);
}

.hovereffect h2 {
	text-transform: uppercase;
	text-align: center;
	position: relative;
	font-size: 17px;
	padding: 10px;
	background: rgba(0, 0, 0, 0.6);
}

.hovereffect a.info {
	display: inline-block;
	text-decoration: none;
	padding: 7px 14px;
	border: 1px solid #fff;
	margin: 50px 0 0 0;
	background-color: transparent;
}

.hovereffect a.info:hover {
	box-shadow: 0 0 5px #fff;
}

.hovereffect a.info, .hovereffect h2 {
	-webkit-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	-webkit-transition: all 0.4s ease-in;
	transition: all 0.4s ease-in;
	opacity: 0;
	filter: alpha(opacity=0);
	color: #fff;
	text-transform: uppercase;
}

.hovereffect:hover a.info, .hovereffect:hover h2 {
	opacity: 1;
	filter: alpha(opacity=100);
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
.hovereffect img {
	display: block;
	position: relative;
	-webkit-transition: all 0.4s ease-in;
	transition: all 0.4s ease-in;
	width: 100%;
	height: 100%;
}

.hovereffect:hover .overlay {
	height: 50%;   
}

.hovereffect {
	width: 100%;
	height: 100%;
	float: left;
	overflow: hidden;
	position: relative;
	text-align: center;
	cursor: default;
}

.hovereffect .overlay {
	width: 100%;
	height: 0;
	position: absolute;
	bottom: 0; 
	left: 0;
	background: rgba(0, 0, 0, 0.5);   
	transition: height 0.4s ease-in;   

.hovereffect img {
	display: block;
	position: relative;
	-webkit-transition: all 0.4s ease-in;
	transition: all 0.4s ease-in;
	width: 100%;
	height: 100%;
}

.hovereffect:hover .overlay {
	height: 50%;  
}

.hovereffect h2 {
	text-transform: uppercase;
	text-align: center;
	position: relative;
	font-size: 14px;
	padding: 5px;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	opacity: 0;
	transition: opacity 0.4s ease-in;
	margin-top: 30%;
}

.hovereffect:hover h2 {
	opacity: 1;  
}
.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 9999;
    max-width: 300px;
}
#errorBox { background-color: #f44336; }
.hidden { display: none; }
.message-box button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.hidden {
    display: none;
}

.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    z-index: 1000;
    opacity: 0.95;
}

#successBox {
    background-color: #28a745; /* سبز */
}

#errorBox {
    background-color: #dc3545; /* قرمز */
}
.text-p{
font-size:20px;
}