/* ==========================================================================
   --- css/pages/team.css (Standalone Collaborators Interface Architecture) ---
   ========================================================================== */

@import url(/css/style_fonts.css);

:root {
    --OrOcra5519: #D2DC46;
    --Or55Gry: #373737;
    --matrix-dark-bg: #050505;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

html, body {
    background-color: var(--matrix-dark-bg);
    color: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    user-select: none;
}

/* --- FIXED CANVAS WRAPPER LOCK (NO RESIZE JITTER) --- */
.canvas-viewport-wrapper {
    position: fixed;
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw; 
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
    transform: translateZ(0);
}

/* --- VIEWPORT STAGE SCREEN --- */
.viewport-stage-screen {
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

#dot-globe-canvas {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    display: block;
    z-index: 3;
    background: transparent;
}

.globe-overlay-image-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.globe-map-asset {
    width: auto;
    height: 64vh; 
    max-height: 64vw; 
    aspect-ratio: 1 / 1;
    object-fit: contain;
    opacity: 0.28; 
}

/* --- FIXED NAVIGATION OVERLAY & SEAMLESS GLASS BACKGROUND --- */
.fixed-nav {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    padding: 2.5rem 3rem !important;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 1000; 
    pointer-events: none;
    background: transparent;
    box-sizing: border-box;
    isolation: isolate; /* Prevents 3D hardware-accelerated canvas from eclipsing pseudo-elements */
}

/* Dedicated Background Glass Layer */
.fixed-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Smooth gradient overhang downwards */
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.85) 60%, rgba(5, 5, 5, 0) 100%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.35s ease, -webkit-backdrop-filter 0.35s ease, backdrop-filter 0.35s ease;
}

.fixed-nav.scrolled::before {
    opacity: 1;
}

/* --- RAPID OPACITY/TRANSPARENCY FLASH (ISOLATED TO GLASS LAYER) --- */
.fixed-nav.scrolled.nav-flash::before {
    animation: nav-bg-opacity-flash var(--nav-flash-duration, 0.2s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes nav-bg-opacity-flash {
    0% {
        opacity: 0.05;
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
    20% {
        opacity: 1;
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
    45% {
        opacity: 0.15;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
    70% {
        opacity: 0.95;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
    100% {
        opacity: 1;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

.brand-lockup { 
    display: flex; 
    align-items: center; 
    gap: 1.25rem; 
    pointer-events: auto; 
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.logo {
    font-weight: 700; 
    font-size: 1.6rem; 
    letter-spacing: 0.3em;
    text-transform: uppercase; 
    color: #ffffff; 
    text-decoration: none; 
    display: inline-flex;
}

.logo-letter { 
    display: inline-block; 
    min-width: 1.2em; 
    text-align: center; 
    font-family: 'Bank Gothic Light', sans-serif; 
}

/* --- PURE CSS LANGUAGE SELECTOR & CUSTOM ARROW --- */
.lang-selector-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
    margin-right: 4rem;
}

.lang-selector-box::after {
    content: '';
    position: absolute;
    right: 0.85rem;
    width: 4px;
    height: 4px;
    border-right: 1.5px solid #ffffff;
    border-bottom: 1.5px solid #ffffff;
    transform: rotate(45deg);
    pointer-events: none;
    margin-top: -2px;
    transition: border-color 0.3s ease;
}

.lang-selector-box:hover::after {
    border-color: var(--OrOcra5519);
}

.lang-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.7rem;
    padding: 0.35rem 1.65rem 0.35rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.lang-dropdown:hover, 
.lang-dropdown:focus {
    border-color: var(--OrOcra5519);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(210, 220, 70, 0.2);
}

.lang-dropdown option {
    background: #0d0d0d;
    color: #ffffff;
}

.nav-links { 
    display: flex; 
    gap: 2.5rem; 
    pointer-events: auto; 
    align-items: center;
    position: relative;
    z-index: 1;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-right: 3.25rem;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%);
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    color: #a1a1a6; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 0.2em; 
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { 
    color: #ffffff; 
}

.nav-eko-label,
#nav-ekovea-label {
    display: inline-block;
    min-width: 0;
    width: auto;
    text-align: left;
    transition: opacity 0.35s ease;
    overflow: hidden;
    white-space: nowrap;
}

#globe-projection-stage {
    justify-content: space-between;
    padding: 12rem 2rem 4rem 2rem;
}

.stage-header-lockup {
    text-align: left;
    margin-top: 40vh;
    margin-right: 40vw;
}

/* --- MODERN MEMBERS COUNTER BADGE --- */
.team-members-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--OrOcra5519);
    background: rgba(210, 220, 70, 0.08);
    border: 1px solid rgba(210, 220, 70, 0.45);
    border-radius: 6px;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 0 10px rgba(210, 220, 70, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    pointer-events: auto;
    white-space: pre;
}

.team-members-counter-badge:hover {
    border-color: var(--OrOcra5519);
    background: rgba(210, 220, 70, 0.18);
    box-shadow: 0 0 14px rgba(210, 220, 70, 0.3);
}

.counter-pulse-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.75rem;
    color: var(--OrOcra5519);
    text-shadow: 0 0 6px rgba(210, 220, 70, 0.6);
    animation: glyph-morph-pulse 2.2s infinite ease-in-out;
}

@keyframes glyph-morph-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
        text-shadow: 0 0 12px rgba(210, 220, 70, 0.95);
    }
}

.workspace-title-counter {
    font-family: monospace;
    font-size: 1.15rem;
    color: var(--OrOcra5519);
    letter-spacing: 0.08em;
    margin-left: 0.25rem;
    white-space: pre;
}

.matrix-status-trace {
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--OrOcra5519);
    text-align: left;
    margin-right: 18vw;
    display: block;
}

.stage-header-lockup h1 {
    font-family: 'Bank Gothic Medium BT', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
    color: #ffffff;
}

/* Interactive Grid Button */
#engage-grid-btn {
    pointer-events: auto;
    text-align: center;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.engage-text {
    color: #646466;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.arrow-down { 
    margin-top: 5px; 
    color: var(--OrOcra5519); 
    font-size: 1.1rem; 
    transition: color 0.3s ease, transform 0.3s ease;
}

#engage-grid-btn:hover {
    transform: translateY(-6px);
}

#engage-grid-btn:hover .engage-text {
    color: var(--OrOcra5519);
    text-shadow: 0 0 15px rgba(210, 220, 70, 0.3);
}

#engage-grid-btn:hover .arrow-down {
    color: #ffffff;
    transform: translateY(4px);
}

/* --- LOWER DATA GRID WORKSPACE --- */
#collaborators-grid-stage {
    background-color: #000000;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8rem 4rem;
    height: auto;
    min-height: 100vh;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: auto;
}

.workspace-boundary {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}

.workspace-section-title {
    font-family: 'Bank Gothic Light', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 3rem;
}

.bio-grid-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
}

/* --- 3D FLIPPING CARD ARCHITECTURE --- */
.bio-node-card {
    perspective: 1200px; 
    cursor: pointer;
    background: transparent;
}

.card-inner {
    display: grid; 
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

.bio-node-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    grid-area: 1 / 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid #1c1c1e;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    z-index: 1;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background: rgba(15, 15, 15, 0.95);
}

.card-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.25rem;
}

.bio-node-card:hover .card-front,
.bio-node-card:hover .card-back {
    border-color: var(--OrOcra5519);
}

/* Front Face Elements */
.card-profile-pic {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    border: 1px solid #2a2a2a;
    background-color: #111;
}

.card-meta-lockup {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.card-meta-lockup h3,
.card-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

/* --- TAXONOMY HIERARCHY TIER BADGE --- */
.card-tier-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--OrOcra5519);
    background: rgba(210, 220, 70, 0.08);
    border: 1px solid rgba(210, 220, 70, 0.45);
    border-radius: 6px;
    padding: 0.22rem 0.65rem;
    margin-top: 0.1rem;
    margin-bottom: 0.25rem;
    box-shadow: 0 0 10px rgba(210, 220, 70, 0.1);
    transition: all 0.3s ease;
}

.bio-node-card:hover .card-tier-badge {
    border-color: var(--OrOcra5519);
    background: rgba(210, 220, 70, 0.18);
    box-shadow: 0 0 14px rgba(210, 220, 70, 0.3);
}

.card-meta-lockup span.card-role,
.card-role {
    font-family: monospace;
    font-size: 0.95rem;
    color: #e5e5ea;
    letter-spacing: 0.06em;
    line-height: 1.35;
}

/* --- TAXONOMY TAG BADGES --- */
.card-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.5rem;
    width: 100%;
}

.bio-tag-chip,
.tag-badge {
    background-color: #000000;
    color: #a1a1a6;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-family: monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.bio-tag-chip:hover,
.tag-badge:hover {
    border-color: var(--OrOcra5519);
    color: #ffffff;
    transform: translateY(-1px);
}

.card-description {
    font-size: 0.85rem;
    color: #a1a1a6;
    line-height: 1.6;
}

/* Back Face Elements */
.card-back h3,
.card-back-title {
    color: #ffffff;
    font-family: 'Bank Gothic Light', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
    width: 100%;
    text-align: left;
    align-self: flex-start;
}

.card-back-location-badge {
    align-self: flex-start;
}

.back-bio-text {
    font-size: 0.8rem;
    color: #a1a1a6;
    line-height: 1.5;
    padding: 0 0.5rem;
}

.social-links-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.social-link-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--OrOcra5519);
    font-family: monospace;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.social-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    margin-right: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.social-name {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.social-link-btn:hover {
    background: var(--OrOcra5519);
    color: #000;
    border-color: var(--OrOcra5519);
    transform: scale(1.02);
}

.flip-back-hint {
    font-size: 0.7rem;
    color: #646466;
    letter-spacing: 0.2em;
    padding-top: 1rem;
    font-family: monospace;
}

.no-uplinks-text {
    color: #646466;
    font-size: 0.8rem;
}

/* --- HARDWARE TRACE FLICKER EFFECT --- */
@keyframes hardware-flicker-trace {
    0% { border-color: #1c1c1e; box-shadow: none; background: rgba(10, 10, 10, 0.4); }
    10% { border-color: var(--OrOcra5519); box-shadow: 0 0 25px rgba(210, 220, 70, 0.3); background: rgba(210, 220, 70, 0.15); }
    20% { border-color: #1c1c1e; box-shadow: none; background: rgba(10, 10, 10, 0.4); }
    30% { border-color: var(--OrOcra5519); box-shadow: 0 0 15px rgba(210, 220, 70, 0.2); background: rgba(210, 220, 70, 0.05); }
    40% { border-color: #1c1c1e; box-shadow: none; background: rgba(10, 10, 10, 0.4); }
    55% { border-color: var(--OrOcra5519); box-shadow: 0 0 35px rgba(210, 220, 70, 0.4); background: rgba(210, 220, 70, 0.2); }
    100% { border-color: #1c1c1e; box-shadow: none; background: rgba(10, 10, 10, 0.4); }
}

.flicker-highlight .card-front, 
.flicker-highlight .card-back {
    animation: hardware-flicker-trace 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* --- MODERN SCROLLBAR TRACKS --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--OrOcra5519);
}