.almib-team-card {
    position: relative;
    overflow: hidden;
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 220ms ease,
        background-color 220ms ease;
    animation: almib-team-enter 700ms ease both;
}

.almib-team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 25%, rgba(96, 165, 250, 0.14) 50%, rgba(255, 255, 255, 0) 75%);
    transform: translateX(-130%);
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.almib-team-avatar {
    width: 8.25rem;
    height: 8.25rem;
    margin: 0 auto;
    border-radius: 999px;
    background:
        radial-gradient(65% 65% at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.32)),
        linear-gradient(140deg, rgba(30, 14, 98, 0.88), rgba(79, 70, 229, 0.88));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 16px 24px rgba(30, 14, 98, 0.22);
    transform: translateZ(0);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.almib-social-dot {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 14, 98, 0.25);
    font-size: 0.63rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.75;
}

.almib-team-bio {
    max-height: 5.4rem;
    overflow: hidden;
    transition: max-height 360ms ease;
}

.almib-team-card.is-expanded .almib-team-bio {
    max-height: 15rem;
}

.almib-team-toggle {
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.almib-team-card.is-expanded .almib-team-toggle {
    background: rgba(30, 14, 98, 0.1);
}

@media (hover: hover) and (pointer: fine) {
    .almib-team-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 34px rgba(30, 14, 98, 0.14);
        border-color: rgba(30, 14, 98, 0.2);
    }

    .almib-team-card:hover::before {
        transform: translateX(130%);
    }

    .almib-team-card:hover .almib-team-avatar {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 20px 30px rgba(30, 14, 98, 0.26);
    }
}

.dark .almib-team-avatar {
    background:
        radial-gradient(65% 65% at 30% 30%, rgba(165, 180, 252, 0.45), rgba(30, 41, 59, 0.35)),
        linear-gradient(140deg, rgba(56, 189, 248, 0.5), rgba(79, 70, 229, 0.55));
}

.dark .almib-social-dot {
    border-color: rgba(255, 255, 255, 0.28);
}

.dark .almib-team-card.is-expanded .almib-team-toggle {
    background: rgba(255, 255, 255, 0.12);
}

@keyframes almib-team-enter {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .almib-team-card,
    .almib-team-card::before,
    .almib-team-avatar,
    .almib-team-bio,
    .almib-team-toggle {
        transition: none;
        animation: none;
    }
}
