/* ===================================
   Team Section V2
   =================================== */

.team-section {
    position: relative;
    padding: var(--space-4xl) var(--container-padding);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.team-container-v2 {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- CEO Block --- */
.ceo-block {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.ceo-visual {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ceo-photo-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 0px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ceo-photo-wrapper:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--color-primary);
    border-color: var(--color-primary);
}

.ceo-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-label {
    margin-top: 5px;
}

.member-name-large {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 5px;
    line-height: 1.2;
}

.member-role {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 300;
}

.ceo-bio {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 75px;
    /* Offset to align with photo only */
}

.ceo-bio p {
    margin-bottom: 20px;
}

.ceo-bio strong {
    color: white;
    font-weight: 700;
}

/* --- Team Grid --- */
.team-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-photo {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.member-photo:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--color-primary);
    border-color: var(--color-primary);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 10, 28, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.member-photo:hover .member-overlay {
    opacity: 1;
}

/* Mobile tap-to-show overlay */
.member-photo.overlay-active .member-overlay {
    opacity: 1;
}

.member-bio {
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    font-weight: 300;
}

.member-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: white;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid-v2 {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }

    .ceo-block {
        gap: var(--space-2xl);
        align-items: flex-start;
        /* Align photo to top of text */
        margin-bottom: var(--space-xl);
        /* Reduced from 60px */
    }

    .ceo-bio {
        margin-bottom: 0;
        /* Remove large offset on tablet */
    }

    .ceo-visual {
        flex: 0 0 250px;
        /* Slightly smaller CEO image column */
    }

    /* Interaction Styles for Tablet/Mobile */
    /* Disable hover effect on touch devices - only click activates overlay */
    .member-photo:hover .member-overlay {
        opacity: 0;
    }

    /* Only show overlay when explicitly activated by click (JS adds this class) */
    .member-photo.overlay-active .member-overlay {
        opacity: 1;
    }

    /* Disable hover effect on member-photo card itself */
    .member-photo:hover {
        transform: none;
        box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* Beautiful active state with shadow on click */
    .member-photo.overlay-active {
        transform: translate(-4px, -4px);
        box-shadow: 8px 8px 0px var(--color-primary);
        border-color: var(--color-primary);
    }

    /* Disable CEO photo hover */
    .ceo-photo-wrapper:hover {
        transform: none;
        box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: var(--space-2xl) var(--container-padding);
    }

    .ceo-block {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .ceo-visual {
        width: 100%;
        flex: none;
        align-items: center;
        text-align: center;
    }

    .ceo-photo-wrapper {
        width: 100%;
        max-width: 280px;
    }

    .ceo-bio {
        margin-bottom: 0;
        font-size: 1rem;
        /* ~15px - Increased from 0.9rem */
    }

    .ceo-bio p {
        margin-bottom: var(--space-md);
    }

    .member-name-large {
        font-size: 1.2rem;
    }

    .team-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .member-name {
        font-size: 0.8rem;
        /* Smaller font for 2-column mobile layout */
        line-height: 1.2;
    }

    .member-role {
        font-size: 0.7rem;
    }

    .member-bio {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .team-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceo-photo-wrapper {
        max-width: 220px;
    }
}