.services {
    position: relative;
    background-color: var(--section-bg-color);
}

.services .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.services .item {
    background-color: white;
    counter-increment: services;
    position: relative;
    transition: var(--transition-duration);
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.2);
}

.services .item::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    top: -3px;
    width: 0;
    opacity: 0;
    background-color: var(--main-color);
    transition: var(--transition-duration);
}

.services .item:hover {
    transform: translateY(-10px);
}

.services .item:hover::before {
    width: 100%;
    opacity: 1;
}

.services .item>i {
    color: #d5d5d5;
    margin: 20px auto 0;
    display: block;
}

.services .item>h3 {
    text-align: center;
    color: var(--font-color);
    margin: 20px 0 30px;
    font-size: 25px;
}

.services .item .info {
    background-color: #f9f9f9;
    text-align: right;
    position: relative;
    padding: 15px;
}

.services .item .info::before {
    content: "0" counter(services);
    position: absolute;
    background-color: var(--main-color);
    color: white;
    left: 0;
    top: 0;
    height: 100%;
    width: 80px;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 15px;
}

.services .item .info::after {
    content: "";
    position: absolute;
    background-color: #d5d5d5;
    top: 0;
    left: 80px;
    width: 50px;
    height: calc(100% + 0.4px);
    transform: skewX(-30deg);
}

.services .item .info a {
    text-decoration: none;
    color: var(--font-color);
}