/* Projects Page Specific Styles */

/* Project Statistics */
.project-stats-area {
    background: #f8f9fa;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #007bff;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Category-specific colors */
.ai-and-machine-learning-project {
    border-left-color: #dc3545;
}

.ai-and-machine-learning-project:hover {
    border-left-color: #c82333;
}

.human-computer-interaction-project {
    border-left-color: #007bff;
}

.human-computer-interaction-project:hover {
    border-left-color: #0056b3;
}

.cognitive-science-project {
    border-left-color: #28a745;
}

.cognitive-science-project:hover {
    border-left-color: #1e7e34;
}

.virtual-reality-project {
    border-left-color: #6f42c1;
}

.virtual-reality-project:hover {
    border-left-color: #5a2d91;
}

.mobile-computing-project {
    border-left-color: #fd7e14;
}

.mobile-computing-project:hover {
    border-left-color: #e8650e;
}

.web-technologies-project {
    border-left-color: #20c997;
}

.web-technologies-project:hover {
    border-left-color: #1aa179;
}

/* Project Image */
.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 15px;
}

.project-status {
    display: flex;
    gap: 10px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #28a745;
    color: white;
}

.status-badge.completed {
    background: #6c757d;
    color: white;
}

.status-badge.ongoing {
    background: #ffc107;
    color: #212529;
}

/* Project Content */
.project-content {
    padding: 25px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-category {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-date {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-description {
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Project Technologies */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Project Team */
.project-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.team-info,
.team-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.team-info i,
.team-size i {
    color: #007bff;
}

/* Project Actions */
.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #0056b3;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(3px);
}

.demo-link,
.github-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.demo-link:hover {
    color: #28a745;
}

.github-link:hover {
    color: #333;
}

/* Project Showcase */
.project-showcase-area {
    position: relative;
    background-attachment: fixed;
}

.project-showcase-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.project-showcase-area .container {
    position: relative;
    z-index: 2;
}

.showcase-content {
    padding-right: 30px;
}

.showcase-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.showcase-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.showcase-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.feature-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.showcase-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.showcase-image {
    text-align: center;
}

.showcase-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Project Collaboration CTA */
.project-collaboration-cta {
    position: relative;
    background-attachment: fixed;
}

.project-collaboration-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.project-collaboration-cta .container {
    position: relative;
    z-index: 2;
}

/* Section Headers */
.section-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .showcase-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .showcase-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .showcase-title {
        font-size: 28px;
    }
    
    .project-team {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-card {
        padding: 25px 20px;
    }
    
    .showcase-features {
        gap: 10px;
    }
    
    .showcase-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-technologies {
        gap: 6px;
    }
    
    .tech-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .project-team {
        padding: 12px;
    }
    
    .team-info,
    .team-size {
        font-size: 12px;
    }
}

/* Loading and Error States */
.projects-loading {
    text-align: center;
    padding: 50px 0;
}

.projects-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.projects-error {
    text-align: center;
    padding: 50px 0;
    color: #dc3545;
}

.projects-error i {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Empty State */
.projects-empty {
    text-align: center;
    padding: 50px 0;
    color: #6c757d;
}

.projects-empty i {
    font-size: 48px;
    margin-bottom: 20px;
}