/* ملف ستايلات صفحة الخدمات */

:root {
    /* الألوان الأساسية */
    --primary-color: #001f3f;
    --primary-rgb: 0, 31, 63;
    --accent-color: #0078ff;
    --accent-rgb: 0, 120, 255;
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #fff;
    --light-bg-color: #f8f9fa;
    
    /* الخلفيات والحدود */
    --card-bg: #ffffff;
    --card-bg-hover: rgba(0, 31, 63, 0.03);
    --card-bg-premium: linear-gradient(145deg, #ffffff, #f0f7ff);
    --card-bg-premium-hover: linear-gradient(145deg, #f0f7ff, #e0f0ff);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 120, 255, 0.5);
    --border-premium: rgba(0, 120, 255, 0.8);
    
    /* الظلال */
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --box-shadow-icon: 0 5px 15px rgba(0, 31, 63, 0.2);
    --box-shadow-premium: 0 8px 25px rgba(0, 120, 255, 0.2);
    --inner-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    --glow-accent: 0 0 20px rgba(0, 120, 255, 0.4);
    
    /* الانتقالات والحركات */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* المسافات والأحجام */
    --border-radius-small: 5px;
    --border-radius-medium: 10px;
    --border-radius-large: 20px;
    --section-padding: 80px 0;
}

/* قسم عنوان الصفحة - تصميم جديد */
.page-title {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b57 50%, #001a33 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/partnerships.svg'),
                      radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.15;
    animation: float-bg 12s infinite ease-in-out;
    filter: blur(3px);
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

.page-title h1 {
    margin-bottom: 15px;
    color: white;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

.page-title p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    opacity: 0.9;
}

/* قسم تفاصيل الخدمات */
.services-details {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--white-color) 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.05);
}

.services-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/service-icons.svg'),
                      url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230078ff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E"),
                      radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb), 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 80% 80%, rgba(var(--accent-rgb), 0.05) 0%, transparent 40%);
    background-repeat: no-repeat, repeat, no-repeat, no-repeat;
    background-position: center, center, top left, bottom right;
    background-size: cover, auto, 50%, 50%;
    opacity: 0.15;
    z-index: -1;
    animation: float-bg 15s infinite ease-in-out, backgroundShift 60s linear infinite;
}

@keyframes backgroundShift {
    0% { background-position: center, 0 0, top left, bottom right; }
    100% { background-position: center, 100px 100px, top left, bottom right; }
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-intro h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-intro h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* شبكة الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

/* بطاقة الخدمة */
.service-card {
    background: var(--card-bg-premium);
    border-radius: var(--border-radius-medium);
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    scroll-margin-top: 100px; /* للتنقل السريع */
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.service-card:hover, .service-card.hover-effect {
    box-shadow: var(--box-shadow-hover), var(--glow-accent);
    border-color: var(--border-premium);
    background: var(--card-bg-premium-hover);
    border-width: 2px;
}

.service-card.in-view {
    opacity: 1;
}

.service-card.animate-in {
    opacity: 1;
}

.service-card.card-clicked {
    /* تم إزالة التأثير الحركي */
}

/* تأثير التموج عند النقر */
.card-ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
    animation: card-ripple 0.6s ease-out;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes card-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* تم إزالة تأثير card-pulse */

.service-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, center) var(--mouse-y, center), rgba(var(--accent-rgb), 0.3) 0%, rgba(var(--accent-rgb), 0) 70%);
    opacity: 0;
    z-index: -1;
}

.service-card:hover:after {
    opacity: 0.3;
}

/* تم إزالة تأثير pulse */

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.3s ease;
}

.service-card:hover:before {
    height: 100%;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(145deg, #ffffff, rgba(var(--primary-rgb), 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.15), var(--inner-shadow);
    transform: translateZ(30px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.service-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--primary-rgb), 0.2));
    top: -100%;
    left: 0;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    transform: rotate(10deg) scale(1.15) translateZ(40px);
    box-shadow: var(--box-shadow-premium), var(--glow-accent);
    border-color: rgba(255, 255, 255, 0.9);
}

.service-card:hover .service-icon:before {
    top: 0;
}

.service-icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition-bounce);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.service-card:hover .service-icon i {
    color: var(--white-color);
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition-medium);
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(10px);
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: var(--transition-medium);
}

.service-card:hover h3 {
    color: var(--accent-color);
    transform: translateZ(15px);
}

.service-card:hover h3::after {
    width: 50%;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.service-features li {
    padding: 10px 0;
    position: relative;
    padding-right: 30px;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(var(--primary-rgb), 0.1);
    transition: var(--transition-medium);
    transform: translateZ(5px);
    opacity: 0.9;
}

.service-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--accent-color);
    font-size: 14px;
    transition: var(--transition-medium);
    width: 24px;
    height: 24px;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-features li:before {
    transform: scale(1.2) rotate(360deg);
    color: var(--white-color);
    background-color: var(--accent-color);
    box-shadow: 0 3px 8px rgba(var(--accent-rgb), 0.3);
}

.service-features li {
    padding: 8px 0;
    position: relative;
    padding-right: 25px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    transform-origin: right;
}

.service-card:hover .service-features li {
    transform: translateX(-8px) translateZ(10px);
    color: var(--primary-color);
    border-bottom-color: rgba(var(--accent-rgb), 0.2);
    background-color: rgba(var(--accent-rgb), 0.03);
    border-radius: 4px;
    padding-right: 35px;
    padding-left: 10px;
    opacity: 1;
}

/* قسم CTA - تصميم جديد أبسط */
.cta-section {
    padding: 80px 0;
    background: var(--primary-color);
    position: relative;
    margin-top: 100px;
    color: var(--white-color);
    text-align: center;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    background-image: url('../images/pattern-bg-new.svg');
    background-size: cover;
    background-position: center;
}

/* تأثيرات التحريك عند الظهور */
.in-view.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view.animate-in.active,
.cta-section.in-view.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* تأثيرات العناصر الداخلية */
.in-view.animate-in [data-animation="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.in-view.animate-in.active [data-animation="fade-up"],
.cta-section.in-view.animate-in [data-animation="fade-up"] {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* تأخير التحريك بناءً على قيمة data-delay */
.in-view.animate-in [data-delay="100"] {
    transition-delay: 0.1s;
}

.in-view.animate-in [data-delay="200"] {
    transition-delay: 0.2s;
}

.in-view.animate-in [data-delay="300"] {
    transition-delay: 0.3s;
}

.in-view.animate-in [data-delay="400"] {
    transition-delay: 0.4s;
}

.in-view.animate-in [data-delay="500"] {
    transition-delay: 0.5s;
}

/* خلفية بسيطة مع تدرج */
.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.98), rgba(0, 40, 80, 0.95));
    z-index: 1;
}

/* إضافة نمط هندسي بسيط للخلفية */
.cta-section:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                      radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
                      radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.05) 3px, transparent 3px);
    background-size: 50px 50px, 60px 60px, 100px 100px, 120px 120px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    opacity: 0.5;
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.cta-buttons .btn {
    padding: 12px 28px;
    border-radius: var(--border-radius-medium);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 120, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* تأثيرات التحريك عند الظهور */
.cta-section.in-view.animate-in [data-animation="fade-up"] {
    animation: fadeInUp 0.8s forwards;
}

.cta-section.in-view.animate-in [data-delay="100"] {
    animation-delay: 0.1s;
}

.cta-section.in-view.animate-in [data-delay="200"] {
    animation-delay: 0.2s;
}

.cta-section.in-view.animate-in [data-delay="300"] {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    
    
    

.cta-buttons .btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(0, 120, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        padding: 100px 0 40px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .section-intro h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 50px 0;
        margin: 50px auto 0;
        max-width: 90%;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        transform: translateZ(10px);
    }
    
    .cta-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 10px 20px;
    }
    
    .particle {
        opacity: 0.1 !important;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 40px 15px;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-content {
        padding: 0 10px;
    }
}