/* ============================================
   TEAM SECTION - SMOOTH 3D ZOOM DESIGN
   ============================================ */

.team-section {
    background: linear-gradient(180deg, var(--dark-bg), var(--dark-bg-light));
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Team Card - Modern Design */
.team-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(20px);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
}

/* Smooth Zoom Effect on Hover */
.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4),
        0 0 40px rgba(20, 184, 166, 0.2);
    border-color: var(--primary-purple);
}

/* Gradient Border Animation */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

/* Card Image Section */
.team-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.team-card:hover .team-card-image img {
    transform: scale(1.08);
}

/* Gradient Overlay on Image */
.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top,
            rgba(15, 23, 42, 1) 0%,
            rgba(15, 23, 42, 0.8) 50%,
            transparent 100%);
    pointer-events: none;
}

/* Card Content Section */
.team-card-content {
    padding: 30px;
}

/* Team Header */
.team-header {
    margin-bottom: 20px;
}

.team-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-purple-light), var(--accent-teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.team-card:hover .team-name {
    letter-spacing: 0.5px;
}

.team-role {
    font-size: 1rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray-dark);
    font-size: 0.9rem;
    margin-top: 8px;
}

.team-location i {
    color: var(--accent-teal);
    font-size: 0.85rem;
}

/* Team Description */
.team-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-description {
    opacity: 1;
    color: var(--text-white);
}

/* Skills Section */
.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.skill-badge {
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-purple-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

/* Social Links */
.team-social {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    color: var(--primary-purple-light);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-teal));
    border-color: transparent;
    color: var(--text-white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

/* Glow Effect on Hover */
.team-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.team-card:hover::after {
    width: 120%;
    height: 120%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .team-card-image {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 450px;
        margin: 0 auto;
    }

    .team-card-image {
        height: 300px;
    }

    .team-card-content {
        padding: 25px;
    }

    .team-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .team-card-content {
        padding: 20px;
    }

    .team-name {
        font-size: 1.4rem;
    }

    .team-description {
        font-size: 0.9rem;
    }

    .skill-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}