/* ═══════════════════════════════════════════════════
   NETRINIX ACADEMY — TEAM PAGE (Experimental)
   ═══════════════════════════════════════════════════ */

:root {
    --color-magenta: #ff00ff;
    --color-blue: #0077ff;
    --color-cyan: #00f2ea;
    --bg-primary: #0a0a0a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background: #0a0a0a;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.font-orbitron { font-family: 'Orbitron', sans-serif; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animated-gradient-bg {
    background: linear-gradient(-45deg, #0a0a0a, #0d1a26, #0a0a0a, #1a0d1a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-effect {
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
}

/* Header */
.team-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 1.5rem;
}

.team-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.08em;
}

.nav-logo .dot { color: var(--color-blue); }

.back-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.back-link:hover { color: var(--color-cyan); }

/* Hero */
.team-hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 119, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.team-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid rgba(0, 242, 234, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    background: rgba(0, 242, 234, 0.06);
}

.team-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.team-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Segment nav */
.segment-nav {
    position: sticky;
    top: 4.5rem;
    z-index: 40;
    padding: 0 1.5rem 1.5rem;
}

.segment-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
}

.segment-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.segment-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.segment-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    box-shadow: 0 4px 20px rgba(0, 119, 255, 0.35);
}

/* Sections */
.team-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    scroll-margin-top: 7rem;
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section-count {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Cards grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-grid--leaders {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

/* Leader / trainer card */
.team-card {
    position: relative;
    border-radius: 1.25rem;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    animation: cardFadeIn 0.6s ease both;
    transform-origin: center center;
}

.team-card:hover {
    transform: scale(0.91);
}

.team-card--blue:hover  { box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.6),  0 24px 60px -10px rgba(0, 119, 255, 0.45); }
.team-card--purple:hover{ box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.6), 0 24px 60px -10px rgba(168, 85, 247, 0.45); }
.team-card--cyan:hover  { box-shadow: 0 0 0 2px rgba(0, 242, 234, 0.55), 0 24px 60px -10px rgba(0, 242, 234, 0.35); }
.team-card--amber:hover { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.55), 0 24px 60px -10px rgba(245, 158, 11, 0.4); }

.team-card-inner {
    background: rgba(12, 12, 12, 0.92);
    border-radius: 1.2rem;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.team-card--blue .team-card-photo { box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.5); }
.team-card--purple .team-card-photo { box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.5); }
.team-card--cyan .team-card-photo { box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.4); }
.team-card--amber .team-card-photo { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45); }

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.team-card-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0.25rem;
}

.team-card-role {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.team-card--blue .team-card-role { color: #60a5fa; }
.team-card--purple .team-card-role { color: #c084fc; }
.team-card--cyan .team-card-role { color: #22d3ee; }
.team-card--amber .team-card-role { color: #fbbf24; }

.team-card-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: center;
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.team-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
}

.team-card-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.team-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.team-link-btn:hover {
    color: #fff;
    border-color: var(--color-blue);
    background: rgba(0, 119, 255, 0.1);
}

.team-link-btn svg { width: 14px; height: 14px; }

/* Ambassador compact card */
.ambassador-card {
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.25), rgba(255, 0, 255, 0.08));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    animation: cardFadeIn 0.5s ease both;
    transform-origin: center center;
    position: relative;
    /* overflow must NOT be hidden here — it clips the scale transform */
}

.ambassador-card:hover {
    transform: scale(0.91);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.55), 0 20px 50px -10px rgba(245, 158, 11, 0.35);
}

.ambassador-card-inner {
    background: rgba(12, 12, 12, 0.95);
    border-radius: 0.95rem;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hover overlay — course & college */
.ambassador-hover-info {
    position: absolute;
    inset: 0;
    border-radius: 0.95rem;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.ambassador-card:hover .ambassador-hover-info {
    opacity: 1;
    pointer-events: auto;
}

.ambassador-hover-course {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: #fbbf24;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.ambassador-hover-college {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    padding: 0 0.25rem;
}

.ambassador-hover-links {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ambassador-hover-links .team-link-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
}

.ambassador-card .team-card-photo {
    width: 72px;
    height: 72px;
    margin-bottom: 0.85rem;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45);
}

.ambassador-card .team-card-initials { font-size: 1.1rem; }

.ambassador-card .team-card-name { font-size: 0.95rem; }

.ambassador-card .team-card-role {
    color: #fbbf24;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
}

.ambassador-card .team-card-links {
    border-top: none;
    padding-top: 0;
    gap: 0.5rem;
}

.ambassador-card .team-link-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
}

.ambassador-card .team-link-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.team-footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.team-footer a { color: var(--color-cyan); }

.experimental-badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fbbf24;
    border: 1px dashed rgba(251, 191, 36, 0.4);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .team-hero { padding-top: 6.5rem; }
    .segment-nav { top: 3.75rem; }
    .segment-nav-inner { border-radius: 1rem; }
    .segment-btn { font-size: 0.6rem; padding: 0.55rem 0.75rem; }
    .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .animated-gradient-bg,
    .team-card,
    .ambassador-card { animation: none; }
}
