/* Services Page Styles */

/* Base Layout */
.services-page {
    position: relative;
    padding-bottom: 50px;
}

/* Hero Section (Reusing similar stacked layout from About for consistency) */
.services-hero {
    padding-top: 150px;
    padding-bottom: 100px;
    text-align: center;
}

.services-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
}

.services-hero .gradient-text {
    background: linear-gradient(135deg, #f472b6 0%, #a855f7 100%);
    /* Slightly different gradient for variety: Pink to Purple */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.services-hero p {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 650px;
    font-weight: 300;
}

/* Service Detail Rows */
.services-detail {
    margin-bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-row.reverse {
    direction: rtl;
    /* simple trick to swap columns, text will need explicit ltr */
}

.service-row.reverse .service-text,
.service-row.reverse .service-img {
    direction: ltr;
    /* Reset text direction */
}

/* Service Text */
.service-text {
    position: relative;
}

.service-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -60px;
    left: -20px;
    z-index: -1;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.service-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
}

.service-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #a855f7;
    margin-top: 15px;
    border-radius: 2px;
}

.service-text p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.feature-list li i {
    color: #a855f7;
    font-size: 0.9rem;
    background: rgba(168, 85, 247, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Service Image / Placeholder */
.service-img {
    width: 100%;
}

.img-wrapper {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.img-wrapper:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.img-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.placeholder-icon {
    font-size: 4rem;
    color: #cbd5e1;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.img-wrapper:hover .placeholder-icon {
    transform: scale(1.1) rotate(-5deg);
    color: #a855f7;
    opacity: 1;
}

/* Process Section */
.process-section {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(2, 6, 23, 0) 100%);
    padding: 100px 0;
    margin-bottom: 100px;
}

.section-title-center {
    text-align: center;
    margin-bottom: 70px;
}

.section-title-center h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title-center p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(168, 85, 247, 0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #2e1065;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    border: 4px solid #0f172a;
    /* Outline effect to separate from bg */
    box-shadow: 0 0 0 2px #2e1065;
}

.process-step:hover .step-number {
    background: #a855f7;
    box-shadow: 0 0 0 2px #a855f7;
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.process-step p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Process Arrow Connectors (Desktop only) */
@media (min-width: 901px) {
    .process-step:not(:last-child)::after {
        content: '\f061';
        /* FontAwesome right arrow */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        right: -25px;
        /* Half of gap roughly */
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.1);
        font-size: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .service-row {
        display: flex;
        /* Override grid */
        flex-direction: column;
        gap: 50px;
    }

    .service-row.reverse {
        direction: ltr;
        /* Reset direction */
    }

    .service-img {
        order: -1;
        /* Image first on mobile */
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .services-hero h1 {
        font-size: 2.8rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}