/* ============================================================
   File: team.css
   vertex IS – Our Team page styles
   Extends style.css; requires CSS variables defined there.
   ============================================================ */


/* ══════════════════════════════════════════════════════════════
   TEAM HERO BANNER
══════════════════════════════════════════════════════════════ */

.team-hero {
    position: relative;
    background: linear-gradient(145deg, var(--purple) 0%, var(--purple-mid) 55%, #2a0048 100%);
    padding: 7rem 0 5rem;
    overflow: hidden;
}


/* Atmospheric blobs */

.team-hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.team-hero-blob-1 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(74, 0, 120, 0.55) 0%, transparent 70%);
    top: -180px;
    right: -120px;
    animation: blobFloat1 9s ease-in-out infinite alternate;
}

.team-hero-blob-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(232, 176, 0, 0.09) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: blobFloat2 11s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(30px, 20px) scale(1.05);
    }
}

@keyframes blobFloat2 {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(-20px, 30px) scale(1.08);
    }
}

.team-hero-content {
    position: relative;
    z-index: 2;
}

.team-hero-heading {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.team-hero-outline {
    -webkit-text-stroke: 2px var(--gold);
    color: transparent;
}

.team-hero-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 2.5rem;
}


/* Hero stats row */

.team-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(232, 176, 0, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.2rem 2.2rem;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}

.team-hero-stat {
    text-align: center;
    padding: 0 1.5rem;
}

.team-hero-stat-divider {
    width: 1px;
    height: 2.4rem;
    background: rgba(232, 176, 0, 0.2);
}


/* Re-use .stat-number and .stat-label from style.css */

.team-hero-stats .stat-number {
    color: var(--white);
}

.team-hero-stats .stat-number span {
    color: var(--gold);
}

.team-hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.5);
}


/* ══════════════════════════════════════════════════════════════
   TEAM DIRECTORY SECTION
══════════════════════════════════════════════════════════════ */

.section-team-directory {
    background: var(--off-white);
}


/* Header + filters row */

.team-dir-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
}


/* Filter pills */

.team-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-filter-pill {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.38rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(49, 0, 82, 0.15);
    color: var(--muted);
    background: var(--white);
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.team-filter-pill:hover {
    background: var(--gold-pale);
    border-color: var(--gold-border);
    color: var(--purple);
    transform: translateY(-2px);
}

.team-filter-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--purple);
    box-shadow: var(--shadow-gold);
}


/* ── Team grid ───────────────────────────────────────────── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}


/* ── Team card ───────────────────────────────────────────── */

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(49, 0, 82, 0.07);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    will-change: transform;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-border);
}


/* Featured cards get a gold top border */

.team-card--featured {
    border-top: 3px solid var(--gold);
}

.team-card--featured:hover {
    box-shadow: var(--shadow-gold);
}


/* Featured badge */

.team-card-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 4;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--purple);
    background: var(--gold);
    border-radius: var(--radius-pill);
    padding: 0.22rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(232, 176, 0, 0.35);
}

.team-card-badge i {
    font-size: 0.6rem;
}


/* Photo wrapper */

.team-card-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.6;
    overflow: hidden;
    background: linear-gradient(145deg, var(--purple) 0%, var(--purple-mid) 100%);
}

.team-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow), filter var(--transition);
}

.team-card:hover .team-card-photo {
    transform: scale(1.07);
    filter: brightness(0.55);
}


/* Overlay for socials */

.team-card-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(30, 0, 56, 0.75) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.1rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.team-card:hover .team-card-photo-overlay {
    opacity: 1;
}


/* Social buttons */

.team-card-socials {
    display: flex;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: transform var(--transition);
}

.team-card:hover .team-card-socials {
    transform: translateY(0);
}

.team-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(232, 176, 0, 0.5);
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.team-social-btn:hover {
    background: var(--gold);
    color: var(--purple);
    border-color: var(--gold);
    transform: translateY(-3px);
}


/* Card body */

.team-card-body {
    padding: 1.3rem 1.4rem 1.5rem;
}

.team-card-dept {
    display: inline-block;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    padding: 0.15rem 0.65rem;
    margin-bottom: 0.55rem;
}

.team-card-name {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.team-card-role {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.team-card-bio {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Empty state */

.team-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--muted);
}

.team-empty i {
    font-size: 3.5rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
}


/* ══════════════════════════════════════════════════════════════
   JOIN THE TEAM CTA SECTION
══════════════════════════════════════════════════════════════ */

.section-team-cta {
    background: var(--light);
    padding: 5rem 0;
}

.team-cta-card {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 60%, #2d0050 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(232, 176, 0, 0.15);
    box-shadow: var(--shadow-lg);
}


/* Decorative blobs inside CTA */

.team-cta-blob-1,
.team-cta-blob-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}

.team-cta-blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(232, 176, 0, 0.08) 0%, transparent 70%);
    top: -120px;
    right: -100px;
}

.team-cta-blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 0, 120, 0.4) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
}

.team-cta-heading {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.team-cta-sub {
    font-family: 'DM Sans', sans-serif;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.team-cta-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.5rem;
}

.team-cta-perks li {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.5;
}

.team-cta-perks li i {
    color: var(--gold);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .team-hero {
        padding: 5.5rem 0 4rem;
    }
    .team-cta-card {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .team-hero {
        text-align: center;
    }
    .team-hero-sub {
        margin: 0 auto 2rem;
    }
    .team-hero-stats {
        padding: 1rem 1.2rem;
        gap: 0.5rem;
    }
    .team-hero-stat {
        padding: 0 0.8rem;
    }
    .team-hero-stat-divider {
        height: 1.8rem;
    }
    .team-dir-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .team-filter-pills {
        width: 100%;
    }
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    .team-cta-card {
        padding: 2.5rem 1.75rem;
        text-align: center;
    }
    .team-cta-sub {
        margin: 0 auto 1.5rem;
    }
    .team-cta-perks {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .section-team-cta .text-lg-end {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .team-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .team-hero-stat-divider {
        width: 80px;
        height: 1px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}