/* IWSS TEAM — premium international directory */

.team-hero{
    position:relative;
    padding:165px 7% 85px;
    text-align:left;
    overflow:hidden;
    background:
        radial-gradient(circle at 78% 30%,rgba(109,40,217,.22),transparent 34%),
        radial-gradient(circle at 18% 90%,rgba(236,72,153,.12),transparent 35%),
        #0F172A;
}

.team-hero::after{
    content:"";
    position:absolute;
    width:360px;
    height:360px;
    right:-150px;
    top:90px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
    box-shadow:0 0 0 55px rgba(255,255,255,.018),0 0 0 110px rgba(255,255,255,.012);
}

.team-hero h1{
    position:relative;
    z-index:1;
    max-width:900px;
    font-size:clamp(3.2rem,7vw,6.5rem);
    line-height:.95;
    letter-spacing:-.065em;
}

.team-hero p{
    position:relative;
    z-index:1;
    max-width:620px;
    color:#94A3B8;
    margin-top:22px;
    font-size:1.05rem;
    line-height:1.7;
}

.search-box{
    position:relative;
    z-index:3;
    display:flex;
    justify-content:center;
    margin:-28px auto 0;
    padding:0 7%;
}

.search-box input{
    width:min(760px,100%);
    padding:19px 26px 19px 52px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:999px;
    background:rgba(15,23,42,.92);
    color:white;
    outline:none;
    box-shadow:0 18px 50px rgba(0,0,0,.22);
    font:inherit;
}

.search-box::before{
    content:"⌕";
    position:absolute;
    left:calc(50% - 355px);
    top:14px;
    color:#94A3B8;
    font-size:1.45rem;
}

.team-filters{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:9px;
    padding:28px 7% 10px;
}

.team-filters + .team-filters{
    padding-top:8px;
    padding-bottom:55px;
}

.team-filter{
    border:1px solid rgba(255,255,255,.08);
    background:#111C2D;
    color:#CBD5E1;
    padding:10px 18px;
    border-radius:999px;
    cursor:pointer;
    transition:.25s ease;
    font:inherit;
    font-size:.82rem;
}

.team-filter:hover,
.team-filter.active{
    color:#fff;
    border-color:rgba(236,72,153,.45);
    background:linear-gradient(135deg,#EC4899,#6D28D9);
    transform:translateY(-1px);
}

.team-section{
    padding:62px 0 30px;
}

.team-section .section-title{
    width:min(1250px,86%);
    margin:0 auto 24px;
    text-align:left;
    font-size:clamp(1.7rem,3vw,2.4rem);
    letter-spacing:-.045em;
}

.team-section .section-title::before{
    content:"";
    display:inline-block;
    width:7px;
    height:7px;
    margin:0 12px 5px 0;
    border-radius:50%;
    background:#EC4899;
    box-shadow:0 0 18px rgba(236,72,153,.7);
}

.team-grid{
    width:100%;
    display:flex;
    gap:18px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:8px max(7%,calc((100vw - 1250px)/2)) 28px;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    scrollbar-color:#475569 transparent;
}

.team-grid::-webkit-scrollbar{height:6px;}
.team-grid::-webkit-scrollbar-track{background:transparent;}
.team-grid::-webkit-scrollbar-thumb{background:#475569;border-radius:20px;}

.team-card{
    position:relative;
    flex:0 0 255px;
    min-height:380px;
    padding:12px 12px 20px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:24px;
    background:linear-gradient(155deg,rgba(30,41,59,.96),rgba(15,23,42,.96));
    text-align:left;
    cursor:pointer;
    scroll-snap-align:start;
    overflow:hidden;
    transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;
}

.team-card::after{
    content:"";
    position:absolute;
    inset:auto -30% -55% 15%;
    height:150px;
    background:radial-gradient(circle,rgba(109,40,217,.22),transparent 68%);
    pointer-events:none;
}

.team-card:hover{
    transform:translateY(-8px);
    border-color:rgba(236,72,153,.32);
    box-shadow:0 22px 55px rgba(0,0,0,.28);
}

.team-card img{
    width:100%;
    height:245px;
    object-fit:cover;
    object-position:center top;
    border-radius:17px;
    background:#0B1220;
}

.team-card h3{
    position:relative;
    z-index:1;
    margin:17px 4px 7px;
    font-size:1rem;
    line-height:1.25;
}

.team-card p{
    position:relative;
    z-index:1;
    margin:3px 4px;
    color:#94A3B8;
    font-size:.78rem;
    line-height:1.45;
}

.team-card p + p{color:#CBD5E1;}

.team-card[data-popup="true"]::before{
    content:"VIEW PROFILE  ↗";
    position:absolute;
    z-index:2;
    top:25px;
    right:23px;
    padding:6px 9px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    background:rgba(15,23,42,.68);
    backdrop-filter:blur(10px);
    color:#fff;
    font-size:.56rem;
    letter-spacing:.09em;
    opacity:0;
    transform:translateY(-5px);
    transition:.25s ease;
}

.team-card[data-popup="true"]:hover::before{
    opacity:1;
    transform:none;
}

.team-card.hide{display:none;}

.member-modal{
    display:none;
    position:fixed;
    inset:0;
    padding:24px;
    background:rgba(2,6,23,.82);
    backdrop-filter:blur(18px);
    z-index:9999;
}

.member-modal.active{
    display:flex;
    justify-content:center;
    align-items:center;
    animation:modalFade .25s ease;
}

@keyframes modalFade{
    from{opacity:0;}
    to{opacity:1;}
}

.member-modal-content{
    position:relative;
    width:min(980px,100%);
    max-height:90vh;
    overflow:auto;
    background:linear-gradient(145deg,#182337,#0F172A);
    border:1px solid rgba(255,255,255,.1);
    border-radius:30px;
    padding:28px;
    display:grid;
    grid-template-columns:300px 1fr;
    gap:32px;
    box-shadow:0 35px 100px rgba(0,0,0,.45);
    animation:modalRise .3s ease;
}

@keyframes modalRise{
    from{transform:translateY(18px) scale(.98);}
    to{transform:none;}
}

.member-modal-content img{
    width:100%;
    height:390px;
    object-fit:cover;
    border-radius:20px;
    background:#0B1220;
}

.member-modal-content>div{padding:12px 12px 12px 0;}
#modalName{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.05;}
#modalRole{margin-top:10px;color:#EC4899;font-weight:600;}
#modalBio{margin-top:24px;color:#CBD5E1;line-height:1.8;white-space:pre-line;}

.close-modal{
    position:absolute;
    right:18px;
    top:15px;
    z-index:2;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.12);
    border-radius:50%;
    background:rgba(15,23,42,.8);
    color:#fff;
    font-size:1.5rem;
    cursor:pointer;
}

body.modal-open{overflow:hidden;}

@media(max-width:900px){
    .team-hero{padding:145px 7% 75px;}
    .team-grid{padding-left:7%;padding-right:7%;}
    .search-box::before{left:calc(50% - 44vw);}
    .member-modal-content{grid-template-columns:240px 1fr;}
    .member-modal-content img{height:320px;}
}

@media(max-width:650px){
    .team-hero h1{font-size:clamp(2.9rem,14vw,4.3rem);}
    .team-filters{justify-content:flex-start;padding-left:6%;padding-right:6%;overflow-x:auto;flex-wrap:nowrap;}
    .team-filter{white-space:nowrap;}
    .team-section{padding-top:45px;}
    .team-section .section-title{width:88%;}
    .team-card{flex-basis:230px;min-height:350px;}
    .team-card img{height:215px;}
    .member-modal{padding:12px;}
    .member-modal-content{grid-template-columns:1fr;padding:22px;border-radius:24px;}
    .member-modal-content img{height:270px;max-width:250px;margin:0 auto;}
    .member-modal-content>div{padding:0;}
    #modalBio{font-size:.92rem;}
}


/* TEAM FILTER BOX */
.team-filter-box{width:min(900px,86%);margin:-52px auto 10px;padding:18px 20px;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:rgba(15,23,42,.88);backdrop-filter:blur(16px);box-shadow:0 18px 50px rgba(0,0,0,.22);position:relative;z-index:3}.team-filter-heading{display:flex;align-items:center;gap:9px;color:#fff;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:14px}.team-filter-heading span:first-child{color:#EC4899}.team-filter-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.team-filter-controls label{display:flex;align-items:center;gap:10px;color:#94A3B8;font-size:.75rem}.team-filter-controls select{flex:1;min-width:0;padding:11px 38px 11px 13px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#111C2D;color:#fff;font:inherit;font-size:.8rem;outline:none;cursor:pointer}.team-filter-controls select:focus{border-color:rgba(236,72,153,.45)}
@media(max-width:650px){.team-filter-box{width:88%;margin:-22px auto 8px;padding:16px}.team-filter-controls{grid-template-columns:1fr;gap:10px}.team-filter-controls label{display:grid;grid-template-columns:72px 1fr;gap:8px}.team-filter-controls select{width:100%}.team-filters{display:none}}
