/* ═══════════════════════════════════════════════════
   Team Page
   ═══════════════════════════════════════════════════ */

/* Hero */
.team-hero {
    padding: 80px 0 48px;
    text-align: center;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
}

.team-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(74, 144, 232, 0.25) 20%,
        rgba(155, 109, 215, 0.3) 50%,
        rgba(74, 144, 232, 0.25) 80%,
        transparent 100%
    );
}

.team-hero__badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    color: #7dbdff;
    background: linear-gradient(135deg, rgba(77, 154, 255, 0.12) 0%, rgba(141, 207, 255, 0.06) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(77, 154, 255, 0.18);
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(77, 154, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 16px rgba(77, 154, 255, 0.4);
}

.team-hero__title {
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.15;
}

.team-hero__accent {
    background: linear-gradient(135deg, #0d3fba 0%, #1a5ee0 40%, #4a90e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-hero__subtitle {
    max-width: 560px;
    margin: 0 auto;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
}

/* Horizontal scroll track */
.team-grid {
    padding: 40px 0 80px;
}

/* Scrollable wrapper — handles overflow + drag */
.team-grid__track-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
}

.team-grid__track-wrap::-webkit-scrollbar {
    display: none;
}

.team-grid__track-wrap.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.team-grid__track-wrap.is-dragging * {
    pointer-events: none;
}

/* Inner flex row — centered */
.team-grid__track {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card — pain card style */
.team-card {
    min-width: 360px;
    max-width: 360px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #1e1e1e;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px -5px rgba(255, 255, 255, 0.08);
}

/* Photo */
.team-card__photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #16192a 0%, #1a1e30 100%);
}

.team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Body */
.team-card__body {
    padding: 20px;
}

.team-card__body--purple {
    background: radial-gradient(circle at 10% 20%, rgba(155, 109, 215, 0.18) 0%, transparent 50%);
}
.team-card__body--pink {
    background: radial-gradient(circle at 10% 20%, rgba(255, 105, 180, 0.18) 0%, transparent 50%);
}
.team-card__body--green {
    background: radial-gradient(circle at 10% 20%, rgba(52, 199, 89, 0.18) 0%, transparent 50%);
}

/* Badges row */
.team-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

/* Role badge */
.team-card__role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 100px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-card__role-badge--founder {
    background: rgba(155, 109, 215, 0.12);
    border-color: rgba(155, 109, 215, 0.2);
    color: #b88de8;
}

.team-card__role-badge--eng {
    background: rgba(52, 199, 89, 0.12);
    border-color: rgba(52, 199, 89, 0.2);
    color: #34d769;
}

.team-card__role-badge--research {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.2);
    color: #ffcc4d;
}

.team-card__role-badge--pm {
    background: rgba(255, 105, 180, 0.12);
    border-color: rgba(255, 105, 180, 0.2);
    color: #ff80bf;
}

/* Name */
.team-card__name {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 8px;
}

/* Bio */
.team-card__bio {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}

/* Links */
.team-card__links {
    display: flex;
    gap: 12px;
}

.team-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    color: #094bba;
    text-decoration: none;
    transition: opacity 0.2s;
}

.team-card__link:hover {
    opacity: 0.7;
}

.team-card__link .material-symbols-rounded {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .team-hero {
        padding: 32px 20px 24px;
        margin: 0 12px;
    }

    .team-hero__title {
        font-size: 32px;
    }

    .team-hero__subtitle {
        font-size: 16px;
    }

    .team-grid {
        padding: 20px 0;
    }

    .team-grid__track {
        justify-content: flex-start;
        padding: 16px 20px;
    }

    .team-card {
        min-width: 260px;
        max-width: 260px;
        scroll-snap-align: center;
    }

    .team-card__role-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .team-card__name {
        font-size: 16px;
    }

    .team-card__bio {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 450px) {
    .team-card {
        min-width: 240px;
        max-width: 240px;
    }
}
