/* Team Section Styles */
.team {
    position: relative;
    padding: 2.5rem 0;
    min-height: 100vh;
}

.team .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Team Header - Uses section-heading from services.css */

/* CEO Card Wrapper */
.ceo-card-wrapper {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.ceo-card {
    --card-glow-color-rgb: 255, 215, 0;
    width: 100%;
    max-width: 100%;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    grid-column: 1 / -1;
    border: 1px solid #f5d97a;
    min-height: 150px;
}

.ceo-card .team-member-avatar .avatar-placeholder {
    width: 2.5rem;
    height: 2.5rem;
}

.ceo-card .team-member-avatar .avatar-placeholder i {
    font-size: 1.25rem;
}

.ceo-card .team-member-badge {
    width: 1.75rem;
    height: 1.75rem;
}

.ceo-card .team-member-badge i {
    font-size: 1.125rem;
}

.ceo-card .team-member-profile-image {
    width: 4rem;
    height: 4rem;
}

.ceo-card .team-member-name {
    font-size: 1.375rem;
}

.ceo-card .team-member-role {
    font-size: 0.6rem;
}

/* Glow handled by shared team-member-card styles */

/* Team Carousel */
.team-carousel {
    position: relative;
    margin-top: 0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(120px, auto));
    gap: 0.5rem;
    min-height: 120px;
}

/* Team Member Card */
.team-member-card {
    --card-glow-color-rgb: 245, 11, 102;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: box-shadow, border-color;
    position: relative;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    display: none;
}

.team-member-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
            rgba(var(--card-glow-color-rgb, 245, 11, 102), 0.35),
            rgba(var(--card-glow-color-rgb, 245, 11, 102), 0.15) 35%,
            rgba(var(--card-glow-color-rgb, 245, 11, 102), 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}

.team-member-card.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.team-member-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.team-member-card:hover::after {
    opacity: 1;
}

/* Card Header */
.team-member-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border);
}

.team-member-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--muted);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-placeholder i {
    font-size: 0.9375rem;
    color: var(--primary);
}

.team-member-badge {
    margin-left: auto;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-member-badge i {
    font-size: 0.9375rem;
    color: var(--primary);
}

/* Card Body */
.team-member-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-height: 120px;
}

/* Name and Role Wrapper */
.team-member-name-role-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Profile Image */
.team-member-profile-image {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.team-member-profile-image img[style*="display: none"] {
    opacity: 0;
}

.team-member-name-role-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

/* Name */
.team-member-name {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Role */
.team-member-role {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Skills */
.team-member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.4375rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--foreground);
}

.skill-badge i {
    font-size: 0.6875rem;
    color: var(--primary);
}

/* Description */
.team-member-description {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--muted-foreground);
    margin: 0;
}

/* Team Navigation */
.team-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.team-nav-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--muted);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    will-change: transform, background;
    transform: translateZ(0);
}

.team-nav-dot:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2) translateZ(0);
}

.team-nav-dot.active {
    width: 1.5rem;
    border-radius: 0.25rem;
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1) translateZ(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .team {
        padding: 2rem 0;
    }

    .team .container {
        padding: 0 1rem;
    }

    .ceo-card-wrapper {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .ceo-card .team-member-avatar .avatar-placeholder {
        width: 2.5rem;
        height: 2.5rem;
    }

    .ceo-card .team-member-avatar .avatar-placeholder i {
        font-size: 1.25rem;
    }

    .ceo-card .team-member-name {
        font-size: 1.125rem;
    }

    .team-carousel {
        margin-top: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    .team-navigation {
        margin-top: 1.5rem;
        gap: 0.625rem;
    }

    .team-grid {
        min-height: auto;
    }

    .team-member-card {
        padding: 0.875rem;
        gap: 0.625rem;
    }

    .team-member-card__body {
        min-height: 100px;
        gap: 0.5rem;
    }

    .team-member-card__header {
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .team-member-name-role-wrapper {
        gap: 0.75rem;
    }

    .team-member-profile-image {
        width: 3rem;
        height: 3rem;
    }

    .avatar-placeholder {
        width: 1.75rem;
        height: 1.75rem;
    }

    .avatar-placeholder i {
        font-size: 0.875rem;
    }

    .team-member-badge {
        width: 1.125rem;
        height: 1.125rem;
    }

    .team-member-badge i {
        font-size: 0.875rem;
    }

    .team-member-name {
        font-size: 1rem;
    }

    .team-member-role {
        font-size: 0.75rem;
    }

    .team-member-skills {
        gap: 0.25rem;
    }

    .skill-badge {
        padding: 0.125rem 0.375rem;
        font-size: 0.625rem;
    }

    .skill-badge i {
        font-size: 0.625rem;
    }

    .team-member-description {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .team {
        padding: 1.5rem 0;
    }

    .ceo-card-wrapper {
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .ceo-card .team-member-avatar .avatar-placeholder {
        width: 2rem;
        height: 2rem;
    }

    .ceo-card .team-member-avatar .avatar-placeholder i {
        font-size: 1rem;
    }

    .ceo-card .team-member-profile-image {
        width: 3rem;
        height: 3rem;
    }

    .ceo-card .team-member-name {
        font-size: 1.125rem;
    }

    .ceo-card .team-member-role {
        font-size: 0.8125rem;
    }

    .team-carousel {
        margin-top: 1.25rem;
    }

    .team-grid {
        gap: 0.875rem;
    }

    .team-navigation {
        margin-top: 1.25rem;
        gap: 0.5rem;
    }

    .team-nav-dot {
        width: 0.4375rem;
        height: 0.4375rem;
    }

    .team-nav-dot.active {
        width: 1.25rem;
    }

    .team-member-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .team-member-card__body {
        min-height: 90px;
        gap: 0.4375rem;
    }

    .team-member-card__header {
        gap: 0.4375rem;
        padding-bottom: 0.4375rem;
    }

    .team-member-name-role-wrapper {
        gap: 0.625rem;
    }

    .team-member-profile-image {
        width: 2.5rem;
        height: 2.5rem;
    }

    .avatar-placeholder {
        width: 1.5rem;
        height: 1.5rem;
    }

    .avatar-placeholder i {
        font-size: 0.8125rem;
    }

    .team-member-badge {
        width: 1rem;
        height: 1rem;
    }

    .team-member-badge i {
        font-size: 0.8125rem;
    }

    .team-member-name {
        font-size: 0.9375rem;
    }

    .team-member-role {
        font-size: 0.6875rem;
    }

    .team-member-skills {
        gap: 0.25rem;
    }

    .skill-badge {
        padding: 0.125rem 0.3125rem;
        font-size: 0.5625rem;
    }

    .skill-badge i {
        font-size: 0.5625rem;
    }

    .team-member-description {
        font-size: 0.625rem;
    }

    .team-member-card__loading {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.ceo-card:hover {
    border-color: #f5d97a;
}