@font-face {
    font-family: "YekanBakh";
    src: url(../fonts/Yekan_Bakh_Fanum_Medium.TTF) format("TrueType");
}

body,
html {
    margin: 0;
    padding: 0;
    background-color: #1d1e24;
    direction: rtl;
}

body {
    padding-top: 128px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    display: inline-block;
    font-weight: bold;
    position: relative;
}

h2::after {
    content: "";
    width: 50%;
    height: 5px;
    border-radius: 200px;
    background: #0D86FF;
    position: absolute;
    bottom: -5px;
    right: 0;
}

p {
    text-align: justify;
    line-height: 1.7rem;
    margin: 0;
}

a {
    text-decoration: none;
    transition: all ease .2s;
}

a:link:hover {
    text-shadow: 0 0 5px white;
}

* {
    /*z-index: 1;*/
    color: #eee !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

*:not(i) {
    font-family: "YekanBakh", serif;
}

*::selection {
    background: black;
    color: white;
}
*::placeholder{
    color: #8888 !important;
    user-select: none;
}
input:-webkit-autofill , input:-webkit-autofill:focus{
    -webkit-box-shadow: 0 0 0 1000px #1b1d22 inset !important;
    box-shadow: 0 0 0 1000px #1b1d22 inset !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    caret-color: white !important;
}

.background {
    background: url(../images/back.jpg) no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 400px;
    filter: blur(4px);
    position: absolute;
    top: 0;
}


/*------------ components styles ------------*/
.fancybox__container {
    z-index: 1200;
}

.bg-dark {
    background: #1b1d22 !important;
}

.btn {
    border: none;
    transition: all ease-in-out .3s;
}

.btn-primary {
    background-color: #0245f9;
}

.btn-outline-primary {
    background: transparent;
    color: #0245f9 !important;
    border: 1px solid #0245f9 !important;
}

.btn-outline-primary:hover {
    background: #0245f9;
    color: white !important;
}

.btn-info {
    background: #0D86FF;
    box-shadow: 0 6px 20px rgba(13, 134, 255, 0.4);
}

.btn-info:hover {
    background: #0245f9 !important;
    box-shadow: none;
}

.btn-outline-info {
    border: 1px solid #0D86FF !important;
    color: #0D86FF !important;
}

.btn-outline-info:hover {
    background: #0D86FF;
    color: white !important;
}

.btn-close {
    background-color: #0245f9;
    background-image: none;
    opacity: 1;
    border-radius: 3rem 100px 100px 100px;
}

.offcanvas{
    width: 70% !important;
}

.flex-1 {
    flex: 1;
}

.text-muted {
    color: #888 !important;
}

.swiper-pagination{
    background: rgba(0, 0, 0, .3);
    transform: translateY(10px);
}
.swiper-pagination-bullet{
    background: white;
    opacity: .5;
}
.swiper-pagination-bullet-active{
    opacity: 1;
}

.form-control{
    transition: all ease-in-out .2s;
    outline: 1px solid rgba(10,83,190 , 0);
}
.form-control:focus , .form-control:focus-visible{
    outline: 1px solid #0a53be;
    box-shadow: none !important;
}

/*------------ preloader styles ------------*/
.preloader--opacity {
    opacity: 0;
}

.preloader--disable {
    display: none !important;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, #0a0f1e, #03060c);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.8s ease;
    backdrop-filter: blur(2px);
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader__container {
    text-align: center;
    position: relative;
}


.preloader__logo {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #a855f7, #ec489a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 2.2s ease infinite, floatGlow 1.6s ease-in-out infinite alternate;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatGlow {
    0% {
        transform: translateY(0px);
        text-shadow: 0 0 5px rgba(56, 189, 248, 0.2);
    }
    100% {
        transform: translateY(-8px);
        text-shadow: 0 0 25px rgba(168, 85, 247, 1);
    }
}


.preloader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
}

.preloader-spinner__ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: #a855f7;
    animation: spinRing 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.preloader-spinner__ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #f43f5e;
    border-right-color: #facc15;
    animation: spinRingReverse 1.8s ease-in-out infinite;
    border-width: 2px;
}

.preloader-spinner__ring:nth-child(3) {
    width: 55%;
    height: 55%;
    top: 22.5%;
    left: 22.5%;
    border-top-color: #10b981;
    border-left-color: #8b5cf6;
    animation: spinRing 2.2s linear infinite;
    border-width: 3px;
    filter: blur(0.5px);
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinRingReverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/*------------ End preloader styles ------------*/


/*------------ sidebar styles ------------*/
.sidebar {
    width: 280px;
}

.sidebar__float {
    width: 280px;
}

.profile {
    margin-top: -100px;
}

.profile__image {
    width: 180px;
    border-radius: 35%;
}

.bg-dark-section {
    background-color: rgba(35, 38, 43, 0.85);
}

.social-media__ul {
    width: fit-content;
}

.social-media__link {
    display: flex;
    align-items: center;
}

/*------------ nav styles ------------*/
.nav {
    position: absolute;
    top: 0;
    left: 0;
    background: #0245f9;
    width: 60px;
    height: 60px;
    border-radius: 2rem 100px 100px 100px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    transition: all ease .5s;
    z-index: 100;
}

.nav--active {
    width: 50%;
}

.nav:not(.nav--active) .nav__ul {
    transform: translateX(-500px);
}

.nav__icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}

.nav__content {
    display: flex;
    flex: 1;
}

.nav__ul {
    transition: all ease-in-out .3s;
}

.nav__item {
    display: flex;
    align-items: center;
}

/*------------ timeline styles ------------*/

.timeline__item:last-child {
    border: 0;
}

.timeline__item {
    border-right: 1px #fff solid;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline__item:last-child p {
    margin-bottom: 0 !important;
}

.timeline__title {
    transform: translateY(-8px);
    /* margin-bottom: 0; */
}

.timeline__item::after {
    content: "";
    width: 1rem;
    height: 1rem;
    background: #0245f9;
    border-radius: 100%;
    position: absolute;
    top: 0;
    right: -8px;
    border: 1px #fff solid;
}

/*------------ progress styles ------------*/


.progress {
    background: transparent;
    height: fit-content !important;
}

.progress__item {
    width: 100%;
    margin-bottom: 1rem;
}

.progress__item:last-child {
    margin-bottom: 0;
}

.progress__title {
    margin-bottom: 0;
}

.progress__card {
    /*padding: 1.5rem;*/
}

.progress-bar {
    width: 100%;
    background: #302c40;
    border-radius: 200px;
    margin-bottom: 1.5rem;
}

.progress-bar:last-child {
    margin: 0;
}

.progress-bar__value {
    border-radius: 200px;
    width: 50%;
    background-color: #0245f9;
    display: flex;
    justify-content: space-between;
    padding: .2rem 1rem;
    user-select: none;
    color: #fff;
}


.services__row, .services {
    gap: .5rem;
}

/*----------------------------------------- portfolio page -----------------------------------------*/
.portfolio-filter__item {
    cursor: pointer;
    color: #adadad !important;
}

.portfolio__image {
    user-select: none;
    cursor: pointer;
    width: 100%;
    height: 11rem;
    object-fit: cover;
    transition: all ease-in-out .3s;
}

.portfolio__item:hover img {
    transform: scale(1.1);
}

.portfolio-filter--active {
    color: white !important;
    border-bottom: 2px solid #0D86FF;
    text-shadow: 0 0 8px white;
}

.gallery__image{
    height: 400px;
    object-fit: cover;
}

/*----------------------------------------- contact page -----------------------------------------*/
.contact{

}
.contact__link{
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(40, 40, 40, 0.53);
    transition: all ease-in-out .2s;
    cursor: pointer;
}
.contact__link::before{
    content: "";
    position: absolute;
    bottom: 20px;
    left: 50px;
    width: 50px;
    height: 60px;
    border-radius: 50%;
    background: #0a53be;
    filter: blur(50px);
    transition: all ease-in-out .2s;
}
.contact__link::after{
    content: "";
    position: absolute;
    top: 10px;
    right: 30px;
    width: 30px;
    height: 60px;
    border-radius: 50%;
    background: #ffbebe;
    filter: blur(50px);
    transition: all ease-in-out .2s;
}
.contact__link:hover{
    background: rgb(20, 22, 37) !important;
    transform: scale(1.02);
}
.contact__link:hover::before{
    opacity: .8;
    transform: translate(80px , -60px);
}
.contact__link:hover::after{
    opacity: .8;
    transform: translate(-80px , 60px);
}

.contact__image{
    width: 80px;
}

.input__icon{
    top: 10px;
    right: 10px;
}
.input__element{
    padding-right: 40px;
}

.is-valid{
    outline: 1px solid green;
}
.is-invalid{
    outline: 1px solid #640000;
}


@keyframes changeNavIconOpen {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(1440deg);
    }
}

@keyframes changeNavIconClose {
    0% {
        transform: rotate(1440deg);
    }

    100% {
        transform: rotate(0);
    }
}