/* Team Page Specific Styles */

/* Hero Section */
.team-hero {
    background: linear-gradient(135deg, #fffdfd 0%, #f7f7ff 100%);
    color: rgb(40, 40, 40);
    padding: 20px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgb(255, 199, 199);
    border-radius: 50%;
    z-index: 1;
}

.team-members::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(136, 255, 237, 0.786);
    border-radius: 50%;
    z-index: 1;
}

.team-hero .container {
    position: relative;
    z-index: 2;
}

.team-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.team-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Carousel Section */
.team-carousel-section {
    padding: 2rem 0;
    z-index: 0;
    background-color: #f8f9fa;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 2;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slide-content p {
    opacity: 0.9;
    font-size: 16px;
    max-width: 80%;
    margin: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 3;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Team Members Section */
.team-members {
    padding: 80px 0;
    background-color: white;
}

.team-members .container {
    position: sticky;
    z-index: 2;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 600;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 18px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.team-member {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    transition: 0.5s;
}

.team-member:hover {
    border-radius: 5px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

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

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

.member-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.member-course {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

/* Badge colors for different skills */
.badge.leadership { background-color: #4e54c8; }
.badge.project-management { background-color: #3f51b5; }
.badge.strategy { background-color: #7986cb; }

.badge.research { background-color: #00897b; }
.badge.documentation { background-color: #26a69a; }
.badge.analysis { background-color: #4db6ac; }

.badge.ui-ux { background-color: #f06292; }
.badge.design { background-color: #ec407a; }
.badge.accessibility { background-color: #f48fb1; }

.badge.iot { background-color: #ff7043; }
.badge.hardware { background-color: #ff5722; }
.badge.embedded { background-color: #ff8a65; }

.badge.ai-ml { background-color: #7cb342; }
.badge.database { background-color: #689f38; }
.badge.analytics { background-color: #9ccc65; }

.badge.frontend { background-color: #fb8c00; }
.badge.backend { background-color: #ef6c00; }
.badge.fullstack { background-color: #ffa726; }

.member-description {
    flex-grow: 1;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.social-icon.linkedin { background-color: #0077b5; }
.social-icon.github { background-color: #333; }
.social-icon.dribbble { background-color: #ea4c89; }
.social-icon.globe { background-color: #4285f4; }

/* Team CTA Section */
.team-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cta-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.cta-content p {
    margin-bottom: 30px;
    color: #555;
    font-size: 18px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .carousel {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .team-hero h1 {
        font-size: 2.2rem;
    }
    
    .carousel {
        height: 400px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .member-photo {
        height: 240px;
    }
    
    .cta-content {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .team-hero h1 {
        font-size: 1.8rem;
    }
    
    .team-hero p {
        font-size: 1rem;
    }
    
    .carousel {
        height: 350px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}
