/* تنسيقات إضافية للمحتوى الديناميكي */

/* تنسيقات أزرار الفلترة */
.project-filter-wrapper {
    margin-bottom: 50px;
}

.project-filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 14px 28px;
    border: 2px solid #6B41FF;
    background: transparent;
    color: #6B41FF;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}


.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 65, 255, 0.3);
    border-color: #6B41FF;
}

.filter-btn.active {
    background: #6B41FF;
}

/* تنسيقات المشاريع Grid */
.project-grid.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -15px;
    margin-right: -15px;
}

.project-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    padding-left: 15px;
    padding-right: 15px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-studies-card-items {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.case-studies-card-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 65, 255, 0.05) 0%, rgba(107, 65, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.case-studies-card-items:hover::before {
    opacity: 1;
}

.case-studies-card-items:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(107, 65, 255, 0.2);
}

.case-studies-card-items .thumb {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.case-studies-card-items .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-studies-card-items:hover .thumb img {
    transform: scale(1.1);
}

.case-studies-card-items .thumb .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(107, 65, 255, 0.9) 0%, rgba(107, 65, 255, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.case-studies-card-items:hover .thumb .overlay {
    opacity: 1;
}

.case-studies-card-items .thumb .overlay .view-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B41FF;
    font-size: 24px;
    text-decoration: none;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.case-studies-card-items:hover .thumb .overlay .view-btn {
    transform: scale(1);
}

.case-studies-card-items .thumb .overlay .view-btn:hover {
    transform: scale(1.1);
    background: #6B41FF;
    color: white;
}

.case-studies-card-items .content .title .category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6B41FF 0%, #8B5CF6 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-studies-card-items .content {
    flex: 1;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    background: white;
}

.case-studies-card-items .content .title {
    flex: 1;
}

.case-studies-card-items .content .title h3 {
    margin-bottom: 0;
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.case-studies-card-items .content .title h3 {
    color: #1a1a1a !important;
}

.case-studies-card-items .content .title h3 a {
    color: #1a1a1a !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.case-studies-card-items .content .title h3 a:hover {
    color: #6B41FF !important;
}

.case-studies-card-items .content .title p {
    color: #666 !important;
    margin: 0;
    font-size: 14px;
    display: none;
}

.case-studies-card-items .content .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6B41FF 0%, #8B5CF6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(107, 65, 255, 0.3);
}

.case-studies-card-items .content .icon:hover {
    background: linear-gradient(135deg, #5a35e6 0%, #7c3aed 100%);
    transform: scale(1.15) rotate(45deg);
    box-shadow: 0 6px 20px rgba(107, 65, 255, 0.4);
}

/* تنسيقات الخدمات Grid */
#services-container.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    width: 100% !important;
}

#services-container > div {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 30px !important;
}

/* Large screens - 3 columns */
@media (min-width: 992px) {
    #services-container > div.col-lg-4,
    #services-container > div[class*="col-lg-4"] {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
        box-sizing: border-box !important;
    }
}

/* Medium screens - 2 columns */
@media (min-width: 768px) and (max-width: 991.98px) {
    #services-container > div.col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    #services-container > div.col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

/* Small screens - 1 column */
@media (max-width: 767.98px) {
    #services-container > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.service-single-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-single-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 65, 255, 0.03) 0%, rgba(107, 65, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-single-card:hover::before {
    opacity: 1;
}

.service-single-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(107, 65, 255, 0.2);
}

.service-single-card .icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-single-card:hover .icon {
    background: linear-gradient(135deg, #6B41FF 0%, #8B5CF6 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(107, 65, 255, 0.3);
}

.service-single-card .icon img {
    width: 50px;
    height: 50px;
    transition: all 0.4s ease;
}

.service-single-card:hover .icon img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.service-single-card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.service-single-card .content .text-content {
    flex: 1;
    margin-bottom: 25px;
}

.service-single-card .content h3 {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.service-single-card .content h3 {
    color: #1a1a1a !important;
}

.service-single-card .content h3 a {
    color: #1a1a1a !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.service-single-card:hover .content h3 a {
    color: #6B41FF !important;
}

.service-single-card .content p {
    color: #666 !important;
    margin: 0;
    line-height: 1.8;
    font-size: 15px;
}

.service-single-card .arrow-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B41FF;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-single-card:hover .arrow-btn {
    background: linear-gradient(135deg, #6B41FF 0%, #8B5CF6 100%);
    color: white;
    transform: scale(1.15) rotate(-45deg);
    box-shadow: 0 6px 20px rgba(107, 65, 255, 0.4);
}

/* تنسيقات متجاوبة */
@media (max-width: 991px) {
    .case-studies-card-items .thumb {
        height: 250px;
    }
    
    .case-studies-card-items .content {
        padding: 25px;
    }
    
    .service-single-card {
        padding: 35px 25px;
    }
    
    .service-single-card .icon {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
    }
    
    .service-single-card .icon img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .case-studies-card-items {
        flex-direction: column;
        height: auto;
    }
    
    .case-studies-card-items .thumb {
        flex: none;
        width: 100%;
        height: 220px;
    }
    
    .case-studies-card-items .content {
        padding: 25px 20px;
        flex-direction: row;
        text-align: right;
        gap: 15px;
    }
    
    .case-studies-card-items .content .icon {
        margin-right: 0;
        margin-left: 15px;
    }
    
    .service-single-card {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 30px 25px;
    }
    
    .service-single-card .icon {
        width: 85px;
        height: 85px;
        margin: 0 auto 25px;
    }
    
    .service-single-card .icon img {
        width: 40px;
        height: 40px;
    }
    
    .service-single-card .content {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-single-card .arrow-btn {
        margin: 0 auto;
    }
    
    .project-filter-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        width: auto;
        min-width: 140px;
        text-align: center;
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* تنسيقات عامة */
.tech-badge {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
    border: 1px solid #dee2e6;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    color: #28a745;
    margin-left: 10px;
}

/* تنسيقات خطوات العمل */
.process-step {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.step-number {
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 15px;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
}

/* تنسيقات ميزات الخدمة */
.service-feature-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-feature-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.service-feature-item .feature-icon {
    background: #007bff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.service-feature-item .feature-content h4 {
    margin-bottom: 10px;
    color: #333;
}

.service-feature-item .feature-content p {
    margin: 0;
    color: #666;
}

/* تنسيقات المشاريع ذات الصلة */
.related-project-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-project-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.related-project-card .project-thumb {
    position: relative;
    overflow: hidden;
}

.related-project-card .project-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.related-project-card .project-content {
    padding: 20px;
}

.related-project-card .project-content h5 {
    margin-bottom: 10px;
}

.related-project-card .project-content h5 a {
    color: #333;
    text-decoration: none;
}

.related-project-card .project-content h5 a:hover {
    color: #007bff;
}

.related-project-card .project-content p {
    color: #666;
    margin-bottom: 15px;
}

.related-project-card .read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.related-project-card .read-more:hover {
    text-decoration: underline;
}

/* تنسيقات الشريط الجانبي */
.service-info-widget,
.contact-widget,
.service-share-widget {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
}

.service-info-list {
    list-style: none;
    padding: 0;
}

.service-info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.service-info-list li:last-child {
    border-bottom: none;
}

.service-info-list .label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.service-info-list .value {
    color: #666;
}

.technologies {
    margin-top: 10px;
}

.contact-widget p {
    margin-bottom: 20px;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* تنسيقات متجاوبة */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 15px;
    }
    
    .service-feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-feature-item .feature-icon {
        margin: 0 auto 15px;
    }
    
    .share-buttons {
        justify-content: center;
    }
}