/* slide-team — Nima uchun biz (qayta dizayn) */

/* ---- Fon bezagi ---- */
.slide-bg-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(33,150,243,0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.5;
}

/* ---- Sarlavha ---- */
.slide-header { margin-bottom: 1rem; }

/* ---- Lead ---- */
.lead {
    margin-bottom: 1.8rem;
    font-size: 1.45rem;
    line-height: 1.65;
}

/* ============================================
   ASOSIY TARKIB: 2 ustun
   ============================================ */

.team-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    flex: 1;
    align-items: start;
}

/* ---- A'zo kartalar ustuni: 2 ta karta YONMA-YON ---- */
.members-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

/* Har bir karta — vertikal kompozitsiya, kontent balandligida */
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 2rem 1.1rem 1.9rem;
    background: linear-gradient(160deg, rgba(33,150,243,0.14) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(33,150,243,0.3);
    border-top: 4px solid var(--color-accent);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 24px rgba(33,150,243,0.12),
                inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s, border-color 0.3s;
    text-align: center;
}

.member-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 40px rgba(33,150,243,0.28),
                inset 0 1px 0 rgba(255,255,255,0.08);
    border-color: rgba(33,150,243,0.55);
}

/* Avatar doira — tepada, markazda, kattaroq */
.member-avatar {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-white);
    border: 3px solid rgba(33,150,243,0.7);
    box-shadow: 0 0 0 7px rgba(33,150,243,0.14),
                0 0 28px rgba(33,150,243,0.45),
                0 6px 18px rgba(0,0,0,0.35);
    margin-bottom: 1.1rem;
}

/* Rasm bo'lsa to'liq qoplaydi, bo'lmasa harflar ko'rinadi */
.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    inset: 0;
}

.av-blue    { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.av-accent  { background: linear-gradient(135deg, #0d47a1, #21cbf3); }

/* Matn bloki — ism, lavozim, taglar — zich ketma-ket */
.member-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    width: 100%;
}

.member-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.25;
    text-align: center;
}

.member-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent-light);
    line-height: 1.3;
    text-align: center;
}

/* Taglar — ism/lavozimdan keyin tabiiy masofada, pastga itarilmasdan */
.member-tags {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.58rem;
    margin-top: 0.9rem;
    padding-top: 0;
    width: 100%;
    align-items: center;
}

.member-tags li {
    font-size: 1.0rem;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    background: rgba(33,150,243,0.16);
    border: 1px solid rgba(33,150,243,0.32);
    border-radius: 20px;
    padding: 0.28rem 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
}

/* ---- Kuchli tomonlar ustuni ---- */
.strengths-col {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    justify-content: stretch;
}

.strengths-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-left: 0.2rem;
    margin-bottom: 0.3rem;
}

.strengths-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.strengths-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: background 0.3s, border-color 0.3s;
}

.strengths-list li:hover {
    background: rgba(33,150,243,0.08);
    border-color: rgba(33,150,243,0.25);
}

.strength-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(33,150,243,0.15);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light);
}

.strength-icon svg {
    width: 20px;
    height: 20px;
}

.strengths-list li div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.strengths-list li strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-white);
    display: block;
}

.strengths-list li span {
    font-size: 1.0rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.68);
}

/* ============================================
   ANIMATSIYALAR
   ============================================ */

/* A'zo kartalar */
body.active .anim-member {
    animation: memberSlide 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
body.active .members-col .member-card:nth-child(1) { animation-delay: 0.3s; }
body.active .members-col .member-card:nth-child(2) { animation-delay: 0.45s; }

/* Kuchli tomonlar */
body.active .anim-strength {
    animation: fadeRight 0.55s ease-out both;
}
body.active .strengths-list li:nth-child(1) { animation-delay: 0.35s; }
body.active .strengths-list li:nth-child(2) { animation-delay: 0.45s; }
body.active .strengths-list li:nth-child(3) { animation-delay: 0.55s; }
body.active .strengths-list li:nth-child(4) { animation-delay: 0.65s; }

@keyframes memberSlide {
    0%   { opacity: 0; transform: translateX(-30px); filter: blur(3px); }
    60%  { filter: blur(0); }
    100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .team-layout { gap: 1.2rem; }
    .members-col { gap: 0.75rem; }
    .member-avatar { width: 96px; height: 96px; font-size: 1.8rem; margin-bottom: 0.85rem; }
    .member-name { font-size: 1.25rem; }
    .member-role { font-size: 0.95rem; }
    .member-tags li { font-size: 0.88rem; padding: 0.22rem 0.65rem; }
    .strengths-list li strong { font-size: 1.05rem; }
    .strengths-list li span { font-size: 0.93rem; }
}

@media (max-width: 850px) {
    .team-layout { grid-template-columns: 1fr; }
    .members-col { grid-template-columns: 1fr 1fr; }
}
