/* ==========================================================================
   Forge & Finite — Service Detail Page Intro
   ========================================================================== */

/* ── Section shell ─────────────────────────────────────────────────────── */
.svc-intro {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    background: #ffffff;
}

.dark-mode .svc-intro {
    background: #07080f;
}

/* ── Animated background blobs ─────────────────────────────────────────── */
.svc-intro__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: svcBlobFloat 14s ease-in-out infinite alternate;
}

.svc-intro__blob--a {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    top: -180px;
    right: -120px;
}

.svc-intro__blob--b {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(236,72,153,0.07) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    animation-duration: 11s;
    animation-delay: -5s;
}

.dark-mode .svc-intro__blob--a {
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
}
.dark-mode .svc-intro__blob--b {
    background: radial-gradient(circle, rgba(236,72,153,0.13) 0%, transparent 70%);
}

@keyframes svcBlobFloat {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(30px,-25px) scale(1.06); }
    100% { transform: translate(-15px, 20px) scale(0.97); }
}

/* ── Container ─────────────────────────────────────────────────────────── */
.svc-intro__container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
}

/* ── Main grid ─────────────────────────────────────────────────────────── */
.svc-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ── Eyebrow / label ────────────────────────────────────────────────────── */
.svc-intro__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.svc-intro__eyebrow-line {
    display: block;
    width: 3px;
    height: 18px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
    border-radius: 9999px;
    flex-shrink: 0;
}

.svc-intro__eyebrow-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1.4;
}

.dark-mode .svc-intro__eyebrow-text {
    color: #818cf8;
}

/* ── Heading ───────────────────────────────────────────────────────────── */
.svc-intro__heading {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 60%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .svc-intro__heading {
    background: linear-gradient(135deg, #f1f5f9 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Description ───────────────────────────────────────────────────────── */
.svc-intro__desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.dark-mode .svc-intro__desc {
    color: #94a3b8;
}

/* ── CTA Button ────────────────────────────────────────────────────────── */
.svc-intro__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.9rem 2.25rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff !important;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px -6px rgba(99,102,241,0.45);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.svc-intro__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
    left: -100%;
    transition: left 0.5s ease;
}

.svc-intro__cta:hover::before {
    left: 100%;
}

.svc-intro__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -8px rgba(99,102,241,0.55);
}

.svc-intro__cta-icon {
    transition: transform 0.3s ease;
}

.svc-intro__cta:hover .svc-intro__cta-icon {
    transform: translateX(5px);
}

/* ── Trust strip ───────────────────────────────────────────────────────── */
.svc-intro__trust {
    display: flex;
    align-items: center;
    gap: 0;
}

.svc-intro__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.75rem;
}

.svc-intro__trust-item:first-child {
    padding-left: 0;
}

.svc-intro__trust-num {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
}

.svc-intro__trust-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark-mode .svc-intro__trust-label {
    color: #64748b;
}

.svc-intro__trust-divider {
    width: 1px;
    height: 36px;
    background: rgba(99,102,241,0.15);
    flex-shrink: 0;
}

/* ── Visual / image mosaic ─────────────────────────────────────────────── */
.svc-intro__visual {
    position: relative;
    height: 520px;
}

/* Glow ring behind the mosaic */
.svc-intro__ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(99,102,241,0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: svcRingPulse 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.svc-intro__ring::before {
    content: '';
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 1px solid rgba(139,92,246,0.08);
}

@keyframes svcRingPulse {
    0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
    50%       { transform: translate(-50%,-50%) scale(1.05); opacity: 0.6; }
}

/* Image tiles */
.svc-intro__img {
    position: absolute;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,0.14);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease;
    z-index: 5;
}

.dark-mode .svc-intro__img {
    box-shadow: 0 16px 40px -12px rgba(0,0,0,0.45);
}

.svc-intro__img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 56px -16px rgba(99,102,241,0.22);
    z-index: 15;
}

.dark-mode .svc-intro__img:hover {
    box-shadow: 0 28px 56px -16px rgba(0,0,0,0.55);
}

.svc-intro__img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.svc-intro__img:hover img {
    transform: scale(1.07);
}

/* Tile positions — 2×2 overlapping mosaic */
.svc-intro__img--tl {
    width: 58%;
    height: 52%;
    top: 0;
    left: 0;
    border: 4px solid #ffffff;
}

.dark-mode .svc-intro__img--tl {
    border-color: #1e293b;
}

.svc-intro__img--tr {
    width: 38%;
    height: 40%;
    top: 0;
    right: 0;
    border: 4px solid #ffffff;
    animation: imgFloat1 6s ease-in-out infinite alternate;
}

.dark-mode .svc-intro__img--tr {
    border-color: #1e293b;
}

.svc-intro__img--bl {
    width: 38%;
    height: 43%;
    bottom: 0;
    left: 0;
    border: 4px solid #ffffff;
    animation: imgFloat2 7s ease-in-out infinite alternate;
}

.dark-mode .svc-intro__img--bl {
    border-color: #1e293b;
}

.svc-intro__img--br {
    width: 56%;
    height: 46%;
    bottom: 0;
    right: 0;
    border: 4px solid #ffffff;
}

.dark-mode .svc-intro__img--br {
    border-color: #1e293b;
}

@keyframes imgFloat1 {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@keyframes imgFloat2 {
    0%   { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Floating badge */
.svc-intro__visual-badge {
    position: absolute;
    bottom: 26px;
    left: -20px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 24px -4px rgba(99,102,241,0.5);
    animation: badgeHover 4s ease-in-out infinite alternate;
}

.svc-intro__visual-badge i {
    font-size: 0.9rem;
}

@keyframes badgeHover {
    0%   { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(-8px) rotate(1deg); }
}

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

@media (max-width: 1024px) {
    .svc-intro {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .svc-intro__grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .svc-intro__content {
        max-width: 640px;
        margin: 0 auto;
        text-align: center;
    }

    .svc-intro__eyebrow {
        justify-content: center;
    }

    .svc-intro__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .svc-intro__trust {
        justify-content: center;
    }

    .svc-intro__visual {
        height: 420px;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .svc-intro__ring {
        width: 320px;
        height: 320px;
    }

    .svc-intro__visual-badge {
        left: 0;
    }
}

@media (max-width: 768px) {
    .svc-intro {
        padding: 110px 0 60px;
    }

    .svc-intro__container { padding: 0 1.5rem; }

    .svc-intro__heading { font-size: clamp(2rem, 6vw, 2.75rem); }

    .svc-intro__desc { font-size: 1rem; }

    .svc-intro__visual { height: 360px; }

    .svc-intro__trust-item { padding: 0 1.25rem; }
    .svc-intro__trust-num { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .svc-intro {
        padding: 100px 0 50px;
    }

    .svc-intro__container { padding: 0 1.125rem; }

    .svc-intro__heading { font-size: clamp(1.75rem, 7vw, 2.25rem); }

    .svc-intro__cta { padding: 0.8rem 1.75rem; font-size: 0.9rem; }

    .svc-intro__visual { height: 290px; }

    .svc-intro__img { border-width: 3px !important; }

    .svc-intro__trust-item { padding: 0 1rem; }
    .svc-intro__trust-num { font-size: 1.25rem; }
    .svc-intro__trust-label { font-size: 0.72rem; }

    .svc-intro__visual-badge {
        font-size: 0.72rem;
        padding: 0.5rem 0.9rem;
        left: -5px;
        bottom: 14px;
    }
}

@media (max-width: 360px) {
    .svc-intro__heading { font-size: 1.6rem; }
    .svc-intro__visual { height: 250px; }
    .svc-intro__ring { width: 240px; height: 240px; }
}

