/* css/service-details.css - النسخة المحسنة */

/* Service Hero Section - أقل ارتفاعاً */
.service-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    position: relative;
    overflow: hidden;
    text-align: left;
    padding-top: 80px;
    padding-bottom: 100px;
}

.service-hero[dir="rtl"] {
    text-align: right;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    animation: backgroundShift 15s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

/* Service Icon - حركة أجمل */
.service-icon-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    font-size: 2.5rem;
    color: white;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.3),
        inset 0 0 20px rgba(255,255,255,0.2);
    position: relative;
    animation: floatRotate 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon-large:hover {
    animation-play-state: paused;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 0 30px rgba(255,255,255,0.3);
}

.service-icon-large::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes floatRotate {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    33% { 
        transform: translateY(-10px) rotate(5deg); 
    }
    66% { 
        transform: translateY(5px) rotate(-3deg); 
    }
}

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

/* تحسينات العناوين */
.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    border-radius: 2px;
    animation: lineExpand 1.5s ease-out forwards;
}

[dir="rtl"] .hero-title::after {
    left: auto;
    right: 0;
}


@keyframes lineExpand {
    0% { width: 0; opacity: 0; }
    100% { width: 60px; opacity: 1; }
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Feature Cards - تحسين الشكل */
.feature-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(93, 92, 222, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(93, 92, 222, 0.15),
        0 10px 20px rgba(93, 92, 222, 0.1);
    border-color: rgba(93, 92, 222, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    box-shadow: 0 5px 15px rgba(93, 92, 222, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(93, 92, 222, 0.4);
}

/* Back Button - تحسين */
.back-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.back-button:hover {
    transform: translateX(-5px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

[dir="rtl"] .back-button:hover {
    transform: translateX(5px);
}

.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

[dir="rtl"] .back-button:hover i {
    transform: translateX(3px);
}

/* Info Badge - تحسين */
.info-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.info-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Process Steps - تحسين */
.process-step {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff, #fafafa);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.process-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.process-step-number::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    z-index: -1;
}


.faq-content {
    padding: 1.5rem;
    line-height: 1.6;
    color: #4a5568;
    font-size: 0.95rem;
    display: block !important; /* إظهار المحتوى دائماً */
    opacity: 1 !important;
    max-height: none !important;
}

/* Utility Classes */
.gradient-text {
     background: linear-gradient(135deg, #2d3748 0%, var(--primary) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease-in-out infinite alternate;
    position: relative;
    display: inline-block;
}


.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0.7;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.gradient-text:hover::after {
    width: 100%;
}

[dir="rtl"] .gradient-text::after {
    left: auto;
    right: 0;
}

.gradient-text-light {
    background: linear-gradient(135deg, #4a5568 0%, var(--primary) 70%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* تحسينات Responsive */
@media (max-width: 768px) {
    .service-hero {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .process-step {
        margin-bottom: 1rem;
    }
}

/* تحسينات التمرير الناعم */
html {
    scroll-behavior: smooth;
}

/* تأثيرات ظهور العناصر */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تحسين الظلال */
.shadow-soft {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.shadow-medium {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.shadow-hard {
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* تحسينات النصوص */
.text-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a5568;
}

.text-subtitle {
    font-size: 0.95rem;
    color: #718096;
    letter-spacing: 0.5px;
}

/* تحسينات الأحجام للتوازن */
.content-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    background: linear-gradient(135deg, #2d3748 0%, var(--primary) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.content-heading:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.content-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
    opacity: 0.8;
    transition: width 0.3s ease;
}

.content-heading:hover::after {
    width: 60px;
    opacity: 1;
}



[dir="rtl"] .content-heading::after {
    left: auto;
    right: 0;
}

.content-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2d3748 30%, var(--primary) 60%, var(--gold) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    transition: color 0.3s ease, background 0.3s ease;
    display: inline-block;
    position: relative;
}

.feature-card:hover .feature-title {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.process-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.process-step:hover .process-step-title {
    color: var(--primary);
}


.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    display: block;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(135deg, #2d3748 30%, var(--primary) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-left: 1.5rem;
}

.faq-item:hover .faq-question {
    background: linear-gradient(135deg, var(--primary), #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir="rtl"] .faq-question {
    padding-left: 0;
    padding-right: 1.5rem;
}


.faq-question::before {
    content: 'Q:';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--primary);
}

[dir="rtl"] .faq-question::before {
    left: auto;
    right: 0;
}


/* تنسيق الإجابة فقط */
.faq-answer {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

[dir="rtl"] .faq-answer {
    padding-left: 0;
    padding-right: 1.5rem;
}

.faq-answer::before {
    content: 'A:';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--gold);
}

[dir="rtl"] .faq-answer::before {
    left: auto;
    right: 0;
}

/* تباعد أفضل بين السؤال والإجابة */
.faq-item-inner {
    padding: 1.5rem;
}


.faq-section {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* إضافة أيقونة للأسئلة */
.faq-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

[dir="rtl"] .faq-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .content-heading {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

.text-shadow-light {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-shadow-gradient {
    text-shadow: 
        0 2px 10px rgba(93, 92, 222, 0.2),
        0 4px 20px rgba(184, 134, 11, 0.15);
}
