﻿:root {
    --mentor-glass-bg-light: rgba(255, 255, 255, 0.4);
    --mentor-glass-border-light: rgba(255, 255, 255, 0.5);
    --mentor-glass-shadow-light: rgba(0, 0, 0, 0.2);
    --mentor-text-primary-light: rgba(30, 41, 59, 0.95);
    --mentor-text-secondary-light: rgba(51, 65, 85, 0.8);
    /* Enhanced card backgrounds with better contrast */
    --mentor-card-blue-light: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.2));
    --mentor-card-green-light: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
    --mentor-card-purple-light: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(124, 58, 237, 0.2));
    --mentor-btn-bg-light: rgba(255, 255, 255, 0);
    --mentor-btn-border-light: rgba(255, 255, 255, 0);
    --mentor-btn-hover-bg-light: rgba(255, 255, 255, 0);
    --mentor-backdrop-filter: blur(16px);
}

[data-bs-theme="dark"] {
    --mentor-glass-bg-light: rgba(0, 0, 0, 0.2);
    --mentor-glass-border-light: rgba(255, 255, 255, 0.15);
    --mentor-glass-shadow-light: rgba(0, 0, 0, 0.4);
    --mentor-text-primary-light: rgba(255, 255, 255, 0.95);
    --mentor-text-secondary-light: rgba(255, 255, 255, 0.8);
    /* Dark theme with better contrast */
    --mentor-card-blue-light: linear-gradient(135deg, rgba(30, 64, 175, 0.35), rgba(37, 99, 235, 0.3));
    --mentor-card-green-light: linear-gradient(135deg, rgba(5, 150, 105, 0.35), rgba(16, 185, 129, 0.3));
    --mentor-card-purple-light: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(168, 85, 247, 0.3));
    --mentor-btn-bg-light: rgba(255, 255, 255, 0.15);
    --mentor-btn-border-light: rgba(255, 255, 255, 0.25);
    --mentor-btn-hover-bg-light: rgba(255, 255, 255, 0.25);
}

.stext-blue {
    color: #2196F3 !important;
}

.mentor-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 1rem; */
}

.mentor-card {
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    border: 1px solid var(--mentor-glass-border-light);
    backdrop-filter: var(--mentor-backdrop-filter);
    -webkit-backdrop-filter: var(--mentor-backdrop-filter);
    background: var(--mentor-glass-bg-light);
    box-shadow: 0 8px 32px var(--mentor-glass-shadow-light), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

    .mentor-card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 20px 60px var(--mentor-glass-shadow-light), 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
    }

.mentor-card-blue {
    background: var(--mentor-card-blue-light) !important;
}

.mentor-card-green {
    background: var(--mentor-card-green-light) !important;
}

.mentor-card-purple {
    background: var(--mentor-card-purple-light) !important;
}

.mentor-profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mentor-card:hover .mentor-profile-image {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mentor-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    color: #343a40;
    display: inline-block;
    margin: 0.125rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* .mentor-badge:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
            } */

[data-bs-theme="dark"] .mentor-badge {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
}

.mentor-badge-mvp {
    background: rgba(30, 64, 175, 0.8);
}

.mentor-badge-founder {
    background: rgba(124, 58, 237, 0.8);
}

.mentor-badge-author {
    background: rgba(5, 150, 105, 0.8);
}

.mentor-badge-architect {
    background: rgba(30, 64, 175, 0.8);
}

.mentor-badge-ibm {
    background: rgba(124, 58, 237, 0.8);
}

.mentor-badge-lead {
    background: rgba(220, 38, 38, 0.8);
}

.mentor-badge-default {
    background: rgba(107, 114, 128, 0);
}

.mentor-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mentor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mentor-text-primary-light);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mentor-title {
    font-size: 0.875rem;
    color: var(--mentor-text-secondary-light);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.mentor-expertise-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--mentor-text-secondary-light);
    position: relative;
    z-index: 1;
}

.mentor-icon {
    margin-right: 0.75rem;
    color: var(--mentor-text-primary-light);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mentor-expertise-text {
    font-size: 0.875rem;
}

.mentor-rating-container {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.mentor-rating-score {
    font-weight: 700;
    color: var(--mentor-text-primary-light);
    font-size: 1rem;
}

.mentor-rating-text {
    font-size: 0.875rem;
    color: var(--mentor-text-secondary-light);
    margin: 0.5rem 0;
}

.mentor-rating-review {
    font-size: 0.75rem;
    color: var(--mentor-text-secondary-light);
    font-style: italic;
    opacity: 0.8;
}

.mentor-star {
    color: #fbbf24;
    width: 20px;
    height: 20px;
}

.mentor-btn {
    width: 100%;
    background: var(--mentor-btn-bg-light);
    border: 2px solid var(--mentor-btn-border-light);
    color: var(--mentor-text-primary-light);
    font-weight: 600;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

    .mentor-btn:hover {
        background: var(--mentor-btn-hover-bg-light);
        border-color: rgba(255, 255, 255, 0.6);
        color: var(--mentor-text-primary-light);
        transform: translateY(-3px);
        text-decoration: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

.mentor-social-icon {
    color: var(--mentor-text-secondary-light);
    transition: all 0.3s ease;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

    .mentor-social-icon:hover {
        color: var(--mentor-text-primary-light);
        transform: translateY(-2px) scale(1.05);
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }

.mentor-biography {
    color: var(--mentor-text-secondary-light);
    font-size: 0.875rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Enhanced glass effect for dark theme */
[data-bs-theme="dark"] .mentor-card {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

    [data-bs-theme="dark"] .mentor-card:hover {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .mentor-grid-container {
        padding: 1rem;
    }

    .mentor-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .mentor-profile-image {
        width: 80px;
        height: 80px;
    }

    .mentor-name {
        font-size: 1.125rem;
    }

    .mentor-btn {
        padding: 0.75rem 1rem;
    }
}

.heading-underline {
    width: 6rem;
    height: .25rem;
    background: linear-gradient(to right, #60a5fa, #2563eb, #60a5fa);
    border-radius: 9999px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

[data-bs-theme="dark"] .card-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 2px);
}
