/* ==========================================================
   DevoEnv — Services Page
   ========================================================== */

/* Page Header */
.page-header {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1517134191118-9d595e4c8c2b?w=1920");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--bg-dark));
}

.page-header-content { position: relative; z-index: 1; }

.page-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.page-header h1 .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Container */
.services-container { padding: 4rem 0 8rem; position: relative; }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 10;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 62, 217, 0.3);
    box-shadow: var(--shadow-lg);
}

.service-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
}

.service-icon-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    padding: 1rem;
    background: var(--gradient-2);
    border-radius: 16px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 62, 217, 0.3);
}

.service-content { padding: 2rem; }

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    min-height: 80px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.service-link:hover {
    background: var(--gradient-2);
    border-color: transparent;
    color: white;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px dashed var(--glass-border);
}

.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; }

.empty-state h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p { color: var(--text-secondary); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    padding: 0.8rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--gradient-2);
    border-color: transparent;
    color: white;
}

.pagination .active span {
    background: var(--gradient-2);
    border-color: transparent;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 { font-size: 2.5rem; }
    .page-header { padding: 8rem 0 4rem; }
    .services-grid { grid-template-columns: 1fr; }
}
