/* ── Team section ─────────────────────────────────────── */

.nq-team {
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.nq-team__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 18%, rgba(73, 222, 255, 0.12), transparent 42%),
        radial-gradient(ellipse at 78% 72%, rgba(15, 134, 248, 0.12), transparent 46%),
        linear-gradient(180deg, rgba(238, 250, 255, 0.96) 0%, rgba(224, 245, 255, 0.9) 100%);
    border-top: 1px solid rgba(15, 134, 248, 0.08);
    border-bottom: 1px solid rgba(15, 134, 248, 0.08);
    pointer-events: none;
}

.nq-team__deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: nq-deco-drift ease-in-out infinite;
    animation-fill-mode: both;
}

.nq-team__deco--1 {
    top: 12%;
    left: 7%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.nq-team__deco--2 {
    right: 8%;
    bottom: 16%;
    animation-duration: 12s;
    animation-delay: 2.6s;
}

.nq-team__header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nq-team__heading {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--nq-text);
}

.nq-team__subtitle {
    max-width: 35rem;
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.8;
    color: var(--nq-text-soft);
}

.nq-team__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
    max-width: 60rem;
    margin: 0 auto;
}

.nq-team__card {
    position: relative;
    padding: 2rem 1.5rem 1.6rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(15, 134, 248, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(243, 251, 255, 0.72));
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 54px rgba(15, 134, 248, 0.08);
    text-align: center;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.nq-team__card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 134, 248, 0.16);
    box-shadow: 0 26px 60px rgba(15, 134, 248, 0.12);
}

.nq-team__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.32) 50%, transparent 58%);
    background-size: 240% 100%;
    background-position: 100% 0;
    opacity: 0;
    pointer-events: none;
}

.nq-team__card:hover::before {
    opacity: 1;
    animation: nq-card-shimmer 0.8s ease-out forwards;
}

.nq-team__avatar {
    width: 7.5rem;
    height: 7.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(73, 222, 255, 0.28), transparent 38%),
        linear-gradient(180deg, rgba(236, 249, 255, 0.98), rgba(221, 244, 255, 0.94));
    border: 2px solid rgba(15, 134, 248, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 20px 40px rgba(15, 134, 248, 0.1),
        0 0 24px rgba(73, 222, 255, 0.12);
    color: var(--nq-primary);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.nq-team__card:hover .nq-team__avatar {
    border-color: rgba(73, 222, 255, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 20px 40px rgba(15, 134, 248, 0.15),
        0 0 32px rgba(73, 222, 255, 0.2);
}

.nq-team__avatar svg,
.nq-team__avatar i {
    width: 2.4rem;
    height: 2.4rem;
}

.nq-team__avatar i {
    font-size: 2rem;
    line-height: 1;
    width: auto;
    height: auto;
    --fa-primary-color: #0f86f8;
    --fa-secondary-color: #49deff;
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.35;
}

.nq-team__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.nq-team__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nq-text);
    margin-bottom: 0.35rem;
}

.nq-team__title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nq-primary);
    margin-bottom: 0.85rem;
}

.nq-team__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--nq-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.nq-team__link:hover {
    text-decoration: underline;
}

.nq-team__bio {
    max-width: 24rem;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--nq-text-soft);
}
