/* ========================================
   PROJECTS PAGE
   ======================================== */
.projects-header {
    padding-top: calc(70px + var(--spacing-2xl));
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

/* ========================================
   PROJECT CARDS
   ======================================== */
.project-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.project-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    width: fit-content;
}

.project-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.project-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.project-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.project-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.tech-tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.project-footer {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.project-link {
    flex: 1;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.project-link-primary {
    background-color: var(--primary-color);
    color: white;
}

.project-link-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.project-link-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.project-link-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ========================================
   PROJECT STATUS BADGES
   ======================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-active {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-active::before {
    background-color: #16a34a;
}

.status-development {
    background-color: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.status-development::before {
    background-color: #ca8a04;
}

.status-planning {
    background-color: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.status-planning::before {
    background-color: #9333ea;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-image {
        height: 150px;
        font-size: 3rem;
    }
    
    .project-footer {
        flex-direction: column;
    }
}