/* Projects Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('../images/hero/projects.jpeg') center/cover;
    color: var(--white);
    padding: 8rem 5%;
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Filter Section - Removed */

/* Projects Grid */
.projects-section {
    padding: 5rem 5%;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.project-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
}

.btn-view-more {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: auto;
}

.btn-view-more:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Old styles - keeping for compatibility */
.project-info {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.85rem;
    border-radius: 3px;
    margin-bottom: 0.8rem;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-bg);
    font-size: 0.9rem;
    color: var(--gray);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-project-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.view-project-btn:hover {
    background: var(--secondary-color);
}

/* Project Modal/Lightbox */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    overflow-y: auto;
}

.project-modal.active {
    display: block;
}

.modal-content {
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.modal-images img {
    width: 100%;
    height: auto;
}

.modal-details {
    padding: 3rem;
}

.modal-details h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-details p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.spec-item {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 5px;
}

.spec-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Stats Section */
.projects-stats {
    padding: 4rem 5%;
    background: var(--primary-color);
    color: var(--white);
    margin-top: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 5rem 5%;
    text-align: center;
    background: var(--light-bg);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    display: none;
}

.no-results.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 5rem 3%;
        min-height: 50vh;
    }
    
    .page-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .page-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .modal-details {
        padding: 2rem;
    }
    
    .modal-details h2 {
        font-size: 2rem;
    }
    
    .project-specs {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 4rem 3%;
        min-height: 40vh;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
