/* ============================================================
   LUMIOR.IO — Team Page Stylesheet (team.css)
   Clean, Apple-caliber aesthetics, full dark/light mode parity.
   Constrained SVG assets, responsive grid, glassmorphism cards.
   ============================================================ */

/* ── Hero Section ── */
.team-hero {
    position: relative;
    padding: 150px 0 60px;
    overflow: hidden;
    text-align: center;
}

.team-hero .container {
    position: relative;
    z-index: 2;
}

/* Ambient glow orbs */
.orb-glow-1,
.orb-glow-2 {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.orb-glow-1 {
    top: 5%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-glow-2 {
    top: 15%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 70%);
    animation: orbFloat 22s ease-in-out infinite alternate-reverse;
}

[data-theme="light"] .orb-glow-1 {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.10) 0%, transparent 70%);
}

[data-theme="light"] .orb-glow-2 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}

.team-hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.team-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 22px;
}

.team-hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 36px;
}

.team-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Button with mini avatar */
.btn-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px 8px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-with-avatar:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--accent-primary);
}

.btn-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3D Team Image Showcase */
.team-hero-image-wrapper {
    max-width: 1080px;
    margin: 12px auto 0;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 2;
}

.team-hero-image-card {
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.5), 0 0 32px rgba(99, 102, 241, 0.12);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.team-hero-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.6), 0 0 48px rgba(99, 102, 241, 0.20);
}

.team-hero-image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    z-index: 3;
}

.team-hero-image-card img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

[data-theme="light"] .team-hero-image-card {
    background: #ffffff;
    box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.10), 0 0 24px rgba(79, 70, 229, 0.08);
}

/* ── Section Header ── */
.team-grid-section {
    padding: 100px 0 120px;
    position: relative;
}

.team-grid-section .section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.team-grid-section .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.16;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.team-grid-section .section-desc {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Team Grid ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ── Member Card ── */
.member-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 24px;
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.member-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45), 0 0 28px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .member-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .member-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08), 0 0 24px rgba(79, 70, 229, 0.08);
}

/* Avatar container */
.member-avatar-container {
    position: relative;
    width: 124px;
    height: 124px;
    margin-bottom: 22px;
    border-radius: var(--radius-full);
    padding: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform var(--transition-base);
}

.member-card:hover .member-avatar-container {
    transform: scale(1.04);
}

.member-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    display: block;
    background: var(--bg-tertiary);
}

/* Badge (AI Generated / Founder) */
.ai-badge,
.founder-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: help;
    transition: transform var(--transition-fast);
}

.ai-badge:hover,
.founder-badge:hover {
    transform: scale(1.15);
}

.ai-badge svg,
.founder-badge svg {
    width: 14px;
    height: 14px;
    display: block;
}

.ai-badge svg {
    fill: var(--accent-primary);
}

.founder-badge {
    background: linear-gradient(135deg, #4F46E5, #8B5CF6);
    border-color: rgba(255, 255, 255, 0.35);
}

.founder-badge svg {
    fill: #ffffff;
}

[data-theme="light"] .ai-badge {
    background: #ffffff;
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Typography in card */
.member-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.member-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-primary);
    background: var(--accent-primary-soft);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    display: inline-block;
    border: 1px solid rgba(99, 102, 241, 0.16);
}

[data-theme="light"] .member-role {
    color: #4338CA;
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.15);
}

.member-bio {
    font-size: 0.90625rem;
    color: var(--text-secondary);
    line-height: 1.62;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Social links */
.member-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.member-social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.member-social-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
    transition: fill var(--transition-fast);
}

.member-social-link:hover {
    background: var(--accent-primary-soft);
    border-color: rgba(99, 102, 241, 0.35);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

[data-theme="light"] .member-social-link {
    background: #f4f4f7;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .member-social-link:hover {
    background: rgba(79, 70, 229, 0.10);
    border-color: rgba(79, 70, 229, 0.3);
    color: #4F46E5;
}

/* ── Engineering Values / Culture Section ── */
.team-values-section {
    padding: 60px 0 100px;
    position: relative;
    border-top: 1px solid var(--border-hairline);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.value-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

[data-theme="light"] .value-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.value-ordinal {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: var(--tracking-mono);
    margin-bottom: 14px;
    display: block;
}

.value-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}

.value-desc {
    font-size: 0.90625rem;
    color: var(--text-secondary);
    line-height: 1.62;
}

/* ── Recruitment / CTA Section ── */
.team-cta-section {
    padding: 80px 0 120px;
    text-align: center;
    position: relative;
}

.team-cta-box {
    max-width: 840px;
    margin: 0 auto;
    padding: 64px 36px;
    border-radius: 32px;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0.02) 80%);
    border: 1px solid var(--border-hairline);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .team-cta-box {
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.08) 0%, #ffffff 80%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.team-cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.team-cta-desc {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.62;
    max-width: 580px;
    margin: 0 auto 32px;
}

.team-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Responsive Media Queries ── */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 120px 0 40px;
    }

    .team-hero-image-card {
        border-radius: 20px;
    }

    .team-hero-image-card img {
        max-height: 340px;
    }

    .team-grid-section {
        padding: 60px 0 80px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .team-cta-box {
        padding: 48px 24px;
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .team-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .team-hero-actions .btn,
    .btn-with-avatar {
        width: 100%;
        justify-content: center;
    }
}
