.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #000;
    border: 1px solid var(--border);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.wide-modal {
    max-width: 1100px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

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

.modal-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #111;
    border: 1px dashed var(--text-dim);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dim);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

#modal-title {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1rem;
}

#modal-desc {
    color: var(--text-main);
    line-height: 1.6;
}

.modal-header {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.clickable-label {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 5px;
    transition: all 0.2s;
    display: inline-block;
}

.clickable-label:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px var(--accent);
}

.card {
    cursor: pointer;
}

#project-modal {
    z-index: 10010;
}