/********** Template CSS **********/
:root {
    --primary: #693EE0;
    --secondary: #FBA504;
    --light: #F4F4F9;
    --dark: #04000B;
}

/*** Prevent horizontal scroll on mobile ***/
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container-xxl,
.container-fluid,
.row {
    max-width: 100%;
    overflow-x: hidden;
}

/*** Global Font Override for Persian RTL ***/
html[dir="rtl"] body,
body.rtl,
body {
    font-family: 'Vazirmatn', sans-serif !important;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, 
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .h1, html[dir="rtl"] .h2, html[dir="rtl"] .h3,
html[dir="rtl"] .h4, html[dir="rtl"] .h5, html[dir="rtl"] .h6,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.rtl .h1, body.rtl .h2, body.rtl .h3, body.rtl .h4, body.rtl .h5, body.rtl .h6 {
    font-family: 'Vazirmatn', sans-serif !important;
}

html[dir="rtl"] p, html[dir="rtl"] span, html[dir="rtl"] div,
html[dir="rtl"] a, html[dir="rtl"] li, html[dir="rtl"] td, html[dir="rtl"] th,
html[dir="rtl"] label, html[dir="rtl"] input, html[dir="rtl"] textarea,
html[dir="rtl"] select, html[dir="rtl"] button, body.rtl p, body.rtl span,
body.rtl div, body.rtl a, body.rtl li, body.rtl td, body.rtl th,
body.rtl label, body.rtl input, body.rtl textarea, body.rtl select,
body.rtl button {
    font-family: 'Vazirmatn', sans-serif !important;
}

.btn, .navbar-light .btn {
    font-family: 'Vazirmatn', sans-serif !important;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Vazirmatn', sans-serif !important;
}

.navbar-light .navbar-brand h1 {
    font-family: 'Vazirmatn', sans-serif !important;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/*** Spinner ***/

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .footer-menu a {
    text-align: right;
}

html[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .btn-social {
    margin-left: 0.5rem !important;
    margin-right: 0;
}

html[dir="rtl"] .section-title {
    text-align: right;
}

html[dir="rtl"] .position-relative > .btn {
    right: auto;
    left: 1rem;
}

html[dir="rtl"] .footer .btn.btn-link {
    text-align: right;
}

html[dir="rtl"] .footer .btn.btn-link::before {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .footer .footer-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer .footer-menu a {
    margin-right: 0;
    margin-left: 15px;
    padding-right: 0;
    padding-left: 15px;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

html[dir="rtl"] .footer .footer-menu a:last-child {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

html[dir="rtl"] .d-flex.justify-content-end {
    justify-content: flex-start !important;
}

html[dir="rtl"] .d-flex.justify-content-start {
    justify-content: flex-end !important;
}

/*** ========== Section Polish ========== ***/

/* About Section */
.about-section .about-img-wrapper {
    position: relative;
}
.about-section .about-img-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    background: var(--light);
    border-radius: 20px;
    z-index: 0;
}
html[dir="rtl"] .about-section .about-img-bg {
    right: auto;
    left: -20px;
}
.about-section .about-img-wrapper img {
    position: relative;
    z-index: 1;
}
.about-section .skill .progress {
    border-radius: 8px;
    overflow: hidden;
}
.about-section .skill .progress-bar {
    border-radius: 8px;
}

/* Fact Cards */
.fact-card {
    padding: 2rem 1rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fact .fact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Service Section */
.service-section .service-item {
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
}
.service-section .service-item .service-icon {
    transition: transform 0.4s ease;
}
.service-section .service-item:hover .service-icon {
    transform: rotate(360deg);
}
.rtl-arrow {
    transform: scaleX(-1);
}

/* Newsletter */
.newsletter-input-wrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.newsletter-btn {
    border-radius: 50% !important;
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
}
.newsletter-btn:hover {
    background: var(--secondary) !important;
}

/* Projects / Courses */
.projects-section #portfolio-flters li {
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}
.empty-courses {
    padding: 3rem 1rem;
    opacity: 0.7;
}

/* Testimonial Section */
.testimonial-section .testimonial-item {
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 2rem 2rem 1.5rem;
}
.testimonial-section .testimonial-item p {
    line-height: 1.8;
    position: relative;
    z-index: 1;
}
.testimonial-section .testimonial-item > p > i {
    position: relative;
    z-index: 0;
    opacity: 0.15;
}
.rtl-flex {
    flex-direction: row !important;
}

/* Team Section */
.team-section .team-item {
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.team-section .team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.team-img-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(105,62,224,0.2);
}
.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.team-section .team-item:hover .team-img-wrapper img {
    transform: scale(1.1);
}
.team-section .btn-square {
    transition: all 0.3s ease;
}
.team-section .btn-square:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Section Title RTL */
html[dir="rtl"] .section-title {
    flex-direction: row-reverse;
}
html[dir="rtl"] .section-title.text-secondary {
    text-align: right;
}
html[dir="rtl"] .section-title span:first-child,
html[dir="rtl"] .section-title span:last-child {
    margin-right: 0;
    margin-left: 30px;
}
html[dir="rtl"] .section-title span:last-child {
    margin-left: 0;
    margin-right: 30px;
}
html[dir="rtl"] .section-title span:first-child::after {
    right: auto;
    left: -20px;
}
html[dir="rtl"] .section-title span:last-child::after {
    left: auto;
    right: -20px;
}

/* Button Polish */
.btn-primary, .btn-secondary, .btn-light {
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(105,62,224,0.3);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(251,165,4,0.3);
}

/* Card Border Radius */
.service-item, .team-item, .testimonial-item {
    border-radius: 16px !important;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Vazirmatn', sans-serif !important;
}

p, a, span, div, li, td, th, label, input, textarea, select, button {
    font-family: 'Vazirmatn', sans-serif !important;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Vazirmatn', sans-serif !important;
}

.navbar-light .navbar-brand h1 {
    font-family: 'Vazirmatn', sans-serif !important;
}

.btn {
    font-family: 'Vazirmatn', sans-serif !important;
}

.section-title {
    font-family: 'Vazirmatn', sans-serif !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar — Minimal Glass ***/
.glass-white { 
    background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
}

#navbar {
    border-bottom-color: transparent !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.border-zinc-200 {
    border-bottom-color: #e4e4e7 !important;
}

.navbar-brand h1 { 
    color: #000 !important; 
    font-family: 'Vazirmatn', sans-serif; 
    font-weight: 900; 
}

.navbar-brand img { 
    border-radius: 12px; 
}

.nav-link { 
    font-family: 'Vazirmatn', sans-serif !important; 
}

.nav-link:hover { 
    color: #fbbf24 !important; 
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light { 
        position: fixed !important; 
        background: rgba(255,255,255,0.95); 
        backdrop-filter: blur(16px); 
    }
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
}
.mobile-menu.translate-x-full { 
    transform: translateX(100%); 
}


/*** Hero Header ***/

.space{
    margin-bottom: 1rem;
    padding: 3rem 0; 
}

.hero-header {
    margin-bottom: 6rem;
    padding: 18rem 0;
    background:
        url(../img/blob-top-left.png),
        url(../img/blob-top-right.png),
        url(../img/blob-bottom-left.png),
        url(../img/blob-bottom-right.png),
        url(../img/blob-center.png),
        url(../img/bg-bottom.png);
    background-position:
        left 0px top 0px,
        right 0px top 0px,
        left 0px bottom 0px,
        right 0px bottom 0px,
        center center,
        center bottom;
    background-repeat: no-repeat;
    background-size:
        600px 400px,
        600px 400px,
        600px 400px,
        600px 400px,
        900px 600px,
        100% auto;
}

@media (max-width: 991.98px) {
    .hero-header {
        padding: 6rem 0 9rem 0;
        background-size:
            300px 200px,
            300px 200px,
            300px 200px,
            300px 200px,
            400px 300px,
            100% auto;
    }
}

/*** RTL Hero Header Fixes ***/
html[dir="rtl"] .hero-header {
    background-position:
        right 0px top 0px,
        left 0px top 0px,
        right 0px bottom 0px,
        left 0px bottom 0px,
        center center,
        center bottom;
    background-size:
        600px 400px,
        600px 400px,
        600px 400px,
        600px 400px,
        900px 600px,
        100% auto;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 500;
    text-transform: uppercase;
}

.section-title span:first-child,
.section-title span:last-child {
    position: relative;
    display: inline-block;
    margin-right: 30px;
    width: 30px;
    height: 2px;
}

.section-title span:last-child {
    margin-right: 0;
    margin-left: 30px;
}

.section-title span:first-child::after,
.section-title span:last-child::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 2px;
    top: 0;
    right: -20px;
}

.section-title span:last-child::after {
    right: auto;
    left: -20px;
}

.section-title.text-primary span:first-child,
.section-title.text-primary span:last-child,
.section-title.text-primary span:first-child::after,
.section-title.text-primary span:last-child::after {
    background: var(--primary);
}

.section-title.text-secondary span:first-child,
.section-title.text-secondary span:last-child,
.section-title.text-secondary span:first-child::after,
.section-title.text-secondary span:last-child::after {
    background: var(--secondary);
}

.section-title.text-white span:first-child,
.section-title.text-white span:last-child,
.section-title.text-white span:first-child::after,
.section-title.text-white span:last-child::after {
    background: #FFFFFF;
}


/*** Feature ***/
.feature-item {
    transition: .5s;
}

.feature-item:hover {
    margin-top: -15px;
}


/*** About ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Fact ***/
.fact {
    margin: 6rem 0;
    background:
        url(../img/blob-top-left.png),
        url(../img/blob-top-right.png),
        url(../img/blob-bottom-left.png),
        url(../img/blob-bottom-right.png),
        url(../img/blob-center.png);
    background-position:
        left 0px top 0px,
        right 0px top 0px,
        left 0px bottom 0px,
        right 0px bottom 0px,
        center center;
    background-repeat: no-repeat;
    background-size:
        600px 400px,
        600px 400px,
        600px 400px,
        600px 400px,
        900px 600px;
}

/*** RTL Fact Fixes ***/
html[dir="rtl"] .fact {
    background-position:
        right 0px top 0px,
        left 0px top 0px,
        right 0px bottom 0px,
        left 0px bottom 0px,
        center center;
    background-size:
        600px 400px,
        600px 400px,
        600px 400px,
        600px 400px,
        900px 600px;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 45px 30px;
    background: var(--light);
    overflow: hidden;
    transition: .5s;
}

.service-item:hover {
    margin-top: -15px;
    padding-bottom: 60px;
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: url(../img/blob-primary.png) center center no-repeat;
    background-size: contain;
    transition: .5s;
}

.service-item:hover .service-icon {
    color: var(--dark);
    background: url(../img/blob-secondary.png) center center no-repeat;
    background-size: contain;
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: #FFFFFF;
}

.service-item:hover h6 {
    color: #FBA504;
}

.service-item a.btn {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px 40px 0 0;
    transition: .5s;
    z-index: 1;
}

.service-item a.btn:hover {
    color: var(--dark);
    background: var(--secondary);
}

.service-item:hover a.btn {
    bottom: 0;
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 34, 204, .9);
    transition: .5s;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}


/*** Newsletter ***/
.newsletter {
    margin: 6rem 0;
    background:
        url(../img/blob-top-left.png),
        url(../img/blob-top-right.png),
        url(../img/blob-bottom-left.png),
        url(../img/blob-bottom-right.png),
        url(../img/blob-center.png);
    background-position:
        left 0px top 0px,
        right 0px top 0px,
        left 0px bottom 0px,
        right 0px bottom 0px,
        center center;
    background-repeat: no-repeat;
    background-size:
        600px 400px,
        600px 400px,
        600px 400px,
        600px 400px,
        900px 600px;
}

/*** RTL Newsletter Fixes ***/
html[dir="rtl"] .newsletter {
    background-position:
        right 0px top 0px,
        left 0px top 0px,
        right 0px bottom 0px,
        left 0px bottom 0px,
        center center;
    background-size:
        600px 400px,
        600px 400px,
        600px 400px,
        600px 400px,
        900px 600px;
}


/*** Testimonial ***/
.testimonial-carousel .testimonial-item {
    padding: 0 30px 30px 30px;
}

.testimonial-carousel .owl-nav {
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 60px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}


/*** Team ***/
.team-item .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    margin-top: 6rem;
    padding-top: 9rem;
    background:
        url(../img/bg-top.png),
        url(../img/map.png);
    background-position:
        center top,
        center center;
    background-repeat: no-repeat;
    background-size:
        100% auto,
        auto;
}

/*** RTL Footer Background Fixes ***/
html[dir="rtl"] .footer {
    background-position:
        center top,
        center center;
    background-size:
        100% auto,
        auto;
}

.footer-social-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-social-box .btn-social {
    margin: 0 5px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #fff;
    border: 1px solid rgba(105, 62, 224, .2);
    border-radius: 50%;
    transition: .3s;
}

.footer-social-box .btn-social:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
    color: var(--secondary);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--secondary);
}

/*** RTL Footer Fixes ***/
html[dir="rtl"] .footer-social-box .btn-social {
    margin: 0 5px;
}

html[dir="rtl"] .footer .btn.btn-social {
    margin-right: 0;
    margin-left: 5px;
}

html[dir="rtl"] .footer .btn.btn-link {
    text-align: right;
}

html[dir="rtl"] .footer .btn.btn-link::before {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .footer .footer-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer .footer-menu a {
    margin-right: 0;
    margin-left: 15px;
    padding-right: 0;
    padding-left: 15px;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

html[dir="rtl"] .footer .footer-menu a:last-child {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

