/* Team Section */
.team-section {
    margin-top: -50px;
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px 40px;
    z-index: 1;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: var(--primary-orange);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Team Carousel */
.team-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team Cards */
.team-card {
    position: absolute;
    width: 380px;
    height: 520px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateX(100%) scale(0.8) rotateY(-15deg);
    pointer-events: none;
}

.team-card.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 10;
    pointer-events: all;
}

.team-card.prev {
    opacity: 0.6;
    transform: translateX(-120%) scale(0.85) rotateY(15deg);
    z-index: 5;
    pointer-events: all;
}

.team-card.next {
    opacity: 0.6;
    transform: translateX(120%) scale(0.85) rotateY(-15deg);
    z-index: 5;
    pointer-events: all;
}

.team-card:hover {
    border-color: var(--primary-orange);
}

.team-card.active:hover {
    box-shadow: 0 35px 90px rgba(255, 140, 0, 0.5);
    transform: translateX(0) scale(1.02) rotateY(0deg);
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

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

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

.image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Card Content */
.card-content {
    padding: 30px;
    text-align: center;
}

.member-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-role {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 25px;
    font-weight: 500;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gradient);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

.social-link:hover svg {
    stroke: white;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: var(--accent-gradient);
    border-color: var(--primary-orange);
    box-shadow: 0 5px 25px rgba(255, 140, 0, 0.5);
}

.carousel-nav svg {
    stroke: var(--primary-orange);
    transition: stroke 0.3s ease;
}

.carousel-nav:hover svg {
    stroke: white;
}

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

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

/* Dots Navigation */
.carousel-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 50px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 140, 0, 0.2);
    border: 2px solid rgba(255, 140, 0, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.dot:hover {
    background: var(--primary-orange);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 968px) {
    .team-carousel {
        height: 550px;
    }

    .team-card {
        width: 340px;
        height: 480px;
    }

    .team-card.prev,
    .team-card.next {
        opacity: 0.3;
        transform: translateX(-50%) scale(0.7) rotateY(0deg);
    }

    .team-card.next {
        transform: translateX(50%) scale(0.7) rotateY(0deg);
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 80px 20px;
    }

    .team-carousel {
        height: 500px;
    }

    .team-card {
        width: 300px;
        height: 450px;
    }

    .card-image {
        height: 280px;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .team-card.prev,
    .team-card.next {
        opacity: 0;
        pointer-events: none;
    }
}