:root {
    --bg-color: #FFFFFF;
    --text-main: #0A0A0A;
    --text-muted: #666666;
    --primary-blue: #003366;
    --electric-blue: #007AFF;
    --light-blue: #F0F5FF;
    --border-color: rgba(0, 0, 0, 0.08);
    --clip-corner: 20px;
}

.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.03"/%3E%3C/svg%3E');
    pointer-events: none;
}

.team-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.team-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--electric-blue);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.team-subtitle::after {
    content: '';
    height: 1px;
    width: 50px;
    background: var(--electric-blue);
}

.team-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.team-description {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.team-split-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    width: 100%;
    max-width: 1600px;
    height: 85vh;
    margin: 0 auto;
    background: var(--bg-color);
    position: relative;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
}

.list-side {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.section-label {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--electric-blue);
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-label::after {
    content: '';
    height: 1px;
    width: 50px;
    background: var(--electric-blue);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--electric-blue) var(--light-blue);
}

.team-list::-webkit-scrollbar {
    width: 8px;
}

.team-list::-webkit-scrollbar-track {
    background: var(--light-blue);
    border-radius: 10px;
    border: 1px solid rgba(0, 51, 102, 0.1);
}

.team-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--electric-blue), var(--primary-blue));
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: content-box;
}

.team-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-blue), #002244);
    background-clip: content-box;
}

.team-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-blue);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 51, 102, 0.05);
}

.team-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.team-item:hover {
    background: var(--light-blue);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.1);
}

.team-item:hover {
    padding-right: 30px;
}

.team-item::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.4s ease;
}

.team-item:hover::before, .team-item.active::before {
    width: 100%;
}

.member-number {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

.member-name {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    transition: color 0.3s;
}

.team-item:hover .member-name, .team-item.active .member-name {
    color: var(--primary-blue);
}

.member-role-preview {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.team-item:hover .member-role-preview, .team-item.active .member-role-preview {
    opacity: 1;
    transform: translateY(0);
}

.visual-side {
    background: var(--light-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-blue) 0%, #E1E9F5 100%);
    transition: background 0.8s ease;
    z-index: 0;
}

.visual-card {
    width: 85%;
    height: 80%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.visual-card.show {
    opacity: 1;
    transform: translateY(0);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 65%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    filter: grayscale(20%);
}

.visual-side {
    background: var(--light-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.visual-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-blue) 0%, #E1E9F5 100%);
    transition: background 0.8s ease;
    z-index: 0;
}

.visual-card {
    width: 85%;
    height: 80%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 20px;
}

.visual-card.show {
    opacity: 1;
    transform: translateY(0);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
    padding-left: 15px;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: white transparent;
    direction: rtl;
}

.team-list::-webkit-scrollbar {
    width: 8px;
}

.team-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.team-list::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

.visual-side:hover .member-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.visual-info {
    padding: 0 10px;
}

.visual-role {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.visual-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 90%;
}

.bg-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(0, 51, 102, 0.03);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

@media (max-width: 1024px) {
    .team-section { padding: 60px 0; }
    .team-title { font-size: 2.5rem; }
    .team-split-container { 
        grid-template-columns: 1fr; 
        height: auto; 
        width: 100%; 
        box-shadow: none; 
        border-radius: 0;
    }
    .list-side { 
        border-left: none; 
        border-bottom: 1px solid var(--border-color); 
        padding: 40px; 
    }
    .visual-side { 
        padding: 60px 20px; 
        min-height: 600px; 
    }
    .visual-card { 
        width: 90%; 
    }
    .member-name { 
        font-size: 2rem; 
    }
}
