.services-section {
    width: 80%;
    margin: 90px auto 0;
    padding-bottom: 80px;
}

.section-heading {
    max-width: 1200px;
    margin-bottom: 42px;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #111827;
    margin-bottom: 0;
}

.section-heading p {
    font-size: 20px;
    line-height: 2;
    color: #475569;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 42px;
}

.service-card {
    position: relative;
    isolation: isolate;
    min-height: 260px;
    padding: 28px 24px;
    border: none;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    transition: 0.3s;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 32px;
    padding: 3px;
    background: repeating-conic-gradient(
        from var(--dash-angle),
        var(--card-line) 0deg 8deg,
        transparent 8deg 16deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: dashMove 15s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes dashMove {
    from {
        --dash-angle: 0deg;
    }

    to {
        --dash-angle: 360deg;
    }
}

.service-card:nth-child(1) {
    background: #ffedd5;
    --card-line: #f59e0b;
}

.service-card:nth-child(2) {
    background: #fce7f3;
    --card-line: #ec4899;
}

.service-card:nth-child(3) {
    background: #CAAA98;
    --card-line: #8b5e4a;
}

.service-card:nth-child(4) {
    background: #ccfbf1;
    --card-line: #14b8a6;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.service-card:hover::before {
    animation-duration: 6s;
}

.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    color: #111827;
    border-radius: 18px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 16px;
    line-height: 2;
    color: #64748b;
    font-weight: 500;
}

/* Responsive */

@media (max-width: 1300px) {
    .services-section {
        width: 88%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .services-section {
        width: calc(100% - 28px);
        margin-top: 70px;
    }

    .section-title-row {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .section-heading p {
        font-size: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .section-heading h2 {
        font-size: 29px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .service-card {
        border-radius: 22px;
    }
}