/* ========================================
   قسم الخدمات - Services Section
   الملف: public/web/css/services.css
======================================== */

/* الخلفية العامة */
.services-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.services-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://mohammed-almalgami.com/public/web/img/pattern-3.jpg');
    opacity: 0.03;
    pointer-events: none;
}

/* الأشكال الزخرفية */
.services-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.services-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent 70%);
    top: -150px;
    right: -150px;
    animation: floatShape 20s ease-in-out infinite;
}

.services-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.services-shapes .shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseShape 12s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes pulseShape {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.04; }
}

/* ========================================
   رأس القسم
======================================== */
.services-section .section-header {
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.services-section .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.services-section .section-badge i {
    font-size: 16px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.services-section .section-title {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.services-section .section-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.title-decoration .line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 3px;
}

.title-decoration i {
    color: #ffd700;
    font-size: 20px;
    animation: rocketFloat 2s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0) rotate(-45deg); }
    50% { transform: translateY(-10px) rotate(-45deg); }
}

/* ========================================
   شبكة الخدمات
======================================== */
.services-grid {
    position: relative;
    z-index: 2;
}

/* ========================================
   بطاقات الخدمات
======================================== */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #00d4ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3),
                0 0 50px rgba(255, 215, 0, 0.1);
}

.service-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .card-bg {
    opacity: 1;
}

/* التوهج */
.card-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
}

/* رقم الخدمة */
.service-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.08);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.4s ease;
}

.service-card:hover .service-number {
    color: rgba(255, 215, 0, 0.15);
    transform: scale(1.1);
}

/* أيقونة الخدمة */
.service-icon {
    position: relative;
    margin-bottom: 25px;
    width: fit-content;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.08));
    border-radius: 20px;
    font-size: 36px;
    color: #ffd700;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    color: #1a1a2e;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.icon-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    animation: spinRing 15s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .icon-ring {
    opacity: 1;
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* عنوان الخدمة */
.service-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: #ffd700;
}

/* وصف الخدمة */
.service-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* مميزات الخدمة */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: #00c853;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 83, 0.15);
    border-radius: 50%;
}

/* رابط الخدمة */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 25px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 30px;
    transition: all 0.4s ease;
    margin-top: auto;
    width: fit-content;
}

.service-link:hover {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(-5px);
}

/* ========================================
   البطاقة المميزة
======================================== */
.service-card.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 193, 7, 0.03));
    border-color: rgba(255, 215, 0, 0.2);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    animation: pulse 2s infinite;
}

.featured-badge i {
    font-size: 12px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
}

/* ========================================
   شريط المميزات
======================================== */
.features-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 50px 0;
    backdrop-filter: blur(10px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.08));
    border-radius: 15px;
    color: #ffd700;
    font-size: 22px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    transform: rotate(10deg) scale(1.1);
}

.feature-text h5 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}

.feature-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.feature-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   زر التواصل
======================================== */
.cta-wrapper {
    margin-top: 20px;
}

.cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.4);
}

.cta-button i {
    font-size: 22px;
}

/* ========================================
   قسم الخدمات الإضافية
======================================== */
.other-services-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    overflow: hidden;
}

.other-services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.other-services-content {
    position: relative;
    z-index: 2;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.other-services-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.other-services-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* شبكة الخدمات الإضافية */
.other-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.other-service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.other-service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.other-service-card .card-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.08));
    border-radius: 14px;
    color: #ffd700;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.other-service-card:hover .card-icon {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    transform: rotate(10deg);
}

.other-service-card .card-content {
    flex: 1;
}

.other-service-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}

.other-service-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.other-service-card .card-arrow {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: all 0.3s ease;
}

.other-service-card:hover .card-arrow {
    background: #ffd700;
    color: #1a1a2e;
    transform: translateX(-5px);
}

/* الأيقونات العائمة */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icons i {
    position: absolute;
    font-size: 30px;
    color: rgba(255, 215, 0, 0.05);
    animation: floatIcon 20s linear infinite;
}

.floating-icons i:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 60%; left: 5%; animation-delay: 4s; }
.floating-icons i:nth-child(3) { top: 80%; right: 10%; animation-delay: 8s; }
.floating-icons i:nth-child(4) { top: 30%; right: 5%; animation-delay: 12s; }
.floating-icons i:nth-child(5) { top: 50%; left: 50%; animation-delay: 16s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.05; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.1; }
}

/* ========================================
   التجاوب مع الشاشات
======================================== */
@media (max-width: 1199px) {
    .services-section .section-title {
        font-size: 42px;
    }
    
    .other-services-title {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .services-section,
    .other-services-section {
        padding: 80px 0;
    }
    
    .services-section .section-title {
        font-size: 36px;
    }
    
    .features-bar {
        gap: 30px;
        padding: 30px;
    }
    
    .feature-divider {
        display: none;
    }
    
    .other-services-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .other-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-section .section-title {
        font-size: 30px;
    }
    
    .services-section .section-description {
        font-size: 15px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-number {
        font-size: 50px;
    }
    
    .features-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item {
        flex-direction: column;
    }
    
    .other-services-title {
        font-size: 28px;
    }
    
    .other-service-card {
        padding: 20px;
    }
    
    .other-service-card h4 {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .services-section .section-badge {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .icon-wrapper {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
    
    .service-features li {
        font-size: 13px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 15px;
    }
}