:root {
    --primary-color: #5500b6;
    --secondary-color: #ffd700;
    --dark-purple: #3d1c6e;
    --text-color: #333;
    --section-bg-color: #f8f9fa;
    --white-color: #fff;
}

body {
    font-family: "Almarai", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
}

.btn {
    font-size: 1rem;
    font-weight: 500;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

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

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    padding: 0.5rem 0;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    width: 280px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
    width: 100%;
    display: block;
}

.dropdown-item p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6c757d;
    width: 100%;
}

.dropdown-item h6 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.dropdown-item:hover {
    background-color: rgba(85, 0, 182, 0.05);
}

.language-dropdown {
    width: auto;
}

.dropdown-divider {
    margin: 0.25rem 0;
    opacity: 0.1;
}

#systems-dropdown {
    max-width: 600px;
    width: 600px;
    padding: 1rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    left: 50%;
    transform: translateX(-50%);
}

#systems-dropdown .dropdown-item p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    height: 2.8em;
}

/* Medium screens */
@media (max-width: 991.98px) and (min-width: 768px) {
    #systems-dropdown {
        width: 90vw;
        max-width: 720px;
        padding: 1rem;
    }
}

/* Mobile screens */
@media (max-width: 767.98px) {
    #systems-dropdown {
        width: 100%;
        max-width: none;
        left: 0;
        transform: none;
        padding: 0.5rem;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: #f8f9fa;
        max-height: 70vh;
        overflow-y: auto;
    }

    #systems-dropdown .row {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    #systems-dropdown .col-6 {
        width: 100%;
        padding: 0;
    }

    #systems-dropdown .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    #systems-dropdown .dropdown-item {
        padding: 0.75rem 1rem;
        margin-bottom: 0.25rem;
    }

    #systems-dropdown .dropdown-item p {
        font-size: 0.8rem;
        line-height: 1.5;
        height: 3em;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    #systems-dropdown {
        max-height: 60vh;
    }

    #systems-dropdown .dropdown-item p {
        font-size: 0.75rem;
        line-height: 1.4;
        height: 2.8em;
    }
}

#systems-dropdown .dropdown-header {
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

#systems-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--text-color);
    display: block;
}

#systems-dropdown .dropdown-item .fw-medium {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

#systems-dropdown .dropdown-item p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6c757d;
    height: 2.8em;
    white-space: normal;
}

#systems-dropdown .dropdown-item:hover {
    background-color: rgba(206, 165, 14, 0.05);
}

.order-btn {
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease;
}

.order-btn:hover {
    background-color: var(--dark-purple);
    color: white;
}

/* Hero Section */
.hero-section {
    background-color: var(--dark-purple);
    margin-top: 76px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section img {
    margin-bottom: 2rem;
}

.brain-icon {
    margin-bottom: 2rem;
    font-size: 50px;
    color: var(--secondary-color);
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section h1 span {
    color: var(--secondary-color);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.get-started-btn {
    background-color: var(--secondary-color);
    color: var(--dark-purple);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.get-started-btn:hover {
    background-color: #fff;
    color: var(--dark-purple);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.about-section h2 {
    color: var(--dark-purple);
    font-weight: 700;
}

.about-section p {
    color: #6c757d;
}

.about-section h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.about-section img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}

.features-grid {
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.feature-card h4 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: #fff;
}

.services-section h2 {
    color: var(--dark-purple);
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-section p {
    color: #6c757d;
}

.services-section .feature-card {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--dark-purple) 100%
    );
    border: none;
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 330px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 30px rgba(85, 0, 182, 0.15);
}

.services-section .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(85, 0, 182, 0.25),
        0 0 30px rgba(85, 0, 182, 0.2);
}

.services-section .feature-card:hover:after {
    opacity: 1;
}

.services-section .feature-card .feature-icon {
    background: #ffffff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.services-section .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(85, 0, 182, 0.2);
    background: var(--secondary-color);
}

.services-section .feature-card .feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.5s ease;
}

.services-section .feature-card:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--dark-purple);
}

.services-section .feature-card h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    transform: translateY(0);
}

.services-section .feature-card:hover h4 {
    transform: translateY(-3px);
}

.services-section .feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    transform: translateY(0);
}

.services-section .feature-card:hover p {
    transform: translateY(-3px);
}

.services-section .feature-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.services-section .feature-card:hover .card-overlay {
    transform: translateY(-3px);
}

.explore-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
    transition: all 0.5s ease;
}

.explore-text:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #ffffff;
    transition: all 0.5s ease;
}

.services-section .feature-card:hover .explore-text:after {
    width: 80px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background-color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services-section .feature-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        min-height: auto;
    }

    .services-section .feature-card .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .services-section .feature-card .feature-icon i {
        font-size: 1.25rem;
    }

    .services-section .feature-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .services-section .feature-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .hero-section {
        padding: 6rem 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .about-section {
        padding: 4rem 0;
    }

    .features-grid {
        margin-top: 2rem;
    }

    .services-section .feature-card {
        margin-bottom: 1rem;
    }

    .services-section {
        padding: 4rem 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Latest Insights Section */
.insights-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.insights-section h2 {
    color: var(--dark-purple);
    font-weight: 700;
    margin-bottom: 1rem;
}

.insight-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
}

.insight-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

[dir="rtl"] .insight-tag {
    left: auto;
    right: 1rem;
}

.insight-content {
    padding: 1.5rem;
}

.insight-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.insight-date i {
    margin-right: 0.5rem;
}

.insight-content h3 {
    color: var(--dark-purple);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.insight-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.insights-section .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--dark-purple);
}

.explore-more {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.explore-content {
    color: white;
}

.explore-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.explore-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.explore-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .insights-section {
        padding: 4rem 0;
    }

    .insight-card {
        margin-bottom: 2rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: #fff;
}

.contact-section h2 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section .mb-5 {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    padding-right: 3rem;
}

.contact-item {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 1rem;
}

.contact-item h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: none;
}

.form-control {
    border: 1px solid #e0e0e0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #999;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
}

.contact-form .btn i {
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .contact-info {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .contact-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-section .mb-5 {
        font-size: 1rem;
    }
}

/* Footer Styles */
.footer {
    background-color: #0f1729;
    color: #fff;
    padding-top: 3rem;
}

.footer-brand .footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand img {
    height: 40px;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: #fff;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

.footer h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: #a0a9bc;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    color: #a0a9bc;
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #a0a9bc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer {
        padding-top: 3rem;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 3rem;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
        gap: 1.5rem;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    background-color: #128c67;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Services Page Styles */
.services-hero {
    background-color: var(--primary-color);
    margin-top: 76px;
    padding: 60px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 22, 80, 0.95) 0%,
        rgba(111, 66, 193, 0.85) 100%
    );
    z-index: 1;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.services-content {
    padding: 80px 0;
}

/* Services Featured Image styles */
.services-featured-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.services-featured-image img {
    width: 100%;
    aspect-ratio: 16/6;
    object-fit: cover;
}

.services-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-description .lead {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 300px;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 22, 80, 0.95), transparent);
    padding: 2rem;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

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

.gallery-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.gallery-overlay p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    color: #fff;
}

.available-services-cta .btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 2rem;
}

.available-services-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    .gallery-item {
        height: 250px;
    }

    .gallery-overlay {
        padding: 1.5rem;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem;
    }

    .gallery-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-item {
        height: 200px;
    }

    .gallery-overlay {
        padding: 1.25rem;
    }
}

/* System Page Styles */
.system-hero {
    background: linear-gradient(rgba(45, 22, 80, 0.9), rgba(45, 22, 80, 0.9)),
        url("assets/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    margin-top: 76px;
    padding: 80px 0 80px;
    color: #fff;
}

.system-hero h1 {
    margin-bottom: 1.5rem;
}

.system-content {
    padding: 70px 0;
}

.system-description h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #555;
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

[dir="rtl"] .feature-list i {
    margin-right: 0;
    margin-left: 1rem;
}

.system-video {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d1650;
}

.video-placeholder i {
    font-size: 4rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-placeholder i:hover {
    transform: scale(1.1);
}

.system-main-image {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.system-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.75rem;
    color: #2d1650;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: #6c757d;
    margin: 0;
}

.demo-access .card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.demo-item {
    margin-bottom: 1.5rem;
}

.demo-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.demo-item p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.demo-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.demo-item span {
    color: #6c757d;
}

.mobile-apps .btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.mobile-apps .btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .system-hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .system-content {
        padding: 60px 0;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .demo-item {
        text-align: center;
    }
}

/* Technologies section style */
.technologies-section {
    padding: 80px 0;
    background-color: var(--section-bg-color);
}

.technologies-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.technologies-tag {
    background: #f8f9fa;
    color: #2d1650;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.technologies-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.screenshot-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.15);
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshots-section .btn {
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--primary-color);
    color: #fff;
}

.screenshots-section .screenshot-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.screenshots-section .btn:hover {
    background-color: var(--dark-purple);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.15);
}

@media (max-width: 768px) {
    .screenshots-section {
        padding: 60px 0;
    }

    .screenshot-card {
        margin-bottom: 1rem;
    }

    /* .screenshot-card img {
        height: 250px;
    } */
}

/* Projects Page Styles */
.projects-hero {
    background-color: var(--primary-color);
    margin-top: 76px;
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.projects-hero h1 {
    margin-bottom: 1rem;
}

.projects-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.15);
}

.projects-grid .project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.projects-grid .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #2d1650;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.project-content p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #2d1650;
}

.project-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--primary-color);
}

/* RTL Support for Projects Page */
[dir="rtl"] .project-card {
    text-align: right;
}

[dir="rtl"] .project-category {
    left: auto;
    right: 20px;
}

[dir="rtl"] .project-details {
    text-align: right;
}

[dir="rtl"] .project-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .project-meta i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .project-tags .tag {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .project-link i {
    transform: scaleX(-1);
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .project-card .project-link {
    text-align: right;
}

[dir="rtl"] .project-card .project-link i {
    transform: scaleX(-1);
    margin-left: 0;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    /* .projects-hero {
        padding: 100px 0 40px;
    } */

    .projects-grid .project-image {
        height: 200px;
    }

    .projects-grid .project-content {
        padding: 1.25rem;
    }
}

/* Project Detail Page Styles */
.post-hero {
    background-color: var(--primary-color);
    padding: 180px 0 100px;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.post-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    line-height: 1.2;
}

.post-hero .post-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.post-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.post-detail-content {
    padding: 4rem 0;
}

.featured-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-body .lead {
    font-size: 1.25rem;
    color: #2d1650;
    font-weight: 500;
    margin-bottom: 2rem;
}

.post-tags {
    margin: 3rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.share-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 3rem;
}

.share-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d1650;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy-link {
    background: #6c757d;
}

.related-posts {
    background: #f8f9fa;
    padding: 4rem 0;
}

.related-posts h2 {
    color: #2d1650;
    margin-bottom: 2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .post-hero {
        padding: 140px 0 60px;
    }

    .post-hero h1 {
        font-size: 2.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .post-detail-content {
        padding: 2rem 0;
    }

    .post-body {
        font-size: 1rem;
    }
}

/* Technologies Used Section */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-tag {
    background: #f8f9fa;
    color: #2d1650;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Project Gallery */
.project-image {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.project-image img {
    width: 100%;
    /* aspect-ratio: 1; */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: translateY(-5px);
}

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

/* Modal Styles */
.modal-xl {
    max-width: 90vw;
}

.modal-content {
    background-color: transparent;
}

.modal-body img {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    transition: transform 0.2s ease;
}

.modal-close-btn:hover {
    transform: scale(1.1);
}

.modal-close-btn i {
    font-size: 20px;
    color: #333;
}

/* @media (max-width: 991.98px) {
    .project-image img {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .project-image img {
        height: 200px;
    }
} */

/* Order Form Styles */
.order-form-section {
    padding: 120px 0 80px;
    background-color: #f8f9fa;
}

.order-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.order-form-card h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-floating {
    margin-bottom: 0.5rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 1rem;
    height: calc(3.5rem + 2px);
}

.form-floating > textarea.form-control {
    height: 150px;
    resize: none;
}

.form-floating > label {
    padding: 1rem;
}

.form-check-label {
    font-size: 0.9rem;
}

.invalid-feedback {
    font-size: 0.85rem;
}

.submit-order-btn {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* RTL Support for Order Form */
[dir="rtl"] .order-form-card .form-floating > label {
    right: 0;
    left: auto;
    transform-origin: right top;
}

[dir="rtl"] .form-check-input {
    float: right;
    margin-left: 1rem;
    margin-right: -1.5rem;
}

[dir="rtl"] .invalid-feedback {
    text-align: right;
}

[dir="rtl"] .btn i {
    transform: scaleX(-1);
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="rtl"] .form-floating > .form-control {
    text-align: right;
}

[dir="rtl"] .form-select {
    background-position: left 0.75rem center;
    padding-right: 0.75rem;
    padding-left: 2.25rem;
}

/* Responsive Order Form */
@media (max-width: 767.98px) {
    .order-form-card {
        padding: 20px;
    }

    .order-form-section {
        padding: 100px 0 60px;
    }
}

/* Thank You Page Styles */
.thank-you-section {
    display: flex;
    align-items: center;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.thank-you-card {
    background: #fff;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.check-icon {
    width: 100px;
    height: 100px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.5s ease-out;
}

.check-icon i {
    color: #fff;
    font-size: 3rem;
}

.thank-you-card h1 {
    color: #2d1650;
    font-weight: 700;
    font-size: 2.5rem;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.thank-you-card p {
    color: #6c757d;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.thank-you-card .btn {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out 0.9s both;
}

.thank-you-card .btn:hover {
    background: #2d1650;
    transform: translateY(-2px);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .thank-you-card {
        padding: 2rem;
        margin: 1rem;
    }

    .thank-you-card h1 {
        font-size: 2rem;
    }

    .check-icon {
        width: 80px;
        height: 80px;
    }

    .check-icon i {
        font-size: 2.5rem;
    }
}

/* Posts Page Styles */
.posts-hero {
    background-color: var(--primary-color);
    margin-top: 76px;
    padding: 60px 0;
    color: #fff;
}

.posts-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.posts-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1;
}

.post-content {
    padding: 1.5rem;
}

.post-date {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.post-content h3 {
    color: #2d1650;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2d1650;
}

@media (max-width: 768px) {
    .posts-hero {
        padding: 80px 0 60px;
    }

    .posts-hero h1 {
        font-size: 2.5rem;
    }

    .post-image img {
        height: 200px;
    }
}

/* Post Details Page Styles */
.post-details-hero {
    /* background-image: url('https://images.unsplash.com/photo-1485827404703-89b55fcc595e'); */
    margin-top: 76px;
    background-color: var(--primary-color);
    padding: 80px 0 80px;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.post-details-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    line-height: 1.2;
}

.post-details-hero .post-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.post-details-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.post-details-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.post-detail-content {
    padding: 4rem 0;
}

.featured-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-details-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-details-body .lead {
    font-size: 1.25rem;
    color: #2d1650;
    font-weight: 500;
    margin-bottom: 2rem;
}

.post-details-tags {
    margin: 3rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.share-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 3rem;
}

.share-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d1650;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy-link {
    background: #6c757d;
}

.related-details-posts {
    background: #f8f9fa;
    padding: 4rem 0;
}

.related-posts-details h2 {
    color: #2d1650;
    margin-bottom: 2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .post-details-hero {
        padding: 140px 0 60px;
    }

    .post-details-hero h1 {
        font-size: 2.5rem;
    }

    .post-details-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .post-detail-content {
        padding: 2rem 0;
    }

    .post-details-body {
        font-size: 1rem;
    }
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
    padding-left: 2rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: #2d1650;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.sidebar-post-details {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.sidebar-post-details:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-details .post-details-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.sidebar-post-details .post-details-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.sidebar-post-details .post-details-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.sidebar-post-details .post-details-content {
    padding: 0;
}

.sidebar-post-details .post-details-date {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.sidebar-post-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #2d1650;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-post-details .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.sidebar-post-details .read-more:hover {
    color: #2d1650;
}

@media (max-width: 991px) {
    .sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
}

/* Project Details Page */
.project-hero {
    /* min-height: 60vh; */
    /* background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8') center/cover; */
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.project-hero .badge {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.project-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(15, 23, 41, 0.9),
        rgba(15, 23, 41, 0.7)
    );
}

.project-hero .container {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.project-about {
    padding: 2rem 0;
}

.project-about p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.project-about .project-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.stat-item {
    padding: 2rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.result-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card .display-4 {
    font-size: 3rem;
    font-weight: 600;
}

.result-card p {
    color: #6c757d;
    font-size: 1rem;
}

.project-cta .btn {
    background: var(--primary-color);
    color: #fff;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.project-cta .btn:hover {
    background: var(--dark-purple);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    /* .project-hero {
        min-height: 50vh;
    } */

    .project-hero .container {
        padding: 3rem 0;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .result-card {
        margin-bottom: 1rem;
    }

    .result-card .display-4 {
        font-size: 2.5rem;
    }
}

.tech-badge {
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .tech-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .gallery-item img {
        height: 250px;
    }
}

/* Responsive styles for services dropdown */
@media (max-width: 991.98px) {
    .dropdown-menu {
        max-width: none;
        width: 100vw;
        border-radius: 0;
        box-shadow: none;
        background-color: #f8f9fa;
        padding: 0.5rem;
        margin: 0;
        position: fixed;
        left: 0;
        right: 0;
    }

    .dropdown-item {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dropdown-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Gallery Item Styles */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 300px;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 22, 80, 0.95), transparent);
    padding: 2rem;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

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

.gallery-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.gallery-overlay p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    color: #fff;
}

@media (max-width: 991.98px) {
    .gallery-item {
        height: 250px;
    }

    .gallery-overlay {
        padding: 1.5rem;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem;
    }

    .gallery-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-item {
        height: 200px;
    }

    .gallery-overlay {
        padding: 1.25rem;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

/* Navigation RTL */
[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

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

[dir="rtl"] .dropdown-item {
    text-align: right;
}

/* Margins and Paddings RTL */
[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .me-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

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

[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .ms-1 {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}

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

[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

/* Border RTL */
[dir="rtl"] .border-end {
    border-right: none !important;
    border-left: 1px solid #dee2e6 !important;
}

[dir="rtl"] .border-start {
    border-left: none !important;
    border-right: 1px solid #dee2e6 !important;
}

/* Icons and Arrows RTL */
[dir="rtl"] .fa-arrow-right,
[dir="rtl"] .project-link i {
    transform: scaleX(-1);
}

/* Projects Page RTL */
[dir="rtl"] .project-card {
    text-align: right;
}

[dir="rtl"] .project-category {
    left: auto;
    right: 20px;
}

[dir="rtl"] .project-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .project-meta i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .project-tags {
    padding-right: 0;
}

[dir="rtl"] .project-tags .tag {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .project-link i {
    transform: scaleX(-1);
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Blogs Page RTL */
[dir="rtl"] .post-card {
    text-align: right;
}

[dir="rtl"] .post-category {
    left: auto;
    right: 20px;
}

[dir="rtl"] .post-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .post-meta i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .post-tags {
    padding-right: 0;
}

[dir="rtl"] .post-tags .tag {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .post-link i {
    transform: scaleX(-1);
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Float Elements RTL */
[dir="rtl"] .float-end {
    float: left !important;
}

[dir="rtl"] .float-start {
    float: right !important;
}

/* Text Alignment RTL */
[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

/* List Styles RTL */
[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-right: 0;
}

/* WhatsApp Float RTL */
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* RTL Dropdown Menu Fixes */
[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
}

[dir="rtl"] .col-6.border-end {
    border-right: none !important;
    border-left: 1px solid #dee2e6 !important;
}

/* RTL Margin Utilities */
[dir="rtl"] .me-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

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

[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

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

[dir="rtl"] .pe-3 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

[dir="rtl"] .ps-3 {
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

/* Responsive styles for services dropdown */
@media (max-width: 991.98px) {
    .dropdown-menu {
        max-width: none;
        width: 100vw;
        border-radius: 0;
        box-shadow: none;
        background-color: #f8f9fa;
        padding: 0.5rem;
        margin: 0;
        position: fixed;
        left: 0;
        right: 0;
    }

    .dropdown-item {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dropdown-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Gallery Item Styles */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 300px;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 22, 80, 0.95), transparent);
    padding: 2rem;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

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

.gallery-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.gallery-overlay p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    color: #fff;
}

@media (max-width: 991.98px) {
    .gallery-overlay {
        padding: 1.5rem;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem;
    }

    .gallery-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-overlay {
        padding: 1.25rem;
    }
}
