/* Project Details Dialog */
.project-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-dialog {
    background: white;
    width: 95%;
    max-width: 1000px;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-dialog-open {
    display: flex;
    opacity: 1;
}

.project-dialog-open .project-dialog {
    transform: scale(1);
    opacity: 1;
}

.project-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.2s ease;
}

.project-dialog-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.project-dialog-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-dialog-info h2 {
    color: var(--theme-color);
    margin-bottom: 1rem;
}

.project-dialog-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-dialog-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-dialog .project-buttons {
    margin-top: 3rem;
}

.project-dialog-credits {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.project-dialog-credits p {
    margin: 0.5rem 0;
    white-space: nowrap;
}

.project-dialog-credits a {
    color: var(--theme-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.project-dialog-credits a:hover {
    text-decoration: underline;
}

.project-dialog-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-dialog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 768px) {
    .project-dialog-content {
        grid-template-columns: 1fr;
    }
    
    .project-dialog {
        padding: 2rem;
        margin: 1rem;
        width: 100%;
    }
    
    .project-dialog-image {
        order: -1;
    }
}
