/* Service page — modern tech refresh */

body {
    background:
        radial-gradient(circle at 10% 6%, rgba(37, 99, 235, 0.10), transparent 26%),
        radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.10), transparent 24%),
        linear-gradient(180deg, #f5f8ff 0%, #ffffff 46%, #f6f9fc 100%);
}

/* Faint tech grid behind the whole page (kept behind all content) */
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.6), transparent 70%);
}

.header-section {
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.service-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.06);
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.text-gradient {
    background: linear-gradient(100deg, #2563eb 0%, #06b6d4 60%, #14b8a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.search-container {
    position: relative;
    max-width: 500px;
}

.search-input {
    padding: 14px 64px 14px 22px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 18px -6px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    font-size: 1rem;
}

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), 0 12px 24px -10px rgba(37, 99, 235, 0.4);
    border-color: var(--blue-600);
    background: #ffffff;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.6);
    transition: var(--transition-base);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.7);
    color: #ffffff;
}

.search-btn:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

.filter-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.filter-wrapper::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    backdrop-filter: blur(6px);
    text-decoration: none;
}

.filter-chip:hover {
    color: var(--blue-600);
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.5);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.category-accent {
    width: 6px;
    height: 32px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
}

.category-badge {
    font-size: 0.85rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    color: var(--blue-600);
    padding: 2px 12px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius-full);
    font-weight: 700;
}

.service-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 28px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* Gradient top accent line */
.service-card::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #14b8a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    content: "";
}

/* Spotlight glow that reveals on hover */
.service-card::after {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    content: "";
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px -20px rgba(37, 99, 235, 0.45);
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(255, 255, 255, 0.92);
}

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

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-box {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .icon-box {
    box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.5);
}

.card-title {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
    color: var(--gray-900);
}

.card-desc {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.view-detail {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-600);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.service-card:hover .view-detail {
    gap: 10px;
}

.view-detail i {
    transition: transform 0.2s ease;
}

.service-card:hover .view-detail i {
    transform: translateX(2px);
}

.animate-card {
    animation: fadeIn 0.5s ease forwards;
}

#empty-state {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    border: 2px dashed rgba(37, 99, 235, 0.25);
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .header-section {
        text-align: center;
    }

    .service-kicker {
        margin-left: auto;
        margin-right: auto;
    }

    .search-container {
        margin: 1.5rem auto 0;
    }

    body::before {
        background-size: 32px 32px;
    }
}
