

:root {
    --primary-color: #1691D9;
    --secondary-color: #FFB300;

}

.team-section {
    border-radius: 20px; 
    padding: 6rem 0;
    background-color: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.team-heading {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    position: relative;
    padding-bottom: 15px;
}

.team-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1691D9, #FFB300);
    border-radius: 2px;
}

.team-subheading {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    perspective: 1000px;
}

.member-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.member-photo-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.member-photo {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.team-member:hover .photo-overlay {
    opacity: 0.6;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

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


.member-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    text-align: center;
}

.member-position {
    color: #1691D9;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.member-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1691D9, #FFB300);
    margin: 0 auto 1.5rem;
    border-radius: 3px;
}

.member-bio {
    color: #7f8c8d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
    flex-grow: 1;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}



/* Decorative Elements */
.team-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(74, 111, 165, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.team-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-members {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .member-photo-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 4rem 0;
    }
    
    .team-heading {
        font-size: 2.4rem;
    }
    
    .team-subheading {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .team-members {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .team-heading {
        font-size: 2rem;
    }
    
    .team-subheading {
        font-size: 1rem;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .member-position {
        font-size: 1rem;
    }
    
    .member-bio {
        font-size: 0.95rem;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.3s; }
.team-member:nth-child(3) { animation-delay: 0.5s; }

/* Font Awesome Icons (if not already loaded) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');