body {
    font-family: 'Outfit', sans-serif;
    background-color: #050505;
    background-image: radial-gradient(circle at 50% -20%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    color: #fff;
    margin: 0;
    overflow-x: hidden; /* Side scroll අයින් කරන්න */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 60px 20px; 
}

.header { text-align: center; margin-bottom: 50px; }
.header h1 { font-size: 2.5rem; font-weight: 800; background: linear-gradient(to right, #818cf8, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Card Grid */
#member-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 30px; 
    justify-content: center;
}

.member-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Card එකෙන් එලියට කිසිම දෙයක් පනින්න බෑ */
}

.member-card:hover {
    transform: translateY(-8px);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(129, 140, 248, 0.4);
}

/* Profile Image Container - මේක තමා වැදගත්ම */
.profile-wrapper {
    position: relative;
    width: 100px;  /* රවුමේ සයිස් එක */
    height: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    overflow: hidden; /* Image එක මේකෙන් එලියට පනින එක වලක්වනවා */
    border: 3px solid rgba(129, 140, 248, 0.3);
    background: #111; /* Photo එක load වෙන්න කලින් පේන පාට */
}

.profile-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* ෆොටෝ එක ඇද නොවී රවුම ඇතුළට Fit කරනවා */
    display: block;
}

.member-card span {
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    word-break: break-all; /* දිග නම් කැඩෙන්න */
}

/* Loader */
.loader { border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid #818cf8; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 50px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
