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

/* --------------------------------------------------------------------------
   Service Hero
   -------------------------------------------------------------------------- */
.service-hero {
    padding: calc(var(--space-24) + 80px) 0 var(--space-16);
    position: relative;
    overflow: hidden;
}

.service-hero .hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-hero .hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 28, 0.5) 0%,
        rgba(10, 15, 28, 0.7) 50%,
        rgba(10, 15, 28, 0.9) 100%
    );
}

.service-hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    transition: color var(--transition-fast);
}

.back-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.back-link:hover {
    color: var(--color-accent-cyan);
}

.back-link:hover svg {
    transform: translateX(-4px);
}

.service-category-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-blue);
    background: rgba(56, 124, 241, 0.1);
    border: 1px solid rgba(56, 124, 241, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.service-hero-title {
    font-family: var(--font-header);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.service-hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.service-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
}

.service-hero-visual {
    display: none;
    justify-content: center;
    align-items: center;
}

.service-hero-visual svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Pulse animation for hero visual */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.pulse-ring {
    animation: pulse-ring 3s ease-out infinite;
    transform-origin: center;
}

.pulse-ring.delay {
    animation-delay: 1.5s;
}

/* --------------------------------------------------------------------------
   Use Cases Section
   -------------------------------------------------------------------------- */
.use-cases {
    padding: var(--space-24) 0;
    background: var(--color-bg-card);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.use-case-card {
    padding: var(--space-8);
    text-align: center;
}

.use-case-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    color: var(--color-accent-blue);
}

.use-case-icon svg {
    width: 100%;
    height: 100%;
}

.use-case-title {
    font-family: var(--font-header);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.use-case-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Approach Section
   -------------------------------------------------------------------------- */
.approach {
    padding: var(--space-24) 0;
}

.approach-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-track {
    display: none;
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-progress {
    width: 100%;
    height: 0%;
    background: var(--gradient-primary);
    transition: height 0.5s ease;
}

.approach-stages {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.approach-stage {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6);
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.approach-stage:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.stage-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
}

.stage-number {
    font-family: var(--font-header);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-bg-main);
}

.stage-content {
    flex: 1;
}

.stage-title {
    font-family: var(--font-header);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.stage-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.stage-deliverables {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.stage-deliverables li {
    font-size: var(--text-sm);
    color: var(--color-accent-cyan);
    background: rgba(55, 243, 255, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Benefits Section
   -------------------------------------------------------------------------- */
.benefits {
    padding: var(--space-24) 0;
    background: var(--color-bg-card);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.benefit-card {
    padding: var(--space-6);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-4);
    color: var(--color-accent-blue);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-title {
    font-family: var(--font-header);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.benefit-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Workshops Section
   -------------------------------------------------------------------------- */
.workshops {
    padding: var(--space-24) 0;
}

.workshops-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.workshop-card {
    padding: var(--space-8);
    position: relative;
}

.workshop-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-bg-main);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.workshop-title {
    font-family: var(--font-header);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.workshop-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.workshop-topics {
    margin-bottom: var(--space-6);
}

.workshop-topics li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.workshop-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Partners Section
   -------------------------------------------------------------------------- */
.service-partners {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   Service CTA Section
   -------------------------------------------------------------------------- */
.service-cta {
    padding: var(--space-24) 0;
}

.cta-card {
    padding: var(--space-12);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-header);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (min-width: 768px) {
    .service-hero-title {
        font-size: var(--text-5xl);
    }

    .service-hero-ctas {
        flex-direction: row;
    }

    .service-hero-visual {
        display: flex;
    }

    .service-hero .container {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .cta-buttons {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .service-hero-title {
        font-size: var(--text-6xl);
    }

    .timeline-track {
        display: block;
    }

    .approach-stage {
        padding-left: var(--space-16);
    }

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

    .use-case-card {
        padding: var(--space-6);
    }

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

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

    .workshop-card:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding-top: calc(var(--space-16) + 80px);
    }

    .service-hero-title {
        font-size: var(--text-3xl);
    }

    .approach-stage {
        flex-direction: column;
        text-align: center;
    }

    .stage-marker {
        margin: 0 auto;
    }

    .stage-deliverables {
        justify-content: center;
    }

    .cta-card {
        padding: var(--space-8);
    }

    .cta-title {
        font-size: var(--text-2xl);
    }
}

/* --------------------------------------------------------------------------
   Category Banner Images
   -------------------------------------------------------------------------- */
.category-banner {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-4) 0 var(--space-6);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 15, 28, 0.9) 0%,
        rgba(10, 15, 28, 0.7) 35%,
        rgba(10, 15, 28, 0.2) 100%
    );
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.banner-text {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: var(--space-6);
    max-width: 55%;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    z-index: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .category-banner {
        height: 140px;
    }

    .banner-text {
        max-width: 80%;
        font-size: 0.85rem;
        padding: var(--space-4);
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .category-banner {
        height: 170px;
    }

    .banner-text {
        max-width: 55%;
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .category-banner {
        height: 180px;
    }

    .banner-text {
        max-width: 50%;
        font-size: 1rem;
        padding: var(--space-8);
    }
}
