/* ============================================================
   Home Page – Services & Blog Carousel Sections
   Premium Design | Dark/Light Mode | Fully Responsive
   ============================================================ */

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

/* ── Shared Section Variables ── */
:root {
    --hc-purple: #6366f1;
    --hc-violet: #a855f7;
    --hc-cyan: #06b6d4;
    --hc-radius: 20px;
    --hc-gap: 24px;
}

/* ════════════════════════════════════════════════════════════
   SHARED SECTION HEADER
   ════════════════════════════════════════════════════════════ */
.hc-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.hc-section-header .section-tag {
    display: inline-block;
    background: linear-gradient(90deg, rgba(99, 102, 241, .12), rgba(168, 85, 247, .12));
    border: 1px solid rgba(99, 102, 241, .25);
    color: var(--hc-purple);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.hc-section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hc-section-header p {
    color: #64748b;
    font-size: .98rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Dark mode section header */
.active-dark .hc-section-header h2 {
    color: #e8e4ff;
}

.active-dark .hc-section-header p {
    color: #94a3b8;
}

.active-dark .hc-section-header .section-tag {
    color: #a5b4fc;
    background: rgba(99, 102, 241, .15);
    border-color: rgba(99, 102, 241, .3);
}

/* ── View All link ── */
.hc-view-all {
    text-align: center;
    margin-top: 32px;
}

.hc-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--hc-purple);
    text-decoration: none;
    background: rgba(99, 102, 241, .08);
    border: 1.5px solid rgba(99, 102, 241, .2);
    padding: 11px 26px;
    border-radius: 50px;
    transition: all .25s ease;
}

.hc-view-all a:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
}

.active-dark .hc-view-all a {
    color: #a5b4fc;
    background: rgba(99, 102, 241, .12);
    border-color: rgba(99, 102, 241, .3);
}

/* ════════════════════════════════════════════════════════════
   FILTER TABS
   ════════════════════════════════════════════════════════════ */
.hc-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.hc-filter-tabs .hc-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(99, 102, 241, .25);
    background: transparent;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}

.hc-filter-tabs .hc-tab:hover,
.hc-filter-tabs .hc-tab.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .35);
    transform: translateY(-2px);
}

.active-dark .hc-filter-tabs .hc-tab {
    color: #94a3b8;
    border-color: rgba(99, 102, 241, .3);
    background: rgba(99, 102, 241, .06);
}

.active-dark .hc-filter-tabs .hc-tab.active,
.active-dark .hc-filter-tabs .hc-tab:hover {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

/* ════════════════════════════════════════════════════════════
   SERVICES CAROUSEL SECTION
   ════════════════════════════════════════════════════════════ */
.hc-services-section {
    background: #f8faff;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.hc-services-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, .08) 0%, transparent 70%);
    pointer-events: none;
}

.active-dark .hc-services-section {
    background: #0d0b1e;
}

/* ── Carousel Wrapper ── */
.hc-carousel-wrap {
    position: relative;
}

.hc-carousel {
    display: flex;
    gap: var(--hc-gap);
    overflow: hidden;
}

/* ── Service Card ── */
.hc-srv-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #fff;
    border-radius: var(--hc-radius);
    border: 1px solid rgba(99, 102, 241, .1);
    box-shadow: 0 4px 24px rgba(99, 102, 241, .07);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hc-srv-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 18px 48px rgba(99, 102, 241, .18);
}

.active-dark .hc-srv-card {
    background: #16133a;
    border-color: rgba(99, 102, 241, .2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.active-dark .hc-srv-card:hover {
    box-shadow: 0 18px 48px rgba(99, 102, 241, .28);
}

/* card image */
.hc-srv-img {
    position: relative;
    height: 190px;
    overflow: hidden;
    flex-shrink: 0;
}

.hc-srv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hc-srv-card:hover .hc-srv-img img {
    transform: scale(1.07);
}

.hc-srv-img .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 12, 41, .55));
}

.hc-srv-img .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 50px;
    z-index: 2;
}

.hc-srv-img .card-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 1.5rem;
    z-index: 2;
}

/* card body */
.hc-srv-body {
    padding: 18px 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hc-srv-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: .97rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color .2s;
}

.hc-srv-card:hover .hc-srv-body h3 {
    color: var(--hc-purple);
}

.hc-srv-body .offer-pill {
    display: inline-block;
    background: linear-gradient(90deg, rgba(99, 102, 241, .12), rgba(168, 85, 247, .12));
    border: 1px solid rgba(99, 102, 241, .2);
    color: var(--hc-purple);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.hc-srv-body p {
    color: #64748b;
    font-size: .86rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.active-dark .hc-srv-body h3 {
    color: #e8e4ff;
}

.active-dark .hc-srv-body p {
    color: #94a3b8;
}

.active-dark .hc-srv-body .offer-pill {
    color: #a5b4fc;
    background: rgba(99, 102, 241, .14);
    border-color: rgba(99, 102, 241, .25);
}

.active-dark .hc-srv-card:hover .hc-srv-body h3 {
    color: #a5b4fc;
}

/* card footer */
.hc-srv-footer {
    padding: 12px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(99, 102, 241, .08);
    gap: 8px;
}

.active-dark .hc-srv-footer {
    border-color: rgba(99, 102, 241, .14);
}

.hc-srv-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--hc-purple);
    text-decoration: none;
    background: rgba(99, 102, 241, .08);
    padding: 7px 15px;
    border-radius: 50px;
    border: 1.5px solid rgba(99, 102, 241, .18);
    transition: all .25s ease;
    white-space: nowrap;
}

.hc-srv-btn svg {
    width: 13px;
    height: 13px;
    transition: transform .25s ease;
}

.hc-srv-btn:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-color: transparent;
    transform: translateX(3px);
}

.hc-srv-btn:hover svg {
    transform: translateX(4px);
}

.hc-srv-rating {
    font-size: .82rem;
    color: #f59e0b;
    font-weight: 700;
}

.active-dark .hc-srv-btn {
    color: #a5b4fc;
    background: rgba(99, 102, 241, .1);
    border-color: rgba(99, 102, 241, .25);
}

/* ── Carousel Nav Buttons ── */
.hc-carousel-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.hc-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, .25);
    background: transparent;
    color: var(--hc-purple);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.hc-nav-btn:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .35);
}

.hc-nav-btn:disabled {
    opacity: .35;
    cursor: default;
}

.active-dark .hc-nav-btn {
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, .35);
    background: rgba(99, 102, 241, .08);
}

/* ── Carousel Dots ── */
.hc-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}

.hc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(99, 102, 241, .25);
    transition: all .3s ease;
    cursor: pointer;
}

.hc-dot.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    width: 22px;
    border-radius: 50px;
}

/* hidden card for filter */
.hc-srv-card.hc-hidden {
    display: none;
}

/* ════════════════════════════════════════════════════════════
   BLOG CAROUSEL SECTION
   ════════════════════════════════════════════════════════════ */
.hc-blog-section {
    background: #fff;
    padding: 72px 0;
    position: relative;
}

.active-dark .hc-blog-section {
    background: #0a0818;
}

/* Blog Card */
.hc-blog-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #f8faff;
    border-radius: var(--hc-radius);
    border: 1px solid rgba(99, 102, 241, .1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, .06);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hc-blog-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 18px 48px rgba(99, 102, 241, .16);
}

.active-dark .hc-blog-card {
    background: #16133a;
    border-color: rgba(99, 102, 241, .2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

/* blog card image */
.hc-blog-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.hc-blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hc-blog-card:hover .hc-blog-img img {
    transform: scale(1.07);
}

.hc-blog-img .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 12, 41, .55));
}

.hc-blog-img .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 50px;
    z-index: 2;
}

.hc-blog-img .card-read-time {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, .9);
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    z-index: 2;
}

/* blog card body */
.hc-blog-body {
    padding: 18px 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hc-blog-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: .97rem;
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.hc-blog-card:hover .hc-blog-body h3 {
    color: var(--hc-purple);
}

.hc-blog-body p {
    color: #64748b;
    font-size: .86rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.active-dark .hc-blog-body h3 {
    color: #e8e4ff;
}

.active-dark .hc-blog-body p {
    color: #94a3b8;
}

.active-dark .hc-blog-card:hover .hc-blog-body h3 {
    color: #a5b4fc;
}

/* blog card footer */
.hc-blog-footer {
    padding: 12px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(99, 102, 241, .08);
    gap: 8px;
}

.active-dark .hc-blog-footer {
    border-color: rgba(99, 102, 241, .14);
}

.hc-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--hc-purple);
    text-decoration: none;
    background: rgba(99, 102, 241, .08);
    padding: 7px 15px;
    border-radius: 50px;
    border: 1.5px solid rgba(99, 102, 241, .18);
    transition: all .25s ease;
    white-space: nowrap;
}

.hc-blog-btn svg {
    width: 13px;
    height: 13px;
    transition: transform .25s ease;
}

.hc-blog-btn:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-color: transparent;
}

.hc-blog-btn:hover svg {
    transform: translateX(4px);
}

.active-dark .hc-blog-btn {
    color: #a5b4fc;
    background: rgba(99, 102, 241, .1);
    border-color: rgba(99, 102, 241, .25);
}

.hc-blog-date {
    font-size: .78rem;
    color: #94a3b8;
    white-space: nowrap;
}

.active-dark .hc-blog-date {
    color: #64748b;
}

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

    .hc-srv-card,
    .hc-blog-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 640px) {

    .hc-srv-card,
    .hc-blog-card {
        flex: 0 0 100%;
    }

    .hc-services-section,
    .hc-blog-section {
        padding: 52px 0;
    }

    .hc-srv-img {
        height: 170px;
    }

    .hc-blog-img {
        height: 180px;
    }

    .hc-filter-tabs .hc-tab {
        font-size: .78rem;
        padding: 7px 14px;
    }
}