/* Redesigned Services Component CSS */
.services-section {
    padding: 90px 0;
    background-color: #f7f8f9;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Diagonal diamond grid pattern overlay */
    background-image: 
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 1px, transparent 1px, transparent 36px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 1px, transparent 1px, transparent 36px);
}

/* Checkered taxi border on left edge */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 100%;
    z-index: 10;
    background: conic-gradient(#111 25%, #ffcc00 0 50%, #111 0 75%, #ffcc00 0) 0 0 / 16px 16px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

/* Checkered taxi border on right edge */
.services-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 100%;
    z-index: 10;
    background: conic-gradient(#111 25%, #ffcc00 0 50%, #111 0 75%, #ffcc00 0) 0 0 / 16px 16px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
}

.services-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 38px;
    font-weight: 850;
    color: #111;
    letter-spacing: -1px;
    margin: 0;
}

/* 6-Column Responsive Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

/* Individual Card without borders or backgrounds */
.service-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Image wrapper with slanted parallelogram mask */
.service-img-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    background-color: #e5e7eb;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slanted Yellow Accent Stripe under image */
.service-yellow-bar {
    width: 100%;
    height: 6px;
    background-color: #ffcc00;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    margin-top: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Service Title below yellow line */
.service-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

/* Hover States & Micro-animations */
.service-card:hover {
    transform: translateY(-4px);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-card:hover .service-yellow-bar {
    background-color: #ff9e15; /* Shift to orange on card hover */
    transform: scaleX(1.04);
}

.service-card:hover h3 {
    color: #ff9e15; /* Highlight title text */
}

/* Mobile & Tablet Breakpoints */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .service-img-wrapper {
        height: 170px;
    }
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 70px 0;
    }
    .services-section::before,
    .services-section::after {
        width: 10px;
        background: conic-gradient(#111 25%, #ffcc00 0 50%, #111 0 75%, #ffcc00 0) 0 0 / 10px 10px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 320px;
        margin: 0 auto;
    }
    .service-img-wrapper {
        height: 180px;
    }
}
