/* Projects Page Styles - SOVBau */

/* Page Header */
.projects-header {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    text-align: center;
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.projects-header .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Buttons */
.projects-filters {
    padding: 60px 0;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Projects Grid */
.projects-grid {
    padding-bottom: 80px;
}

.project-item {
    transition: var(--transition);
    margin-bottom: 2rem;
}

.project-item.hidden {
    display: none;
}

.project-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

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

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

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-card .card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-card .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-info {
    background: #17a2b8 !important;
}

.badge.bg-success {
    background: #28a745 !important;
}

.badge.bg-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-danger {
    background: #dc3545 !important;
}

.badge.bg-secondary {
    background: #6c757d !important;
}

.project-card .text-muted {
    font-size: 0.85rem;
    color: var(--text-light) !important;
}

/* Projects Stats */
.projects-stats {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.projects-stats h2 {
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 3rem;
    font-weight: 700;
}

.projects-stats .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.stat-item {
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0.5rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4673AF;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #666666;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

/* CTA Section */
.projects-cta {
    padding: 80px 0;
    text-align: center;
}

.projects-cta h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.projects-cta .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

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

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modal for Project Details */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 2.5rem;
    }
    
    .projects-header .lead {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .projects-stats h2 {
        font-size: 2rem;
    }
    
    .projects-stats .row {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 90%;
        max-width: 300px;
        margin: 0.5rem auto;
        min-height: 140px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .projects-cta h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .project-card .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .projects-header,
    .projects-filters,
    .projects-grid,
    .projects-stats,
    .projects-cta {
        padding: 50px 0;
    }
    
    .projects-header h1 {
        font-size: 2rem;
    }
    
    .project-card img {
        height: 150px;
    }
    
    .project-card .card-title {
        font-size: 1.2rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        width: 95%;
        min-height: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .projects-stats h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}