.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-nav {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #7C3AED;
}

.back-arrow {
    margin-right: 0.5rem;
}

.project-header {
    margin-bottom: 2rem;
}

.project-title {
    font-size: 2.5rem;
    color: #1F2937;
    margin-bottom: 1rem;
}

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

.project-links a {
    padding: 0.5rem 1rem;
    background-color: #8B5CF6;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.project-links a:hover {
    background-color: #7C3AED;
}

.project-description {
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4B5563;
}

.project-gallery {
    margin-bottom: 3rem;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gallery-img {
    max-width: 300px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.gallery-desc {
    flex: 1;
    font-size: 1.1rem;
    color: var(--color-text);
    background: rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-height: 120px;
    outline: none;
}

.project-technologies {
    margin-bottom: 3rem;
}

.project-technologies h2 {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 1rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-item {
    padding: 0.5rem 1rem;
    background-color: #F3F4F6;
    color: #4B5563;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background-color: #FEE2E2;
    border-radius: 0.5rem;
    color: #DC2626;
}

.error-message h2 {
    margin-bottom: 1rem;
}

.error-message .back-button {
    display: inline-block;
    margin-top: 1rem;
}

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

    .project-title {
        font-size: 2rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .gallery-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .gallery-img {
        max-width: 100%;
    }
    .gallery-desc {
        width: 100%;
    }
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--color-accent);
} 