/* ================================================
   TEAM SECTION - MODERN 2025
   Team members with glassmorphism cards
   ================================================ */

.team-section-modern {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: var(--color-bg-primary);  /* Primary background */
}

/* All background effects removed for clear section alternation */

/* Section Title */
.team-title-modern {
    /* Base styles come from .section-heading and .section-heading-gradient */
}

/* Team Grid */
.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--card-grid-gap);
    position: relative;
    z-index: 2;
}

/* Team Member Card - Premium style */
.team-member-modern {
    background: rgba(34, 40, 58, 0.65);  /* Lighter and more opaque */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);  /* More visible */
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

/* Team Avatar */
.team-avatar-modern {
    width: 120px;
    height: 120px;
    margin-bottom: 1.25rem;
    position: relative;
}

.team-avatar-modern img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.team-member-modern:hover .team-avatar-modern img {
    border-color: var(--color-brand-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
}

/* Avatar Glow Effect */
.team-avatar-modern::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.team-member-modern:hover .team-avatar-modern::after {
    opacity: 1;
    /* animation: rotate-glow 4s linear infinite; - Disabled for smooth scrolling */
}

/* Team Name */
.team-name-modern {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
    font-family: var(--font-family-headings);
}

/* Team Role */
.team-role-modern {
    font-size: 0.875rem;  /* Increased from 0.8rem */
    color: var(--color-brand-cyan);
    font-weight: 500;
    margin-bottom: 0.85rem;
}

/* Team Description */
.team-description-modern {
    font-size: 1rem;  /* Increased from 0.95rem */
    line-height: 1.7;  /* Improved line-height */
    color: rgba(226, 232, 240, 0.90);  /* Better contrast */
    margin: 0 0 1rem 0;
}

/* LinkedIn Link */
.team-linkedin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #3B82F6;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: auto;
}

.team-linkedin-link i {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
}

.team-linkedin-link svg {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
}

.team-linkedin-link:hover {
    background: #2563EB;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-bg-gradient {
        animation: mesh-breathe-stable 18s ease-in-out infinite;
    }

    .team-section-modern {
        padding: 2.5rem 0; /* 40px on mobile */
    }

    .team-title-modern {
        /* Uses base .section-heading styles */
    }

    .team-grid-modern {
        grid-template-columns: 1fr;
        gap: calc(var(--card-grid-gap) * 0.75);
    }

    .team-member-modern {
        padding: 1.25rem 1.5rem;
    }

    .team-avatar-modern {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .team-name-modern {
        font-size: 1.15rem;
    }

    .team-role-modern {
        font-size: 0.75rem;
    }

    .team-linkedin-link {
        width: 38px;
        height: 38px;
    }

    .team-linkedin-link i {
        width: 18px;
        height: 18px;
    }

    .team-linkedin-link svg {
        width: 18px;
        height: 18px;
    }
}
