/* ===== CSS مشترك لصفحات الخدمات ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
    background: var(--gradient-body);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: slideInDown 0.8s ease-out;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(100, 150, 255, 0.4), 0 6px 18px rgba(0, 0, 0, 0.65);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(100, 150, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.55);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* ===== Service Content ===== */
.service-content {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-intro {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease-out;
}

.service-intro h2 {
    font-size: 2.5rem;
    color: #1a3a5a;
    margin-bottom: 15px;
    font-weight: 800;
}

.service-intro::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6fbc32, #7ec850);
    margin: 20px auto;
}

.service-intro p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Features Grid ===== */
.features-title {
    color: #1a3a5a;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.features-title i {
    color: #6fbc32;
    margin-left: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(135deg, #fbfcf9, #f5faf2);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #6fbc32;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #7ec850;
    box-shadow: 0 20px 40px rgba(111, 188, 50, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: #6fbc32;
    margin-bottom: 15px;
    display: block;
}

.feature-card h4 {
    color: #1a3a5a;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(111, 188, 50, 0.08), rgba(126, 200, 80, 0.05));
    margin-top: 40px;
    margin-bottom: 40px;
}

.cta-section h3 {
    color: #1a3a5a;
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 800;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #6fbc32, #7ec850);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(111, 188, 50, 0.5);
}

/* ===== Animations ===== */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-green); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-green-light); }

/* ===== Dark Mode Overrides ===== */
html[data-theme="dark"] .service-intro h2,
html[data-theme="dark"] .features-title,
html[data-theme="dark"] .feature-card h4,
html[data-theme="dark"] .cta-section h3 {
    color: var(--text-primary);
}
html[data-theme="dark"] .service-intro p,
html[data-theme="dark"] .feature-card p {
    color: var(--text-secondary);
}
html[data-theme="dark"] .service-intro::after {
    background: linear-gradient(90deg, var(--accent-gold), #e6c25a);
}
html[data-theme="dark"] .features-title i,
html[data-theme="dark"] .feature-card i {
    color: var(--accent-gold);
}
html[data-theme="dark"] .feature-card {
    background: var(--bg-card);
    border-color: var(--accent-gold);
}
html[data-theme="dark"] .feature-card:hover {
    border-color: #e6c25a;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}
html[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.04));
}
html[data-theme="dark"] .cta-button {
    background: linear-gradient(135deg, var(--accent-gold), #e6c25a);
    color: #1a1f2e;
}
html[data-theme="dark"] .cta-button:hover {
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .main-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .hero-section { min-height: 350px; }
    .main-title { font-size: 1.6rem; }
    .subtitle { font-size: 1rem; }
    .service-content { padding: 40px 20px; }
    .service-intro h2 { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .cta-section { padding: 40px 20px; }
    .cta-section h3 { font-size: 1.5rem; }
    .feature-card { padding: 20px; }
    .feature-card i { font-size: 2rem; }
}

@media (max-width: 480px) {
    body { padding-top: 70px; }
    .hero-section { min-height: 280px; }
    .main-title { font-size: 1.3rem; margin-bottom: 10px; }
    .subtitle { font-size: 0.9rem; }
    .service-content, .cta-section { padding: 30px 15px; }
    .service-intro h2 { font-size: 1.5rem; }
    .features-title { font-size: 1.3rem; }
    .feature-card { padding: 15px; }
    .feature-card h4 { font-size: 1rem; }
    .feature-card p { font-size: 0.85rem; }
    .cta-section h3 { font-size: 1.3rem; }
    .cta-button { padding: 12px 30px; font-size: 0.95rem; }
}
