/* ===== TEAM SECTION STYLES ===== */

.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 74, 173, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* ===== TEAM MEMBER CARD ===== */
.team-member {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large, 20px);
    padding: 30px;
    box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #004aad), var(--accent-color, #f39c12));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large, 0 20px 40px rgba(0, 0, 0, 0.15));
}

/* ===== MEMBER IMAGE ===== */
.member-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.2);
    transition: all 0.3s ease;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

/* ===== MEMBER OVERLAY ===== */
.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.9), rgba(243, 156, 18, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.team-member:hover .social-link {
    transform: translateY(0);
}

.social-link:nth-child(1) { transition-delay: 0.1s; }
.social-link:nth-child(2) { transition-delay: 0.2s; }
.social-link:nth-child(3) { transition-delay: 0.3s; }

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.1);
}

/* ===== MEMBER BADGE ===== */
.member-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color, #004aad), var(--primary-light, #0066cc));
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

/* ===== MEMBER INFO ===== */
.member-info {
    text-align: center;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #004aad);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color, #004aad), var(--primary-light, #0066cc));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-position {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color, #f39c12);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-description {
    font-size: 0.95rem;
    color: var(--text-light, #666);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== MEMBER DETAILS ===== */
.member-details {
    margin: 20px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-color, #333);
}

.detail-item i {
    color: var(--primary-color, #004aad);
    width: 16px;
    text-align: center;
}

/* ===== MEMBER SKILLS ===== */
.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.1), rgba(243, 156, 18, 0.1));
    color: var(--primary-color, #004aad);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 74, 173, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--primary-color, #004aad), var(--primary-light, #0066cc));
    color: white;
    transform: translateY(-2px);
}

/* ===== TEAM VALUES SECTION ===== */
.team-values-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color, #004aad) 0%, var(--primary-dark, #003a8c) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.team-values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.team-values-section .section-header h2,
.team-values-section .section-header p {
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large, 20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .team-section {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .team-member {
        padding: 25px;
    }
    
    .member-image {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .member-description {
        font-size: 0.9rem;
    }
    
    .member-details {
        margin: 15px 0;
    }
    
    .detail-item {
        font-size: 0.85rem;
    }
    
    .team-values-section {
        padding: 60px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .value-item {
        padding: 25px 15px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .value-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-member {
        padding: 20px;
    }
    
    .member-image {
        width: 80px;
        height: 80px;
    }
    
    .member-info h3 {
        font-size: 1.2rem;
    }
    
    .member-position {
        font-size: 0.9rem;
    }
    
    .member-description {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .member-skills {
        gap: 6px;
    }
    
    .skill-tag {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ===== ANIMATION ENHANCEMENTS ===== */
.team-member {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.team-member.animate {
    opacity: 1;
    transform: translateY(0);
}

.value-item {
    animation: fadeInScale 0.6s ease forwards;
    opacity: 0;
    transform: scale(0.9);
}

.value-item.animate {
    opacity: 1;
    transform: scale(1);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== LOADING STATES ===== */
.member-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .team-section,
    .team-values-section {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .team-member {
        break-inside: avoid;
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    .member-overlay,
    .member-social {
        display: none !important;
    }
}
