.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.main-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin: -10px 0 30px 0;
    font-size: 1.1rem;
}

.staff-card {
    background: rgba(18, 19, 29, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(163, 220, 217, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out both;
}

.staff-card:nth-child(1) { animation-delay: 0.1s; }
.staff-card:nth-child(2) { animation-delay: 0.2s; }
.staff-card:nth-child(3) { animation-delay: 0.3s; }
.staff-card:nth-child(4) { animation-delay: 0.4s; }
.staff-card:nth-child(5) { animation-delay: 0.5s; }

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0, rgba(163, 220, 217, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.staff-card:hover {
    transform: translateY(-10px) scale(1.04);
    border-color: rgba(163, 220, 217, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--color-blue);
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(51, 93, 225, 0.3);
    transition: transform 0.4s ease;
}

.staff-card:hover .staff-avatar {
    transform: scale(1.1) rotate(5deg);
}

.staff-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.staff-roles-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.staff-role {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-owner {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.role-moderator {
    background: linear-gradient(45deg, var(--color-blue), #5e81f8);
    color: white;
    box-shadow: 0 0 10px var(--color-blue);
}

.role-developer {
    background: linear-gradient(45deg, #a3dcd9, #56c2b1);
    color: var(--color-dark);
    box-shadow: 0 0 10px var(--color-cyan);
}

.role-lead-zo {
    background: linear-gradient(45deg, #4CAF50, #81C784);
    color: white;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.role-event-organizer {
    background: linear-gradient(45deg, #8A2BE2, #DA70D6);
    color: white;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.role-administrator {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    box-shadow: 0 0 15px rgba(255, 65, 108, 0.5);
}

.staff-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 24px;
}

.card-owner:hover {
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(255, 215, 0, 0.4);
}
.card-owner::before {
    background: radial-gradient(circle at 50% 0, rgba(255, 215, 0, 0.25), transparent 70%);
}

.card-developer:hover {
    border-color: #56c2b1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(86, 194, 177, 0.4);
}
.card-developer::before {
    background: radial-gradient(circle at 50% 0, rgba(86, 194, 177, 0.25), transparent 70%);
}

.card-event-organizer:hover {
    border-color: #DA70D6;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(218, 112, 214, 0.4);
}
.card-event-organizer::before {
    background: radial-gradient(circle at 50% 0, rgba(218, 112, 214, 0.25), transparent 70%);
}

.card-moderator:hover {
    border-color: #5e81f8;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(94, 129, 248, 0.4);
}
.card-moderator::before {
    background: radial-gradient(circle at 50% 0, rgba(94, 129, 248, 0.25), transparent 70%);
}

.card-administrator:hover {
    border-color: #ff4b2b;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(255, 75, 43, 0.4);
}
.card-administrator::before {
    background: radial-gradient(circle at 50% 0, rgba(255, 75, 43, 0.25), transparent 70%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}