/* ===========================================
   صفحه خدمات ما - پرنیان دیتا
   =========================================== */

/* Section utilities */
.section-padding { padding: 80px 0; }
.section-alt { background: #f8fafc; }
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light, #6b7280);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: servicesFadeIn 0.8s ease forwards;
}
.animate-fade-in:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.4s; }
.animate-fade-in:nth-child(5) { animation-delay: 0.5s; }
.animate-fade-in:nth-child(6) { animation-delay: 0.6s; }
@keyframes servicesFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 1. Hero Section */
.services-hero {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
}
.services-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8a171c 0%, #b11e24 40%, #d71a21 100%);
    z-index: 0;
}
.services-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0,0,0,0.1) 0%, transparent 40%);
    pointer-events: none;
}
.services-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.services-hero-content {
    color: #fff;
}
.services-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #fff;
}
.services-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 32px;
    line-height: 1.7;
}
.services-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.btn-hero-cta {
    background: #fff !important;
    color: var(--primary-color, #b11e24) !important;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-md, 12px);
    transition: all 0.3s ease;
}
.btn-hero-cta:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-hero-outline {
    border-color: rgba(255,255,255,0.8) !important;
    color: #fff !important;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-md, 12px);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Hero Mockup */
.services-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.services-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.mockup-laptop {
    background: #2d3748;
    border-radius: 12px 12px 0 0;
    padding: 16px 24px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
}
.mockup-screen {
    background: #1a202c;
    border-radius: 6px;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.mockup-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2d3748 0%, #4a5568 100%);
    opacity: 0.6;
}
.mockup-base {
    width: 120%;
    margin-right: -10%;
    height: 12px;
    background: #1a202c;
    border-radius: 0 0 6px 6px;
}
.mockup-mobile {
    position: absolute;
    bottom: 20px;
    right: -20px;
    width: 90px;
    background: #2d3748;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.mockup-notch {
    width: 30px;
    height: 6px;
    background: #1a202c;
    border-radius: 3px;
    margin: 0 auto 8px;
}
.mockup-mobile .mockup-screen {
    aspect-ratio: 9/16;
    border-radius: 8px;
    background: #1a202c;
}

/* 2. Intro */
.services-intro-content {
    max-width: 800px;
    margin: 0 auto;
}
.services-intro-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-dark, #1a1a2e);
    text-align: center;
}
.services-intro-text strong {
    color: var(--primary-color, #b11e24);
}

/* 3. Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.service-card {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(177, 30, 36, 0.12);
    border-color: rgba(177, 30, 36, 0.15);
}
.service-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color, #b11e24), var(--primary-light, #d71a21));
    border-radius: var(--radius-md, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-card-icon i {
    font-size: 1.5rem;
    color: #fff;
}
.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 12px;
}
.service-card-items {
    margin-bottom: 16px;
    padding-right: 16px;
}
.service-card-items li {
    font-size: 0.9rem;
    color: var(--text-light, #6b7280);
    margin-bottom: 6px;
    position: relative;
}
.service-card-items li::before {
    content: '•';
    color: var(--primary-color, #b11e24);
    position: absolute;
    right: -12px;
}
.service-card-desc {
    font-size: 0.95rem;
    color: var(--text-light, #6b7280);
    line-height: 1.7;
    margin-bottom: 20px;
}
.service-card-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* 4. چرا پرنیان دیتا */
.services-why {
    background: linear-gradient(180deg, rgba(177, 30, 36, 0.04) 0%, transparent 100%);
}
.services-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.services-why-card {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.services-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(177, 30, 36, 0.08);
}
.services-why-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color, #b11e24);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.services-why-icon i {
    font-size: 1.5rem;
}
.services-why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 10px;
}
.services-why-card p {
    font-size: 0.95rem;
    color: var(--text-light, #6b7280);
    line-height: 1.6;
}

/* 4b. جزئیات همکاری و سوالات متداول */
.services-details {
    background: #fff;
}
.services-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}
.services-detail-block {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services-detail-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(177, 30, 36, 0.08);
    border-color: rgba(177, 30, 36, 0.12);
}
.services-detail-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color, #b11e24), var(--primary-light, #d71a21));
    border-radius: var(--radius-md, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.services-detail-icon i {
    font-size: 1.35rem;
    color: #fff;
}
.services-detail-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 12px;
    line-height: 1.4;
}
.services-detail-text {
    font-size: 0.95rem;
    color: var(--text-light, #6b7280);
    line-height: 1.8;
    margin: 0;
}
.services-detail-list {
    margin: 0;
    padding-right: 20px;
    list-style: none;
}
.services-detail-list li {
    font-size: 0.95rem;
    color: var(--text-light, #6b7280);
    line-height: 1.75;
    margin-bottom: 8px;
    position: relative;
    padding-right: 8px;
}
.services-detail-list li::before {
    content: '•';
    color: var(--primary-color, #b11e24);
    position: absolute;
    right: -14px;
}
.services-detail-list li strong {
    color: var(--text-dark, #1a1a2e);
}

/* 5. Timeline */
.services-timeline-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.timeline-step {
    position: relative;
    flex: 1 1 140px;
    min-width: 120px;
    text-align: center;
}
.timeline-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color, #b11e24), var(--primary-light, #d71a21));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 16px;
}
.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
}
.timeline-connector {
    position: absolute;
    top: 24px;
    right: calc(-50% - 12px);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color, #b11e24), transparent);
    opacity: 0.4;
}

/* 6. CTA Section */
.services-cta {
    background: linear-gradient(135deg, #8a171c 0%, #b11e24 50%, #d71a21 100%);
    padding: 80px 0;
}
.services-cta-inner {
    text-align: center;
    color: #fff;
}
.services-cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: #fff;
    line-height: 1.3;
}
.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #fff;
    color: var(--primary-color, #b11e24);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-md, 12px);
    transition: all 0.3s ease;
}
.btn-cta-white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .services-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .services-hero-buttons {
        justify-content: center;
    }
    .services-hero-visual {
        order: -1;
    }
    .services-mockup {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { margin-bottom: 32px; }
    .services-hero {
        padding: 40px 0 60px;
    }
    .services-hero-title {
        font-size: 1.75rem;
    }
    .services-hero-subtitle {
        font-size: 1rem;
    }
    .services-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero-cta, .btn-hero-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-details-grid {
        grid-template-columns: 1fr;
    }
    .services-detail-block {
        padding: 22px;
    }
    .services-why-grid {
        grid-template-columns: 1fr;
    }
    .services-timeline-wrap {
        flex-direction: column;
        align-items: center;
    }
    .timeline-connector {
        display: none;
    }
    .services-cta-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mockup-mobile {
        right: 0;
        width: 70px;
    }
}
