/* Container Wrapper to align Card + Nav Links */
.card-wrapper {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Specific Card Modifications for the Back Layout */
.card-back {
    padding: 40px 48px;
}

.card-back::before {
    top: auto;
    right: auto;
    bottom: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(217, 83, 30, 0.2) 0%, rgba(138, 43, 226, 0.08) 40%, transparent 70%);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #e5e7eb;
    line-height: 1.1;
    text-transform: uppercase;
}

.member-role {
    font-size: 1rem;
    font-weight: 400;
    color: #d9531e;
    letter-spacing: 1.5px;
    margin-top: 8px;
    text-transform: uppercase;
}

.profile-photo {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
    z-index: 1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.social-bar a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(0.7);
    transition: filter 0.3s ease;
}

.social-bar a:hover {
    background: rgba(217, 83, 30, 0.15);
    border-color: #d9531e;
    transform: translateY(-2px);
}

.social-bar a:hover img {
    filter: brightness(0) invert(1);
}

.card-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.card-nav .nav-link {
    color: #808893;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.card-nav .nav-link:hover {
    color: #d9531e;
}

@media (max-width: 600px) {
    .card-wrapper {
        max-width: 340px;
    }

    .card-back {
        padding: 32px 24px;
    }

    .card-top {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }

    .profile-photo {
        width: 260px;
        height: 260px;
    }

    .member-name {
        font-size: 1.6rem;
    }

    .member-role {
        font-size: 0.85rem;
    }

    .social-bar {
        gap: 16px;
    }

    .card-nav .nav-link {
        font-size: 0.75rem;
    }
}