/* Projects Page Styles */

.projects-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.projects-header .container {
    position: relative;
    z-index: 2;
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.projects-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.projects-content {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.projects-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.projects-intro h2,
.projects-intro h3 {
    color: #333;
    margin: 2rem 0 1rem;
}

.projects-intro p {
    margin-bottom: 1.5rem;
}

/* Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.project-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #667eea;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.project-status.status-completed {
    background: #d4edda;
    color: #155724;
}

.project-status.status-in_progress {
    background: #fff3cd;
    color: #856404;
}

.project-status.status-planned {
    background: #d1ecf1;
    color: #0c5460;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* No Projects State */
.no-projects {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-projects h2 {
    color: #333;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-header {
        padding: 100px 0 60px;
    }
    
    .projects-header h1 {
        font-size: 2.5rem;
    }
    
    .projects-header p {
        font-size: 1.1rem;
    }
    
    .projects-content {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .projects-header h1 {
        font-size: 2rem;
    }
    
    .projects-header p {
        font-size: 1rem;
    }
    
    .projects-content {
        padding: 40px 0;
    }
    
    .project-content {
        padding: 1rem;
    }
}