:root {
    --accent-cyan: #00f2ff;
    --bg-dark: #080b12;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Space Grotesk', sans-serif;
}

/* Header Gradient */
.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Search Box */
.search-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    /* হালকা গ্লাস এফেক্ট */
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 50px;
    /* পিল শেপ ডিজাইন */
    padding: 2px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: text;
    display: flex;
    align-items: center;
}
.search-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.5);
}

.search-container:focus-within {
    background: rgba(8, 11, 18, 0.9);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.2),
        inset 0 0 10px rgba(0, 242, 255, 0.1);
    transform: translateY(-2px);
}
.search-icon {
    position: static;
    /* পজিশন ফিক্সড থেকে স্ট্যাটিক */
    transform: none;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-right: 15px;
    transition: 0.3s;
}

.search-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 12px 0;
    color: white !important;
    font-size: 1rem;
    outline: none !important;
}
/* ফিল্টার হাইড হওয়ার এনিমেশন */
#filterContainer {
    transition: all 0.4s ease;
    max-height: 500px;
    /* আনুমানিক হাইট */
    opacity: 1;
    overflow: hidden;
}

#filterContainer.hide-filters {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}
/* Responsive Filter Wrapper */
/* Responsive Filter Wrapper - Scroll বন্ধ করে Wrap করা হয়েছে */
.filter-container {
    overflow: hidden;
    /* স্ক্রলবার বন্ধ */
    padding-bottom: 20px;
    width: 100%;
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* বাটনগুলো জায়গা না হলে নিচের লাইনে আসবে */
    justify-content: center;
    /* সব বাটন সবসময় মাঝখানে থাকবে */
    gap: 10px;
    /* বাটনের মাঝের গ্যাপ */
    max-width: 1000px;
    /* একটি স্ট্যান্ডার্ড উইডথ যাতে খুব বেশি ছড়িয়ে না যায় */
    margin: 0 auto;
    /* কন্টেইনারটি মাঝখানে রাখার জন্য */
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: #a8b2d1;
    padding: 8px 20px;
    /* প্যাডিং কিছুটা কমানো হয়েছে যাতে মোবাইল স্ক্রিনে সুন্দর দেখায় */
    border-radius: 50px;
    font-size: 0.85rem;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* মোবাইলের জন্য মিডিয়া কুয়েরি আপডেট */
@media (max-width: 768px) {
    .filter-wrapper {
        justify-content: center !important;
        /* মোবাইলেও মাঝখানে থাকবে */
        padding: 0 10px;
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 15px;
        /* মোবাইলে বাটন সাইজ সামান্য ছোট */
        font-size: 0.75rem;
    }
}

.filter-btn.active {
    background: var(--accent-cyan) !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.4);
}

/* Modern Team Card */
.modern-team-card {
    color: var(--accent-cyan);
    /* নাম এখন সিয়ান কালার দেখাবে */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.5s ease;
    position: relative;
    overflow: hidden;
}

.modern-team-card:hover h5 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.role {
    color: rgba(255, 255, 255, 0.7);
    /* ডিফল্ট হালকা সাদা */
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    /* স্মুথ ট্রানজিশন */
}

/* যখন কার্ডের ওপর মাউস নিবেন (Hover) */
.modern-team-card:hover .role {
    color: #00f2ff;
    /* হোভার করলে সিয়ান কালার হবে */
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    /* গ্লো ইফেক্ট */
}

.modern-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.05), transparent);
    transition: 0.5s;
}

.modern-team-card:hover::before {
    left: 100%;
}

.modern-team-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Circular Image with Neon Ring */
.image-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--accent-cyan), transparent);
    transition: 0.5s;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-dark);
}

.modern-team-card:hover .image-wrapper {
    rotate: 360deg;
    box-shadow: 0 0 25px var(--accent-cyan);
}

/* Role Badge */
.dept-badge {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }

    .filter-wrapper {
        justify-content: flex-start;
        padding-left: 15px;
    }

    .modern-team-card {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {

    /* সেকশনের উপরের বড় গ্যাপ কমানোর জন্য */
    .team-page-section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* মেইন টাইটেলের উপরের এবং নিচের গ্যাপ কমানো */
    .display-5 {
        font-size: 1.8rem;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }

    /* সার্চ বক্সের নিচের গ্যাপ কমানো */
    .search-container {
        margin-bottom: 10px;
    }

    /* ফিল্টার কন্টেইনারের মার্জিন কমানো */
    .filter-container {
        margin-bottom: 20px !important;
    }
}