.team-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: 0.05rem;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 3rem;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 100%;
    position: relative;
    z-index: 10;
}

.team {
    position: relative;
    z-index: 10;
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 0 2rem 8rem;
}

.card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(40, 140, 160, 0.15);
    border-radius: 22px;
    box-shadow: 0 10px 36px rgba(10, 117, 114, 0.08);
    overflow: hidden;
    width: 340px;
    display: flex;
    flex-direction: column;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.card:hover {
    transform: scale(1.01) translateY(-5px);
    border-color: var(--gradient-mint-green);
    box-shadow: 0 20px 50px rgba(10, 117, 114, 0.15);
    background: rgba(255, 255, 255, 0.88);
}

.card .member-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(10%);
    transition: filter 0.5s ease, transform 0.5s ease;
    border-bottom: 1px solid rgba(40, 140, 160, 0.08);
}

.card:hover .member-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

.card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    color: var(--text-turquoise);
    margin-bottom: 0.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-info {
    width: 100%;
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
}

.contact-info p {
    font-size: 0.9rem;
    color: #333;
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.contact-info .label {
    font-weight: 700;
    color: var(--text-turquoise);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    min-width: 42px;
    text-align: right;
}

.contact-info a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
    word-break: break-all;
}

.contact-info a:hover {
    color: var(--gradient-mint-green);
}

.card .social-links {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(40, 140, 160, 0.1);
    width: 100%;
    justify-content: center;
}

.card .social-links a {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card .social-links a:hover {
    transform: scale(1.25) translateY(-4px);
}

.card .social-links img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.error-text {
    font-family: 'Rajdhani', sans-serif;
    color: #e74c3c;
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
    padding: 3rem;
}

@media (max-width: 850px) {
    .card {
        flex-direction: column;
        max-width: 450px;
    }

    .card .member-img {
        width: 100%;
        min-width: 0;
        height: 350px;
        border-right: none;
        border-bottom: 1px solid rgba(40, 140, 160, 0.1);
    }

    .card-content {
        padding: 2rem;
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .card .social-links {
        margin: 0 auto;
    }
}