.page {
    min-height: 100vh;
    background: var(--bg-darker);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 214, 160, 0.05) 0px, transparent 50%);
}

.header {
    padding: 6rem 0 4rem;
    text-align: center;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.content {
    padding: 0 1.5rem 6rem;
}

/* Filter Styles */
.filterContainer {
    margin-bottom: 3rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem 2rem;
}

.filterContent {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.searchBox {
    flex: 2;
    min-width: 250px;
}

.searchInput,
.selectInput {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.searchInput:focus,
.selectInput:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.filterGroup {
    flex: 1;
    min-width: 180px;
}

.filterContainer .btn {
    padding: 0.85rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.filterContainer .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
    .filterContainer {
        padding: 1.5rem;
    }
    .filterContent {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

/* Grid Styles */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Card Styles */
.card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #2a3044;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cardLink-wrapper {
    flex: 1;
}

.cardLink {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.cardTop {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    justify-content: space-between;
}

.avatarImg, .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    flex-shrink: 0;
}

.avatar {
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.cardTop-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.info {
    min-width: 0;
}

.info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-word;
}

.title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.featuredBadge {
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1 0%, #06d6a0 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.bio {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.location i {
    width: 14px;
    height: 14px;
    color: #ff4d4d; /* Reddish pin as in screenshot */
}

.rate {
    font-weight: 800;
    color: #06d6a0;
    font-size: 1rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.tag {
    padding: 0.35rem 0.6rem;
    background: transparent;
    border: 1px solid #3b4261;
    border-radius: 20px;
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.more-tag {
    position: relative;
    cursor: default;
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: var(--primary-light) !important;
}

.more-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    width: 200px;
    white-space: normal;
    font-size: 0.8rem;
    color: var(--text-primary);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.more-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.more-tag:hover .more-tooltip {
    display: block;
}

/* Card Actions */
.cardActions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.actionBtn {
    flex: 1 1 calc(50% - 0.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.actionBtn i {
    width: 14px;
    height: 14px;
}

.emailBtn {
    background: transparent;
    color: #a5b4fc;
    border: 1px solid #3b4261;
}

.emailBtn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #c7d2fe;
    transform: translateY(-2px);
}

.whatsappBtn {
    background: transparent;
    color: #06d6a0;
    border: 1px solid #06d6a0;
}

.whatsappBtn:hover {
    background: rgba(6, 214, 160, 0.1);
    color: #34d399;
    transform: translateY(-2px);
}

.portfolioBtn {
    flex-basis: 100%;
    background: transparent;
    color: #06d6a0;
    border: 1px solid #06d6a0;
}

.portfolioBtn:hover {
    background: rgba(6, 214, 160, 0.1);
    color: #34d399;
    transform: translateY(-2px);
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(30, 41, 59, 0.2);
    border: 1px dashed var(--border);
    border-radius: 24px;
}

.empty p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Featured State */
.card.featured {
    border-color: rgba(6, 214, 160, 0.3);
    background: rgba(15, 23, 42, 0.95);
}

.card.featured:hover {
    border-color: var(--accent);
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2.5rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .cardActions {
        padding: 1.25rem;
        gap: 0.75rem;
    }
}
