/* Modal component styles */

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.project-modal h2 {
    font-family: Baron, sans-serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.project-modal h3 {
    font-size: 1.5rem;
    margin-top: -0.5rem;
    text-align: center;
    color: #7fbddc;
    font-family: 'Santanelli';
}

.project-modal h4 {
    font-size: 1.2rem;
    margin-top: -0.5rem;
    text-align: center;
    padding-left: 15vw;
    padding-right: 15vw;
    color: #b8e2f8;
    font-family: 'Nexa-Light';
}

.project-modal h5 {
    font-family: Rampung, sans-serif;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
    color: #527c91;
}

.project-modal p {
    font-size: larger;
    font-family: 'nexa-bold'
}

.project-modal.hidden {
    display: none;
}

.project-modal-content {
    background: #181e4a;
    border-radius: 1rem;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.project-modal-content::-webkit-scrollbar {
    width: 0.4rem;
}

.project-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}