/* team.css - Specific styles for Our Team Page */

/* Page Header */
.team-header {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: url('assets/team_bg_clear.png') center center / 100% 100% no-repeat;
    z-index: 1;
}

.team-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(244, 246, 250, 0.95));
    z-index: -1;
}

/* Gradient Lighting Effects */
.team-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-blue-dim) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    animation: pulse 6s infinite alternate;
}

.team-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Team Grid */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

/* Team Card */
.team-card {
    width: 320px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    box-shadow: var(--glass-shadow);
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        var(--neon-blue-dim), 
        transparent 30%
    );
    animation: rotate 4s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px var(--neon-blue-dim);
    border-color: var(--neon-blue);
    background: #ffffff;
}

.team-card:hover::before {
    opacity: 1;
}

/* Image Wrapper */
.team-img-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #f4f6fa;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(20%);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.team-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #ffffff, transparent);
    z-index: 1;
}

/* Team Info */
.team-info {
    padding: 0 2rem 2.5rem;
    position: relative;
    z-index: 2;
    margin-top: -30px;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    font-family: var(--font-head);
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

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

.team-desc {
    font-size: 0.95rem;
    color: var(--text-silver);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Icons */
.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-silver);
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social-icon:hover {
    background: var(--neon-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--neon-blue-dim);
}

@keyframes typeTitle {
    from { width: 0; }
    to { width: 100%; }
}

.animated-heading-container {
    display: inline-block;
    position: relative;
}

.animated-heading {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--neon-blue);
    animation: typeTitle 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--neon-blue); }
}

@media (max-width: 768px) {
    .team-card { width: 100%; max-width: 350px; }
    .animated-heading { white-space: normal; animation: none; border-right: none; }
}
