/* 
 * TEAM PAGE - MNC & CORPORATE STYLE
 * Advanced Glassmorphism, 3D Effects, and Cinematic Animations
 */

.team-page {
    overflow-x: hidden;
    background-color: #f8fafc;
    font-family: 'Poppins', sans-serif;
}

/* --- CINEMATIC HERO SECTION --- */
.team-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
    color: white;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 10px
    );
    animation: rotateBackground 60s linear infinite;
    z-index: 1;
}

.team-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.team-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

/* --- GLASSMORPHISM LEADERSHIP CARDS --- */
.leadership-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8fafc, #eff6ff);
    position: relative;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    padding: 12px;
    justify-items: center;
}

.leadership-member {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.01),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
}

.leadership-member:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 40px -10px rgba(0, 0, 0, 0.1),
        0 15px 20px -10px rgba(0, 0, 0, 0.05);
}

.leadership-image {
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.leadership-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.8s ease;
    filter: grayscale(10%) contrast(1.1);
    background: #ffffff;
}

.leadership-member:hover .leadership-image img {
    transform: none;
    filter: grayscale(0%) contrast(1);
}

.leadership-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.leadership-member:hover .leadership-overlay {
    transform: translateY(0);
}

.leadership-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.leadership-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.leadership-social a:hover {
    background: #0ea5e9;
    transform: scale(1.1);
    border-color: #0ea5e9;
}

.leadership-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.leadership-content h3 {
    font-size: 1.35rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.leadership-content .position {
    color: #0ea5e9;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    display: block;
}

.leadership-content .bio {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 400;
    flex-grow: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 3D TEAM GRID --- */
.team-departments {
    padding: 100px 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #0ea5e9;
    margin: 15px auto 0;
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
    padding: 20px 0;
    justify-items: center;
}

.team-member {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
    width: 100%;
    max-width: 320px;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1);
}

.member-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
    background: #ffffff;
}

.team-member:hover .member-image img {
    transform: none;
}

.member-content {
    padding: 18px;
    text-align: center;
    background: white;
}

.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 0.875rem;
    color: #0ea5e9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ANIMATED VOLUNTEERS SECTION --- */
.volunteers-section {
    padding: 100px 0;
    background: #0f172a;
    color: white;
    overflow: hidden;
    position: relative;
}

.volunteers-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: #0ea5e9;
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.volunteers-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.volunteer-stat {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.volunteer-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #38bdf8;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.volunteer-cta {
    text-align: center;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    padding: 60px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.volunteer-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width=\'60\' height=\'60\' viewBox=\'0 0 60 60\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'none\' fill-rule=\'evenodd\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'0.1\'%3E%3Cpath d=\'M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.volunteer-cta h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.volunteer-cta p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.btn-volunteer {
    background: white;
    color: #0284c7;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-volunteer:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: #f0f9ff;
    color: #0369a1;
}

/* --- ANIMATIONS --- */
@keyframes rotateBackground {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .team-hero h1 { font-size: 2.5rem; }
    .team-hero { min-height: 50vh; }
    .leadership-grid { grid-template-columns: 1fr; }
    .volunteer-cta { padding: 40px 20px; }
}