/* ============================================================
   WeboTech Studio — Team CSS v5.0
   CEO static left + Team members horizontal slider right
   ============================================================ */

.wts-team-section { background: var(--bg); }

/* === MAIN LAYOUT — CEO left, slider right === */
.wts-team-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

/* === CEO COLUMN — static left === */
.wts-team-ceo-col {
    position: sticky;
    top: 100px;
}

/* === BASE CARD (shared styles) === */
.wts-team-card {
    background: rgba(15,15,30,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 28px 22px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.wts-team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,212,255,0.03) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.wts-team-card:hover::before { opacity: 1; }
.wts-team-card:hover {
    border-color: rgba(0,212,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* === FEATURED CEO CARD === */
.wts-team-card-featured {
    padding: 32px 24px 28px;
    border: 1px solid transparent;
    background-image:
        linear-gradient(180deg, rgba(10,10,25,0.95), rgba(15,15,35,0.9)),
        linear-gradient(135deg, rgba(0,212,255,0.5), rgba(45,125,210,0.5));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 24px;
}
.wts-team-card-featured::before { display: none; }
.wts-team-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 60px rgba(0,212,255,0.05);
}

/* Featured badge ribbon */
.wts-team-featured-badge {
    position: absolute;
    top: 14px;
    right: -6px;
    background: linear-gradient(135deg, #2D7DD2, #00d4ff);
    color: white;
    font-family: var(--font), sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px 5px 12px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 4px 12px rgba(0,212,255,0.3);
    z-index: 2;
}
.wts-team-featured-badge::after {
    content: '';
    position: absolute;
    right: 0; bottom: -6px;
    border: 3px solid #1a6ab5;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

/* Photo circle */
.wts-team-photo-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 14px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(45,125,210,0.3), rgba(0,212,255,0.3));
    flex-shrink: 0;
    transition: all 0.4s ease;
}
.wts-team-card:hover .wts-team-photo-wrap {
    background: linear-gradient(135deg, rgba(45,125,210,0.5), rgba(0,212,255,0.5));
}
.wts-team-photo-wrap.featured {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #2D7DD2, #00d4ff);
    box-shadow: 0 0 40px rgba(0,212,255,0.15);
    margin-bottom: 16px;
}
.wts-team-photo {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.wts-team-photo-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: rgba(15,15,30,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 24px;
}
.wts-team-photo-wrap.featured .wts-team-photo-placeholder { font-size: 38px; }

/* Typography */
.wts-team-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4a5568;
    margin-bottom: 4px;
    font-weight: 600;
}
.wts-team-name {
    font-family: var(--fonth), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
}
.wts-team-name.featured {
    font-size: 20px;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.wts-team-role-gradient {
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #00d4ff, #2D7DD2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

/* Rating badges */
.wts-team-ratings {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.wts-team-rating-badge {
    font-size: 10px;
    font-weight: 600;
    color: #FFD700;
    background: rgba(255,215,0,0.06);
    border: 1px solid rgba(255,215,0,0.15);
    padding: 3px 10px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.wts-team-rating-badge i { font-size: 8px; }

/* Skills */
.wts-team-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 12px;
}
.wts-team-skill {
    font-size: 10px;
    font-weight: 500;
    color: #00d4ff;
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.12);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Meta */
.wts-team-meta-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4a5568;
    margin-top: 6px;
    font-weight: 600;
    display: block;
}
.wts-team-meta-value {
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2px;
}
.wts-team-dept-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00d4ff;
}
.wts-team-experience { font-weight: 700; }

/* Bio */
.wts-team-bio {
    font-size: 12px;
    line-height: 1.6;
    color: #8892a4;
    margin: 10px 0;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border-left: 2px solid rgba(45, 125, 210, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 72px;
    transition: all 0.3s ease;
}
.wts-team-card:hover .wts-team-bio {
    -webkit-line-clamp: unset;
    max-height: 300px;
}
.wts-team-card-featured .wts-team-bio {
    -webkit-line-clamp: 4;
    max-height: 96px;
    font-size: 13px;
}
.wts-team-card-featured:hover .wts-team-bio {
    -webkit-line-clamp: unset;
    max-height: 300px;
}

/* Badges */
.wts-team-badges {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px 0 4px;
}
.wts-team-badge {
    font-size: 10px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    background: rgba(255,255,255,0.02);
    white-space: nowrap;
}
.wts-team-badge i { font-size: 9px; color: #00d4ff; }

/* Socials */
.wts-team-socials {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}
.wts-team-socials a,
.wts-team-socials .wts-team-social-link {
    width: 32px; height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    fill: #4a5568;
    text-decoration: none !important;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wts-team-socials a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}
.wts-team-socials a img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}
.wts-team-socials a:hover {
    color: #00d4ff;
    fill: #00d4ff;
    border-color: rgba(0,212,255,0.25);
    background: rgba(0,212,255,0.06);
    transform: translateY(-2px);
}
/* Rating badges SVG sizing */
.wts-team-rating-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    vertical-align: middle;
    flex-shrink: 0;
}
.wts-team-rating-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
    border-radius: 2px;
}

/* === MEMBERS SLIDER COLUMN === */
.wts-team-members-col {
    overflow: hidden;
    position: relative;
}
.wts-team-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}
.wts-team-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px 8px 4px;
    scroll-snap-type: x mandatory;
}
.wts-team-slider-track::-webkit-scrollbar { display: none; }
.wts-team-slider-track .wts-team-card {
    min-width: 240px;
    max-width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Slider arrows */
.wts-team-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,10,25,0.85);
    backdrop-filter: blur(8px);
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.wts-team-slider-arrow:hover {
    color: #00d4ff;
    border-color: rgba(0,212,255,0.3);
    background: rgba(10,10,25,0.95);
}
.wts-team-arrow-left { left: -4px; }
.wts-team-arrow-right { right: -4px; }

/* Fade edges on slider */
.wts-team-members-col::before,
.wts-team-members-col::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    z-index: 5;
    pointer-events: none;
}
.wts-team-members-col::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
    opacity: 0;
}
.wts-team-members-col::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}


/* ============================================================
   TEAM RESPONSIVE — Comprehensive Mobile v3.2
   ============================================================ */

/* ── 1024px: Tablets ── */
@media (max-width: 1024px) {
    .wts-team-layout { grid-template-columns: 280px 1fr; gap: 16px; }
    .wts-team-slider-track .wts-team-card { min-width: 220px; max-width: 220px; }
}

/* ── 768px: Mobile ── */
@media (max-width: 768px) {
    .wts-team-layout { grid-template-columns: 1fr; gap: 24px; }
    .wts-team-ceo-col {
        position: relative; top: 0;
        max-width: 100%; margin: 0 auto;
    }
    .wts-team-card-featured { max-width: 100%; padding: 20px 18px; }
    .wts-team-photo-wrap.featured { width: 100px; height: 100px; }
    .wts-team-name.featured { font-size: 20px; }
    .wts-team-slider-arrow { display: none; }

    /* Members slider — prominent below CEO */
    .wts-team-members-col {
        position: relative;
        overflow: visible;
    }
    .wts-team-members-col::before { display: none; }
    .wts-team-members-col::after {
        display: block;
        content: '';
        position: absolute;
        top: 0; bottom: 0; right: 0;
        width: 50px;
        background: linear-gradient(to left, var(--bg, #0a0a1a), transparent);
        z-index: 5;
        pointer-events: none;
    }
    /* Mobile label above slider */
    .wts-team-members-label {
        display: block !important;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        color: #64748b;
        margin-bottom: 12px;
        padding-left: 4px;
    }
    .wts-team-members-label .wts-swipe-hint {
        font-weight: 400;
        font-size: 11px;
        letter-spacing: 0;
        text-transform: none;
        color: #475569;
        float: right;
    }
    .wts-team-members-label .wts-swipe-hint i {
        animation: wtsSwipeHint 1.5s ease-in-out infinite;
    }
    @keyframes wtsSwipeHint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(6px); }
    }
    .wts-team-slider-track .wts-team-card { min-width: 220px; max-width: 220px; }

    /* Card elements */
    .wts-team-card { padding: 18px 14px; }
    .wts-team-name { font-size: 15px; }
    .wts-team-role-gradient { font-size: 12px; margin-bottom: 8px; }
    .wts-team-label { font-size: 10px; }
    .wts-team-featured-badge { font-size: 10px; padding: 4px 12px; }
    .wts-team-photo-wrap { width: 70px; height: 70px; }
    .wts-team-skill { font-size: 10px; padding: 3px 8px; }
    .wts-team-skills { gap: 4px; margin-bottom: 8px; }
    .wts-team-meta-label { font-size: 9px; letter-spacing: 0.8px; }
    .wts-team-meta-value { font-size: 12px; margin-bottom: 6px; }
    .wts-team-experience { font-size: 14px; }
    .wts-team-badge { font-size: 10px; padding: 3px 8px; }
    .wts-team-badges { gap: 4px; margin-bottom: 6px; }
    .wts-team-rating-badge { font-size: 11px; padding: 4px 9px; }
    .wts-team-ratings { gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
    .wts-team-bio { font-size: 12px; line-height: 1.55; margin-bottom: 8px; }
    .wts-team-socials { gap: 6px; }
    .wts-team-socials a { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
    .wts-team-view-btn { font-size: 11px; padding: 6px 14px; margin-top: 8px; }
    .wts-team-dept-dot { width: 6px; height: 6px; }
}

/* ── 480px: Small phones ── */
@media (max-width: 480px) {
    .wts-team-layout { gap: 14px; }
    .wts-team-card-featured { padding: 18px 14px; }
    .wts-team-card-featured .wts-team-photo-wrap.featured { width: 85px; height: 85px; }
    .wts-team-name.featured { font-size: 18px; }
    .wts-team-role-gradient { font-size: 11px; }
    .wts-team-skill { font-size: 9px; padding: 2px 7px; }
    .wts-team-rating-badge { font-size: 10px; padding: 3px 7px; }
    .wts-team-badge { font-size: 9px; padding: 2px 7px; }
    .wts-team-slider-track .wts-team-card { min-width: 175px; max-width: 175px; }
    .wts-team-view-btn { font-size: 10px; padding: 5px 12px; }
    .wts-team-socials a { width: 28px; height: 28px; font-size: 11px; }
    .wts-team-bio { font-size: 11px; line-height: 1.5; }
    .wts-team-photo-wrap { width: 60px; height: 60px; }
    .wts-team-name { font-size: 14px; }
}

/* ── 360px: Very small ── */
@media (max-width: 360px) {
    .wts-team-slider-track .wts-team-card { min-width: 155px; max-width: 155px; }
    .wts-team-name { font-size: 13px; }
    .wts-team-name.featured { font-size: 16px; }
    .wts-team-card-featured .wts-team-photo-wrap.featured { width: 75px; height: 75px; }
    .wts-team-rating-badge { font-size: 9px; padding: 2px 6px; }
    .wts-team-skill { font-size: 8px; }
    .wts-team-badge { font-size: 8px; }
    .wts-team-featured-badge { font-size: 9px; }
}
/* =================================================================
   CARD LINK OVERLAY & VIEW PORTFOLIO BUTTON
   ================================================================= */
.wts-team-card {
    position: relative;
}
.wts-team-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    cursor: pointer;
}
/* Let clickable elements sit above the overlay */
.wts-team-socials,
.wts-team-socials a,
.wts-team-view-btn {
    position: relative;
    z-index: 3;
}
.wts-team-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 18px;
    background: rgba(45, 125, 210, 0.08);
    border: 1px solid rgba(45, 125, 210, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #7e8fa6;
    text-decoration: none;
    transition: all 0.3s ease;
}
.wts-team-view-btn i {
    font-size: 10px;
    transition: transform 0.3s;
}
.wts-team-view-btn:hover {
    background: rgba(45, 125, 210, 0.18);
    border-color: rgba(0, 212, 255, 0.35);
    color: #00d4ff;
}
.wts-team-view-btn:hover i {
    transform: translateX(3px);
}
