
:root {
    --team-primary: #0b2b5c;
    --team-secondary: #4361ee;
    --team-light: #f8f9fa;
    --team-dark: #1e1e2c;
    --team-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--team-light);
    overflow-x: hidden;
}

.team-section-padding {
    padding: 100px 0;
}

.team-text-primary {
    color: var(--team-primary);
}

.team-section-title {
    position: relative;
    margin-bottom: 60px;
}

.team-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #0b2b5c, #4361ee);
    border-radius: 2px;
}

.team-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--team-transition);
    margin-bottom: 30px;
    position: relative;
    background-color: white;
}

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

.team-card .team-img-wrapper {
    position: relative;
    overflow: hidden;
}

.team-card .team-img-wrapper img {
    transition: var(--team-transition);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-card .team-social-links {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0b2b5c, #4361ee);
    padding: 15px 0;
    transition: var(--team-transition);
    opacity: 0;
}

.team-card:hover .team-social-links {
    bottom: 0;
    opacity: 1;
}

.team-social-links a {
    color: white;
    margin: 0 10px;
    font-size: 18px;
    transition: var(--team-transition);
}

.team-social-links a:hover {
    transform: translateY(-5px);
}

.team-card .team-content {
    padding: 25px;
    text-align: center;
}

.team-card .team-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--team-dark);
}

.team-card .team-position {
    color: var(--team-secondary);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-card .team-bio {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
}

.team-department-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    padding-bottom: 10px;
    font-weight: 700;
    color: var(--team-primary);
}

.team-department-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #0b2b5c, #4361ee);
    border-radius: 2px;
}

.team-hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(11, 43, 92, 0.9), rgba(67, 97, 238, 0.7));
}

.team-hero-content {
    position: relative;
    z-index: 1;
}

.team-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.team-hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.team-filter-btn {
    padding: 8px 20px;
    margin: 0 5px 15px;
    border-radius: 30px;
    background-color: white;
    color: var(--team-dark);
    border: 2px solid transparent;
    transition: var(--team-transition);
    font-weight: 500;
}

.team-filter-btn:hover, .team-filter-btn.active {
    background: linear-gradient(135deg, #0b2b5c, #4361ee);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.team-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0b2b5c, #4361ee);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--team-transition);
    z-index: 999;
}

.team-scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.team-scroll-top:hover {
    transform: translateY(-5px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .team-section-padding {
        padding: 70px 0;
    }
    
    .team-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .team-section-padding {
        padding: 50px 0;
    }
    
    .team-hero-title {
        font-size: 2rem;
    }
    
    .team-filter-btn {
        margin-bottom: 10px;
    }
}
