:root {
    --primary-color: #2c5f6f;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f9fafb !important;
}

.service-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.service-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(44, 95, 111, 0.6),
        rgba(26, 26, 26, 0.6)
    );
}

.service-hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    text-align: center;
    padding: 0 20px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(44, 95, 111, 0.3);
}

.back-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.back-btn {
    animation: fadeIn 0.6s ease-out;
}

.service-hero {
    animation: fadeIn 0.8s ease-out;
}

.team-section {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    margin-top: 100px;
    flex: 0 1 calc((100% - 60px) / 3);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.team-card:hover h3 {
    color: #c66cef;
}

.team-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: -120px auto 25px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.team-card:hover .team-image-wrapper {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.team-info p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f9fafb;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 95, 111, 0.3);
}

/* Responsive Design - FIXED */
@media (max-width: 1024px) {
    .team-grid {
        gap: 40px 30px;
    }

    .team-card {
        flex-basis: calc((100% - 30px) / 2);
    }
}

@media (max-width: 992px) {
    .service-hero h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .back-btn {
        margin-top: 40px;
    }
    .service-hero {
        height: 250px;
    }

    .service-hero h1 {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .team-grid {
        gap: 50px 20px;
    }

    .team-card {
        flex-basis: 100%;
        padding: 40px 25px 30px;
        margin-top: 90px;
    }

    .team-image-wrapper {
        width: 160px;
        height: 160px;
        margin: -110px auto 20px;
    }

    .team-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .service-hero {
        height: 200px;
    }

    .service-hero h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .team-card {
        padding: 35px 20px 25px;
        margin-top: 80px;
    }

    .team-image-wrapper {
        width: 140px;
        height: 140px;
        margin: -100px auto 20px;
    }
}
