/* ============================================================
   TEAM PAGE - Code Xenix
   Premium enterprise design system
   ============================================================ */

/* ---------- Base ---------- */
.tm-page {
    color: var(--text-primary);
    overflow: hidden;
}

.tm-section {
    padding: 100px 0;
    position: relative;
}

/* ---------- Shared ---------- */
.tm-kicker {
    color: var(--text-brand);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tm-heading {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}

.tm-subheading {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.7;
    max-width: 560px;
}

.tm-section__head {
    margin-bottom: 56px;
}

.tm-section__head--center {
    text-align: center;
}

.tm-section__head--center .tm-subheading {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tm-btn:hover {
    transform: translateY(-2px);
}

.tm-btn--primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
    border: 2px solid transparent;
    color: #11171b;
    box-shadow: 0 4px 20px rgba(148, 207, 20, 0.25);
}

.tm-btn--primary:hover {
    box-shadow: 0 6px 28px rgba(148, 207, 20, 0.35);
    color: #11171b;
}

.tm-btn--secondary {
    background: transparent;
    border: 2px solid rgba(148, 207, 20, 0.45);
    color: var(--text-brand);
}

.tm-btn--secondary:hover {
    border-color: var(--text-brand);
    background: rgba(148, 207, 20, 0.08);
    color: var(--text-brand);
}

.tm-btn--lg {
    min-height: 52px;
    padding: 16px 36px;
    font-size: 15px;
}

/* ============================================================
   HERO
   ============================================================ */
.tm-hero {
    position: relative;
    padding: 50px 0 60px;
    background: linear-gradient(160deg, var(--bg-body) 0%, var(--bg-surface-alt) 50%, var(--bg-surface) 100%);
    overflow: hidden;
}

.tm-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.25), transparent);
}

.tm-hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.tm-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.tm-shape--1 {
    width: 500px;
    height: 500px;
    background: var(--brand-primary);
    top: -200px;
    right: -120px;
    animation: tm-float 12s ease-in-out infinite;
}

.tm-shape--2 {
    width: 300px;
    height: 300px;
    background: #5d1eb2;
    bottom: -100px;
    left: -80px;
    animation: tm-float 15s ease-in-out infinite reverse;
}

.tm-shape--3 {
    width: 180px;
    height: 180px;
    background: var(--brand-primary);
    top: 40%;
    left: 50%;
    animation: tm-float 10s ease-in-out infinite 2s;
}

@keyframes tm-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.04);
    }
}

/* Breadcrumb */
.tm-breadcrumb {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.tm-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 1.3rem;
}

.tm-breadcrumb a:hover {
    color: var(--text-brand);
}

.tm-breadcrumb [aria-current="page"] {
    color: var(--text-primary);
}

/* Hero content */
.tm-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    animation: tm-fadeUp 0.8s ease both;
}

.tm-hero__content {
    position: relative;
    z-index: 1;
}

.tm-hero__title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 20px;
}

.tm-hero__subtitle {
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 18px;
}

.tm-hero__desc {
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 36px;
}

.tm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero panel */
.tm-hero__panel {
    background: rgba(var(--text-primary-rgb), 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.tm-hero__panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-hover));
}

.tm-hero__panel-title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tm-hero__panel-desc {
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.tm-hero__panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tm-hero__panel-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tm-hero__panel-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 207, 20, 0.12);
    border-radius: 10px;
    color: var(--text-brand);
    font-size: 1.1rem;
}

.tm-hero__panel-list strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tm-hero__panel-list span {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.5;
}

.tm-hero__panel-list li > div {
    display: flex;
    flex-direction: column;
}

@keyframes tm-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   LEADERSHIP TEAM - Emerging Image Card
   ============================================================ */
.tm-leadership {
    background: var(--bg-body);
}

.tm-leadership__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
}

/* Center 2 cards when there are exactly 2 */
.tm-leadership__grid:has(.tm-profile-card:nth-child(2)):not(:has(.tm-profile-card:nth-child(3))) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium emerging image card */
.tm-profile-card {
    position: relative;
    background: linear-gradient(160deg, rgba(var(--text-primary-rgb), 0.04), rgba(var(--text-primary-rgb), 0.01));
    border: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-radius: 20px;
    padding: 0 28px 32px;
    text-align: center;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.tm-profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(148, 207, 20, 0.15);
    border-color: rgba(148, 207, 20, 0.3);
}

/* Abstract accent behind image */
.tm-profile-card__accent {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(148, 207, 20, 0.2), rgba(93, 30, 178, 0.15));
    z-index: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.tm-profile-card:hover .tm-profile-card__accent {
    transform: translateX(-50%) scale(1.1);
    opacity: 0.8;
}

/* Image wrapper - emerges from card */
.tm-profile-card__image {
    position: relative;
    z-index: 1;
    width: 130px;
    height: 130px;
    margin: -65px auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-body);
    background: var(--bg-surface);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.tm-profile-card:hover .tm-profile-card__image {
    transform: scale(1.08);
}

.tm-profile-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
}

.tm-profile-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(148, 207, 20, 0.15), rgba(20, 26, 30, 0.9));
    color: var(--text-brand);
    font-size: 3.5rem;
}

.tm-profile-card__body {
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

.tm-profile-card__name {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tm-profile-card__role {
    color: var(--text-brand);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.tm-profile-card__bio {
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.tm-profile-card__social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tm-profile-card__social a {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 8px;
    color: var(--text-muted);
    display: flex;
    font-size: 1.4rem;
    height: 38px;
    justify-content: center;
    width: 38px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tm-profile-card__social a:hover {
    background: rgba(148, 207, 20, 0.12);
    border-color: rgba(148, 207, 20, 0.3);
    color: var(--text-brand);
}

/* ============================================================
   MEET OUR EXPERTS
   ============================================================ */
.tm-experts {
    background: var(--bg-surface-alt);
    border-top: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.07);
}

.tm-experts__grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(4, 1fr);
}

/* Expert card - smaller emerging image */
.tm-expert-card {
    position: relative;
    background: linear-gradient(160deg, rgba(var(--text-primary-rgb), 0.04), rgba(var(--text-primary-rgb), 0.01));
    border: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-radius: 20px;
    padding: 0 24px 28px;
    text-align: center;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.tm-expert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(148, 207, 20, 0.15);
    border-color: rgba(148, 207, 20, 0.3);
}

.tm-expert-card__accent {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(148, 207, 20, 0.18), rgba(93, 30, 178, 0.12));
    z-index: 0;
    transition: transform 0.4s ease;
}

.tm-expert-card:hover .tm-expert-card__accent {
    transform: translateX(-50%) scale(1.1);
}

.tm-expert-card__image {
    position: relative;
    z-index: 1;
    width: 105px;
    height: 105px;
    margin: -52px auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-surface-alt);
    background: var(--bg-surface);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.tm-expert-card:hover .tm-expert-card__image {
    transform: scale(1.08);
}

.tm-expert-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
}

.tm-expert-card__avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(148, 207, 20, 0.15), rgba(20, 26, 30, 0.9));
    color: var(--text-brand);
    font-size: 2.8rem;
}

.tm-expert-card__body {
    position: relative;
    z-index: 1;
    padding-top: 16px;
}

.tm-expert-card__name {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tm-expert-card__role {
    color: var(--text-brand);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.tm-expert-card__bio {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   FLEXIBLE WAYS - Tabs
   ============================================================ */
.tm-flexible {
    background: var(--bg-body);
}

.tm-flexible__grid {
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.tm-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tm-tab-btns {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 28px;
}

.tm-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 14px 16px;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.tm-tab-btn:hover {
    color: var(--text-primary);
}

.tm-tab-btn.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
    color: #11171b;
    box-shadow: 0 4px 16px rgba(148, 207, 20, 0.3);
}

.tm-tab-content {
    display: none;
    animation: tm-tabFade 0.4s ease;
}

.tm-tab-content.active {
    display: block;
}

@keyframes tm-tabFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-tab-content h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.tm-tab-content p {
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.tm-tab-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.tm-tab-content ul li {
    color: var(--text-secondary);
    font-size: 1.35rem;
    line-height: 1.7;
    padding: 6px 0 6px 24px;
    position: relative;
}

.tm-tab-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--brand-primary);
    border-radius: 50%;
}

.tm-tab-label {
    color: var(--text-brand);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

/* Tab illustration panel */
.tm-flexible__visual {
    position: relative;
}

.tm-flexible__illustration {
    background: linear-gradient(145deg, rgba(148, 207, 20, 0.08), rgba(20, 26, 30, 0.95));
    border: 1px solid rgba(148, 207, 20, 0.15);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tm-flexible__illustration-icon {
    font-size: 5rem;
    color: var(--text-brand);
    margin-bottom: 20px;
    opacity: 0.8;
}

.tm-flexible__illustration h4 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tm-flexible__illustration p {
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: 0;
}

/* ============================================================
   WHY CLIENTS LOVE
   ============================================================ */
.tm-why {
    background: var(--bg-surface-alt);
    border-top: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.07);
}

.tm-why__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
}

.tm-why-card {
    background: var(--bg-surface);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 14px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.tm-why-card:hover {
    border-color: rgba(148, 207, 20, 0.4);
    transform: translateY(-4px);
}

/* Green fill hover */
.tm-why-card--fill {
    position: relative;
    z-index: 0;
}

.tm-why-card--fill::before {
    background: var(--brand-primary);
    content: '';
    inset: 0;
    position: absolute;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.tm-why-card--fill:hover::before {
    transform: scale(1);
}

.tm-why-card--fill:hover {
    border-color: var(--text-brand);
    transform: translateY(-4px) scale(1.02);
}

.tm-why-card--fill:hover h3,
.tm-why-card--fill:hover p,
.tm-why-card--fill:hover .tm-why-card__icon {
    color: #11171b;
}

.tm-why-card--fill:hover .tm-why-card__icon {
    background: rgba(var(--shadow-color-rgb), 0.15);
    color: #11171b;
}

.tm-why-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.tm-why-card__icon {
    align-items: center;
    background: rgba(148, 207, 20, 0.12);
    border-radius: 8px;
    color: var(--text-brand);
    display: flex;
    flex-shrink: 0;
    font-size: 1.8rem;
    height: 44px;
    justify-content: center;
    width: 44px;
    transition: background 0.3s ease, color 0.3s ease;
}

.tm-why-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.tm-why-card p {
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* ============================================================
   ENGINEERING EXPERTISE
   ============================================================ */
.tm-tech {
    background: var(--bg-body);
}

.tm-tech__categories {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, 1fr);
}

.tm-tech-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(var(--text-primary-rgb), 0.06);
    border-radius: 14px;
    padding: 28px;
    transition: border-color 0.3s ease;
}

.tm-tech-category:hover {
    border-color: rgba(148, 207, 20, 0.25);
}

.tm-tech-category__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tm-tech-category__icon {
    align-items: center;
    background: rgba(148, 207, 20, 0.12);
    border-radius: 8px;
    color: var(--text-brand);
    display: flex;
    font-size: 1.6rem;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.tm-tech-category h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.tm-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tm-tech-pill {
    align-items: center;
    background: rgba(var(--text-primary-rgb), 0.04);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 600;
    gap: 8px;
    padding: 8px 16px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tm-tech-pill:hover {
    background: rgba(148, 207, 20, 0.1);
    border-color: rgba(148, 207, 20, 0.3);
    color: var(--text-brand);
}

.tm-tech-pill i {
    font-size: 1.3rem;
}

/* ============================================================
   OUR CULTURE
   ============================================================ */
.tm-culture {
    background: var(--bg-surface-alt);
    border-top: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.07);
}

.tm-culture__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
}

.tm-culture-card {
    background: var(--bg-surface);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 14px;
    padding: 32px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.tm-culture-card:hover {
    border-color: rgba(148, 207, 20, 0.4);
    transform: translateY(-4px);
}

.tm-culture-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tm-culture-card__icon {
    align-items: center;
    background: rgba(148, 207, 20, 0.12);
    border-radius: 10px;
    color: var(--text-brand);
    display: flex;
    flex-shrink: 0;
    font-size: 2rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.tm-culture-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.tm-culture-card p {
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ============================================================
   TEAM STATISTICS
   ============================================================ */
.tm-stats {
    background: linear-gradient(135deg, rgba(148, 207, 20, 0.06), rgba(13, 17, 20, 1));
    border-top: 1px solid rgba(148, 207, 20, 0.1);
    border-bottom: 1px solid rgba(148, 207, 20, 0.1);
}

.tm-stats__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(5, 1fr);
}

.tm-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.tm-stat:hover {
    border-color: rgba(148, 207, 20, 0.4);
    transform: translateY(-4px);
}

.tm-stat strong {
    color: var(--text-brand);
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1;
}

.tm-stat span {
    color: var(--text-muted);
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 10px;
}

/* ============================================================
   JOIN OUR TEAM
   ============================================================ */
.tm-join {
    background: var(--bg-body);
}

.tm-join__content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.tm-join__content p {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.tm-join__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.tm-cta {
    background: linear-gradient(135deg, var(--brand-primary), #d6f27f);
    color: #11171b;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.tm-cta__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tm-cta .tm-shape--4 {
    width: 350px;
    height: 350px;
    background: rgba(17, 23, 27, 0.08);
    top: -120px;
    right: -80px;
    position: absolute;
    border-radius: 50%;
    animation: tm-float 10s ease-in-out infinite;
}

.tm-cta .tm-shape--5 {
    width: 200px;
    height: 200px;
    background: rgba(17, 23, 27, 0.06);
    bottom: -60px;
    left: -40px;
    position: absolute;
    border-radius: 50%;
    animation: tm-float 12s ease-in-out infinite reverse;
}

.tm-cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.tm-cta__title {
    color: #11171b;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 18px;
}

.tm-cta__desc {
    color: rgba(17, 23, 27, 0.75);
    font-size: 1.45rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.tm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.tm-cta .tm-btn--primary {
    background: var(--bg-surface-hover);
    border-color: #11171b;
    color: var(--text-primary);
}

.tm-cta .tm-btn--primary:hover {
    box-shadow: 0 6px 28px rgba(17, 23, 27, 0.3);
}

.tm-cta .tm-btn--secondary {
    border-color: rgba(17, 23, 27, 0.35);
    color: #11171b;
}

.tm-cta .tm-btn--secondary:hover {
    background: rgba(17, 23, 27, 0.08);
    border-color: rgba(17, 23, 27, 0.5);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.tm-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tm-fade.tm-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .tm-experts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-stats__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .tm-section {
        padding: 72px 0;
    }

    .tm-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tm-leadership__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-flexible__grid {
        grid-template-columns: 1fr;
    }

    .tm-why__grid,
    .tm-culture__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-tech__categories {
        grid-template-columns: 1fr;
    }

    .tm-stats__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .tm-section {
        padding: 56px 0;
    }

    .tm-hero__title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .tm-hero__grid {
        grid-template-columns: 1fr;
    }

    .tm-leadership__grid,
    .tm-experts__grid,
    .tm-why__grid,
    .tm-culture__grid,
    .tm-stats__grid {
        grid-template-columns: 1fr;
    }

    .tm-tab-btns {
        flex-direction: column;
    }

    .tm-hero__actions,
    .tm-join__actions,
    .tm-cta__actions {
        flex-direction: column;
    }

    .tm-hero__actions .tm-btn,
    .tm-join__actions .tm-btn,
    .tm-cta__actions .tm-btn {
        width: 100%;
        text-align: center;
    }
}