/* RTL overrides for Elitetecs */
html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

html[dir="rtl"] .navbar-nav {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
html[dir="rtl"] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
html[dir="rtl"] .me-4 { margin-left: 1.5rem !important; margin-right: 0 !important; }
html[dir="rtl"] .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
html[dir="rtl"] .ms-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
html[dir="rtl"] .pe-3 { padding-left: 1rem !important; padding-right: 0 !important; }
html[dir="rtl"] .ps-2 { padding-right: 0.5rem !important; padding-left: 0 !important; }
html[dir="rtl"] .ps-4 { padding-right: 1.5rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pe-5 { padding-left: 3rem !important; padding-right: 0 !important; }
html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-end { text-align: left !important; }
html[dir="rtl"] .border-end { border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; border-right: 0 !important; }

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 45px;
}

html[dir="rtl"] .carousel-control-prev { right: 0; left: auto; }
html[dir="rtl"] .carousel-control-next { left: 0; right: auto; }

html[dir="rtl"] .section-title::before {
    right: 0;
    left: auto;
}

html[dir="rtl"] .section-title::after {
    left: 0;
    right: auto;
}

html[dir="rtl"] .section-title.text-start {
    padding: 0 4.5rem 0 0;
}

html[dir="rtl"] .section-title.text-end {
    padding: 0 0 0 4.5rem;
}

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

html[dir="rtl"] .testimonial-item .fa-quote-right {
    left: 1.5rem;
    right: auto;
}

html[dir="rtl"] .position-absolute.start-0 {
    right: 0 !important;
    left: auto !important;
}

html[dir="rtl"] .newsletter .btn.position-absolute.end-0 {
    left: 0 !important;
    right: auto !important;
}

html[dir="rtl"] .newsletter input.pe-5 {
    padding-left: 3rem !important;
    padding-right: 1.5rem !important;
}

html[dir="rtl"] .admin-sidebar {
    border-left: 1px solid #e8ecf1;
    border-right: none;
    box-shadow: -2px 0 16px rgba(15, 23, 43, .04);
}

html[dir="rtl"] .admin-content {
    margin-right: 270px;
    margin-left: 0;
}

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

html[dir="rtl"] .admin-topbar-user {
    flex-direction: row-reverse;
}

@media (max-width: 991.98px) {
    html[dir="rtl"] .admin-content {
        margin-right: 0;
    }
}

/* Section heading themes */
.section-header--dark .section-heading {
    color: #fff;
}

.section-header--dark .section-heading .text-primary {
    color: var(--primary) !important;
}

/* Tech section — subtle network overlay on light backgrounds */
.tech-section,
.about-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.about-section {
    background: #fff;
}

.tech-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.about-section .tech-bg-gradient {
    display: none;
}

.tech-bg-gradient {
    position: absolute;
    inset: 0;
}

.projects-section {
    background-color: #f4f6f9;
}

.projects-section .tech-bg-gradient {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(244, 246, 249, .92) 100%),
        url("../img/projects-bg.svg") center center / cover no-repeat;
}

.tech-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .28;
}

.tech-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    opacity: .18;
    animation: techOrbFloat 14s ease-in-out infinite;
}

.tech-bg-orb-1 {
    width: 260px;
    height: 260px;
    top: -80px;
    right: 8%;
    background: radial-gradient(circle, rgba(254, 161, 22, .35) 0%, rgba(254, 161, 22, 0) 70%);
}

.tech-bg-orb-2 {
    width: 300px;
    height: 300px;
    bottom: -110px;
    left: 5%;
    background: radial-gradient(circle, rgba(77, 171, 247, .25) 0%, rgba(77, 171, 247, 0) 70%);
    animation-duration: 18s;
    animation-delay: -5s;
}

.tech-bg-orb-3 {
    width: 180px;
    height: 180px;
    top: 42%;
    left: 48%;
    background: radial-gradient(circle, rgba(254, 161, 22, .2) 0%, rgba(254, 161, 22, 0) 70%);
    animation-duration: 11s;
    animation-delay: -2s;
}

.tech-bg-line {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(254, 161, 22, .35), transparent);
    opacity: .18;
    animation: techLineMove 9s linear infinite;
}

.tech-bg-line-1 {
    width: 240px;
    top: 24%;
    left: -240px;
}

.tech-bg-line-2 {
    width: 190px;
    top: 70%;
    left: -190px;
    animation-delay: -4s;
    animation-duration: 12s;
}

.tech-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 43, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 43, .04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .12));
}

.tech-section-content {
    position: relative;
    z-index: 1;
}

@keyframes techOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -14px) scale(1.06); }
}

@keyframes techLineMove {
    0% { transform: translateX(0); opacity: 0; }
    12% { opacity: .2; }
    88% { opacity: .2; }
    100% { transform: translateX(calc(100vw + 240px)); opacity: 0; }
}

/* Services section — motion + glass */
.services-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.services-section-motion {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.services-motion-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 43, .94) 0%, rgba(22, 37, 68, .92) 50%, rgba(15, 23, 43, .96) 100%),
        url("../img/services-motion-bg.svg") center center / cover no-repeat;
}

.services-motion-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .55;
    animation: servicesOrbFloat 12s ease-in-out infinite;
}

.services-motion-orb-1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: 8%;
    background: radial-gradient(circle, rgba(254, 161, 22, .55) 0%, rgba(254, 161, 22, 0) 70%);
    animation-duration: 14s;
}

.services-motion-orb-2 {
    width: 340px;
    height: 340px;
    bottom: -120px;
    left: 5%;
    background: radial-gradient(circle, rgba(77, 171, 247, .4) 0%, rgba(77, 171, 247, 0) 70%);
    animation-duration: 18s;
    animation-delay: -4s;
}

.services-motion-orb-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 45%;
    background: radial-gradient(circle, rgba(254, 161, 22, .35) 0%, rgba(254, 161, 22, 0) 70%);
    animation-duration: 10s;
    animation-delay: -2s;
}

.services-motion-line {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(254, 161, 22, .6), transparent);
    opacity: .35;
    animation: servicesLineMove 8s linear infinite;
}

.services-motion-line-1 {
    width: 220px;
    top: 22%;
    left: -220px;
}

.services-motion-line-2 {
    width: 180px;
    top: 68%;
    left: -180px;
    animation-delay: -3s;
    animation-duration: 11s;
}

.services-motion-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .2));
}

.services-section-content {
    position: relative;
    z-index: 1;
}

.service-glass-card {
    --float-delay: 0s;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .15);
    overflow: hidden;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease, border-color .45s ease;
}

.service-glass-card-link {
    text-decoration: none;
    color: inherit;
}

.service-glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(254, 161, 22, .45);
    box-shadow:
        0 22px 50px rgba(254, 161, 22, .2),
        0 8px 32px rgba(0, 0, 0, .3),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

.service-glass-shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    transform: skewX(-20deg);
    transition: left .8s ease;
    z-index: 2;
    pointer-events: none;
}

.service-glass-card:hover .service-glass-shine {
    left: 140%;
}

.service-glass-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 190px;
    margin-bottom: 1rem;
}

.service-glass-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.service-glass-card:hover .service-glass-media img {
    transform: scale(1.1);
}

.service-glass-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 43, .55) 100%);
    pointer-events: none;
}

.service-glass-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(254, 161, 22, .25), rgba(77, 171, 247, .15));
}

.service-glass-fallback i {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(254, 161, 22, .6);
    animation: serviceIconPulse 3s ease-in-out infinite;
}

.service-glass-body {
    padding: 0 .35rem .35rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-glass-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: -2.2rem auto .85rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ffb84d);
    color: #fff;
    font-size: .95rem;
    box-shadow: 0 6px 20px rgba(254, 161, 22, .45);
    position: relative;
    z-index: 3;
    animation: serviceBadgeSpin 8s linear infinite;
}

.service-glass-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: .65rem;
    font-size: 1.1rem;
}

.service-glass-text {
    color: rgba(255, 255, 255, .78);
    line-height: 1.75;
    margin-bottom: 0;
    flex: 1;
    font-size: .92rem;
}

.service-glass-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: .88rem;
    transition: gap .3s ease, color .3s ease;
}

.service-glass-card:hover .service-glass-cta {
    gap: .75rem;
    color: #fff;
}

@keyframes servicesOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -25px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(.95); }
}

@keyframes servicesLineMove {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: .35; }
    90% { opacity: .35; }
    100% { transform: translateX(calc(100vw + 440px)); opacity: 0; }
}

@keyframes serviceIconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: .85; }
}

@keyframes serviceBadgeSpin {
    0% { box-shadow: 0 6px 20px rgba(254, 161, 22, .45); }
    50% { box-shadow: 0 6px 28px rgba(254, 161, 22, .7); }
    100% { box-shadow: 0 6px 20px rgba(254, 161, 22, .45); }
}

@media (prefers-reduced-motion: reduce) {
    .services-motion-orb,
    .services-motion-line,
    .service-glass-fallback i,
    .service-glass-badge {
        animation: none !important;
    }
}

@media (max-width: 767.98px) {
    .service-glass-media {
        height: 170px;
    }

    .service-glass-card:hover {
        transform: translateY(-6px);
    }
}

/* Service detail page */
.service-show-row {
    align-items: flex-start;
}

.service-show-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 43, .08);
    border: 1px solid rgba(15, 23, 43, .06);
}

.service-show-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.service-show-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-show-hero-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172b, #1a2744);
    color: var(--primary);
    font-size: 4rem;
}

.service-show-icon {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(254, 161, 22, .35);
    border: 4px solid #fff;
}

.service-show-body {
    padding: 3.5rem 2rem 2rem;
}

.service-show-lead {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef2f7;
}

.service-show-content p {
    color: #334155;
    line-height: 1.95;
    margin-bottom: 1rem;
}

.service-show-features {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

.service-show-features h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-show-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}

.service-show-features li {
    display: flex;
    align-items: center;
    padding: .85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    color: #334155;
    font-weight: 600;
}

.service-show-sidebar {
    top: 100px;
}

.service-show-cta {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2744 100%);
    border-radius: 18px;
    padding: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 43, .15);
}

.service-show-cta h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: .75rem;
}

.service-show-cta p {
    opacity: .88;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.service-show-related {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    padding: 1.25rem;
}

.service-show-related h6 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-show-related-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem .25rem;
    text-decoration: none;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: color .2s ease;
}

.service-show-related-link:last-child {
    border-bottom: 0;
}

.service-show-related-link:hover {
    color: var(--primary);
}

.service-show-related-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(254, 161, 22, .12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-show-related-link span:nth-child(2) {
    flex: 1;
    font-weight: 600;
}

.service-show-related-link .fa-arrow-left {
    font-size: .8rem;
    opacity: .55;
}

@media (max-width: 991.98px) {
    .service-show-sidebar {
        position: static !important;
    }

    .service-show-hero {
        height: 240px;
    }

    .service-show-body {
        padding: 3rem 1.25rem 1.5rem;
    }
}

/* Service request form */
.service-request-alert {
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-request-info-card {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2744 100%);
    border-radius: 18px;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.service-request-info-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    opacity: .92;
}

.service-request-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(254, 161, 22, .18);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: .85rem;
}

.service-request-info-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: .65rem;
}

.service-request-info-card p {
    margin: 0;
    opacity: .88;
    line-height: 1.85;
}

.service-request-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    overflow: hidden;
}

.service-request-steps li {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-weight: 600;
}

.service-request-steps li:last-child {
    border-bottom: 0;
}

.service-request-steps span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(254, 161, 22, .15);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.service-request-form-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 43, .06);
    overflow: hidden;
}

.service-request-form-head {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.service-request-form-head h3 {
    margin: 0 0 .35rem;
    color: var(--dark);
    font-weight: 800;
}

.service-request-form-head p {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
}

.service-request-form {
    padding: 1.5rem 1.75rem 1.75rem;
}

.service-request-section + .service-request-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

.service-request-section h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.service-request-section .form-label {
    font-weight: 600;
    color: #475569;
    font-size: .88rem;
}

.service-request-section .form-control,
.service-request-section .form-select {
    border-radius: 10px;
    border-color: #dbe3ee;
    padding: .7rem .9rem;
}

.service-request-section .form-control:focus,
.service-request-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 161, 22, .12);
}

.service-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 991.98px) {
    .service-request-form,
    .service-request-form-head {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* FAQ section */
.faq-accordion .faq-item {
    border: none;
    border-radius: 10px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    background: #fff;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--dark);
    background: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: none;
    gap: 1rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(254, 161, 22, .08);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

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

.faq-accordion .faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-accordion .accordion-button:not(.collapsed) .faq-number {
    background: var(--dark);
}

.faq-accordion .accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.8;
    border-top: 1px solid rgba(0, 0, 0, .05);
}

html[dir="rtl"] .faq-accordion .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

/* Projects section */
.projects-section {
    position: relative;
    overflow: hidden;
}

.projects-section > .container-xxl {
    position: relative;
    z-index: 1;
}

.project-card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.project-card-inner {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 43, .08);
    border: 1px solid rgba(15, 23, 43, .04);
    display: flex;
    flex-direction: column;
    transition: box-shadow .35s ease, transform .35s ease;
}

.project-card:hover .project-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(254, 161, 22, .18);
}

.project-card-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.project-card-media img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    transition: transform .5s ease;
}

.project-card:hover .project-card-media img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .4rem .85rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(254, 161, 22, .35);
}

.project-card-body {
    padding: 1.25rem .5rem .5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.project-card-title {
    margin: 0;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.project-rating {
    flex-shrink: 0;
    white-space: nowrap;
}

.project-rating i {
    color: var(--primary);
    font-size: .8rem;
}

.project-category {
    display: inline-block;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .85rem;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(254, 161, 22, .1);
    color: var(--dark);
    font-size: .78rem;
    padding: .35rem .7rem;
    border-radius: 50px;
}

.project-tag--tech {
    padding: .42rem .55rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 43, .05);
}

.project-tag i {
    color: var(--primary);
    font-size: .7rem;
}

.project-tag .tech-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.project-tag .tech-icon-fallback {
    font-size: .74rem;
    font-weight: 600;
    color: var(--dark);
}

.project-card-text {
    color: #666;
    line-height: 1.75;
    margin-bottom: 1rem;
    flex: 1;
}

.project-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: auto;
}

html[dir="rtl"] .project-badge {
    right: auto;
    left: 14px;
}

@media (max-width: 767.98px) {
    .project-card-media img {
        height: 200px;
    }

    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Home promos — glass toast */
.job-promo-glass,
.promo-glass {
    position: fixed;
    bottom: 24px;
    z-index: 1060;
    width: min(390px, calc(100vw - 32px));
    padding: 1.1rem 1.15rem .85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 18px 45px rgba(15, 23, 43, .16),
        inset 0 1px 0 rgba(255, 255, 255, .75);
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, visibility .45s ease;
}

.job-promo-glass {
    inset-inline-start: 24px;
}

.service-promo-glass {
    inset-inline-start: auto;
    inset-inline-end: 24px;
}

.job-promo-glass.is-visible,
.promo-glass.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.job-promo-glass.is-hiding,
.job-promo-glass.is-hidden,
.promo-glass.is-hiding,
.promo-glass.is-hidden {
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
}

.job-promo-close,
.promo-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 43, .06);
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}

.job-promo-close:hover,
.promo-close:hover {
    background: rgba(254, 161, 22, .15);
    color: var(--primary);
}

.job-promo-header,
.promo-header {
    padding-inline-end: 2rem;
    margin-bottom: .85rem;
}

.promo-header {
    margin-bottom: .65rem;
}

.job-promo-badge,
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: rgba(254, 161, 22, .14);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.job-promo-title {
    color: #1a2332;
    font-weight: 700;
}

.promo-title {
    color: #1a2332;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
}

.promo-text {
    color: #667085;
    font-size: .84rem;
    line-height: 1.7;
}

.promo-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .15rem;
}

.promo-link {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
}

.promo-link:hover {
    color: var(--primary);
}

.promo-progress,
.job-promo-progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    background: rgba(15, 23, 43, .06);
}

.job-promo-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    max-height: 220px;
    overflow: auto;
    padding-inline-end: .15rem;
}

.job-promo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(15, 23, 43, .06);
}

.job-promo-item-title {
    font-size: .92rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: .2rem;
}

.job-promo-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    font-size: .74rem;
    color: #667085;
}

.job-promo-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.job-promo-item-meta i {
    color: var(--primary);
    font-size: .7rem;
}

.job-promo-item-actions {
    flex-shrink: 0;
}

.job-promo-footer {
    margin-top: .75rem;
    text-align: center;
}

.job-promo-link {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
}

.job-promo-link:hover {
    color: var(--primary);
}

.promo-progress-bar,
.job-promo-progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), #ffb347);
    transition-property: width;
    transition-timing-function: linear;
}

@media (max-width: 575.98px) {
    .job-promo-glass,
    .service-promo-glass {
        inset-inline: 16px;
        width: auto;
        bottom: 16px;
    }

    .job-promo-item {
        flex-direction: column;
        align-items: stretch;
    }

    .job-promo-item-actions {
        text-align: end;
    }

    .promo-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .promo-actions .btn {
        width: 100%;
    }
}

