/* Team Member Page Styles - 8VC Inspired */
:root {
    --tm-bg: #000000;
    --tm-border: #1a1a1a;
    --tm-text: #ffffff;
    --tm-text-secondary: #999999;
    --tm-text-muted: #666666;
}

.team-member-page {
    background: var(--tm-bg);
    color: var(--tm-text);
    min-height: 100vh;
}

/* Main Section */
.tm-main-section {
    display: flex;
    min-height: calc(100vh - 80px);
    overflow: hidden;
}

/* Left Column - Photo */
.tm-left-col {
    width: 45%;
    max-width: 45%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
    overflow: hidden;
}

.tm-left-wrapper {
    width: 100%;
    max-width: 420px;
}

.tm-image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.tm-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

.tm-image-wrapper:hover img {
    filter: grayscale(100%) brightness(1.1) contrast(1.05);
    transform: scale(1.08) translateY(-2px);
    animation: subtle-float 3s ease-in-out infinite;
}

.tm-image-wrapper:hover {
    box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.15);
}

@keyframes subtle-float {
    0%, 100% { transform: scale(1.08) translateY(-2px); }
    50% { transform: scale(1.08) translateY(2px); }
}

/* Separator Line */
.tm-separator {
    width: 1px;
    background: var(--tm-border);
}

/* Right Column - Content */
.tm-right-col {
    width: 55%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 100px;
}

/* Hero Card */
.tm-hero-card {
    padding: 80px 64px 48px;
    position: relative;
}

.tm-hero-card h1 {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.tm-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tm-text-muted);
}

.tm-meta .star {
    color: var(--tm-text);
}

.tm-meta .dash {
    width: 20px;
    height: 1px;
    background: var(--tm-text-muted);
}

/* Section Tag - Back to list */
.tm-section-tag {
    position: absolute;
    top: 32px;
    right: 32px;
}

.tm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tm-text);
    text-decoration: none;
    transition: opacity 0.3s;
}

.tm-back-link:hover {
    opacity: 0.6;
    color: var(--tm-text);
}

.tm-back-link .dash {
    width: 20px;
    height: 1px;
    background: var(--tm-text);
}

/* Content Cards */
.tm-content-card {
    position: relative;
    display: flex;
    border-top: 1px solid var(--tm-border);
}

/* Vertical Label */
.tm-intro-tag {
    width: 50px;
    flex-shrink: 0;
    position: relative;
}

.tm-sticky-tag {
    position: sticky;
    top: 100px;
    padding: 32px 20px;
}

.tm-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: sideways;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tm-text-muted);
    transform: rotate(180deg);
}

/* Card Left Border */
.tm-card-border-left {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--tm-border);
}

/* Card Content */
.tm-card-content {
    flex: 1;
    padding: 40px 64px 40px 48px;
}

/* Overview Text */
.tm-rich-text p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--tm-text-secondary);
    margin-bottom: 24px;
}

.tm-rich-text p:last-child {
    margin-bottom: 0;
}

.tm-rich-text a {
    color: var(--tm-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tm-rich-text a:hover {
    text-decoration: none;
}

/* Links */
.tm-external-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tm-text);
    text-decoration: none;
    transition: opacity 0.3s;
}

.tm-external-link:hover {
    opacity: 0.6;
    color: var(--tm-text);
}

.tm-external-link .dash {
    width: 20px;
    height: 1px;
    background: var(--tm-text);
}

/* Meet More Section */
.tm-team-section {
    background: var(--tm-bg);
    padding: 80px 0;
    border-top: 1px solid var(--tm-border);
    position: relative;
}

.tm-team-component {
    padding: 0 64px;
}

.tm-team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.tm-team-title {
    font-size: 44px;
    font-weight: 300;
    line-height: 1.2;
    max-width: 9ch;
}

/* Swiper Nav */
.tm-swiper-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tm-swiper-pagination {
    width: 180px;
    height: 2px;
    background: var(--tm-border);
}

.tm-swiper-pagination .swiper-pagination-progressbar-fill {
    background: var(--tm-text) !important;
}

.tm-arrow-holder {
    display: flex;
    gap: 16px;
}

.tm-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.tm-arrow:hover {
    opacity: 1;
}

.tm-arrow img {
    width: 20px;
    height: auto;
}

/* Section Labels */
.tm-section-label {
    position: absolute;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tm-text-muted);
}

.tm-section-label.bottom-left {
    bottom: 32px;
    left: 64px;
}

.tm-section-label.top-right {
    top: 32px;
    right: 64px;
}

/* Team Cards */
.tm-team-list {
    display: flex;
    gap: 24px;
}

.tm-team-item {
    width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.tm-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tm-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 16px;
    background: #111;
}

.tm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tm-card-link:hover .tm-card-image img {
    transform: scale(1.03);
}

.tm-card-line {
    height: 1px;
    background: var(--tm-border);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.tm-card-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--tm-text);
    transition: width 0.5s ease;
}

.tm-card-link:hover .tm-card-line::after {
    width: 100%;
}

.tm-card-name {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 4px;
}

.tm-card-title {
    font-size: 13px;
    color: var(--tm-text-muted);
}

/* Bottom Border */
.tm-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--tm-border);
}

/* Responsive */
@media (max-width: 1200px) {
    .tm-hero-card h1 {
        font-size: 44px;
    }
    .tm-hero-card,
    .tm-card-content {
        padding-left: 32px;
        padding-right: 32px;
    }
    .tm-team-component {
        padding: 0 32px;
    }
}

@media (max-width: 991px) {
    .tm-main-section {
        flex-direction: column;
    }
    .tm-left-col,
    .tm-right-col {
        width: 100%;
        max-width: 100%;
    }
    .tm-separator {
        width: 100%;
        height: 1px;
    }
    .tm-left-col {
        padding: 32px;
    }
    .tm-left-wrapper {
        max-width: 350px;
    }
    .tm-section-tag {
        position: relative;
        top: 0;
        right: 0;
        padding: 24px 32px;
        text-align: right;
    }
    .tm-hero-card {
        padding: 32px;
    }
    .tm-hero-card h1 {
        font-size: 36px;
    }
    .tm-team-title {
        font-size: 32px;
    }
    .tm-team-item {
        width: 220px;
    }
    .tm-team-component {
        padding: 0 24px;
    }
}

@media (max-width: 576px) {
    .tm-hero-card h1 {
        font-size: 28px;
    }
    .tm-content-card {
        flex-direction: column;
    }
    .tm-intro-tag {
        width: 100%;
        border-bottom: 1px solid var(--tm-border);
        padding: 16px 24px;
    }
    .tm-sticky-tag {
        position: relative;
        top: 0;
        padding: 0;
    }
    .tm-vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
    }
    .tm-card-border-left {
        display: none;
    }
    .tm-card-content {
        padding: 24px;
    }
    .tm-card-content .tm-rich-text p {
        font-size: 14px;
    }
    .tm-team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .tm-team-item {
        width: 200px;
        max-width: 200px;
    }
    .tm-section-label {
        display: none;
    }
    .tm-team-section {
        padding: 48px 0;
    }
}

/* Swiper overrides */
.tm-swiper-container {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.tm-swiper-container .swiper-wrapper {
    display: flex;
}

/* Prevent horizontal scroll on body */
html.team-member-page-html,
body.team-member-page {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

.team-member-page {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

.team-member-page .footer-container {
    overflow: hidden;
    max-width: 100%;
}

.team-member-page .tm-team-section {
    overflow: hidden;
    max-width: 100%;
}

.team-member-page .tm-team-component {
    overflow: hidden;
    max-width: 100%;
}

/* ========================================
   Fancy Footer Styles
   ======================================== */
.fancy-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.fancy-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.5), transparent);
}

.footer-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
}

.footer-glow-1 {
    background: #8B5CF6;
    top: -200px;
    left: -100px;
}

.footer-glow-2 {
    background: #EC4899;
    bottom: -200px;
    right: -100px;
}

.footer-logo-section {
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 40px;
}

@media (max-width: 991px) {
    .footer-logo-section {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 15px;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-col:hover .footer-col-title::after {
    width: 40px;
}

.fancy-footer .footer-menu {
    margin: 0;
    padding: 0;
}

.fancy-footer .footer-menu li {
    margin-bottom: 12px;
}

.fancy-footer .footer-menu a {
    color: rgba(255,255,255,0.5);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.fancy-footer .footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.fancy-footer .footer-menu a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #8B5CF6, transparent);
    transition: width 0.3s ease;
}

.fancy-footer .footer-menu a:hover::before {
    width: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    margin-top: 50px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social-link:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
}

.footer-social-link img,
.footer-social-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-social-link:hover img,
.footer-social-link:hover svg {
    opacity: 1;
}

.footer-copyright {
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
}

.footer-living-intel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: #d8b4fe;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.footer-living-intel:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: scale(1.02);
}

.footer-living-intel svg {
    width: 16px;
    height: 16px;
}
