/* ============================================================
   SERVICE PAGE PREMIUM STYLES — hjLabs.in
   Applied globally to all /services/* pages via their styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background: #f0f4ff !important;
    color: #1e1b4b !important;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px;
}

/* ── SCROLL PROGRESS ── */
#sp-scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #10b981, #764ba2);
    z-index: 9999;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(102, 126, 234, .7);
    transition: width .1s linear;
}

/* ── PAGE LOADER ── */
#sp-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity .6s, visibility .6s;
}

#sp-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sp-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(102, 126, 234, .2);
    border-top: 3px solid #667eea;
    border-right: 3px solid #10b981;
    border-radius: 50%;
    animation: sp-spin .9s linear infinite;
    box-shadow: 0 0 24px rgba(102, 126, 234, .5);
}

.sp-ring-text {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #667eea, #10b981, #764ba2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sp-shimmer 2s linear infinite;
}

@keyframes sp-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sp-shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ── PREMIUM HERO / HEADER ── */
header .header-content,
.header-content {
    position: relative !important;
    background: linear-gradient(-45deg, #1a237e, #0d47a1, #311b92, #4a148c) !important;
    background-size: 400% 400% !important;
    animation: sp-hero-bg 15s ease infinite !important;
    padding: 100px 0 90px !important;
    overflow: hidden !important;
}

@keyframes sp-hero-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, .35), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, .25), transparent 45%),
        radial-gradient(ellipse at 60% 80%, rgba(118, 75, 162, .3), transparent 50%);
    animation: sp-aurora 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes sp-aurora {
    0% {
        opacity: .6
    }

    100% {
        opacity: 1
    }
}

/* Orbs inside hero */
.header-content::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    top: -100px;
    left: -80px;
    background: radial-gradient(circle, rgba(102, 126, 234, .3), transparent 70%);
    filter: blur(60px);
    animation: sp-orb-a 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sp-orb-a {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    40% {
        transform: translate(30px, -20px) scale(1.1)
    }

    70% {
        transform: translate(-15px, 20px) scale(.95)
    }
}

.header-content .container,
.header-text {
    position: relative;
    z-index: 2 !important;
}

/* Hero wave at bottom */
.header-content .sp-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.header-content .sp-wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

/* Hero typography */
.header-text h1 {
    font-size: clamp(2rem, 5vw, 3.4rem) !important;
    font-weight: 900 !important;
    color: white !important;
    letter-spacing: -1px !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .3) !important;
    margin-bottom: 18px !important;
}

.header-text .lead {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, .9) !important;
    max-width: 620px;
    margin: 0 auto 28px !important;
}

/* Hero CTA buttons */
.header-text .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    padding: 13px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: .95rem !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, .4) !important;
    transition: transform .3s, box-shadow .3s !important;
}

.header-text .btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(102, 126, 234, .55) !important;
}

.header-text .btn-outline-primary,
.header-text .btn-outline-light {
    background: rgba(255, 255, 255, .1) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, .35) !important;
    color: white !important;
    padding: 13px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: .95rem !important;
    transition: all .3s !important;
}

.header-text .btn-outline-primary:hover,
.header-text .btn-outline-light:hover {
    background: rgba(255, 255, 255, .2) !important;
    transform: translateY(-3px) !important;
    color: white !important;
}

/* Breadcrumb refinement in hero */
#breadcrumb.breadcrumb .breadcrumb-item,
#breadcrumb.breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, .65) !important;
    font-size: .82rem !important;
    font-weight: 500;
}

#breadcrumb.breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, .9) !important;
}

#breadcrumb.breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .4) !important;
}

/* ── MAIN BACKGROUND ── */
main {
    background: linear-gradient(160deg, #f0f4ff, #f5f3ff 40%, #f0fdfa 70%, #f0f4ff) !important;
    background-size: 400% 400% !important;
    animation: sp-bg 20s ease infinite !important;
}

@keyframes sp-bg {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* ── SECTION HEADINGS ── */
main h2.text-center,
main h2:not(.card-title):not(.h5):not(.h2) {
    font-size: clamp(1.5rem, 4vw, 2.2rem) !important;
    font-weight: 900 !important;
    background: linear-gradient(90deg, #1e1b4b, #667eea 50%, #764ba2) !important;
    background-size: 300% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: sp-h2 5s linear infinite !important;
    margin-bottom: 16px !important;
}

@keyframes sp-h2 {
    0% {
        background-position: 0% center
    }

    100% {
        background-position: 300% center
    }
}

/* ── PREMIUM SECTION BACKGROUNDS ── */
section.bg-light,
.bg-light.py-5 {
    background: white !important;
    border-top: 1px solid rgba(102, 126, 234, .08) !important;
    border-bottom: 1px solid rgba(102, 126, 234, .08) !important;
}

section.bg-dark,
.bg-dark.py-5 {
    background: linear-gradient(160deg, #0f172a, #1e1b4b) !important;
    position: relative;
    overflow: hidden;
}

section.bg-dark::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, .2), transparent 70%);
    border-radius: 50%;
    animation: sp-orb-a 12s ease-in-out infinite;
    pointer-events: none;
}

section.bg-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    position: relative;
    overflow: hidden;
}

/* ── PREMIUM CARDS ── */
.card,
.modern-card {
    background: white !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(102, 126, 234, .1) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, .07) !important;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s, border-color .4s !important;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: skewX(-20deg);
    transition: left .55s;
    pointer-events: none;
}

.card:hover::after {
    left: 130%;
}

.card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(102, 126, 234, .15) !important;
    border-color: rgba(102, 126, 234, .25) !important;
}

.card.border-primary {
    border-color: #667eea !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, .2) !important;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-radius: 18px 18px 0 0 !important;
    border: none !important;
}

.card-header.bg-white {
    background: white !important;
    border-bottom: 1.5px solid rgba(102, 126, 234, .1) !important;
    padding: 16px 20px !important;
}

.card-body {
    padding: 24px 20px !important;
}

.card-footer.bg-white {
    background: white !important;
    border-top: 1.5px solid rgba(102, 126, 234, .08) !important;
    padding: 16px 20px !important;
}

.card-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #1e1b4b !important;
    margin-bottom: 10px !important;
}

.card-text {
    font-size: .875rem !important;
    color: #4b5563 !important;
    line-height: 1.7 !important;
}

/* ── FEATURE LIST ── */
.feature-list li {
    padding: 10px 0 10px 32px !important;
    position: relative !important;
    border-bottom: 1px solid rgba(102, 126, 234, .08) !important;
    font-size: .9rem !important;
    color: #374151 !important;
    line-height: 1.65 !important;
}

.feature-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 10px;
    color: #667eea;
    font-size: 14px;
}

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

/* ── STAT ITEMS ── */
.stat-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, .08), rgba(118, 75, 162, .08)) !important;
    border: 1.5px solid rgba(102, 126, 234, .15) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    transition: transform .3s !important;
}

.stat-item:hover {
    transform: translateY(-4px) !important;
}

.stat-item .h2.text-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 2.4rem !important;
    font-weight: 900 !important;
}

/* ── PROCESS STEPS ── */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(102, 126, 234, .1);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, .35);
}

.step-content strong {
    color: #1e1b4b;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.step-content p {
    font-size: .85rem;
    color: #64748b;
    margin: 0;
}

/* ── USE CASE / COMPARISON CARDS ── */
.use-case-card,
.comparison-card,
.p-4.border.rounded {
    background: white !important;
    border: 1.5px solid rgba(102, 126, 234, .12) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, .06) !important;
    transition: transform .3s, box-shadow .3s !important;
}

.use-case-card:hover,
.comparison-card:hover,
.p-4.border.rounded:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(102, 126, 234, .14) !important;
}

.use-case-card h3,
.comparison-card h3,
.p-4.border.rounded h3 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #1e1b4b !important;
}

.use-case-card .text-primary,
.text-primary {
    color: #667eea !important;
}

/* ── COMPARISON HEADINGS ── */
.h5.text-success {
    color: #059669 !important;
}

.h5.text-info {
    color: #0891b2 !important;
}

/* ── BENEFITS / WHY US ── */
.text-center h3.h5 {
    font-weight: 800 !important;
    color: #1e1b4b !important;
}

/* ── PRICING CARDS ── */
#packages .card .display-6 {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
}

#packages .card .text-muted {
    font-size: .8rem !important;
    color: #94a3b8 !important;
}

#packages .list-unstyled li {
    font-size: .875rem !important;
    color: #4b5563 !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

#packages .list-unstyled li:last-child {
    border-bottom: none !important;
}

/* Pricing CTA buttons */
#packages .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all .3s !important;
    box-shadow: 0 4px 14px rgba(102, 126, 234, .35) !important;
}

#packages .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, .5) !important;
}

#packages .btn-outline-primary {
    border: 2px solid #667eea !important;
    color: #667eea !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all .3s !important;
}

#packages .btn-outline-primary:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* ── TECH STACK DARK SECTION ── */
section.bg-dark h3.h5 {
    font-size: .95rem !important;
    font-weight: 700 !important;
    color: #a5b4fc !important;
    margin-bottom: 8px !important;
}

section.bg-dark p {
    color: rgba(255, 255, 255, .7) !important;
    font-size: .875rem !important;
}

/* ── FINAL CTA SECTION ── */
main>section:last-of-type.container .btn-primary,
.container .text-center .btn-primary.btn-lg {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 15px 36px !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, .4) !important;
    transition: all .3s !important;
}

.container .text-center .btn-primary.btn-lg:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 36px rgba(102, 126, 234, .55) !important;
}

/* ── SCROLL REVEAL ── */
.sp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}

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

/* ── BACK TO TOP ── */
#sp-back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(.8);
    transition: opacity .3s, transform .3s, box-shadow .3s;
    box-shadow: 0 4px 16px rgba(102, 126, 234, .4);
}

#sp-back-top.sp-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#sp-back-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 28px rgba(102, 126, 234, .6);
}

#sp-back-top .material-icons {
    font-size: 22px;
}

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
    .header-content {
        padding: 80px 0 70px !important;
    }

    .header-text h1 {
        font-size: 2rem !important;
    }

    .card-body {
        padding: 18px 16px !important;
    }
}