/* projects.css - Estilos para a seção Projetos (similar à Galeria) */

/* Container principal */
.projects-container-main {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section {
    background:
        linear-gradient(150deg, rgba(255,178,178,0.18), rgba(255,243,186,0.16), rgba(168,218,255,0.14), rgba(217,168,255,0.16)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 20px),
        #161616;
    background-blend-mode: screen, normal, normal, normal;
    border-radius: 24px 18px 24px 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 250%;
    height: 250%;
    background:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.12), transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(255,255,255,0.08), transparent 26%);
    pointer-events: none;
    animation: paperShimmer 11s ease-in-out infinite;
}

.projects-section::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: 1.5rem;
    width: 180px;
    height: 82px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%);
    border-radius: 0 0 22px 22px;
    transform: rotate(3deg);
    opacity: 0.32;
    pointer-events: none;
}

/* Header dos Projetos */
.projects-header {
    margin-bottom: 2.5rem;
}

.projects-header h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.projects-header p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.6;
}

/* Filtros dos Projetos */
.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #222;
    border-radius: 12px;
    border: 2px solid #333;
    justify-content: center;
}

.project-filter-btn {
    background: #2a2a2a;
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-filter-btn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-filter-btn.active {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-color: #2196F3;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.4);
    transform: translateY(-3px);
}

.filter-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Grid dos Projetos */
.projects-grid-container {
    margin-bottom: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #222;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid #333;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: #2196F3;
}

/* Status dos Projetos */
.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-completed {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.status-ongoing {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

.status-development {
    background: rgba(156, 39, 176, 0.9);
    color: white;
}

.status-current {
    background: rgba(33, 150, 243, 0.9);
    color: white;
}

/* Imagem do Projeto */
.project-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    color: white;
}

.project-category {
    background: rgba(33, 150, 243, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.project-subtitle {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Conteúdo do Projeto */
.project-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    margin-bottom: 1rem;
}

.project-title {
    color: #fff;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.project-year-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.project-year {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

.project-description {
    color: #ccc;
    margin: 0 0 1.2rem 0;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

/* Links do Projeto */
.project-links {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid #333;
}

.project-links h4 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #333;
    font-size: 0.9rem;
}

.project-link:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #2196F3;
}

.project-link i {
    font-size: 1.2rem;
}

/* Tags do Projeto */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.project-tag {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Timeline */
.projects-timeline {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    border: 2px solid #333;
}

.projects-timeline h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: #222;
    border-radius: 10px;
    border-left: 5px solid #2196F3;
    transition: all 0.3s;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    color: #2196F3;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 120px;
    padding: 0.5rem 0;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.timeline-description {
    color: #ccc;
    margin: 0;
    font-size: 1rem;
}

/* Estatísticas dos Projetos */
.projects-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-stat-card {
    background: #222;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid #333;
    transition: all 0.4s;
}

.project-stat-card:hover {
    border-color: #2196F3;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-stat-icon {
    background: rgba(33, 150, 243, 0.15);
    color: #2196F3;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.project-stat-content {
    display: flex;
    flex-direction: column;
}

.project-stat-number {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.project-stat-label {
    color: #aaa;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Loading e Error */
.projects-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 2px dashed #333;
}

.projects-loading i {
    font-size: 3rem;
}

.projects-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(255, 68, 68, 0.3);
}

.projects-error i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.projects-error h3 {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1.5rem;
}

.retry-btn {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
    font-size: 1rem;
}

.retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

/* Responsividade */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-filters {
        justify-content: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .timeline-date {
        min-width: auto;
    }
    
    .projects-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 1.5rem;
    }
    
    .projects-filters {
        padding: 1rem;
    }
    
    .project-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .project-image-container {
        height: 200px;
    }
}
@keyframes paperShimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
