:root {
    --bg-gradient: linear-gradient(135deg, #f3f0ff 0%, #e0e7ff 100%);
    --accent-purple: #9333ea;
    --accent-blue: #4f46e5;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --text-main: #374151;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    padding: 2rem 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent-purple);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #6b7280;
    text-transform: uppercase;
}

/* Top Slideable Filter */
.filter-wrapper {
    width: 100%;
    max-width: 900px;
    overflow-x: auto;
    padding: 10px 5px;
    margin-bottom: 2.5rem;
    scrollbar-width: none;
}

.filter-wrapper::-webkit-scrollbar { display: none; }

.filter-container {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    gap: 10px;
    min-width: max-content;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 12px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #6b7280;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active {
    background: white;
    color: var(--accent-purple);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 600;
}

/* Main Content Layout */
.main-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 2rem;
    align-items: flex-start;
}

/* Side Filter Styling */
.sidebar {
    width: 350px;
    height: 430px;
    overflow: scroll;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    box-shadow: var(--card-shadow);
}

.sidebar h2 {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: #4b5563;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s;
    color: #4b5563;
}

.checkbox-container:hover { background: rgba(255, 255, 255, 0.4); }

.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; }

.checkmark {
    height: 18px; width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px; top: 1px;
    width: 4px; height: 8px;
    border: solid white; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after { display: block; }

/* Profile Grid */
.gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
}

.profile-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; border: 4px solid #fff;
}

.card h3 { font-size: 1.2rem; color: #1f2937; margin-bottom: 0.3rem; }
.card .role { font-size: 0.75rem; color: var(--accent-purple); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 1rem; }
.card p { font-size: 0.85rem; color: #6b7280; line-height: 1.5; margin-bottom: 1.2rem; }

.social-links { display: flex; justify-content: center; gap: 8px; }
.social-icon {
    width: 32px; height: 32px;
    border-radius: 8px; background: #f9fafb;
    display: flex; align-items: center; justify-content: center;
    color: #4b5563; text-decoration: none; transition: 0.3s;
}
.social-icon:hover { background: var(--accent-purple); color: white; transform: translateY(-2px); }

.hidden { display: none !important; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .main-container { flex-direction: column; }
    .sidebar { width: 100%; position: relative; top: 0; }
}