.main-content {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.projects-container {
    display: flex;
    gap: 2rem; /* Consistent gap */
    padding: 2rem 1rem; /* Consistent padding */
    max-width: 1600px;
    margin: 0 auto;
    min-height: auto;
    justify-content: center;
}

.description-section {
    flex: 0 0 500px;
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95); /* Consistent background */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Consistent border */
}

.description-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.description-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #334155;
    margin: 2rem 0 1rem;
}

.description-section p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.description-section ul {
    margin-bottom: 2rem;
}

.description-section li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.description-section strong {
    color: #1e293b;
    font-weight: 600;
}

.projects-grid {
    flex: 1;
    padding: 1rem;
    max-width: 1000px;
    margin: 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.95); /* Consistent background */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(241, 245, 249, 0.3); /* Consistent border */
    position: relative;
    overflow: hidden;
    min-width: 100%;
    max-width: none;
    margin-bottom: 0.5rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opensource-badge {
    color: #8b5cf6;
    display: inline-flex;
    align-items: center;
}

.project-description {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.tech-tag {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b5cf6;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #6d28d9;
}

.dark .description-section,
.dark .project-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.dark .project-title {
    color: #f8fafc;
}

.dark .project-description {
    color: #94a3b8;
}

.dark .tech-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.dark .project-link {
    color: #8b5cf6;
}

.dark .project-link:hover {
    color: #a78bfa;
}

.dark .description-section h1 {
    color: #f1f5f9;
}

.dark .description-section h2 {
    color: #e2e8f0;
}

.dark .description-section p,
.dark .description-section li {
    color: #cbd5e1;
}

.dark .description-section strong {
    color: #f8fafc;
}

.dark .opensource-badge {
    color: #8b5cf6;
}

@media (max-width: 1400px) {
    .projects-container {
        max-width: 1200px;
    }
    
    .description-section {
        flex: 0 0 400px;
    }
}

@media (max-width: 1024px) {
    .projects-container {
        flex-direction: column;
    }

    .description-section {
        position: static;
        flex: none;
    }
}

@media (max-width: 768px) {
    .projects-container {
        padding: 1rem;
    }

    .description-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem;
        min-width: 100%;
    }

    .description-section h1 {
        font-size: 2rem;
    }

    .description-section h2 {
        font-size: 1.5rem;
    }
}
