:root {
    --apt-primary: #5d43b8;
    --apt-primary-dark: #2f2359;
    --apt-primary-bright: #8a72e8;
    --apt-primary-soft: #f5f2ff;
    --apt-text: #231d3b;
    --apt-muted: #625b78;
}

body {
    color: var(--apt-text);
    background: #fbfaff;
    font-family: Poppins, sans-serif;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.header {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 36px rgba(40, 24, 84, .08);
    backdrop-filter: blur(14px);
}

.header .logo h1,
.navmenu a {
    color: var(--apt-text);
}

.navmenu a.active,
.navmenu a:hover {
    color: var(--apt-primary);
}

.team-hero {
    min-height: 440px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 132px 0 72px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(39, 27, 83, .94), rgba(91, 67, 178, .82) 58%, rgba(139, 116, 232, .66)),
        url("../../../../landing/img/gundar1.jpeg") center/cover;
}

.team-hero::before {
    position: absolute;
    inset: auto -10% -42% auto;
    width: 520px;
    height: 520px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 64%);
    animation: teamGlow 6s ease-in-out infinite;
}

.team-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .1) 48%, transparent 58% 100%);
    animation: teamSweep 8s ease-in-out infinite;
    pointer-events: none;
}

.team-hero .container {
    position: relative;
    z-index: 1;
}

.team-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .94);
    background: rgba(255, 255, 255, .16);
    font-weight: 800;
}

.team-hero h1 {
    max-width: 780px;
    margin-bottom: 16px;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.04;
    font-weight: 900;
}

.team-hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
}

.team-section {
    padding: 76px 0;
}

.year-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 54px;
}

.year-filter a {
    min-width: 74px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ded7f7;
    border-radius: 999px;
    color: var(--apt-primary-dark);
    background: #fff;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(48, 35, 89, .06);
}

.year-filter a.active,
.year-filter a:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--apt-primary), var(--apt-primary-bright));
}

.team-group {
    margin-top: 48px;
}

.team-group:first-of-type {
    margin-top: 0;
}

.team-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.team-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--apt-primary);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-heading h2 {
    margin: 6px 0 0;
    color: var(--apt-text);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 900;
}

.team-count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--apt-primary-dark);
    background: var(--apt-primary-soft);
    font-weight: 800;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .col-lg-5ths {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.member-card {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5def8;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(245, 242, 255, .72), rgba(255, 255, 255, .95)),
        #fff;
    box-shadow: 0 18px 42px rgba(48, 35, 89, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.member-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, var(--apt-primary), var(--apt-primary-bright));
}

.member-card:hover {
    border-color: #cfc3f4;
    box-shadow: 0 24px 54px rgba(48, 35, 89, .12);
    transform: translateY(-5px);
}

.team-photo {
    width: min(100%, 250px);
    height: 320px;
    display: block;
    object-fit: contain;
    content-visibility: auto;
    contain-intrinsic-size: 250px 320px;
}

.team-empty {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d7cdf3;
    border-radius: 8px;
    color: var(--apt-muted);
    background: #fff;
    font-weight: 700;
}

.footer.dark-background {
    background: var(--apt-primary-dark);
}

.scroll-top {
    background: var(--apt-primary);
}

@keyframes teamSweep {
    0%, 45% {
        transform: translateX(-80%);
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    100% {
        transform: translateX(80%);
        opacity: 0;
    }
}

@keyframes teamGlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-24px, -18px, 0) scale(1.08);
    }
}

@media (max-width: 767.98px) {
    .team-hero {
        min-height: auto;
        padding: 112px 0 58px;
    }

    .team-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-card {
        min-height: 330px;
    }

    .team-photo {
        height: 292px;
    }
}
