.services-section {
    background: white;
    padding: 4rem 2rem;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.services-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-header h2 {
    font-size: 2.8rem;
    color: var(--turquoise);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.wave-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), var(--coral));
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
    position: relative;
}

.wave-underline::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -10px;
    width: 120px;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--turquoise), transparent);
    border-radius: 4px;
    opacity: 0.3;
}

.services-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(61, 218, 215, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(61, 218, 215, 0.25);
    border-color: var(--turquoise);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 218, 215, 0.05), rgba(255, 139, 139, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(61, 218, 215, 0.25);
    border-color: var(--turquoise);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--turquoise);
    margin: 1rem 0 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    padding: 0 1.5rem;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    padding: 0 1.5rem;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    margin-top: auto;
    border-top: 2px solid var(--sand);
    padding-top: 1rem;
    position: relative;
    z-index: 3;
}

.btn-service-link {
    background: transparent;
    color: var(--turquoise);
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--turquoise);
    border-radius: 1.5rem;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.btn-service-link:hover {
    background: var(--turquoise);
    color: white;
    transform: scale(1.02);
}

.btn-service-primary {
    background: var(--coral);
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 1.5rem;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 139, 139, 0.3);
    width: 100%;
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.btn-service-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 139, 139, 0.5);
    background: var(--turquoise);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--coral);
}


@media (max-width: 768px) {
    .services-header h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

