/* ===== SERVICES PAGE ===== */

/* Hero */
.services-hero-section {
    background: linear-gradient(135deg, #050508 0%, #0e0e16 50%, #050508 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 160px 0 100px;
    position: relative;
    text-align: center;
}

.services-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 60%,
        rgba(65, 105, 225, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.services-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #5b7fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(91, 127, 255, 0.1);
    border: 1px solid rgba(91, 127, 255, 0.25);
    border-radius: 50px;
}

.services-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.15;
}

.services-hero-content p {
    font-size: 17px;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
}

/* ===== SERVICES GRID SECTION ===== */
.services-grid-section {
    background: var(--bg);
    padding: 80px 0;
    position: relative;
}

.services-grid-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(65, 105, 225, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* ===== SERVICE CARD ===== */
.service-card {
    background: linear-gradient(
        135deg,
        rgba(12, 12, 20, 0.95) 0%,
        rgba(16, 16, 28, 0.85) 100%
    );
    border: 1px solid rgba(91, 127, 255, 0.15);
    border-radius: 20px;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5b7fff, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: rgba(91, 127, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(65, 105, 225, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

/* Featured service card */
.service-card.featured-service {
    background: linear-gradient(135deg, #1a2a6c 0%, #223d8d 50%, #1e3577 100%);
    border: 1px solid rgba(91, 127, 255, 0.35);
    box-shadow: 0 10px 40px rgba(34, 61, 141, 0.3);
}

.service-card.featured-service:hover {
    box-shadow: 0 20px 60px rgba(34, 61, 141, 0.5);
}

/* Icon wrapper */
.service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.service-icon {
    width: 75px;
    height: 75px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(65, 105, 225, 0.15) 0%,
        rgba(91, 127, 255, 0.1) 100%
    );
    border: 1px solid rgba(91, 127, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-card.featured-service .service-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-5deg);
    background: linear-gradient(
        135deg,
        rgba(65, 105, 225, 0.25) 0%,
        rgba(91, 127, 255, 0.15) 100%
    );
}

.service-card.featured-service:hover .service-icon {
    background: rgba(255, 255, 255, 0.18);
}

.service-icon i {
    font-size: 32px;
    color: #5b7fff;
}

.service-card.featured-service .service-icon i {
    color: rgba(255, 255, 255, 0.95);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.service-card:hover .service-icon img {
    transform: scale(1.08);
}

.service-card.featured-service .service-icon img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Featured badge */
.featured-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 4px 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card content */
.service-card-content {
    flex: 1;
}

.service-card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-content h3 {
    color: #7b9fff;
}

.service-card.featured-service .service-card-content h3 {
    color: rgba(255, 255, 255, 0.98);
}

.service-card-content p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 22px;
}

.service-card.featured-service .service-card-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Features list */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(160, 176, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.5;
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-features li i {
    font-size: 11px;
    color: #5b7fff;
    flex-shrink: 0;
}

.service-card.featured-service .service-features li {
    color: rgba(255, 255, 255, 0.75);
}

.service-card.featured-service .service-features li i {
    color: rgba(255, 255, 255, 0.85);
}

/* Empty state */
.services-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text);
}

.services-empty i {
    font-size: 48px;
    color: rgba(91, 127, 255, 0.3);
    margin-bottom: 16px;
    display: block;
}

.services-empty p {
    font-size: 16px;
    color: var(--text);
    margin: 0;
}

/* ===== CTA SECTION ===== */
.services-cta-section {
    background: var(--bg);
    padding: 0 0 100px;
    position: relative;
}

.cta-content {
    background: linear-gradient(
        135deg,
        rgba(12, 12, 20, 0.95) 0%,
        rgba(16, 16, 28, 0.85) 100%
    );
    border: 1px solid rgba(91, 127, 255, 0.15);
    border-radius: 24px;
    padding: 60px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(91, 127, 255, 0.08) 0%,
        rgba(65, 105, 225, 0.04) 100%
    );
    pointer-events: none;
}

.cta-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .theme-btn,
.cta-buttons .theme-btn.style-2 {
    background: linear-gradient(135deg, #ffffff 0%, #e8f0fe 100%);
    color: #019bff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-buttons .theme-btn:hover,
.cta-buttons .theme-btn.style-2:hover {
    background: #fff;
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== ARABIC ===== */
[lang="ar"] .services-hero-content h1 {
    font-size: 48px;
}

[lang="ar"] .services-hero-content p {
    font-size: 15px;
}

[lang="ar"] .service-card-content h3 {
    font-size: 21px;
}

[lang="ar"] .service-card-content p {
    font-size: 13px;
}

[lang="ar"] .service-features li {
    font-size: 12px;
}

[lang="ar"] .cta-content h2 {
    font-size: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .services-hero-content h1 {
        font-size: 44px;
    }

    .cta-content {
        padding: 50px 40px;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .services-hero-section {
        padding: 130px 0 70px;
    }

    .services-hero-content h1 {
        font-size: 36px;
    }

    .services-hero-content p {
        font-size: 15px;
    }

    .services-grid-section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-cta-section {
        padding: 0 0 80px;
    }

    .cta-content {
        padding: 40px 30px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .theme-btn {
        width: 100%;
        justify-content: center;
    }

    [lang="ar"] .services-hero-content h1 {
        font-size: 32px;
    }

    [lang="ar"] .cta-content h2 {
        font-size: 24px;
    }
}
