/* ===== SOLID HEADER FOR SUB-PAGES ===== */
.header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(12, 22, 38, 0.08) !important;
    box-shadow: 0 4px 30px rgba(12, 22, 38, 0.08) !important;
}

.header .nav-link {
    color: var(--text-secondary) !important;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--primary) !important;
    background: rgba(11, 102, 195, 0.08) !important;
}

.header .hamburger span,
.header .menu-icon span {
    background-color: var(--text-primary) !important;
}

.header .nav-call-btn {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(11, 102, 195, 0.2) !important;
}

.header .nav-call-btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 6px 15px rgba(8, 73, 143, 0.3) !important;
}

body > section:first-of-type {
    padding-top: 140px !important;
}


/* ===== SERVICES PAGE SPECIFIC STYLES ===== */

/* ============================================
   SOLUTIONS SECTION (Services + Products Merged)
   ============================================ */
.solutions {
    position: relative;
    padding: 100px 24px;
    background: var(--surface-50);
    background-image: radial-gradient(var(--surface-200) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow: hidden;
}

/* Ambient Glow Nodes */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: plus-lighter;
    animation: bounceSlow 18s infinite alternate ease-in-out;
}

.glow-1 {
    top: 8%;
    left: 4%;
    width: 350px;
    height: 350px;
    background: var(--primary);
}

.glow-2 {
    bottom: 12%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    animation-delay: -6s;
}

@keyframes bounceSlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(45px, 25px) scale(1.15);
    }
}

/* ---- Tab Switcher ---- */
.solutions-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-200);
    border-radius: var(--radius-full);
    padding: 6px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    position: relative;
}

.solutions-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.solutions-tab:hover {
    color: var(--primary);
    background: rgba(11, 102, 195, 0.04);
}

.solutions-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(11, 102, 195, 0.25);
}

.solutions-tab.active:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

.solutions-tab svg {
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.solutions-tab.active svg {
    color: var(--white);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.solutions-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* ---- Tab Panels ---- */
.solutions-panels {
    position: relative;
}

.solutions-panel {
    display: none;
    animation: panelFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.solutions-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Filter Chips ---- */
.filter-chips-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    width: 100%;
    z-index: 5;
    position: relative;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
}

.filter-chip {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--surface-200);
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
}

.filter-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-chip.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(11, 102, 195, 0.25);
}

/* ---- Service Cards ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.service-image-wrapper {
    position: relative;
    height: 230px;
    background: var(--surface-100);
    overflow: hidden;
    margin-bottom: 24px;
}

.service-card:nth-child(odd) .service-image-wrapper {
    border-radius: 80px 15px 80px 15px;
}

.service-card:nth-child(even) .service-image-wrapper {
    border-radius: 15px 80px 15px 80px;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.08);
}

.service-image-wrapper .service-tag-badge {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--surface-200);
    z-index: 5;
    box-shadow: var(--shadow-sm);
}

.service-card:nth-child(odd) .service-tag-badge {
    right: 12px;
}

.service-card:nth-child(even) .service-tag-badge {
    left: 12px;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary-light), 0 15px 35px rgba(11, 102, 195, 0.12);
    background: var(--white);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: rotate(8deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(11, 102, 195, 0.2);
}

.service-card:hover .service-icon svg {
    filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.3));
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
    transition: color var(--transition-base);
}

.service-card:hover .service-icon svg {
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-footer {
    margin-top: auto;
    border-top: 1px solid var(--surface-100);
    padding-top: 16px;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all var(--transition-base);
}

.service-cta:hover {
    color: var(--accent);
}

.cta-arrow {
    transition: transform var(--transition-base);
}

.service-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* If the last card is alone on its row (e.g. 10th card in 3-column grid), span across all columns on desktop */
@media (min-width: 1025px) {
    .services-grid .service-card:last-child:nth-child(3n+1) {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 32px;
        text-align: left;
        padding: 36px 40px;
        min-height: auto;
    }

    .services-grid .service-card:last-child:nth-child(3n+1) .service-image-wrapper {
        width: 240px;
        height: 160px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .services-grid .service-card:last-child:nth-child(3n+1) .service-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .services-grid .service-card:last-child:nth-child(3n+1) .service-info-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex-grow: 1;
    }

    .services-grid .service-card:last-child:nth-child(3n+1) .service-info-text p {
        margin-bottom: 0;
    }

    .services-grid .service-card:last-child:nth-child(3n+1) h3 {
        margin-bottom: 4px;
    }

    .services-grid .service-card:last-child:nth-child(3n+1) .service-footer {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
        padding-left: 24px;
        border-left: 1px solid var(--surface-100);
        display: flex;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .solutions {
        padding: 64px 16px;
    }

    .solutions-tabs {
        flex-direction: column;
        border-radius: var(--radius-lg);
        max-width: 320px;
    }

    .solutions-tab {
        padding: 12px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


