/* ============================================
   NOVA TEAM PAGE STYLES
   Premium Dark Theme Design
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.team-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0a0a1a 0%, #151535 40%, #1a1a40 70%, #0d0d25 100%);
    overflow: hidden;
}

.team-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #0f0f23, transparent);
    pointer-events: none;
    z-index: 1;
}

.team-hero .hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.team-hero .floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: floatOrb 12s ease-in-out infinite;
}

.team-hero .orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #10b981, #059669);
    top: -150px;
    right: 10%;
}

.team-hero .orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    bottom: -100px;
    left: 5%;
    animation-delay: 4s;
}

.team-hero .orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    top: 50%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.team-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.team-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 50px;
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
    backdrop-filter: blur(15px);
}

.team-hero .hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 24px 0;
    line-height: 1.15;
    letter-spacing: -2px;
}

.team-hero .hero-title .gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-hero .hero-desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto 40px;
    line-height: 1.7;
    max-width: 700px;
}

.team-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.team-hero .stat-item {
    text-align: center;
}

.team-hero .stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-hero .stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    padding: 80px 0 100px;
    background: #0f0f23 !important;
}

.team-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   DEPARTMENT FILTERS
   ============================================ */
.department-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn i {
    font-size: 14px;
}

.filter-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #fff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #fff;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ============================================
   TEAM CARD
   ============================================ */
.team-card {
    perspective: 1000px;
    height: 400px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.team-card:hover .card-inner,
.team-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

/* Front Side */
.card-front {
    background: rgba(25, 25, 55, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.member-photo {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .member-photo img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 15, 35, 0.9) 100%);
}

.member-info {
    padding: 20px 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.member-info .position {
    display: block;
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 12px;
}

.department-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.social-link.github:hover {
    background: #333;
    color: #fff;
}

.social-link.dribbble:hover {
    background: #ea4c89;
    color: #fff;
}

.social-link.behance:hover {
    background: #1769ff;
    color: #fff;
}

.social-link.email:hover {
    background: #10b981;
    color: #fff;
}

/* Back Side */
.card-back {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.back-content {
    text-align: center;
}

.back-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.back-content .bio {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.back-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.back-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.back-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ============================================
   JOIN SECTION
   ============================================ */
.join-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #151535 0%, #1a1a40 50%, #0f0f23 100%) !important;
}

.join-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.join-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 60px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 32px;
    gap: 40px;
}

.join-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
}

.join-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.btn-join {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    white-space: nowrap;
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-hero .hero-title {
        font-size: 42px;
    }

    .team-hero .hero-stats {
        gap: 40px;
    }

    .join-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 120px 0 60px;
    }

    .team-hero .hero-title {
        font-size: 36px;
    }

    .team-hero .hero-desc {
        font-size: 17px;
    }

    .team-hero .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .department-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
        justify-content: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        height: 380px;
    }

    .join-content {
        padding: 40px 24px;
    }

    .join-text h2 {
        font-size: 26px;
    }
}