/* Projects Page & Project Detail Styles */

/* Projects Page */
.projects-page {
    padding: var(--space-3xl) 0;
}

.projects-filters {
    background: var(--bg-secondary);
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.filter-controls h3 {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.filter-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-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 var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.project-content {
    padding: var(--space-lg);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
}

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

.project-category {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tech-tag {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.tech-tag.more {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.no-projects {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.no-projects-content i {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

/* Project Detail Page */
.back-to-projects {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.back-to-projects a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.back-to-projects a:hover {
    gap: var(--space-md);
}

/* Project Detail Header - Override for detail page */
.project-detail .project-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    display: block; /* Override flex from projects grid */
}

.project-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-detail .project-category {
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.project-detail .project-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.project-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}

.project-detail .project-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.project-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.project-details .project-image {
    height: auto;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative; /* Reset position from grid styles */
}

.project-details .project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: none; /* Remove hover effect for detail page */
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tech-badge {
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Project Details Content */
.project-details h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    margin-top: var(--space-2xl);
    font-size: 1.8rem;
}

.project-details h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
    font-size: 1.4rem;
}

.project-details p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.project-details ul {
    color: var(--text-secondary);
    padding-left: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.project-details li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .project-detail .project-header h1 {
        font-size: 2rem;
    }
    
    .project-detail .project-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .project-content-wrapper {
        padding: var(--space-2xl) var(--space-md);
    }
}
.projects-page {
    padding: var(--space-3xl) 0;
}

.projects-filters {
    background: var(--bg-secondary);
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.filter-controls h3 {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.filter-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-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 var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.project-content {
    padding: var(--space-lg);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
}

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

.project-category {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tech-tag {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.tech-tag.more {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.no-projects {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.no-projects-content i {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

/* Project Detail Page */
.back-to-projects {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.back-to-projects a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.back-to-projects a:hover {
    gap: var(--space-md);
}

.project-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.project-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-header .project-category {
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.project-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.project-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}

.project-header .project-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.project-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.project-details .project-image {
    height: auto;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-details .project-image img {
    width: 100%;
    height: auto;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tech-badge {
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .project-header h1 {
        font-size: 2rem;
    }
    
    .project-header .project-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .project-content-wrapper {
        padding: var(--space-2xl) var(--space-md);
    }
}