/* ======================================================================
   TECHNO PARTICLES SERVICES PAGE
   Home/About cyber design language applied to Services only.
   ====================================================================== */

.tp-services-page {
    background: var(--tp-bg-space, #030712) !important;
    color: var(--tp-text-primary, #f8fafc);
}

.tp-services-page .main-bg {
    background: transparent !important;
}

.tp-services-page #smooth-content {
    position: relative;
}

/* Hero */
.tp-services-hero {
    min-height: 590px;
    padding: 170px 0 105px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tp-services-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 212, .35), transparent);
}

.tp-services-title {
    max-width: 900px;
    margin: 0 0 24px;
    color: var(--tp-text-primary, #f8fafc);
    font-size: clamp(42px, 6.2vw, 88px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.tp-services-lede {
    max-width: 660px;
    margin: 0 0 30px;
    color: var(--tp-text-secondary, #94a3b8);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.65;
}

.tp-services-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tp-text-muted, #64748b);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tp-services-breadcrumb a {
    color: var(--tp-cyan, #00f5d4) !important;
    text-decoration: none;
}

.tp-services-breadcrumb a:hover {
    color: #fff !important;
}

.tp-services-profile-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(16, 30, 55, .84), rgba(7, 16, 36, .72));
    box-shadow: 0 25px 65px -15px rgba(0, 0, 0, .72), 0 0 35px rgba(0, 210, 180, .12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform .5s var(--tp-ease-expo, cubic-bezier(.16, 1, .3, 1)), box-shadow .5s ease;
}

.tp-services-profile-card:hover {
    box-shadow: 0 32px 78px -15px rgba(0, 0, 0, .82), 0 0 45px rgba(0, 245, 212, .2);
}

.tp-services-profile-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--tp-text-muted, #64748b);
    font: 700 10px/1.2 monospace;
    letter-spacing: .12em;
}

.tp-services-profile-number {
    color: #fff;
    font: 900 clamp(68px, 7vw, 104px)/.9 'Montserrat', sans-serif;
    letter-spacing: -.06em;
    background: linear-gradient(180deg, #fff 25%, var(--tp-emerald, #00d2b4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tp-services-profile-number span {
    color: var(--tp-cyan, #00f5d4);
    font-size: .5em;
    letter-spacing: 0;
}

.tp-services-profile-card p {
    max-width: 230px;
    margin: 16px 0 25px;
    color: var(--tp-text-secondary, #94a3b8);
    font-size: 13px;
    line-height: 1.6;
}

.tp-services-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--tp-cyan, #00f5d4);
    font: 700 10px/1 monospace;
    letter-spacing: .08em;
}

.tp-services-profile-meta span {
    padding: 6px 8px;
    border: 1px solid rgba(0, 245, 212, .2);
    border-radius: 5px;
    background: rgba(0, 245, 212, .06);
}

/* Service grid */
.tp-services-page .tp-services-grid-section {
    position: relative;
    padding: 160px 0 65px;
    background: transparent !important;
}

.tp-services-page .tp-services-grid-section .container {
    position: relative;
    z-index: 2;
    max-width: 1350px;
}

.tp-services-section-head {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.tp-services-section-head .tp-sec-tag {
    margin-bottom: 18px;
}

.tp-services-section-head h1 {
    margin: 0 0 15px;
    color: var(--tp-text-primary, #f8fafc);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.tp-services-section-head p {
    margin: 0 auto;
    color: var(--tp-text-secondary, #94a3b8);
    font-size: 15px;
    line-height: 1.7;
}

.tp-services-page .service-card {
    position: relative;
    height: 100%;
    min-height: 385px;
    padding: 34px 30px 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: rgba(14, 20, 32, .75);
    background-image: none;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5);
    color: var(--tp-text-primary, #f8fafc);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform .4s var(--tp-ease-expo), border-color .4s ease, background .4s ease, box-shadow .4s ease;
}

.tp-services-page .service-card.tp-hud-corners::before,
.tp-services-page .service-card.tp-hud-corners::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 5;
    transition: width .3s ease, height .3s ease, filter .3s ease;
}

.tp-services-page .service-card.tp-hud-corners::before {
    top: 8px;
    left: 8px;
    border-top: 2px solid var(--tp-emerald, #00d2b4);
    border-left: 2px solid var(--tp-emerald, #00d2b4);
}

.tp-services-page .service-card.tp-hud-corners::after {
    right: 8px;
    bottom: 8px;
    border-right: 2px solid var(--tp-cyan, #00f5d4);
    border-bottom: 2px solid var(--tp-cyan, #00f5d4);
}

.tp-services-page .service-card.tp-hud-corners:hover::before,
.tp-services-page .service-card.tp-hud-corners:hover::after {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px var(--tp-emerald, #00d2b4));
}

.tp-services-page .service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 212, .34);
    background: rgba(20, 30, 48, .9);
    color: var(--tp-text-primary, #f8fafc);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .7), 0 0 35px rgba(0, 210, 180, .15), inset 0 1px 0 rgba(0, 245, 212, .3);
}

.tp-services-page .card-id {
    top: 24px;
    right: 25px;
    color: var(--tp-text-muted, #64748b);
    font: 700 13px/1 monospace;
    letter-spacing: .1em;
    opacity: 1;
}

.tp-services-page .service-card .icon-wrapper {
    margin-bottom: 28px;
}

.tp-services-page .service-card .icon {
    width: 65px;
    height: 65px;
    padding: 15px;
    border: 1px solid rgba(0, 210, 180, .25);
    border-radius: 16px;
    background: rgba(0, 210, 180, .1);
    color: var(--tp-emerald, #00d2b4);
    transition: transform .4s var(--tp-ease-expo), background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.tp-services-page .service-card .icon img {
    filter: brightness(0) invert(1);
    transition: transform .4s ease, filter .4s ease;
}

.tp-services-page .service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--tp-cyan, #00f5d4);
    background: linear-gradient(135deg, var(--tp-emerald, #00d2b4), var(--tp-cyan, #00f5d4));
    box-shadow: 0 0 25px rgba(0, 210, 180, .5);
}

.tp-services-page .service-card:hover .icon img {
    filter: brightness(0);
    transform: scale(1.08);
}

.tp-services-page .service-card .content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 93px);
}

.tp-services-page .service-card h4 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.tp-services-page .service-card p {
    flex: 1 1 auto;
    margin-bottom: 24px;
    color: var(--tp-text-secondary, #94a3b8);
    font-size: 14px;
    line-height: 1.65;
    opacity: 1;
}

.tp-services-page .service-card:hover p {
    color: var(--tp-text-secondary, #94a3b8);
}

.tp-services-page .service-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: var(--tp-emerald, #00d2b4) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .3s ease, transform .3s ease;
}

.tp-services-page .service-card .learn-more i {
    margin-left: 0;
    font-size: 12px;
    transition: transform .3s ease;
}

.tp-services-page .service-card .learn-more:hover {
    color: var(--tp-cyan, #00f5d4) !important;
    transform: translateX(4px);
}

.tp-services-page .service-card .learn-more:hover i {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .tp-services-hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .tp-services-profile-card {
        max-width: 430px;
        margin: 45px auto 0;
    }

    .tp-services-page .tp-services-grid-section {
        padding-top: 110px;
    }
}

@media (max-width: 767px) {
    .tp-services-hero {
        padding: 120px 0 65px;
    }

    .tp-services-title {
        font-size: clamp(36px, 12vw, 58px);
    }

    .tp-services-profile-card {
        padding: 23px;
    }

    .tp-services-page .tp-services-grid-section {
        padding-bottom: 20px;
    }

    /* Keep the final service card from adding an extra mobile-only gap. */
    .tp-services-page .tp-services-grid-section .row > div:last-child {
        margin-bottom: 0 !important;
    }

    .tp-services-section-head {
        margin-bottom: 38px;
    }

    .tp-services-page .service-card {
        min-height: 350px;
        padding: 28px 22px 24px;
    }
}
