/* ===========================
   Service Detail Page Styles
   =========================== */

/* ---------- Service Hero ---------- */
.service-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 6rem 0 4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 70%);
    pointer-events: none;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #94a3b8;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #60a5fa;
}

.breadcrumb span {
    color: #fff;
}

.service-hero-content {
    max-width: 800px;
}

.service-hero .service-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #60a5fa;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-hero p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 700px;
}

/* ---------- Service Overview ---------- */
.service-overview {
    padding: 5rem 0;
    background: #fff;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-image img {
    border-radius: 16px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.overview-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2rem;
}

/* ---------- Capabilities Section ---------- */
.capabilities-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.capability-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.capability-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.capability-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.capability-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.capability-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

.capability-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ---------- Tech Stack Section ---------- */
.tech-stack-section {
    padding: 5rem 0;
    background: #fff;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
}

.tech-item:hover {
    background: #fff;
    border-color: #bfdbfe;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.2);
}

.tech-item i {
    font-size: 2.5rem;
    color: #2563eb;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

/* ---------- Process Section ---------- */
.process-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.process-timeline {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
}

.process-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.process-content {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.04);
}

.process-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

.process-content p {
    color: #64748b;
    line-height: 1.7;
}

/* ---------- Case Studies Section ---------- */
.case-studies-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.case-study-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.case-study-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.case-study-image {
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 2rem;
}

.case-study-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

.case-study-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-study-metrics {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.case-metric {
    text-align: center;
}

.case-metric .num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.case-metric .lbl {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.3rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-stack-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-item {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .service-hero {
        padding: 4rem 0 3rem;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero p {
        font-size: 1.1rem;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-number {
        margin: 0 auto;
    }
}
