.services-section {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.services-section h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.services-section h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #a00;
}

.services-section p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

@keyframes fade-in-slide-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item.animated {
  animation: fade-in-slide-up 0.8s ease-out forwards;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.service-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item h3 {
    font-size: 1.8em;
    color: #a00;
    margin: 15px 0 10px;
    padding: 0 15px;
}

.service-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
    padding: 0 15px;
    flex-grow: 1;
}

.service-item .razor-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #a00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.service-item .razor-button:hover {
    background-color: #800;
}

@media (max-width: 768px) {
    .services-section h1 {
        font-size: 2em;
    }

    .service-gallery {
        grid-template-columns: 1fr;
    }
}
