﻿/* Estilos para a seção de projetos - Design minimalista e profissional */
.projects {
    padding: 6rem 2rem;
    background: var(--background);
}

.projects-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filtros de projetos */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

/* Grid de projetos */
.projects-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* Cards de projetos */
.project-card {
    background: var(--background-alt);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Cabeçalho do card */
.project-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.project-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25);
}

/* Corpo do card */
.project-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.project-body p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Tags de tecnologias */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-pill {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.tech-pill:hover {
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

.tech-pill.more {
    background: rgba(139, 92, 246, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(139, 92, 246, 0.12);
}

/* Rodapé do card */
.project-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: var(--background);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.project-link:hover {
    background: var(--background-alt);
}

.project-link.github:hover {
    color: #333;
    background: rgba(51, 51, 51, 0.08);
}

.project-link.demo:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
}

.project-link.case-study:hover {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.link-icon {
    font-size: 1rem;
}

/* Animações para o filtro */
.project-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .projects {
        padding: 4rem 1.5rem;
    }
    
    .projects-modern-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}
