/* ============================================
   ПОРТФОЛИО - МИНИМАЛИСТИЧНЫЙ СТИЛЬ
   ============================================ */

/* Hero секция */
.portfolio-hero {
    padding: 180px 0 60px;
    position: relative;
}

.portfolio-hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin: 20px 0 30px;
}

.accent {
    color: #c7ff66;
    position: relative;
}

.portfolio-description {
    color: #a0a0a0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Статистика */
.portfolio-stats {
    padding: 40px 0;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-block {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #c7ff66;
    line-height: 1.2;
}

.stat-label {
    color: #a0a0a0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Фильтр */
.portfolio-filter-section {
    padding: 20px 0 40px;
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #a0a0a0;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #c7ff66;
    color: #c7ff66;
}

.filter-btn.active {
    background: #c7ff66;
    border-color: #c7ff66;
    color: #0a0a0a;
}

/* Сетка портфолио */
.portfolio-grid-section {
    padding: 40px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Карточка проекта */
.portfolio-item {
    display: block;
    width: 100%;
    margin-bottom: 30px;
}

.project-card {
    background: transparent;
    transition: all 0.3s;
    width: 100%;
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #1a1a1a; /* Фон пока загружается изображение */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.project-year,
.project-cat {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    border: 1px solid rgba(199, 255, 102, 0.3);
}

.project-info {
    padding: 0 5px;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.project-desc {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.meta-item i {
    color: #c7ff66;
    margin-right: 5px;
    font-size: 12px;
}

.project-link {
    color: #c7ff66;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    gap: 10px;
}

/* Кнопка загрузки */
.portfolio-more {
    padding: 40px 0 80px;
}

.more-content {
    text-align: center;
}

.more-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.load-more-btn {
    padding: 12px 40px;
    font-size: 14px;
    background: transparent;
    border: 1px solid #c7ff66;
    color: #c7ff66;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #c7ff66;
    color: #0a0a0a;
}

.load-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* CTA секция */
.portfolio-cta {
    padding: 60px 0 100px;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 60px;
}

.cta-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.cta-text {
    color: #a0a0a0;
    margin-bottom: 30px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stats-row {
        gap: 30px;
    }

    .stat-number {
        font-size: 32px;
    }

    .filter-wrapper {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .cta-content {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    animation: fadeIn 0.5s ease;
}