/**
 * Стили для портфолио
 */

/* ===== Сетка проектов ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card.clickable-card {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card.clickable-card:link,
.project-card.clickable-card:visited,
.project-card.clickable-card:active {
    text-decoration: none !important;
    color: inherit !important;
}

.project-card.clickable-card:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.project-card.clickable-card * {
    color: inherit;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

/* Теги технологий над изображением */
.project-tech-tags-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 3;
    max-width: calc(100% - 2rem);
}

.project-tech-tag-overlay {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #475569;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8fafc;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.project-tech {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-tech strong {
    color: var(--text-color);
}

.project-actions {
    margin-top: auto;
}

.featured-projects {
    padding: 3rem 0;
}

.featured-projects h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}




