/* ============================================================
   SERVICE DETAIL PAGES — Shared Styles v3.0
   ============================================================ */

/* HERO */
.service-hero {
    position: relative;
    padding: 100px 0 60px;
    background: #081443;
    overflow: hidden;
    text-align: center;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -300px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(110, 70, 217, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -300px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(51, 50, 190, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.service-hero-bg {
    display: none;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.service-hero-image {
    position: relative;
    z-index: 2;
    text-align: right;
}

.service-hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(8, 20, 67, 0.25);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    display: inline-block;
}

.service-hero-image img:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px rgba(8, 20, 67, 0.35);
}

/* Centered single-column intro */
.service-intro-single {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-intro-single h2 {
    font-size: 2.2rem;
    color: #081443;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.service-intro-single p {
    font-size: 1.1rem;
    color: #5C627E;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-badge {
    display: inline-block;
    background: rgba(51, 50, 190, 0.15);
    color: #AEAED6;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(51, 50, 190, 0.3);
}

.service-hero h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: -1px;
    line-height: 1.15;
    white-space: nowrap;
}

.service-hero-sub {
    font-size: 1.2rem;
    color: #AEAED6;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero .btn-primary {
    padding: 16px 36px;
    font-size: 1.05rem;
    text-decoration: none;
}

/* INTRO SECTION */
.service-intro {
    padding: 80px 0;
    background: #F3F4FC;
}

.service-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-intro-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(8, 20, 67, 0.1);
    transition: transform 0.4s ease;
}

.service-intro-image img:hover {
    transform: translateY(-6px);
}

.service-intro-text h2 {
    font-size: 2.2rem;
    color: #081443;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.service-intro-text p {
    font-size: 1.1rem;
    color: #5C627E;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* FEATURES SECTION */
.service-features {
    padding: 80px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: #F3F4FC;
    border: 1px solid rgba(174, 174, 214, 0.4);
    border-radius: 20px;
    padding: 24px 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3332BE, #6E46D9);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.feature-card:hover {
    box-shadow: 0 16px 40px rgba(8, 20, 67, 0.08);
    border-color: rgba(51, 50, 190, 0.3);
    /* Transform handled by JS 3D Tilt */
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(51, 50, 190, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #3332BE;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.05rem;
    color: #081443;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.88rem;
    color: #5C627E;
    line-height: 1.6;
    margin: 0;
}

/* USE CASES SECTION */
.service-usecases {
    padding: 80px 0;
    background: #F3F4FC;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.usecase-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 4px 20px rgba(8, 20, 67, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(174, 174, 214, 0.4);
    overflow: hidden;
}

.usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3332BE, #6E46D9);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.usecase-card:hover {
    box-shadow: 0 16px 40px rgba(8, 20, 67, 0.08);
    border-color: rgba(51, 50, 190, 0.3);
    /* Transform handled by JS 3D Tilt */
}

.usecase-card:hover::before {
    transform: scaleX(1);
}

.usecase-number {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3332BE, #6E46D9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.usecase-card h3 {
    font-size: 1.15rem;
    color: #081443;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.usecase-card p {
    font-size: 0.92rem;
    color: #5C627E;
    line-height: 1.65;
    margin: 0;
}

/* CTA SECTION */
.service-cta {
    padding: 80px 0;
    background: #ffffff;
}

.cta-card {
    background: var(--grad);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.cta-card p {
    font-size: 1.15rem;
    color: #AEAED6;
    margin: 0 0 32px 0;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

.cta-card .btn-primary {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--purple);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.cta-card .btn-primary:hover {
    background: var(--white);
    color: var(--royal);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 32px rgba(255, 255, 255, 0.3), 0 0 20px rgba(110, 70, 217, 0.4);
}

/* RESPONSIVE */
@media (max-width: 1024px) {

    .features-grid,
    .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .service-hero-sub {
        margin-left: auto;
    }

    .service-hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 80px 0 60px;
    }

    .service-hero h1 {
        font-size: 2.2rem;
        white-space: normal;
    }

    .service-hero-sub {
        font-size: 1.05rem;
    }

    .service-hero .btn-primary {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .service-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid,
    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 {
        font-size: 1.6rem;
    }
}
/* Hide images on service pages for mobile */
@media (max-width: 768px) {
  .service-hero-image {
    display: none !important;
  }
}
