/* تنسيقات محسنة لقسم طلب الخدمة */
.service-cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--primary-light));
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-top: 50px;
    border-bottom: 5px solid rgba(255, 255, 255, 0.1);
}

.service-cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><circle cx="10" cy="10" r="3" fill="white" opacity="0.1"/></svg>');
    background-size: 40px 40px;
    animation: backgroundMove 30s linear infinite;
}

.service-cta-section:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.service-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-cta-content .cta-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.service-cta-content .cta-icon:hover {
    border-radius: 50%;
    transform: rotate(15deg);
}

.service-cta-content .cta-icon i {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-cta-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.service-cta-content h3:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(255, 87, 34, 0.3);
}

.service-cta-content p {
    font-size: 1.3rem;
    margin: 30px auto 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.service-cta-content .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 35px 0 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.service-cta-content .btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1rem;
}

.service-cta-content .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.service-cta-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-cta-content .btn:hover:before {
    left: 100%;
}

.service-cta-content .primary-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
}

.service-cta-content .secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-cta-content .cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.service-cta-content .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.service-cta-content .feature-item i {
    color: var(--secondary-light);
    font-size: 1.2rem;
}

.service-cta-content .feature-item span {
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .service-cta-section {
        padding: 60px 0;
    }
    
    .service-cta-content h3 {
        font-size: 1.8rem;
    }
    
    .service-cta-content p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .service-cta-content .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-cta-content .btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .service-cta-content .cta-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .service-cta-content .cta-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-cta-content .cta-icon i {
        font-size: 2rem;
    }
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 80px 80px;
    }
}

/* تحسينات قسم التنقل بين الخدمات */
.services-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
    perspective: 1200px;
    overflow-x: auto;
    padding: 15px 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
    -ms-overflow-style: none;
}

.services-nav.aos-init.aos-animate {
    animation: fadeInAndScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInAndScale {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.services-nav::-webkit-scrollbar {
    height: 5px;
}

.services-nav::-webkit-scrollbar-track {
    background: transparent;
}

.services-nav::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
}

.services-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.5);
}

.service-nav-item {
    position: relative;
    padding: 18px 10px;
    width: 95px;
    height: 95px;
    min-width: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.05), 
                0 3px 5px rgba(0, 0, 0, 0.02),
                inset 0 -2px 0 rgba(0, 0, 0, 0.08);
    z-index: 1;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-nav-item:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 16px;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-nav-item:after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.service-nav-item i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(15px);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
    background: transparent;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: var(--primary-color);
}

.service-nav-item span {
    font-weight: 600;
    font-size: 0.75rem;
    color: #333;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(8px);
    line-height: 1.2;
    max-width: 85px;
    margin: 0 auto;
    text-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.8);
}

.service-nav-item:hover {
    transform: translateY(-12px) rotateX(10deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.15), 
                0 5px 15px rgba(var(--primary-rgb), 0.1),
                0 0 0 2px rgba(var(--primary-rgb), 0.05),
                inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.service-nav-item:hover:before {
    opacity: 1;
    transform: scale(1);
}

.service-nav-item:hover:after {
    opacity: 0.05;
}

.service-nav-item:hover i {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateZ(25px) scale(1.2);
    animation: iconFloat 1.5s ease-in-out infinite alternate;
    filter: brightness(1) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    background: transparent;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #ffffff !important;
    fill: white;
}

.service-nav-item:hover i::before,
.service-nav-item:hover i::after,
.service-nav-item:hover i svg,
.service-nav-item:hover i svg path {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

@keyframes iconFloat {
    0% {
        transform: translateZ(25px) scale(1.2);
    }
    100% {
        transform: translateZ(30px) scale(1.25) translateY(-2px);
    }
}

.service-nav-item:hover span {
    color: #ffffff;
    font-weight: 700;
    transform: translateZ(15px);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.service-nav-item:active {
    transform: translateY(-3px) scale(0.97);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.1), 
                0 0 0 1px rgba(var(--primary-rgb), 0.05),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.1s ease;
}

.service-nav-item .hover-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
    top: -20px;
    right: -20px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.service-nav-item:hover .hover-circle {
    transform: scale(5);
    opacity: 0.15;
    animation: rotateSlow 8s linear infinite;
}

@keyframes rotateSlow {
    0% {
        transform: scale(5) rotate(0deg);
    }
    100% {
        transform: scale(5) rotate(360deg);
    }
}

/* تحسين المظهر في الوضع الداكن */
@media (prefers-color-scheme: dark) {
    .service-nav-item {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .service-nav-item span {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .service-nav-item:hover span {
        color: #fff;
    }
}

/* جعل التناسق مع الشاشات المختلفة */
@media (max-width: 992px) {
    .services-nav {
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 5px;
        justify-content: center;
        gap: 10px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .services-nav {
        gap: 8px;
    }
    
    .service-nav-item {
        width: 85px;
        height: 85px;
        min-width: 85px;
        padding: 12px 8px;
        border-radius: 14px;
    }
    
    .service-nav-item i {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .service-nav-item span {
        font-size: 0.7rem;
        max-width: 75px;
    }
    
    .service-nav-item:hover {
        transform: translateY(-8px) rotateX(5deg) rotateY(3deg);
    }
    
    .service-nav-item:hover i,
    .service-nav-item:hover span {
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    .service-nav-item {
        width: 75px;
        height: 75px;
        min-width: 75px;
        padding: 10px 5px;
        border-radius: 12px;
    }
    
    .service-nav-item i {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .service-nav-item span {
        font-size: 0.65rem;
        max-width: 65px;
    }
    
    .service-nav-item:hover {
        transform: translateY(-5px) rotateX(3deg) rotateY(2deg);
    }
    
    .service-nav-item:hover i,
    .service-nav-item:hover span {
        color: #ffffff;
    }
}

/* تنسيقات خاصة للأيقونات مع الفئة الجديدة */
.icon-white {
    position: relative;
    z-index: 2;
}

.service-nav-item:hover .icon-white {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    /* تأكيد تطبيق اللون الأبيض على الشاشات المتوسطة أيضاً */
    .service-nav-item:hover .icon-white {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* إلغاء أي تدرج لوني على أيقونات Font Awesome */
.service-nav-item i.icon-white {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

/* تأكيد تطبيق اللون الأبيض على أيقونات Font Awesome */
.service-nav-item:hover i.icon-white {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: transparent !important;
    filter: none !important;
}

/* تحسينات خلفيات أقسام الخدمات */
.service-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* خلفية للأقسام الفردية */
.service-section:nth-child(odd) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* خلفية للأقسام الزوجية */
.service-section:nth-child(even) {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
}

/* إضافة أنماط زخرفية للأقسام */
.service-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
    z-index: -1;
}

/* أنماط للأقسام الفردية */
.service-section:nth-child(odd):before {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.03) 0%, rgba(255, 255, 255, 0) 8%),
        radial-gradient(circle at 70% 60%, rgba(var(--primary-rgb), 0.03) 0%, rgba(255, 255, 255, 0) 8%);
    background-size: 60px 60px;
}

/* أنماط للأقسام الزوجية */
.service-section:nth-child(even):before {
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 8%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 8%);
    background-size: 60px 60px;
}

/* إضافة عناصر زخرفية في زوايا الأقسام */
.service-section:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.service-section:nth-child(odd):after {
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -150px;
    right: -150px;
}

.service-section:nth-child(even):after {
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    top: -150px;
    left: -150px;
}

/* إضافة ظل خفيف للفصل بين الأقسام */
.service-section {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* تحسين خلفية القسم الأول (التصميم الإبداعي) */
#creative-design {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
}

/* تحسين خلفية قسم الأمن السيبراني */
#cybersecurity {
    background: linear-gradient(135deg, rgba(30, 75, 156, 0.05) 0%, rgba(var(--primary-rgb), 0.03) 100%);
}

/* تحسين خلفية قسم تطوير البرمجيات */
#software-dev {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.02) 100%);
} 