/* Portfolio Cards - Enhanced for modern design
   These styles are complementary to modern-portfolio.css */

.project-card {
    /* Base styles now in modern-portfolio.css */
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    border-radius: 12px;
}

/* Improve card spacing and typography consistency */
.project-card .card-body {
    background-color: var(--color-bg-secondary, #1a1a1a);
}

.project-card .card-body p {
    margin-bottom: 0.75rem;
}

/* Overlay on hover - View case study */
.project-card .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    padding: var(--spacing-lg, 2rem);
    border-radius: 12px;
    pointer-events: none;
}

.project-card:hover .overlay-content {
    opacity: 1;
}

.overlay-content h3 {
    color: #ffbd39;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.overlay-content p {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Projects grid responsive adjustments */
@media (max-width: 768px) {
    .project-card {
        min-height: 280px;
    }

    .project-media {
        height: 180px;
    }

    .project-card .card-body {
        padding: 1rem;
    }
}

/* Accessibility: Visible focus styles */
.portfolio-item a:focus-visible {
    outline: 2px solid #ffbd39;
    outline-offset: 2px;
}