/* ===========================================
    ESTILOS DA PÁGINA DE PROJETOS
    =========================================== */

/* Filtros de Projeto */
.filtros-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filtro-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: #e2e8f0;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.filtro-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.filtro-btn.active {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Cards de Projeto */
#projetos-detalhados {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.95) 50%,
        rgba(15, 23, 42, 0.95) 100%);
}

.projeto-item {
    margin-bottom: 40px;
}

.projeto-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.projeto-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.projeto-image {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* mostra a imagem inteira */
    object-position: center; /* centraliza */
    position: relative;
    background-color: #0f172a; /* fundo para não ficar transparente */
    transition: transform 0.4s ease;
}

.projeto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    transition: transform 0.4s ease;
}

.projeto-card:hover .projeto-image img {
    transform: scale(1.1);
}

.projeto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projeto-card:hover .projeto-overlay {
    opacity: 1;
}

.projeto-links {
    display: flex;
    gap: 15px;
}

.btn-projeto {
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-projeto:hover {
    background: rgba(6, 182, 212, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.btn-projeto.github {
    background: rgba(33, 41, 54, 0.9);
}

.btn-projeto.github:hover {
    background: rgba(55, 65, 81, 0.9);
}

.projeto-content {
    padding: 30px;
}

.projeto-categoria {
    display: inline-block;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.projeto-content h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.projeto-content p {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tech Tags */
.projeto-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-tag {
    background: rgba(6, 182, 212, 0.1);
    color: #06B6D4;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Estatísticas do Projeto */
.projeto-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    color: #8B5CF6;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat span {
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Seção de Depoimentos */
.depoimento {
    background: rgba(30, 41, 59, 0.6);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #8B5CF6;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.depoimento p {
    color: #e2e8f0;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.depoimento footer strong {
    color: #06B6D4;
    display: block;
    margin-bottom: 5px;
}

.depoimento footer span {
    color: #94a3b8;
    font-size: 14px;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loaded {
    opacity: 1;
    transform: scale(1);
}

/* CTA Section */
#cta-projetos .button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#cta-projetos .button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .filtros-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filtro-btn {
        width: 200px;
        margin: 5px 0;
    }
    
    .projeto-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat {
        padding: 10px;
        background: rgba(139, 92, 246, 0.05);
        border-radius: 8px;
    }
    
    .projeto-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-projeto {
        text-align: center;
        padding: 12px 20px;
    }
    
    .projeto-content {
        padding: 20px;
    }
    
    .projeto-image {
        height: 200px;
    }
    
    .depoimento {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    #projetos-detalhados {
        padding: 40px 0;
    }
    
    .projeto-item {
        margin-bottom: 30px;
    }
    
    .projeto-content h3 {
        font-size: 18px;
    }
    
    .projeto-content p {
        font-size: 14px;
    }
    
    .tech-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
}
/* Particles no fundo, sem bloquear mouse */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* NÃO precisa mais do z-index no page-wrapper */

/* Cards acima dos particles */
#projetos-detalhados .projeto-card {
  position: relative;
  z-index: 10;   /* só os cards ficam acima */
}

/* Área da imagem ocupa o tamanho natural do conteúdo */
#projetos-detalhados .projeto-image {
  position: relative;
  overflow: hidden;
  background-color: #0f172a;
  z-index: 10;
}

/* Imagem normal (mantém o tamanho original do card) */
#projetos-detalhados .projeto-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
  position: relative;
  z-index: 11;
}

/* Overlay acima da imagem */
#projetos-detalhados .projeto-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.78);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 30 !important;
  pointer-events: none;
}

#projetos-detalhados .projeto-card:hover .projeto-overlay {
  opacity: 1 !important;
  pointer-events: auto;
}

/* Links/botões sempre no topo */
#projetos-detalhados .projeto-links { position: relative; z-index: 40; }
#projetos-detalhados .btn-projeto  { position: relative; z-index: 45; }

/* Zoom suave */
#projetos-detalhados .projeto-card:hover .projeto-image img {
  transform: scale(1.06);
}
