.services {
    background-color: #0F0F0F;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    /* max-width: 1400px; */
    margin: 0 auto;
    width: 100%;
    /* padding: 0 2rem; */
}

.service-card {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); */
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%,
        rgba(138, 43, 226, 0.3) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 54px;
    height: 54px;
    color: var(--primary-color);
    background: rgba(138, 43, 226, 0.1);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(138, 43, 226, 0.2);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto;
    text-align: center;
    letter-spacing: 0.5px;
    width: 100%;
}

.service-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto;
    min-height: 80px;
    text-align: center;
    max-width: 90%;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-color), #c17aff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(138, 43, 226, 0.2);
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    margin: 0 auto;
    width: fit-content;
}

.service-link:hover {
    background: rgba(138, 43, 226, 0.25);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.service-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(3px);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 2rem 1rem;
        margin: -1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .services-title {
        font-size: 1.1rem;
        text-align: left;
        margin: 0 0 2rem 0;
        padding: 0 1.5rem;
        width: calc(100% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
        box-sizing: border-box;
    }

    .service-card {
        width: calc(100% + 2rem);
        /* margin-left: 1rem; */
        margin-right: 1rem;
        box-sizing: border-box;
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .services-title,
    .service-card {
        max-width: 100%;
    }

    .service-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}