/* Project card component styles */

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Makes it a square */
    border-radius: 0%; /* Start square */
    transition: border-radius 0.6s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: none;
}

.project-card.show {
    display: block;
}

.project-card:hover {
    border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%; /* Irregular circle blob */
    animation: blobMorph 4s infinite ease-in-out 0.6s;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius: inherit;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-family: Baron, sans-serif;
    margin: 0;
    font-size: 1.5rem;
}

.project-overlay p {
    font-family: Santanelli, sans-serif;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.project-overlay h5 {
    font-family: Rampung, sans-serif;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.project-overlay .hover-text {
    font-size: 1rem;
    font-family: Nexa-Bold, sans-serif;
    opacity: 0;
    max-height: 0; /* Hide the text initially */
    transition: opacity 0.3s ease, max-height 0.3s ease;
    margin-top: 1rem;
}

.project-card:hover .project-overlay .hover-text {
    opacity: 1;
    max-height: 100px; /* Allow some space for the text */
}

@keyframes blobMorph {
    0% {
        border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
    }
    33% {
        border-radius: 60% 45% 50% 55% / 50% 55% 45% 60%;
    }
    66% {
        border-radius: 55% 50% 45% 60% / 60% 45% 55% 50%;
    }
    100% {
        border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
    }
}