/* Topbar that hides on scroll */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    height: 44px;
    transition: transform .28s ease-in-out;
}

#topbar.topbar-hidden {
    transform: translateY(-100%);
}

#topbar .topbar-inner {
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 0 15px;
}

body.has-topbar {
    padding-top: 44px;
    transition: padding-top .28s ease-in-out;
}

@media (max-width: 576px) {
    #topbar .topbar-inner {
        font-size: 0.85rem;
    }
}
/* Brand gradient (purple -> blue) and UX notes from senior UI/UX designer + psychologist
   Use CSS variables for easy theme-wide application. Contrast-focused for CTAs and headings.
*/
:root {
    --brand-gradient: linear-gradient(135deg, #4a2a81 0%, #0e385f 100%);
    --brand-start: #4a2a81;
    --brand-end: #0e385f;
    --brand-contrast: #ffffff;
    --cta-accent: #ff7a59; /* warm accent for action emphasis */
}

/* Utility classes */
.bg-brand-gradient {
    background: var(--brand-gradient) !important;
    color: var(--brand-contrast) !important;
}

.btn-brand {
    background: var(--brand-gradient);
    border: 0;
    color: var(--brand-contrast);
}

.btn-brand-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--brand-contrast);
}

.text-on-brand {
    color: var(--brand-contrast);
}

/* Ensure readable CTA: add subtle drop shadow and focus ring */
.btn-cta {
    background: var(--cta-accent);
    border: none;
    color: #fff;
    box-shadow: 0 6px 18px rgba(14, 56, 95, 0.18);
}

.btn-cta:focus {
    outline: 3px solid rgba(255, 122, 89, 0.25);
}

/* For gradient hero overlays */
.hero-gradient-overlay {
    background: linear-gradient(180deg, rgba(10, 12, 20, 0.12), rgba(10, 12, 20, 0.36));
}
/* RTL + Farsi Fixes */
body {
    direction: rtl;
    text-align: right;
    font-family: 'IRANSans', 'DM Sans', 'Tahoma', system-ui, sans-serif !important;
}

h1, h2, h3, h4, h5, h6, button, a, div, p, span {
    font-family: 'IRANSans', 'DM Sans', 'Tahoma', system-ui, sans-serif !important;
}

/* Force RTL on all elements */
* {
    direction: rtl;
}

/* Fix Bootstrap components for RTL */
.navbar .dropdown-menu {
    text-align: right;
}

.hero-subscribe-form {
    direction: rtl;
}

.form-control {
    text-align: right;
}

/* Fix Swiper navigation buttons for RTL */
.swiper-button-next {
    left: 10px;
    right: auto;
}

.swiper-button-prev {
    right: 10px;
    left: auto;
}

/* Fix text alignment in cards, lists, etc. */
.text-start {
    text-align: right !important;
}

.text-end {
    text-align: left !important;
}
.develogist-why-us .ca-card-title,
.develogist-why-us .why-us-card {
    text-align: right;
}

.develogist-why-us .why-us-sticky-column {
    position: relative;
}

.develogist-why-us .ca-card-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}

.develogist-why-us .ca-card-title.is-fixed {
    position: fixed;
    top: 85px;
    z-index: 20;
    width: var(--sticky-width);
    min-width: var(--sticky-width);
    max-width: var(--sticky-width);
    left: var(--sticky-left);
    right: auto;
    box-sizing: border-box;
}

.develogist-why-us .ca-card-title.is-bottom {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
}

.develogist-why-us .why-us-badge {
    border-color: #f59e0b !important;
}

.develogist-why-us .why-us-users {
    gap: 10px;
}

.develogist-why-us .why-us-card {
    height: 100%;
}

.develogist-why-us .why-us-card img {
    display: block;
}

.develogist-service-36,
.develogist-service-36 .service-card-36,
.develogist-service-36 .sections__head {
    text-align: right;
}

.develogist-service-36 .sections__head h1 {
    line-height: 1.4;
}

.develogist-service-36 .btn-link {
    text-decoration: none;
}

.develogist-service-36 .btn-link::after {
    content: " \2190";
    display: inline-block;
    margin-right: 6px;
}

@media (max-width: 1199.98px) {
    .develogist-why-us .ca-card-title {
        position: static;
    }
}
.develogist-faq-section,
.develogist-faq-section .hd-chat-box,
.develogist-faq-section .hd-title,
.develogist-faq-section .accordion-body {
    text-align: right;
}

.develogist-faq-section .hd-chat-box {
    direction: rtl;
    position: relative;
    overflow: hidden;
    padding: 48px 38px;
    border-radius: 28px;
    background: linear-gradient(180deg, #0f1738 0%, #26335c 38%, #5b4478 68%, #1b1f45 100%);
    box-shadow: 0 24px 60px rgba(52, 40, 89, 0.26);
    isolation: isolate;
}

.develogist-faq-section .sky-cycle,
.develogist-faq-section .sky-horizon,
.develogist-faq-section .sky-sun,
.develogist-faq-section .sky-moon,
.develogist-faq-section .sky-stars {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.develogist-faq-section .sky-cycle {
    inset: 0;
    overflow: hidden;
}

.develogist-faq-section .sky-cycle::before,
.develogist-faq-section .sky-cycle::after {
    content: "";
    position: absolute;
    inset: 0;
}

.develogist-faq-section .sky-cycle::before {
    background: linear-gradient(180deg, #82d5ff 0%, #ffd28a 44%, #dd8778 72%, #6d4674 100%);
    animation: faqDaySky 6s linear infinite;
}

.develogist-faq-section .sky-cycle::after {
    background: linear-gradient(180deg, #0f1738 0%, #26335c 38%, #5b4478 68%, #1b1f45 100%);
    animation: faqNightSky 6s linear infinite;
}

.develogist-faq-section .sky-sun,
.develogist-faq-section .sky-moon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    top: 13%;
    left: -12%;
    z-index: 1;
}

.develogist-faq-section .sky-sun {
    background: radial-gradient(circle, rgba(255, 252, 220, 1) 0%, rgba(255, 214, 120, 0.98) 42%, rgba(255, 169, 81, 0.45) 64%, rgba(255, 169, 81, 0) 76%);
    box-shadow: 0 0 50px rgba(255, 184, 91, 0.42);
    animation: faqSunTrack 6s linear infinite;
}

.develogist-faq-section .sky-moon {
    background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.98) 0%, rgba(235, 242, 255, 0.95) 55%, rgba(203, 216, 255, 0.18) 72%, rgba(203, 216, 255, 0) 82%);
    box-shadow: 0 0 38px rgba(215, 227, 255, 0.28);
    opacity: 0;
    transform: scale(0.55);
    animation: faqMoonTrack 6s linear infinite;
}

.develogist-faq-section .sky-stars {
    inset: 0;
    opacity: 0;
    z-index: 1;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.95) 0 1.5px, transparent 2px),
        radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
        radial-gradient(circle at 58% 26%, rgba(255, 255, 255, 0.9) 0 1.4px, transparent 2px),
        radial-gradient(circle at 76% 16%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
        radial-gradient(circle at 84% 30%, rgba(255, 255, 255, 0.85) 0 1.2px, transparent 1.6px);
    animation: faqStarsShow 6s linear infinite;
}

.develogist-faq-section .sky-horizon {
    width: 130%;
    height: 42%;
    bottom: -14%;
    left: -15%;
    z-index: 1;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: linear-gradient(180deg, rgba(243, 162, 96, 0.2) 0%, rgba(70, 56, 112, 0.46) 52%, rgba(19, 23, 51, 0.88) 100%);
    filter: blur(4px);
    animation: faqHorizonWave 6s ease-in-out infinite;
}

.develogist-faq-section .hd-chat-box > :not(.sky-cycle) {
    position: relative;
    z-index: 1;
}

.develogist-faq-section .faq-accordion .accordion-button {
    text-align: right;
    font-weight: 600;
}

.develogist-faq-section .faq-accordion .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

.develogist-faq-section .faq-accordion .accordion-body {
    line-height: 1.9;
}

.develogist-faq-section .hd-chat-box img {
    max-width: 320px;
}

@keyframes faqDaySky {
    0% { opacity: 1; }
    34% { opacity: 1; }
    52% { opacity: 0.28; }
    68% { opacity: 0; }
    82% { opacity: 0; }
    92% { opacity: 0.42; }
    100% { opacity: 1; }
}

@keyframes faqNightSky {
    0% { opacity: 0; }
    34% { opacity: 0; }
    56% { opacity: 0.78; }
    72% { opacity: 1; }
    88% { opacity: 0.46; }
    100% { opacity: 0; }
}

@keyframes faqSunTrack {
    0% { left: -12%; opacity: 0; transform: scale(0.55); }
    10% { left: 4%; opacity: 1; transform: scale(0.78); }
    28% { left: 34%; opacity: 1; transform: scale(1); }
    46% { left: 68%; opacity: 1; transform: scale(0.8); }
    56% { left: 84%; opacity: 0; transform: scale(0.55); }
    100% { left: 84%; opacity: 0; transform: scale(0.55); }
}

@keyframes faqMoonTrack {
    0%, 54% { left: -12%; opacity: 0; transform: scale(0.55); }
    64% { left: 4%; opacity: 0.92; transform: scale(0.78); }
    80% { left: 34%; opacity: 1; transform: scale(0.98); }
    100% { left: 84%; opacity: 0; transform: scale(0.55); }
}

@keyframes faqStarsShow {
    0%, 58% { opacity: 0; }
    72% { opacity: 0.35; }
    84% { opacity: 0.85; }
    100% { opacity: 0; }
}

@keyframes faqHorizonWave {
    0% { transform: translate3d(0, 0, 0) scaleX(1); }
    50% { transform: translate3d(-2%, -8px, 0) scaleX(1.03); }
    100% { transform: translate3d(0, 0, 0) scaleX(1); }
}
/* Service page inline style replacements */

/* Service VoIP */
.mk-hero-bg {
    background-image: url('../img/shape/mk-hero-curve.svg');
    background-repeat: no-repeat;
}

.crm-hero-bg {
    background-image: url('../img/shape/crm-hero-bg.png');
    background-repeat: no-repeat;
}

.arrow-lg-red-position {
    left: 200px;
    right: auto;
}

.footer-top-bg {
    background: url('../img/page-header-bg.svg') no-repeat bottom right;
}

/* Service Website */
.ws-hero-bg {
    background: url('../img/shape/color-particles-2.svg') no-repeat center top;
}

.ws-dashboard-bg {
    background-image: url('../img/dashboard-img.png');
    background-size: cover;
    background-position: center;
}

.ws-cta-bg {
    background: url('../img/cb_call_to_action.png') no-repeat center center / cover;
}

.ws-cta-gradient-bg {
    background-image: url('../img/app-two-cta-bg.png');
    background-size: cover;
    background-position: center;
}
