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

/* Service Hero Lines */
.service-hero__lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.service-hero__line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--color-primary), transparent);
    opacity: 0.1;
    animation: serviceLineMove 8s linear infinite;
}

.service-hero__line:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.service-hero__line:nth-child(2) {
    left: 50%;
    animation-delay: 2.5s;
}

.service-hero__line:nth-child(3) {
    left: 80%;
    animation-delay: 5s;
}

@keyframes serviceLineMove {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Service Navigation */
.service-nav {
    background: var(--color-base-light);
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
}

.service-nav__inner {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.service-nav__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--color-text-muted);
    border-radius: 10px;
    transition: all var(--transition-base);
}

.service-nav__item:hover {
    color: var(--color-white);
    background: var(--glass-bg);
}

.service-nav__number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.7;
}

.service-nav__name {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Service Section */
.service-section {
    padding: 8rem 0;
}

.service-section--alt {
    background: var(--color-base-light);
}

/* Service Detail */
.service-detail {
    display: grid;
    gap: 4rem;
}

.service-detail__header {
    text-align: center;
}

.service-detail__number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(123, 104, 238, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.service-detail__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-10);
    border: 1px solid var(--color-primary-20);
    border-radius: 28px;
    color: var(--color-primary);
}

.service-detail__icon--accent {
    background: var(--color-accent-10);
    border-color: var(--color-accent-20);
    color: var(--color-accent);
}

.service-detail__icon--success {
    background: var(--color-success-10);
    border-color: var(--color-success-20);
    color: var(--color-success);
}

.service-detail__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-detail__subtitle {
    font-size: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-detail__description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.service-detail__lead {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.service-detail__description p:last-child {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Service Features Grid */
.service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-feature {
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.service-feature:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

.service-feature__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-10);
    border: 1px solid var(--color-primary-20);
    border-radius: 16px;
    color: var(--color-primary);
}

.service-feature__icon--accent {
    background: var(--color-accent-10);
    border-color: var(--color-accent-20);
    color: var(--color-accent);
}

.service-feature__icon--success {
    background: var(--color-success-10);
    border-color: var(--color-success-20);
    color: var(--color-success);
}

.service-feature__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.service-feature__desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Service Feature Link Cards */
.service-feature--link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.service-feature--link:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

.service-feature__link-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.service-feature--link:hover .service-feature__link-label {
    color: var(--color-white);
}

.service-feature__link-label svg {
    transition: transform var(--transition-base);
}

.service-feature--link:hover .service-feature__link-label svg {
    transform: translate(2px, -2px);
}

/* Service features stagger */
.service-features .service-feature:nth-child(1) { --reveal-delay: 0; }
.service-features .service-feature:nth-child(2) { --reveal-delay: 1; }
.service-features .service-feature:nth-child(3) { --reveal-delay: 2; }
.service-features .service-feature:nth-child(4) { --reveal-delay: 3; }
.service-features .service-feature:nth-child(5) { --reveal-delay: 4; }
.service-features .service-feature:nth-child(6) { --reveal-delay: 5; }

/* Service Showcase (App Images) */
.service-showcase {
    max-width: 700px;
    margin: 3rem auto;
    text-align: center;
}

.service-showcase__image {
    display: block;
    position: relative;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
}

.service-showcase__image:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

.service-showcase__image--accent:hover {
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.15);
}

.service-showcase__image--success:hover {
    box-shadow: 0 20px 60px rgba(0, 230, 118, 0.15);
}

.service-showcase__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.service-showcase__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.service-showcase__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.service-showcase__tagline {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.service-showcase__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-10);
    border: 1px solid var(--color-primary-30);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.service-showcase__link:hover {
    color: var(--color-white);
    background: var(--color-primary-20);
    border-color: var(--color-primary-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--color-primary-20);
}

.service-showcase__link svg {
    transition: transform var(--transition-base);
}

.service-showcase__link:hover svg {
    transform: translate(2px, -2px);
}

.service-showcase__link--accent {
    color: var(--color-accent);
    background: var(--color-accent-10);
    border-color: var(--color-accent-30);
}

.service-showcase__link--accent:hover {
    background: var(--color-accent-20);
    border-color: var(--color-accent-50);
    box-shadow: 0 8px 24px var(--color-accent-20);
}

.service-showcase__link--success {
    color: var(--color-success);
    background: var(--color-success-10);
    border-color: var(--color-success-30);
}

.service-showcase__link--success:hover {
    background: var(--color-success-20);
    border-color: var(--color-success-30);
    box-shadow: 0 8px 24px var(--color-success-20);
}

/* Process Section */
.section--process {
    background: linear-gradient(180deg, var(--color-base-light) 0%, var(--color-base) 100%);
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
    opacity: 0.3;
}

.process-step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.process-step__number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-base);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.process-step:hover .process-step__number {
    background: var(--color-primary);
    color: var(--color-base);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.process-step__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.process-step__desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Process stagger */
.process-steps .process-step:nth-child(1) { --reveal-delay: 0; }
.process-steps .process-step:nth-child(2) { --reveal-delay: 1; }
.process-steps .process-step:nth-child(3) { --reveal-delay: 2; }

/* Service Features Wide Layout */
.service-features--wide {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
