/* Services Section - Dark Modern Grid */
.services-section {
    padding: 120px 0;
    overflow: hidden;
    background-color: #111111;
    /* Dark Background */
    color: #ffffff;
}

.services-container {
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Split Layout */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.services-header-left {
    flex: 1;
    min-width: 300px;
}

.services-subtitle {
    color: var(--primary-color);
    /* Switched to Pink for better contrast */
    /* Yellow Accent */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.services-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.services-header-right {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.services-header-right p {
    color: #888888;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Slider Container */
.services-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    -webkit-overflow-scrolling: touch;
}

.services-slider::-webkit-scrollbar {
    display: none;
}

/* Service Card (Square/Rectangular) */
.service-card {
    flex: 0 0 350px;
    /* Width of cards */
    height: 450px;
    /* Height of cards */
    position: relative;
    background-color: #222;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.service-card:hover .service-bg {
    transform: scale(1.1);
}

/* Overlay & Content */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    z-index: 2;
}

/* Icon - Top Left */
.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Thin outline */
    border-radius: 8px;
    /* Slight rounded */
    padding: 10px;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.service-card:hover .service-icon {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Info - Bottom Left */
.service-info {
    transform: translateY(0);
}

.service-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    /* Updated to Pink */
    margin-bottom: 8px;
    /* Add spacing for description */
}

/* Read More Arrow - Bottom Right */
.service-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.service-card:hover .service-arrow {
    background: var(--primary-color);
    color: #ffffff;
    opacity: 1;
    transform: translateX(5px);
}

.service-arrow svg {
    width: 16px;
    height: 16px;
}

.service-desc {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.4;
    display: block;
    /* Ensure visibility */
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-title {
        font-size: 2.2rem;
    }

    .service-card {
        flex: 0 0 280px;
        height: 380px;
    }
}