/* Project / Academic Modal Styles - Warm Light Beige Aesthetic */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(44, 36, 30, 0.45);
    padding: 20px;
    box-sizing: border-box;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background-color: #ffffff;
    border: 1px solid #e8e0d5;
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding: 36px 32px;
    box-shadow: 0 25px 60px rgba(44, 36, 30, 0.25);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.project-modal.active .project-modal-content {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f4efe6;
    border: 1px solid #e8e0d5;
    color: #5f5245;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.project-modal-close:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.project-modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e0d5;
    padding-bottom: 18px;
}

#modal-project-title {
    margin: 10px 0 6px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    color: #1f1915;
    line-height: 1.4;
    font-weight: 700;
}

.modal-academic-authors {
    font-size: 0.92rem;
    color: #5f5245;
    margin-bottom: 4px;
}

.modal-academic-venue {
    font-size: 0.9rem;
    color: #7c5335;
    font-weight: 500;
}

.project-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #2c241e;
}

.modal-abstract-box {
    background: #f4efe6;
    border: 1px solid #e8e0d5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.modal-section-heading {
    font-size: 0.9rem;
    color: #7c5335;
    margin: 0 0 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-abstract-text {
    font-size: 0.94rem;
    color: #2c241e;
    line-height: 1.75;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .modal-meta-grid {
        grid-template-columns: 1fr;
    }
}

.modal-meta-item {
    background: #f4efe6;
    border: 1px solid #e8e0d5;
    padding: 12px 16px;
    border-radius: 8px;
}

.modal-meta-label {
    display: block;
    font-size: 0.72rem;
    color: #8c7e72;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.modal-meta-value {
    font-size: 0.9rem;
    color: #1f1915;
    font-weight: 600;
}

.project-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
