.project-card {
    display: flex;
    flex-wrap: wrap;
    height: min-content;
    gap: 0.5rem;
    background-color: var(--box);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition: 0.5s;
}
.project-card.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}
.project-card:hover {
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2), 0px 2px 6px rgba(0, 0, 0, 0.1);
}
.project-card:hover .project-card-img img {
    transform: scale(1.2);
}

.project-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;

}
.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    border-radius: 0.75rem 0.75rem 0 0;
}
.project-card-title {
    color: var(--white);
    font-weight: bold;
    height: 3rem;
    padding: 0 0.5rem 0 0.5rem;
}
.project-card .project-card-btns {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--background);
    padding: 0.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
}
.project-card .project-card-btns a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem;
    color: var(--white);
    z-index: 1;
    background-color: var(--box);
}
.project-card .project-card-btns a:hover {
    color: var(--primary);
}
.project-card .project-card-btns a::after {
    content: "";
    width: calc(100%);
    height: 100%;
    transform: skew(30deg);
    background-color: var(--box);
    position: absolute;
    border-radius: 0.5rem;
    z-index: -1;

}
.download-btn {
    width: calc(60%);
    border-radius: 0.5rem 50% 0 0.5rem;
}
.view-btn {
    width: calc(40% - 1.5rem);
    border-radius: 0 0.5rem 0.5rem 50%;
}
.download-btn::after {
    left: 0.5rem;
}
.view-btn::after {
    right: 0.5rem
}
/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    border-radius: 1rem;
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px dashed var(--primary);
    width: 500px;
    max-height: 400px;
    line-height: 1.5;
    border-radius: 0.75rem;
    opacity: 0; 
    transform: scale(0.7); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: var(--background);
    padding-bottom: 1rem;
}
.modal-content.show {
    opacity: 1;
    transform: scale(1);
}
.modal-content.hide {
    opacity: 0;
    transform: scale(0.7);
}
.modal-content-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--box);
    padding: 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
}
.modal-content-body {
    width: 100;
    height: 100%;
    padding: 1rem 1rem 0 1rem;
    overflow: scroll;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.modal-content h2 {
    color: var(--white);
}
.modal-content-header h2 {
    color: var(--primary);
}
