/*------------------------------------------------------------------
	61. additionell styles & updates
-------------------------------------------------------------------*/
.our-projects-section {
    padding: 80px 0 60px 0;
    background: none;
    position: relative;
    overflow: hidden;
}
.projects-bg-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 240, 250, 0.8) 100%);
}
.our-projects-section > .container, .our-projects-section .tittle-simple-one, .our-projects-section .project-categories-bar-wrapper, .our-projects-section .row.project-grid {
    position: relative;
    z-index: 1;
}
.projects-section-desc {
    color: #4a5a6a;
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Categories Pills Bar */
.project-categories-bar-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 32px;
}
.project-categories-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #2A5CAA #e9f0fa;
}
.project-categories-bar li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2A5CAA;
    border-radius: 30px;
    padding: 10px 22px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(42,92,170,0.07);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}
.project-categories-bar li .count {
    background: #e9f0fa;
    color: #2A5CAA;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-right: 4px;
    font-weight: 400;
}
.project-categories-bar li.active, .project-categories-bar li:hover {
    background: #2A5CAA;
    color: #fff;
    border-color: #2A5CAA;
}
.project-categories-bar li.active .count, .project-categories-bar li:hover .count {
    background: #fff;
    color: #2A5CAA;
}
.project-categories-bar li i {
    font-size: 1.1em;
    margin-left: 4px;
}
@media (max-width: 768px) {
    .project-categories-bar {
        gap: 8px;
        padding-bottom: 4px;
    }
    .project-categories-bar li {
        padding: 8px 16px;
        font-size: 0.97rem;
    }
}

/* Project Grid and Cards */
.project-grid {
    position: relative;
    min-height: 200px;
    z-index: 1;
    margin-top: 10px;
}
.project-item {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    will-change: transform, opacity;
    opacity: 1;
    animation: fadeInUp 0.7s;
    padding: 5px;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}
.project-card {
    position: relative;
    margin-bottom: 30px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(42,92,170,0.12);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: auto;
    min-height: 350px;
    transform-origin: center;
}
.project-card:hover {
    box-shadow: 0 20px 40px rgba(42,92,170,0.2);
    transform: translateY(-8px) scale(1.01);
}

/* Project Card Gradient Backgrounds */
.gradient-bg {
    position: relative;
    color: #fff;
    padding: 35px 30px;
    height: 100%;
    border-radius: 18px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #2A5CAA; /* Default fallback color */
}
.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 1;
    border-radius: 18px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 0 0 rgba(255, 255, 255, 0.15);
}
.project-card:hover .gradient-bg::before {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.2);
}

/* Individual Project Card Backgrounds */

.bg-1::before,
.bg-2::before,
.bg-3::before,
.bg-4::before,
.bg-5::before,
.bg-6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    border-radius: 18px;
}

.project-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.project-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.project-icon i {
    font-size: 28px;
    color: #fff;
    transition: all 0.4s ease;
}
.project-card:hover .project-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotateY(15deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-content {
    /* text-align: right; */
    color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-content h6 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}
.project-content h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s;
}
.project-card:hover .project-content h6::after {
    width: 70px;
}
.project-content p {
    margin-bottom: 20px;
    opacity: 0.92;
    line-height: 1.6;
    font-size: 1rem;
    display: block; /* Always visible */
}
.project-tags {
    display: none; /* Hide tags as requested */
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: auto;
}
.project-tags span {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}
.project-card:hover .project-tags span {
    background: rgba(255,255,255,0.25);
}
.btn-view-project {
    background: #fff;
    color: #2A5CAA;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
    margin-top: auto; /* Push button to bottom of container */
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-view-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: -1;
    transition: all 0.4s ease;
}
.btn-view-project i {
    transition: transform 0.4s ease;
}
.btn-view-project:hover, .btn-view-project:active, .btn-view-project:focus {
    transform: translateX(-5px);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn-view-project:hover::before {
    width: 100%;
}
.btn-view-project:hover i, .btn-view-project:active i, .btn-view-project:focus i {
    transform: translateX(-5px);
}

/* Dynamic Background Colors for Buttons */
.bg-1 .btn-view-project { color: #2764b3; }
.bg-2 .btn-view-project { color: #36a84d; }
.bg-3 .btn-view-project { color: #8932a8; }
.bg-4 .btn-view-project { color: #e58a17; }
.bg-5 .btn-view-project { color: #0098b7; }
.bg-6 .btn-view-project { color: #dd3333; }

@media (max-width: 992px) {
    .project-card {
        height: 350px;
    }
    .project-content h6 {
        font-size: 1.3rem;
    }
    .project-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .project-card {
        height: auto;
        min-height: 320px;
        margin-bottom: 45px; /* Increased bottom margin to prevent overlap */
    }
    .gradient-bg {
        padding: 25px 20px 30px; /* More padding at bottom for button */
    }
    .project-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        margin-right: auto;
        margin-left: auto;
    }
    .project-icon i {
        font-size: 24px;
    }
    .project-content {
        text-align: center;
    }
    .project-content h6 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        display: block;
        width: 100%;
    }
    .project-content h6::after {
        right: 50%;
        transform: translateX(50%);
    }
    .project-card:hover .project-content h6::after {
        width: 60px;
        right: 50%;
        transform: translateX(50%);
    }
    .project-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
        text-align: center;
    }
    .btn-view-project {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-right: auto;
        margin-left: auto;
        position: relative;
        bottom: 0;
    }
    .project-item {
        padding: 5px 5px 15px; /* Extra bottom padding on items */
    }
}
/*------------------------------------------------------------------
	61. additionell styles & updates
-------------------------------------------------------------------*/
.carousel-main-services {
    margin: 0 -15px;
    visibility: visible !important;
}

.carousel-cell {
    width: 100%;
    padding: 20px 15px;
    opacity: 1 !important;
}

.flickity-viewport {
    transition: height 0.3s;
}

.flickity-button {
    background: #fff;
    border: 2px solid #2A5CAA;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    opacity: 1 !important;
}

.flickity-button:hover {
    background: #2A5CAA;
}

.flickity-button:hover .flickity-button-icon {
    fill: #fff;
}

.flickity-button-icon {
    fill: #2A5CAA;
}

.flickity-prev-next-button.previous {
    right: 20px;
}

.flickity-prev-next-button.next {
    left: 20px;
}

.flickity-page-dots {
    display: none;
}
/*------------------------------------------------------------------
	61. additionell styles & updates
-------------------------------------------------------------------*/
.our-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f0fa 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(42, 92, 170, 0.1);
    border: 1px solid rgba(233, 240, 250, 0.7);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #2764b3, #3a7fd9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(42, 92, 170, 0.15);
    border-color: rgba(39, 100, 179, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #f0f7ff, #e9f0fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(42, 92, 170, 0.08);
    border: 2px solid rgba(233, 240, 250, 0.6);
}

.service-icon i {
    font-size: 35px;
    color: #2764b3;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(145deg, #2764b3, #1a4a8f);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(39, 100, 179, 0.2);
}

.service-card:hover .service-icon i {
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    color: #2A5CAA;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2A5CAA;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #1a3f7a;
}

.service-link:hover i {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 30px;
    }

    .service-card h4 {
        font-size: 1.2rem;
    }

    .project-categories-bar {
        gap: 8px;
        padding-bottom: 4px;
    }

    .project-categories-bar li {
        padding: 8px 16px;
        font-size: 0.97rem;
    }

    .project-card img {
        height: 180px;
    }

    section {
        padding: 60px 0;
    }
}

/* Statistics Section */
.statistics-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f0fa 100%);
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    border-top: 1px solid rgba(42, 92, 170, 0.05);
    border-bottom: 1px solid rgba(42, 92, 170, 0.05);
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(42, 92, 170, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.statistics-section .tittle-simple-one {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.statistics-section .tittle-simple-one h5 {
    font-weight: 700;
    color: #2A5CAA;
    position: relative;
    display: inline-block;
}

.statistics-section .tittle-simple-one h5:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2A5CAA, #3d8bdd);
    border-radius: 2px;
}

.statistics-wrapper {
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.statistics-item {
    display: flex;
    align-items: center;
    padding: 35px 25px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(42, 92, 170, 0.08);
    margin: 15px 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(233, 240, 250, 0.7);
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.statistics-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #2764b3, #3a7fd9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out;
}

.statistics-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(42, 92, 170, 0.15);
    border-color: rgba(42, 92, 170, 0.1);
}

.statistics-item:hover::before {
    transform: scaleX(1);
}

.statistics-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: rgba(42, 92, 170, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    transition: all 0.5s ease;
    border: 2px solid rgba(42, 92, 170, 0.05);
}

body.rtl .statistics-icon {
    margin-right: 0;
    margin-left: 25px;
}

.statistics-icon i {
    font-size: 32px;
    color: #2A5CAA;
    transition: all 0.5s ease;
}

.statistics-item:hover .statistics-icon {
    background: #2A5CAA;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(42, 92, 170, 0.25);
    transform: scale(1.1) rotateY(10deg);
}

.statistics-item:hover .statistics-icon i {
    color: #fff;
    transform: scale(1.2);
}

.statistics-content {
    text-align: left;
    flex: 1;
}

body.rtl .statistics-content {
    text-align: right;
}

.statistics-content h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2A5CAA;
    margin: 0;
    line-height: 1;
    display: inline-block;
    transition: all 0.5s ease;
}

.statistics-item:hover .statistics-content h3 {
    transform: scale(1.05);
    text-shadow: 0 5px 15px rgba(42, 92, 170, 0.2);
}

.stat-plus {
    font-size: 2rem;
    color: #2A5CAA;
    font-weight: 700;
    margin-left: 5px;
    position: relative;
    top: -10px;
    transition: all 0.5s ease;
}

body.rtl .stat-plus {
    margin-left: 0;
    margin-right: 5px;
}

.statistics-content p {
    margin: 10px 0 0 0;
    color: #4a5a6a;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.statistics-item:hover .statistics-content p {
    color: #2A5CAA;
}

@media (max-width: 1199px) {
    .statistics-section {
        padding: 60px 0;
    }
    
    .statistics-item {
        padding: 30px 20px;
    }
    
    .statistics-content h3 {
        font-size: 3rem;
    }
    
    .stat-plus {
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {
    .statistics-section {
        padding: 50px 0;
    }
    
    .statistics-item {
        padding: 25px 15px;
        min-height: 140px;
        margin: 10px 5px;
    }
    
    .statistics-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        margin-right: 20px;
    }
    
    body.rtl .statistics-icon {
        margin-right: 0;
        margin-left: 20px;
    }
    
    .statistics-icon i {
        font-size: 28px;
    }
    
    .statistics-content h3 {
        font-size: 2.8rem;
    }
    
    .stat-plus {
        font-size: 1.6rem;
        top: -8px;
    }
    
    .statistics-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .statistics-section {
        padding: 40px 0;
    }
    
    .statistics-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .statistics-icon {
        margin: 0 auto 15px;
    }
    
    body.rtl .statistics-icon {
        margin: 0 auto 15px;
    }
    
    .statistics-content {
        text-align: center !important;
    }
    
    .statistics-content h3 {
        font-size: 2.5rem;
        display: inline-block;
    }
    
    .statistics-content p {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .statistics-section {
        padding: 30px 0;
    }
    
    .statistics-wrapper .row {
        margin: 0 -5px;
    }
    
    .statistics-wrapper .col-md-4 {
        padding: 0 5px;
    }
    
    .statistics-item {
        padding: 20px 10px;
        margin: 10px 0;
        min-height: auto;
    }
    
    .statistics-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .statistics-icon i {
        font-size: 24px;
    }
    
    .statistics-content h3 {
        font-size: 2.2rem;
    }
    
    .stat-plus {
        font-size: 1.4rem;
        top: -5px;
    }
    
    .statistics-content p {
        font-size: 1rem;
        margin-top: 5px;
    }
}
/*------------------------------------------------------------------
	61. additionell styles & updates
-------------------------------------------------------------------*/
.carousel-main-services {
    margin: 0 -15px;
    visibility: visible !important;
}

.carousel-cell {
    width: 100%;
    padding: 20px 15px;
    opacity: 1 !important;
}

.flickity-viewport {
    transition: height 0.3s;
}

.flickity-button {
    background: #fff;
    border: 2px solid #2A5CAA;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    opacity: 1 !important;
}

.flickity-button:hover {
    background: #2A5CAA;
}

.flickity-button:hover .flickity-button-icon {
    fill: #fff;
}

.flickity-button-icon {
    fill: #2A5CAA;
}

.flickity-prev-next-button.previous {
    right: 20px;
}

.flickity-prev-next-button.next {
    left: 20px;
}

.flickity-page-dots {
    display: none;
}
/*------------------------------------------------------------------
	61. additionell styles & updates
-------------------------------------------------------------------*/
.our-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f0fa 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(42, 92, 170, 0.1);
    border: 1px solid rgba(233, 240, 250, 0.7);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #2764b3, #3a7fd9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(42, 92, 170, 0.15);
    border-color: rgba(39, 100, 179, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #f0f7ff, #e9f0fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(42, 92, 170, 0.08);
    border: 2px solid rgba(233, 240, 250, 0.6);
}

.service-icon i {
    font-size: 35px;
    color: #2764b3;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(145deg, #2764b3, #1a4a8f);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(39, 100, 179, 0.2);
}

.service-card:hover .service-icon i {
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    color: #2A5CAA;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2A5CAA;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #1a3f7a;
}

.service-link:hover i {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 30px;
    }

    .service-card h4 {
        font-size: 1.2rem;
    }

    .project-categories-bar {
        gap: 8px;
        padding-bottom: 4px;
    }

    .project-categories-bar li {
        padding: 8px 16px;
        font-size: 0.97rem;
    }

    .project-card img {
        height: 180px;
    }

    section {
        padding: 60px 0;
    }
}

/* Language Switcher Styles */
.language-switcher-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
    position: relative;
    z-index: 100;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.language-btn img {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #fff;
}

.language-btn.active {
    background: #2A5CAA;
    color: white;
    border-color: #2A5CAA;
    pointer-events: none; /* Disable click on active language */
}

/* RTL/LTR Global Styles */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Alexandria', sans-serif;
}

body.ltr {
    direction: ltr;
    text-align: left;
    font-family: 'Alexandria', sans-serif;
}

/* RTL Specific Styles */
body.rtl .fa-arrow-left {
    transform: scaleX(-1);
}

body.rtl .mr-auto {
    margin-left: auto !important;
    margin-right: initial !important;
}

body.rtl .ml-auto {
    margin-right: auto !important;
    margin-left: initial !important;
}

body.rtl .text-left {
    text-align: right !important;
}

body.rtl .text-right {
    text-align: left !important;
}

/* Smooth transition for RTL/LTR switching */
body, .container, .row, .col, .service-card, .project-card {
    transition: all 0.3s ease-in-out;
}

/* Fix for flickity direction issues */
body.rtl .flickity-viewport {
    direction: ltr; /* Keep slider direction consistent */
}

/* Fix for RTL search field */
body.rtl .search-header-block form input {
    padding-right: 20px;
    padding-left: 60px;
}

/* Make sure RTL dropdown menus align correctly */
body.rtl .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

/* Ensure accordion arrows point the right direction */
body.rtl .accordion-button::after {
    margin-left: 0;
    margin-right: auto;
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .language-switcher-container {
        margin: 10px 0;
        justify-content: center;
    }
}