/* ============================================
   Services Page — Immersive Full-Section Layout
   Inspired by Linear, Clay Global, Obys
   ============================================ */

/* ---- Hero ---- */
.services-hero {
    background-color: #fff;
    color: var(--color-navy, #061635);
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(6, 22, 53, 0.08);
}

.services-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 91, 188, 0.07) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    pointer-events: none;
}

.services-hero h1 {
    font-size: clamp(2rem, 7vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    color: var(--color-navy, #061635);
}

.services-hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-body);
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(6, 22, 53, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    animation: bobDown 2s ease-in-out infinite;
}

.scroll-hint i {
    font-size: 0.7rem;
}

@keyframes bobDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}


/* ---- Background Floating Icons ---- */

@keyframes bgFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%      { transform: translateY(-20px) rotate(3deg); }
    66%      { transform: translateY(10px) rotate(-2deg); }
}

@keyframes bgFloat2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    40%      { transform: translateY(15px) rotate(-4deg); }
    80%      { transform: translateY(-14px) rotate(2deg); }
}

@keyframes bgFloat3 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    50%      { transform: translateY(-16px) translateX(10px) rotate(5deg); }
}

.bg-icon {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
}

.service-section--light .bg-icon {
    color: var(--color-navy, #061635);
    opacity: 0.05;
}

.service-section--dark .bg-icon {
    color: #fff;
    opacity: 0.07;
}

.service-section > .container {
    position: relative;
    z-index: 1;
}


/* ---- Service Sections ---- */
.service-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.service-section--light {
    background-color: #fff;
    color: var(--color-navy, #061635);
}

.service-section--dark {
    background-color: var(--color-navy, #061635);
    color: #fff;
}

.service-section--dark h1,
.service-section--dark h2,
.service-section--dark h3,
.service-section--dark h4 {
    color: #fff;
}

.service-section--accent {
    background: linear-gradient(135deg, var(--color-navy, #061635) 0%, #0a2a5e 50%, var(--color-primary, #025BBC) 100%);
    color: #fff;
}

.service-section--accent h1,
.service-section--accent h2,
.service-section--accent h3,
.service-section--accent h4 {
    color: #fff;
}

/* Hero heading override */
.services-hero h1 {
    color: var(--color-navy, #061635);
}

/* How We Work heading overrides */
.how-we-work h2,
.how-we-work h3 {
    color: #fff;
}


/* ---- Service Number ---- */
.service-number {
    font-size: clamp(5rem, 9vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    opacity: 0.07;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.service-section--dark .service-number,
.service-section--accent .service-number {
    opacity: 0.06;
    color: #fff;
}

.service-section--light .service-number {
    color: var(--color-navy, #061635);
}


/* ---- Service Number Inline ---- */
.service-number-inline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 12rem;
    position: relative;
}

.service-number-inline::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.15;
}

.service-section--dark .service-number-inline,
.service-section--accent .service-number-inline {
    color: rgba(255, 255, 255, 0.4);
}

.service-section--light .service-number-inline {
    color: rgba(6, 22, 53, 0.35);
}


/* ---- Service Grid (2 columns) ---- */
.service-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
}


/* ---- Left Column — Title + Description ---- */
.service-info h2 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    line-height: 1.08;
    text-transform: uppercase;
}

.service-info .service-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 520px;
    letter-spacing: -0.01em;
}

.service-section--dark .service-desc,
.service-section--accent .service-desc {
    color: rgba(255, 255, 255, 0.6);
}

.service-section--light .service-desc {
    color: #555;
}


/* ---- Tech Tags ---- */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.service-section--light .tech-tag {
    background: rgba(2, 91, 188, 0.08);
    color: var(--color-primary, #025BBC);
}

.service-section--dark .tech-tag,
.service-section--accent .tech-tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-tag i {
    font-size: 0.7rem;
}


/* ---- Service CTA Button ---- */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-section--light .service-cta {
    background: var(--color-navy, #061635);
    color: #fff;
}

.service-section--light .service-cta:hover {
    background: var(--color-primary, #025BBC);
    transform: translateX(4px);
}

.service-section--dark .service-cta,
.service-section--accent .service-cta {
    background: #fff;
    color: var(--color-navy, #061635);
}

.service-section--dark .service-cta:hover,
.service-section--accent .service-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

.service-cta i {
    transition: transform 0.3s ease;
}

.service-cta:hover i {
    transform: translateX(4px);
}


/* ---- Right Column — Features ---- */
.service-features h4 {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.service-section--dark .service-features h4,
.service-section--accent .service-features h4 {
    color: rgba(255, 255, 255, 0.4);
}

.service-section--light .service-features h4 {
    color: rgba(6, 22, 53, 0.4);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.service-section--light .feature-list li {
    color: #3a4555;
}

.service-section--light .feature-list li i {
    color: var(--color-primary, #025BBC);
}

.service-section--dark .feature-list li,
.service-section--accent .feature-list li {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.service-section--dark .feature-list li i,
.service-section--accent .feature-list li i {
    color: rgba(2, 91, 188, 0.8);
}

/* Two-column features */
.features-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}


/* ---- How We Work Section ---- */
.how-we-work {
    background: var(--color-navy, #061635);
    color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.how-we-work h2 {
    font-size: 3.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.how-we-work .section-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
}

/* Timeline Container */
.process-timeline {
    position: relative;
    padding: 0;
}

/* The connecting line */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(2, 91, 188, 0.4) 15%, rgba(2, 91, 188, 0.4) 85%, transparent 100%);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.process-step {
    text-align: left;
    padding: 0 2.5rem;
    position: relative;
}

/* Glowing dot on the timeline */
.process-step::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 2.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary, #025BBC);
    box-shadow: 0 0 12px rgba(2, 91, 188, 0.5), 0 0 30px rgba(2, 91, 188, 0.2);
    z-index: 1;
}

/* Step number — large, faded */
.step-number {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    margin-bottom: 0;
    margin-top: 2.5rem;
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.process-step p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}


/* ---- Bottom CTA ---- */
.bottom-cta {
    background: #fff;
    padding: 6rem 0;
    text-align: left;
}

.bottom-cta h2 {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--color-navy, #061635);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.bottom-cta p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.bottom-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bottom-cta-form {
    max-width: 680px;
    margin-top: 2.5rem;
}

.bottom-cta-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bottom-cta-form .contact-form .btn-block {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: auto;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}


/* ---- Scroll Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}


/* ---- Responsive ---- */
@media (max-width: 900px) {
    .services-hero {
        padding-top: 140px;
        padding-bottom: 70px;
    }

    .services-hero h1 {
        font-size: 2.8rem;
    }

    .service-section {
        padding: 4rem 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .service-number {
        font-size: 4rem;
    }

    .service-number-inline {
        padding-right: 6rem;
    }

    .service-info h2 {
        font-size: 2rem;
    }

    .process-timeline::before {
        display: none;
    }

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

    .process-step::before {
        display: none;
    }

    .process-step {
        padding: 0;
        border-left: 2px solid rgba(2, 91, 188, 0.3);
        padding-left: 2rem;
    }

    .step-number {
        font-size: 3rem;
    }

    .how-we-work h2,
    .bottom-cta h2 {
        font-size: 2rem;
    }

    .how-we-work,
    .bottom-cta {
        padding: 4rem 0;
    }

    .bottom-cta-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services-hero {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .services-hero h1 {
        font-size: 2.5rem;
    }

    .services-hero .hero-subtitle {
        font-size: 0.9rem;
    }

    .service-info h2 {
        font-size: 1.6rem;
    }

    .tech-tags {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .how-we-work h2,
    .bottom-cta h2 {
        font-size: 1.6rem;
    }

    .service-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .services-hero h1 {
        font-size: 1.8rem;
    }

    .service-info h2 {
        font-size: 1.4rem;
    }

    .how-we-work,
    .bottom-cta {
        padding: 3rem 0;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .process-step {
        padding-left: 1.25rem;
    }
}