/* BioIntellica Portfolio Showcase Styles */
.bio-portfolio-wrapper {
    font-family: inherit;
    width: 100%;
}

.bio-portfolio-search-box input:focus {
    border-color: #0ea8e5 !important;
    box-shadow: 0 0 0 4px rgba(14, 168, 229, 0.15) !important;
}

.bio-portfolio-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.bio-portfolio-filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    color: #0b3574;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.bio-portfolio-filter-btn.active,
.bio-portfolio-filter-btn:hover {
    background: #0b3574 !important;
    color: #ffffff !important;
    border-color: #0b3574 !important;
    box-shadow: 0 4px 14px rgba(11, 53, 116, 0.25);
}

.bio-portfolio-grid {
    display: grid;
    gap: 2.25rem;
}

.bio-portfolio-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 53, 116, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.bio-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 53, 116, 0.12);
    border-color: rgba(43, 214, 58, 0.5);
}

.bio-portfolio-thumb {
    height: 210px;
    background: #0b3574;
    position: relative;
    overflow: hidden;
}

.bio-portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-portfolio-card:hover .bio-portfolio-thumb img {
    transform: scale(1.07);
}

.bio-portfolio-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(11, 53, 116, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bio-portfolio-impact-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    color: #2bd63a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(43, 214, 58, 0.3);
}

.bio-portfolio-body {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bio-portfolio-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin: 0 0 0.65rem 0;
    font-weight: 700;
}

.bio-portfolio-title a {
    color: #0b3574;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bio-portfolio-title a:hover {
    color: #0ea8e5;
}

.bio-portfolio-excerpt {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex: 1;
}

.bio-portfolio-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.bio-tool-pill {
    background: rgba(11, 53, 116, 0.05);
    color: #0b3574;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    border: 1px solid rgba(11, 53, 116, 0.12);
}

.bio-pdf-badge-btn {
    background: rgba(14, 168, 229, 0.1);
    color: #0ea8e5;
    border: 1px solid rgba(14, 168, 229, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bio-pdf-badge-btn:hover {
    background: #0ea8e5;
    color: #ffffff;
}

.bio-portfolio-footer {
    padding: 1.1rem 1.5rem 1.4rem 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bio-portfolio-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.bio-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b3574 0%, #0ea8e5 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-author-details {
    display: flex;
    flex-direction: column;
}

.bio-author-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}

.bio-date {
    font-size: 0.73rem;
    color: #94a3b8;
}

.bio-cta-btn {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b3574;
    background: rgba(11, 53, 116, 0.06);
    border: 1px solid rgba(11, 53, 116, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bio-cta-btn:hover {
    background: #2bd63a;
    color: #0b3574;
    border-color: #2bd63a;
    box-shadow: 0 4px 12px rgba(43, 214, 58, 0.3);
}

/* Modal Popup Window */
.bio-portfolio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 30, 71, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.bio-portfolio-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1.25rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    padding: 2.25rem;
    animation: bioModalFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bioModalFade {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.bio-portfolio-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(11, 53, 116, 0.08);
    border: none;
    font-size: 1.6rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: #0b3574;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bio-portfolio-modal-close:hover {
    background: #ef4444;
    color: #ffffff;
}

.bio-modal-cat-badge {
    background: #0b3574;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.bio-modal-title {
    font-size: 1.6rem;
    color: #0b3574;
    margin: 0.65rem 0 1.25rem 0;
    font-weight: 800;
}

.bio-modal-img-wrapper {
    width: 100%;
    height: 290px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.bio-modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.bio-modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.bio-modal-meta-item strong {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
}

.bio-modal-meta-item span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b3574;
}

.bio-modal-main-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.bio-modal-cta-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #0b3574;
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bio-modal-cta-btn:hover {
    background: #2bd63a;
    color: #0b3574;
    box-shadow: 0 8px 20px rgba(43, 214, 58, 0.3);
}

.bio-modal-wa-btn:hover {
    background: #128C7E !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
}

.bio-portfolio-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(11, 53, 116, 0.1);
    border-left-color: #0b3574;
    border-radius: 50%;
    animation: bioSpin 0.8s linear infinite;
    margin: 3rem auto;
}

@keyframes bioSpin {
    to { transform: rotate(360deg); }
}

/* Dark Mode Support */
body.dark-mode .bio-portfolio-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.8);
}

body.dark-mode .bio-portfolio-title a {
    color: #f1f5f9;
}

body.dark-mode .bio-portfolio-excerpt {
    color: #94a3b8;
}

body.dark-mode .bio-portfolio-modal-content {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
}

body.dark-mode .bio-modal-title {
    color: #ffffff;
}

body.dark-mode .bio-modal-meta-grid {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .bio-modal-meta-item span {
    color: #38bdf8;
}
