/* ==========================================================================
   team_member.css - Split Dark Portfolio View (Matching Reference Image)
   ========================================================================== */

:root {
    --bg-dark-panel: #111418;
    --bg-main: #0a0c0e;
    --text-primary: #ffffff;
    --text-muted: #9ca3af;
    --accent-gold: #eab308;
    --border-dark: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-signature: 'Playfair Display', serif;
}

body {
    background-color: var(--bg-main);
    font-family: var(--font-body);
    color: var(--text-primary);
    margin: 0;
    padding-top: 80px;
}

/* Main Container */
.team-portfolio-container {
    max-width: 1240px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
}

/* Split Card Wrapper */
.portfolio-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-dark-panel);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    min-height: 560px;
}

/* Left Bio Panel */
.portfolio-bio-panel {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #161a20 0%, #0d1014 100%);
    position: relative;
}

.quote-mark {
    font-size: 2.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.portfolio-headline {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.portfolio-bio-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: justify;
}

/* Rating & Signature */
.portfolio-rating-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
    display: flex;
    gap: 4px;
}

.script-signature {
    font-family: var(--font-signature);
    font-style: italic;
    font-size: 1.6rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.portfolio-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back-team {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #000000;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-back-team:hover {
    background: var(--accent-gold);
    color: #000000;
}

.btn-contact-expert {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--border-dark);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-contact-expert:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Right Image Panel */
.portfolio-image-panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    background: #050608;
}

.portfolio-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Glassmorphism Name Card Overlay */
.glass-overlay-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(18, 22, 28, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.overlay-brand-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.overlay-member-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.3rem 0;
}

.overlay-member-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Layout for Tablets & Mobile Devices
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .portfolio-card-wrapper {
        grid-template-columns: 1fr;
    }

    .portfolio-bio-panel {
        padding: 2.5rem 2rem;
        order: 2; /* Shows image on top, bio below on mobile */
    }

    .portfolio-image-panel {
        height: 420px;
        order: 1;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
        padding-bottom: 60px; /* Space for sticky bottom nav */
    }

    .team-portfolio-container {
        padding: 0 0.75rem;
        margin: 1rem auto 2rem auto;
    }

    .portfolio-bio-panel {
        padding: 1.75rem 1.25rem;
    }

    .portfolio-headline {
        font-size: 1.4rem;
    }

    .glass-overlay-card {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1rem;
    }

    .overlay-member-name {
        font-size: 1.25rem;
    }

    .portfolio-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-back-team, .btn-contact-expert {
        width: 100%;
        justify-content: center;
    }
}