:root {
    --primary: #0f172a;
    --accent: #0ea5e9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --bg-secondary: #f8fafc;
    --radius: 8px;
}

.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: .5rem;
}

.page-header p {
    opacity: .9;
    font-size: 1.1rem;
}

.gallery-section {
    padding: 4rem 0;
    background: #fff;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: .6rem 1.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: .9rem;
    transition: all .3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.gallery-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.security-bg { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.security-2-bg { background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%); }
.cleaning-bg { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.cleaning-2-bg { background: linear-gradient(135deg, #065f46 0%, #059669 100%); }
.labor-bg { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }
.labor-2-bg { background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%); }
.pest-bg { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }
.pest-2-bg { background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.7);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform .3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: .9rem;
    opacity: .9;
}