/* ==========================================================================
   Team Widget — Premium Card Layout
   Plugin: Developercode Core
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */
:root {
    --tm-primary: #FF6B00;
    --tm-primary-rgb: 255, 107, 0;
    --tm-dark: #0A1628;
    --tm-dark-rgb: 10, 22, 40;
    --tm-text: #1e293b;
    --tm-text-muted: #64748b;
    --tm-bg: #ffffff;
    --tm-border: rgba(10, 22, 40, 0.07);
    --tm-radius: 16px;
    --tm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --tm-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tm { overflow: hidden; }

/* --- Highlight --------------------------------------------------------- */
.tm-hl { color: var(--tm-primary); }

/* --- Eyebrow ----------------------------------------------------------- */
.tm-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--tm-primary); }
.tm-eyebrow__line {
    display: block; width: 40px; height: 2px;
    background: repeating-linear-gradient(90deg, currentColor 0px, currentColor 6px, transparent 6px, transparent 11px);
    opacity: 0.4;
}
.tm-eyebrow__icon {
    width: 14px; height: 14px; flex-shrink: 0; margin-left: -4px;
    animation: tm-float 3s ease-in-out infinite;
}
.tm-eyebrow__text {
    font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    white-space: nowrap;
}

@keyframes tm-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }

/* --- Section ----------------------------------------------------------- */
.tm-section {
    position: relative;
    padding: 100px 0;
    background: var(--tm-dark);
    overflow: hidden;
}

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

.tm-section__glow {
    position: absolute; border-radius: 50%; filter: blur(120px);
}
.tm-section__glow--1 {
    width: 500px; height: 500px; top: -120px; left: -100px;
    background: rgba(var(--tm-primary-rgb), 0.06);
}
.tm-section__glow--2 {
    width: 400px; height: 400px; bottom: -100px; right: -80px;
    background: rgba(var(--tm-primary-rgb), 0.04);
}

.tm-section__inner {
    max-width: 1340px; margin: 0 auto; padding: 0 40px;
    position: relative; z-index: 2;
}

/* --- Header ------------------------------------------------------------ */
.tm-header {
    text-align: center; max-width: 640px; margin: 0 auto 64px;
}
.tm-header .tm-eyebrow { justify-content: center; }
.tm-header__title {
    font-size: clamp(28px, 3.2vw, 42px); font-weight: 800;
    color: #ffffff; margin: 0 0 16px; letter-spacing: -0.02em;
    line-height: 1.15;
}
.tm-header__subtitle {
    font-size: 16px; color: rgba(255,255,255,0.5);
    margin: 0; line-height: 1.7;
}

/* --- Grid -------------------------------------------------------------- */
.tm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Card -------------------------------------------------------------- */
.tm-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s var(--tm-ease), border-color 0.4s var(--tm-ease), box-shadow 0.4s var(--tm-ease);
}
.tm-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--tm-primary-rgb), 0.25);
    box-shadow: 0 20px 60px -12px rgba(var(--tm-primary-rgb), 0.15);
}

/* --- Card: Photo ------------------------------------------------------- */
.tm-card__photo-wrap {
    position: relative;
    width: 100%; aspect-ratio: 4 / 4.2;
    overflow: hidden;
}
.tm-card__photo {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--tm-ease);
}
.tm-card:hover .tm-card__photo {
    transform: scale(1.05);
}
.tm-card__photo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(var(--tm-dark-rgb), 0.9) 100%);
    pointer-events: none;
}
.tm-card__photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03);
}
.tm-card__photo-placeholder svg {
    width: 56px; height: 56px; color: rgba(255,255,255,0.12);
}

/* --- Card: Experience badge -------------------------------------------- */
.tm-card__exp {
    position: absolute; top: 16px; right: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(var(--tm-primary-rgb), 0.9);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform 0.4s var(--tm-spring);
}
.tm-card:hover .tm-card__exp {
    transform: scale(1.08) rotate(-3deg);
}
.tm-card__exp-value {
    font-size: 16px; font-weight: 800; color: #fff; line-height: 1;
}
.tm-card__exp-label {
    font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.8);
    text-transform: uppercase; letter-spacing: 1px; line-height: 1;
    margin-top: 2px;
}

/* --- Card: Body -------------------------------------------------------- */
.tm-card__body {
    padding: 24px 24px 28px;
}

.tm-card__tag {
    display: inline-block; padding: 4px 12px; border-radius: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--tm-primary);
    background: rgba(var(--tm-primary-rgb), 0.1);
    margin-bottom: 14px;
}

.tm-card__name {
    font-size: 20px; font-weight: 800; color: #ffffff;
    margin: 0 0 4px; letter-spacing: -0.01em;
}

.tm-card__role {
    font-size: 14px; font-weight: 600; color: var(--tm-primary);
    margin: 0 0 12px;
}

.tm-card__bio {
    font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,0.45);
    margin: 0;
}

/* --- Card: Social links ------------------------------------------------ */
.tm-card__links {
    display: flex; gap: 8px; margin-top: 18px; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.tm-card__link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.3s var(--tm-ease);
}
.tm-card__link:hover {
    background: rgba(var(--tm-primary-rgb), 0.15);
    border-color: rgba(var(--tm-primary-rgb), 0.3);
    color: var(--tm-primary);
    transform: translateY(-2px);
}
.tm-card__link svg {
    width: 16px; height: 16px;
}

/* --- Card: Shine effect ------------------------------------------------ */
.tm-card__shine {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(var(--tm-primary-rgb),0.04) 45%, transparent 50%);
    background-size: 250% 100%;
    transition: opacity 0.4s var(--tm-ease);
}
.tm-card:hover .tm-card__shine {
    opacity: 1;
    animation: tm-shine 0.8s ease forwards;
}
@keyframes tm-shine {
    from { background-position: 200% 0; }
    to   { background-position: -50% 0; }
}

/* --- CTA --------------------------------------------------------------- */
.tm-cta {
    text-align: center; margin-top: 56px;
}
.tm-cta__btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 36px; border-radius: 14px;
    background: var(--tm-primary); color: #fff;
    font-size: 15px; font-weight: 700; text-decoration: none;
    transition: transform 0.4s var(--tm-spring), box-shadow 0.4s var(--tm-ease);
}
.tm-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--tm-primary-rgb), 0.35);
}
.tm-cta__btn svg {
    width: 18px; height: 18px;
    transition: transform 0.3s var(--tm-ease);
}
.tm-cta__btn:hover svg { transform: translateX(4px); }

/* --- Scroll reveal ----------------------------------------------------- */
[data-tm-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--tm-ease), transform 0.7s var(--tm-spring);
}
[data-tm-reveal].tm-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-tm-delay="1"] { transition-delay: 0.1s; }
[data-tm-delay="2"] { transition-delay: 0.2s; }
[data-tm-delay="3"] { transition-delay: 0.3s; }
[data-tm-delay="4"] { transition-delay: 0.4s; }
[data-tm-delay="5"] { transition-delay: 0.5s; }
[data-tm-delay="6"] { transition-delay: 0.6s; }

/* --- Responsive: Tablet ------------------------------------------------ */
@media (max-width: 1024px) {
    .tm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --- Responsive: Mobile ------------------------------------------------ */
@media (max-width: 768px) {
    .tm-section { padding: 72px 0; }
    .tm-section__inner { padding: 0 24px; }
    .tm-header { margin-bottom: 48px; }
    .tm-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .tm-section { padding: 56px 0; }
    .tm-section__inner { padding: 0 20px; }
    .tm-card__body { padding: 20px 20px 24px; }
}

/* --- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .tm-eyebrow__icon,
    .tm-card__shine { animation: none !important; }

    [data-tm-reveal] {
        opacity: 1 !important; transform: none !important;
        transition: none !important;
    }
}

/* --- Elementor editor -------------------------------------------------- */
.elementor-editor-active [data-tm-reveal] {
    opacity: 1 !important; transform: none !important;
}
.elementor-editor-active .tm-eyebrow__icon,
.elementor-editor-active .tm-card__shine {
    animation: none !important;
}
