/* Team Hero Section */
.team-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

#starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

.team-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    max-width: 95vw;
    padding: 0 20px;
}

.team-hero .title-main {
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    margin-bottom: 16px;
    align-items: center !important;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
}

.team-hero .title-main .line {
    white-space: normal !important;
    display: block;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.team-hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s both;
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-member-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s both;
}

.team-member-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.team-member-card.reverse .member-image-wrapper {
    order: 2;
}

.team-member-card.reverse .member-content {
    order: 1;
}

.member-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 280px;
    height: 350px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1), inset 0 -8px 24px rgba(0, 0, 0, 0.3);
    animation: slideInImage 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 128, 255, 0.05) 100%);
    transition: all 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

.team-member-card:hover .member-image-wrapper {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 30px 80px rgba(0, 212, 255, 0.2), inset 0 -8px 24px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 175, 55, 0.1);
    transform: translateY(-12px);
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 128, 255, 0.08) 100%);
    pointer-events: none;
    transition: all 500ms ease;
}

.team-member-card:hover .member-image {
    transform: scale(1.15);
}

.team-member-card:hover .member-overlay {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 128, 255, 0.15) 100%);
}

.member-content {
    animation: slideInContent 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
}

.member-name-large {
    font-family: 'Arbereto', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    animation: fadeInDown 0.8s ease 0.2s both;
}


.member-role-large {
    font-size: 1.15rem;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.member-bio {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 24px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 128, 255, 0.1));
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    color: #00d4ff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(8px);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(0, 128, 255, 0.25));
    border-color: rgba(212, 175, 55, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
    color: #fff;
}

/* CTA Section */
.team-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 128, 255, 0.02) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.team-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #0080ff);
    color: #012733;
    padding: 16px 48px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 500ms cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
}

.cta-button:active {
    transform: translateY(-2px);
}

/* Animations */
@keyframes slideInImage {
    from {
        opacity: 0;
        transform: translateX(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member-card.reverse .member-image-wrapper {
    animation: slideInImage 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
    transform: scaleX(-1);
}

.team-member-card.reverse .member-image {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 768px) {
    .team-hero {
        min-height: 70vh;
        padding-top: 60px;
    }

    .team-hero .title-main {
        font-size: clamp(1.6rem, 6vw, 3rem);
        letter-spacing: 2px;
    }

    .team-hero-desc {
        font-size: 1rem;
    }

    .nav-links {
        gap: 16px;
        order: 3;
        width: 100%;
        flex-direction: column;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(212, 175, 55, 0.1);
    }

    .glass-nav .container {
        flex-wrap: wrap;
    }

    .glass-nav .logo {
        flex: 1;
    }

    .glass-nav .nav-cta {
        width: 100%;
        order: 4;
        margin-top: 12px;
    }

    .team-member-card {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .team-member-card.reverse {
        grid-template-columns: 1fr;
    }

    .team-member-card.reverse .member-image-wrapper {
        order: 1;
    }

    .team-member-card.reverse .member-content {
        order: 2;
    }

    .member-name-large {
        font-size: 1.8rem;
    }

    .member-role-large {
        font-size: 1rem;
    }

    .team-cta h2 {
        font-size: 1.8rem;
    }
}

/* Logo Link */
.glass-nav .logo a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #d4af37, #f9e29c);
    transition: width 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #d4af37;
}

.nav-link.active {
    color: #d4af37;
}
