@font-face {
    font-family: 'Vazirmatn';
    src: url(/fonts/Vazirmatn-RD-Regular.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url(/fonts/Vazirmatn-RD-Medium.woff2) format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url(/fonts/Vazirmatn-RD-Bold.woff2) format('woff2');
    font-weight: 700;
}

.Highlight {
    color: var(--secondary);
}

:root {
    --primary: #1f3d2b;
    --secondary: #f4b41a;
    --card: #e0dede;
    --text: #222;
    --bg: #ffffff;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.9;
    direction: rtl;
}

/* scroll to top */
#scrollToTopBtn {
    display: none;
    /* اول مخفی */
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 100;
    width: 30px;
    height: 30px;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #555;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    /* کاملاً گرد */
    transition: 0.3s !important;
    opacity: 0.8;
}

#scrollToTopBtn:hover {
    background-color: #333;
    opacity: 1;
}

/* Pre Loader */
.preloader {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    z-index: 999;
}

.hidePreloader {
    display: none !important;
}

.preloader-img {
    width: 50px;
}

/* Navbar Content */
.navbar {
    background-color: var(--primary);
}

.btn-resume {
    background-color: var(--bg);
    color: var(--primary);
    font-size: small;
    transition: 300ms;
    cursor: pointer;
}

.btn-resume:hover {
    background-color: var(--secondary);
    color: var(--bg);
    font-size: small;
}

.navbar-list {
    margin: 0;
    padding: 0;
}

.navbar-options {
    color: var(--bg);
    display: inline-block;
    padding-right: 20px;
    transition: 300ms;
}

.navbar-options:hover {
    color: var(--secondary) !important;
    display: inline-block;
}

.navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-toggler {
    border: none;
    color: var(--bg) !important;
    font-size: xx-large;
}

.navbar-collapse {
    transition: 300ms !important;
}

.navbar-toggler:focus {
    border: none;
    box-shadow: none !important;
}

.logo {
    margin: 0 !important;
    padding: 0 !important;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    border: 2px solid black;
    transition: 0.3s;
}

.logo:hover,
.logo:focus {
    border: 2px solid var(--secondary);
    box-shadow: 0 0 20px 0 var(--secondary);
}

/* Header Content */
.Header {
    background-color: var(--bg);
    border-bottom: 5px solid var(--secondary);
}

.header-section-image-Box {
    height: 400px;
}

.Header-Image {
    animation: MoveHeaderImage 5s ease-in-out infinite alternate;
}

@keyframes MoveHeaderImage {
    from {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(10px);
    }
}

.header-section-content {
    height: 400px;
}

@media screen and (max-width:768px) {
    .header-section-image {
        height: 100%;
    }

    .header-section-content {
        height: 150px;
    }
}

@media screen and (min-width:992px) {
    .header-section-image {
        height: 450px;
    }

    .header-section-content {
        height: 450px;
    }
}

#type {
    height: 20px;
}

.Title {
    font-size: x-large;
}

.Header-Section-BtnResume {
    margin-left: 10px
}

.Header-Section-BtnResume:hover {
    box-shadow: 0 0 10px 0 var(--secondary);
}

.socials-btn {
    text-decoration: none;
}

.icons {
    transition: 300ms;
}

.icons:hover,
.icons:focus {
    color: var(--secondary);
}

.bi-telegram {
    color: #26a5e4;
}

.bi-linkedin {
    color: #0077b5;
}

.bi-github {
    color: #181717;
}

#scrollBtn {
    transition: 300ms;
}

#scrollBtn:hover {
    color: var(--secondary);
}

/* Services Section */
.Service-Box {
    background-color: var(--card);
    height: 100%;
    text-align: right;
    transition: 300ms ease-in-out;
    box-shadow: none;
}

.Service-Box:hover {
    box-shadow: 0 0 20px 0 var(--secondary) !important;
    transform: scale(1.03) !important;
}

.Services-Title {
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    transition: 300ms !important;
    background-color: var(--primary);
    color: var(--secondary);
}

.Service-Box-icon {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: x-large;
    transition: 300ms;
}

.Service-Box:hover .Service-Box-icon {
    color: var(--secondary)
}

.Service-Box-Title {
    font-size: medium;
    font-weight: bold;
}

.Service-Box-text {
    font-size: smaller;
}

/* Searching */
.Searching-Section {
    background-color: var(--primary);
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

.searching-section {
    height: 300px;
    width: 100%;
}

.searching-content {
    background-color: var(--secondary);
    max-width: 500px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 10px 20px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.searching-icon {
    font-size: 5rem;
    color: var(--primary);
    transition: ease-in-out 0.5s;
}

.searching-text {
    color: var(--bg);
}

@media screen and (max-width:576px) {
    .searching-header {
        font-size: 0.9rem;
    }

    .searching-text {
        font-size: 0.9rem;
    }

    .searching-icon {
        font-size: 2.5rem;
    }
}

.searching-content:hover .searching-icon {
    transform: translateY(-10px);
}

/* Tech */
.Tech {
    display: inline-block;
    background-color: var(--card);
    border-radius: 25px;
    height: 130px;
    width: 150px;
    margin: 10px;
}

.Tech-pic {
    width: 70px;
    height: 70px;
    border-radius: 50px;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Projects-Section */
.Projects-Section {
    background-color: var(--card) !important;
}

.featured-item {
    background: var(--bg);
    border-radius: 0.5rem;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.8s ease-in-out;
}

.featured-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.featured-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    transition: 0.5s all ease-in-out;
}

.img-container {
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.featured-photo {
    transition: all 1s ease-in-out;
}

.img-container:hover .featured-photo {
    transform: scale(1.3);
    opacity: 0.5;
}

.featured-link {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 3rem;
    transform: translate(-50%, -50%);
    color: var(--text);
    opacity: 0;
    transition: all 1s ease-in-out;

}

.featured-link:hover {
    color: var(--mainWhite);
}

.img-container:hover .featured-link {
    opacity: 1;
}

/* Articles-Section */
.Articles-Section {
    background-color: var(--primary);
}

.Articles-Section-Title {
    color: var(--bg);
}

.btn-continue-articles {
    text-decoration: none !important;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 5px 20px;
    border-radius: 20px;
    transition: 300ms;
}

.btn-continue-articles:hover {
    background-color: var(--secondary);
    color: var(--bg);
}

.card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s, opacity 2s ease, transform 2s ease;
}

.card:hover {
    box-shadow: 0 0 15px 0 var(--secondary);
}

.cardMover {
    opacity: 0;
    /* مخفی کردن المان */
    transform: translateY(100%);
    /* جابجایی به سمت راست */
    transition: all 0.5s, opacity 2s ease, transform 2s ease;
}

.cardMover.visible {
    opacity: 1;
    /* نمایش المان */
    transform: translateX(0);
    /* به حالت اولیه برمی‌گردد */
}

.card-title {
    transition: 300ms !important;
    cursor: pointer;
}

.card-title:hover {
    color: var(--secondary);
}

/* Contact */
.Contact-Section {
    background-color: var(--bg);
}

.Contact-Form {
    transition: 300ms !important;
}

.Form-Message {
    resize: none;
}

.form-control {
    transition: 300ms !important;
}

.btn {
    transition: 300ms !important;
}

.captchaAnswerInput{
    max-width: 150px;
}

.btn-recaptcha{
    height: 37px;
}
/* footer */
.footer {
    background-color: var(--primary);
    color: var(--bg);
}

/* article page */
.article-body {
  background-color: var(--bg);
  border: 1px solid rgb(216, 214, 214);
  box-shadow: 0 0 3px 0 rgb(216, 214, 214);
  text-align: justify;
}
.page-address{
  display: inline;
  margin-inline: 5px;
  font-size: small !important;
}
.list-group-item{
  cursor: pointer;
  transition: 0.3s;
}
.list-group-item-blockquote{
  color: gray;
  font-size: small;
}
.text-blockquote{
  color: gray;
  font-size: small;
}
.keywords-section{
  font-size: 1rem;
  text-align: right;
}
.keyword{
  background-color: rgb(216, 214, 214);
  cursor: pointer;
  transition: 0.5s;
}
.keyword:hover{
  background-color: var(--secondary);
}

/* Login */
.Login-Section{
    width: 300px;
    box-shadow: 0 0 30px 0 var(--card);
    border: 1px solid var(--card);
    background-color: var(--bg);
}

/* Dashboard */
.Dashboard {
    box-shadow: 0 0 30px 0 var(--card);
    border: 2px solid var(--card);
    background-color: var(--bg);
    border-radius: 15px;
}

.info-section {
    box-shadow: 0 0 10px 0 var(--card);
    border: 2px solid var(--card);
    background-color: var(--bg);
    border-radius: 15px;
    padding: 15px;
}

/* Contact-Us Page */
.contact-info {
    background: #43C6AC; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #F8FFAE, #43C6AC); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #F8FFAE, #43C6AC); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    border: 1px solid var(--card);
    padding: 15px;
    border-radius: 10px
}

/* About Me Page */
.AboutMe-Box {
    background: #a8ff78; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #78ffd6, #a8ff78); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #78ffd6, #a8ff78); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    border-radius: 20px;
    box-shadow: 0 0 15px var(--card);
    padding-inline: 20px;
    padding-block: 30px;
    margin: auto;
}

.AboutMe-Image-Box {
    border: 2px solid black;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 100px;
}

.degree{
    width: 100%;
    max-width:600px !important;

}