/* Services Hero */
.services-hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.services-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-box {
    max-width: 700px;
    margin: 3rem auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.1);
}

.search-box i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-blue);
    font-size: 1.25rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

/* Filter Tabs */
.services-filter {
    margin-bottom: 4rem;
}

.filter-tabs {
    display: flex;
    justify-content: flex-start;
    /* Start alignment for scrolling */
    gap: 1.5rem;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    padding-bottom: 1rem;
    /* Space for scrollbar (if visible) or shadow */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    scrollbar-width: none;
    /* Firefox: hide scrollbar */
}

.filter-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari: hide scrollbar */
}

.filter-tab {
    padding: 0.8rem 2.5rem;
    /* Wider tabs */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    /* Keep text on one line */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--neon-purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 20px rgba(45, 90, 241, 0.3);
}

/* Service Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    /* Ensures image rounded corners match card */
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-image-container {
    width: 100%;
    height: 220px;
    position: relative;
    /* background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%); */
    /* Removed background to avoid box around image */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.service-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    /* Let image shrink to content */
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 20px;
    /* Now this will curve the actual image corners */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.service-card:hover .service-image-container img {
    transform: scale(1.05);
}

.service-icon-placeholder {
    font-size: 4rem;
    color: var(--neon-blue);
    opacity: 0.5;
}

.service-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: var(--neon-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    /* Center align everything */
    text-align: center;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.4;
    color: white;
}

.service-price {
    margin: 0.5rem 0;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--neon-blue);
    /* Highlight price */
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.service-btn {
    width: 100%;
    max-width: 200px;
    margin-top: auto;
    /* Push to bottom if content varies */
    padding: 0.75rem 1.5rem;
}

/* Reusing Rating Styles but Adjusting */
.service-rating {
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}



.stars {
    color: var(--warning);
    display: flex;
    gap: 4px;
}

/* Removing old service-features and service-footer styles as they are replaced by .service-content structure */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
        gap: 1rem; /* Reduce gap to fit */
    }

    .service-image-container {
        height: 140px; /* Reduces image height on mobile */
    }
    
    .service-content {
        padding: 1rem; /* Compact padding */
    }

    .service-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .price-amount {
        font-size: 1.3rem;
    }
}
