.contact-btn {
    /*background: #D97706 !important;*/
    color: white !important;
    border: none;
    padding: 12px 24px !important;
    margin: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #F9FAFB;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1F2937;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #6B7280;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    /* background: #ffffff; */
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card.green {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.service-card.blue {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
}

.service-card.gray {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: white;
}

.service-card.orange {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.service-card.white {
    background: #ffffff;
    border: 1px solid #E5E7EB;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.3;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.white .service-icon {
    background: #F3F4F6;
}

.service-img {
    width: 80px;
    height: 80px;
    justify-content: center; /* center horizontally */
    align-items: center;
}

.service-btn {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card.white .service-btn {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.service-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Case Studies Section */
.case-studies {
    padding: 80px 0;
    background: #ffffff;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.case-study {
    padding: 24px;
    border-left: 4px solid #D97706;
    background: #F9FAFB;
    border-radius: 8px;
}

.case-study h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 12px;
}

.case-study p {
    color: #6B7280;
    line-height: 1.6;
}

/* Working Process Section */
.working-process {
    padding: 80px 0;
    background: #F9FAFB;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.process-step.expanded {
    background: #D97706;
    color: white;
}

.step-header {
    display: flex;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.step-header:hover {
    background: rgba(0, 0, 0, 0.05);
}

.process-step.expanded .step-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.step-number {
    background: #F3F4F6;
    color: #6B7280;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 16px;
}

.process-step.expanded .step-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.step-toggle {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    color: inherit;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.step-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.step-content {
    padding: 0 24px 24px 80px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.thumbnail {
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;     /* center vertically */
    min-height: 300px;       /* container height (example, adjust as needed) */
}
.thumbnail img {
    padding: 10px;
    border-radius: 15px;
    max-width: 100%;   /* prevent exceeding container size */
    height: auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.card.websites {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card.stores {
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
}

.card.education {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card.odoo {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.card.consulting {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

.card.analytics {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.card.education h2,
.card.analytics h2 {
    color: white;
}

.card-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 4rem;
    opacity: 0.8;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: fit-content;
}

.card.education .learn-more,
.card.analytics .learn-more {
    background: rgba(255,255,255,0.9);
    color: #333;
}

.learn-more:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.arrow {
    width: 20px;
    height: 20px;
    background: currentColor;
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s ease;
}

.arrow:before {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: white;
}

[dir="rtl"]  .arrow:before {
    content: '←';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: white;
}

.card.education .arrow:before,
.card.analytics .arrow:before {
    color: #333;
}

.learn-more:hover .arrow {
    transform: translateX(-3px);
}

/* رموز مخصصة للبطاقات */
.websites-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.stores-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 100px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    transform: perspective(100px) rotateY(-15deg);
}

.education-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-stack {
    width: 60px;
    height: 40px;
    position: relative;
}

.book {
    width: 100%;
    height: 12px;
    border-radius: 2px;
    position: absolute;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.book:nth-child(1) {
    background: #ff6b35;
    bottom: 0;
}

.book:nth-child(2) {
    background: #f7931e;
    bottom: 14px;
}

.book:nth-child(3) {
    background: #4facfe;
    bottom: 28px;
}

.graduation-cap {
    width: 50px;
    height: 30px;
    background: #333;
    border-radius: 25px 25px 0 0;
    position: relative;
    margin-top: 10px;
}

.graduation-cap:after {
    content: '';
    position: absolute;
    top: -5px;
    right: -15px;
    width: 10px;
    height: 20px;
    background: #333;
    border-radius: 0 0 5px 5px;
}

.odoo-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.node {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    position: relative;
}

.node:before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 10px;
    height: 2px;
    background: #333;
}

.consulting-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.server {
    width: 70px;
    height: 15px;
    background: #666;
    border-radius: 3px;
    position: relative;
}

.server:after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.analytics-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.chart {
    width: 30px;
    height: 40px;
    background: white;
    border-radius: 3px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.chart:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: linear-gradient(to top, #333 0%, #333 20%, transparent 20%, transparent 40%, #333 40%, #333 70%, transparent 70%);
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 30px;
        min-height: 180px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card:hover .card-icon {
    animation: pulse 0.6s ease-in-out;
}

/* تأثيرات الصورة الرئيسية */
.enhanced-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: visible;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 10px 20px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(255,255,255,1);
}

.enhanced-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: all 0.8s ease;
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* تأثير التحويم */
.image-wrapper:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg) scale(1.05);
    box-shadow: 
        0 35px 70px rgba(0,0,0,0.2),
        0 15px 35px rgba(0,0,0,0.15),
        inset 0 0 0 2px rgba(255,255,255,1);
}

.image-wrapper:hover .enhanced-image {
    filter: brightness(1.2) contrast(1.2) saturate(1.3);
}

/* طبقة التراكب */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8), rgba(143, 88, 188, 0.8));
    opacity: 0;
    border-radius: 20px;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    transform: scale(0.5) rotate(180deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.image-wrapper:hover .overlay-content {
    transform: scale(1) rotate(0deg);
}

.zoom-icon {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* الإطار المتوهج */
.glow-frame {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    transition: opacity 0.5s ease;
}

.image-wrapper:hover .glow-frame {
    opacity: 0.7;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* تأثير الموجات */
.wave-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .wave-effect {
    opacity: 1;
}

.wave {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: waveAnimation 2s infinite;
}

.wave-1 {
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.wave-2 {
    width: 40px;
    height: 40px;
    margin: -10px;
    animation-delay: 0.5s;
}

.wave-3 {
    width: 60px;
    height: 60px;
    margin: -20px;
    animation-delay: 1s;
}

@keyframes waveAnimation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* تأثير الجسيمات */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s infinite;
}

.particle-1 { top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 40%; right: 15%; animation-delay: 0.8s; }
.particle-3 { top: 60%; left: 20%; animation-delay: 1.6s; }
.particle-4 { top: 80%; right: 25%; animation-delay: 2.4s; }
.particle-5 { top: 30%; left: 80%; animation-delay: 3.2s; }
.particle-6 { top: 70%; right: 70%; animation-delay: 1.2s; }

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

.image-wrapper:hover .particle {
    animation-play-state: running;
}

/* تحسينات بطاقات الخدمات */
.enhanced-service-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.enhanced-service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.enhanced-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.icon-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(143, 88, 188, 0.1));
    border-radius: 50%;
    transition: all 0.5s ease;
}

.enhanced-service-card:hover .icon-background {
    transform: translate(-50%, -50%) scale(1.2);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(143, 88, 188, 0.2));
}

.enhanced-icon i {
    position: relative;
    z-index: 2;
    color: #4a90e2;
    transition: all 0.5s ease;
}

.enhanced-service-card:hover .enhanced-icon i {
    color: #8f58bc;
    transform: scale(1.1);
}

/* جسيمات الأيقونات */
.icon-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #4a90e2, #8f58bc);
    border-radius: 50%;
    opacity: 0;
    animation: iconParticleFloat 3s infinite;
}

.icon-particle-1 { top: -20px; left: -20px; animation-delay: 0s; }
.icon-particle-2 { top: -20px; right: -20px; animation-delay: 0.75s; }
.icon-particle-3 { bottom: -20px; left: -20px; animation-delay: 1.5s; }
.icon-particle-4 { bottom: -20px; right: -20px; animation-delay: 2.25s; }

@keyframes iconParticleFloat {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.enhanced-service-card:hover .icon-particle {
    animation-play-state: running;
}

/* صور الخدمات */
.service-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.enhanced-service-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.5s ease;
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8), rgba(143, 88, 188, 0.8));
    opacity: 0;
    border-radius: 15px;
    transition: all 0.5s ease;
}

.enhanced-service-card:hover .service-image-overlay {
    opacity: 1;
}

.enhanced-service-card:hover .enhanced-service-image {
    transform: scale(1.1);
}

/* تأثير النص */
.enhanced-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
}

.enhanced-service-card:hover .enhanced-title {
    color: #4a90e2;
    transform: translateY(-2px);
}

.enhanced-description {
    color: #666;
    line-height: 1.6;
    transition: all 0.5s ease;
}

.enhanced-service-card:hover .enhanced-description {
    color: #555;
}

/* تأثير خلفية البطاقة */
.card-background-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(143, 88, 188, 0.05));
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.enhanced-service-card:hover .card-background-effect {
    opacity: 1;
}

/* تحسين الأزرار */
.enhanced-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4a90e2, #8f58bc);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.5s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.enhanced-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
    color: white;
}

.btn-content {
    position: relative;
    z-index: 2;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.6s ease;
}

.enhanced-btn:hover .btn-ripple {
    width: 300px;
    height: 300px;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
    .enhanced-image-container {
        margin-bottom: 2rem;
    }
    
    .image-wrapper:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .enhanced-service-card {
        margin-bottom: 1.5rem;
    }
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.video-play-btn:hover {
    background: rgba(255,0,0,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
