/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    /* Light background */
    background-image: url('https://images.unsplash.com/photo-1527515545081-5db817172677?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=10');
    /* Subtle cleaning tools bg if wanted, or reuse one with low opacity */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    overflow: hidden;
}

/* Optional: Add a white gradient overlay to fade out the background image */
.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.team-container {
    position: relative;
    z-index: 1;
}

.team-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.team-tagline {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}

.team-tagline i {
    color: var(--primary-color);
}

.team-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--secondary-color);
}

.team-title .highlight {
    color: var(--primary-color);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    width: 100%;
    height: 100%;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Gradient starts from halfway down */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    z-index: 2;
}

.team-info {
    position: relative;
    z-index: 3;
}

.team-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.team-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.team-btn {
    position: absolute;
    bottom: 30px;
    /* Aligned with text bottom */
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    /* Peach */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    z-index: 4;
}

.team-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-title {
        font-size: 2.5rem;
    }

    .team-card {
        height: 400px;
    }

    .team-section {
        padding: 60px 0;
    }
}