/* Project Card Component - v2.0 - Updated shapes */

.project-card {
    position: relative;
    border-radius: 0;
    overflow: visible;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    transition: transform var(--transition-normal);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-15px);
    filter: brightness(1.05);
    text-decoration: none;
    color: inherit;
}

.project-card:visited {
    color: inherit;
    text-decoration: none;
}

.project-card__content {
    position: relative;
    z-index: 3;
    color: var(--color-text);
    text-align: center;
    width: 100%;
    margin-top: 70%;
}

.project-card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}


/* Project images positioned on shapes */
.project-card__image {
    position: absolute;
    z-index: 2;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-card__image {
    transform: translateY(-10px) scale(1.05);
}

/* Specific hover animation for TOTUM tablet */
.project-card--totum:hover .project-card__image {
    transform: translateX(-50%) translateY(-40px) scale(1.05);
}

/* Specific hover animation for VERVY console */
.project-card--vervy:hover .project-card__image {
    transform: translateX(-50%) translateY(-40px) scale(1.05);
}

/* Specific hover animation for NAMI character */
.project-card--nami:hover .project-card__image {
    transform: translateX(-50%) translateY(-40px) scale(1.05);
}

/* Hover images that appear on hover */
.project-card__hover-image {
    position: absolute;
    z-index: 2;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: none;
    transform: translateY(0);
}

.project-card:hover .project-card__hover-image {
    opacity: 1;
}

/* Specific positioning for TOTUM hover images */
.project-card__hover-image--totum-left {
    bottom: 10%;
    left: 5%;
}

.project-card__hover-image--totum-right {
    bottom: 10%;
    right: 5%;
}

/* Animation for TOTUM hover images - diagonal movement down */
.project-card:hover .project-card__hover-image--totum-left {
    transform: translate(-5px, 8px);
}

.project-card:hover .project-card__hover-image--totum-right {
    transform: translate(5px, 8px);
}

/* Specific positioning for VERVY hover images */
.project-card__hover-image--vervy-left {
    bottom: 10%;
    left: 5%;
}

.project-card__hover-image--vervy-right {
    bottom: 10%;
    right: 5%;
}

/* Animation for VERVY hover images - diagonal movement down */
.project-card:hover .project-card__hover-image--vervy-left {
    transform: translate(-5px, 8px);
}

.project-card:hover .project-card__hover-image--vervy-right {
    transform: translate(5px, 8px);
}

/* Specific positioning for NAMI hover images */
.project-card__hover-image--nami-left {
    bottom: 10%;
    left: 5%;
}

.project-card__hover-image--nami-right {
    bottom: 10%;
    right: 5%;
}

/* Animation for NAMI hover images - diagonal movement down */
.project-card:hover .project-card__hover-image--nami-left {
    transform: translate(-5px, 8px);
}

.project-card:hover .project-card__hover-image--nami-right {
    transform: translate(5px, 8px);
}

/* Specific positioning for each project image */
.project-card--totum .project-card__image {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 180px;
    max-height: 180px;
}

.project-card--vervy .project-card__image {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 160px;
    max-height: 160px;
}

.project-card--nami .project-card__image {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 150px;
    max-height: 150px;
}

/* Project specific shapes and colors */
.project-card--totum {
    background-color: transparent !important;
    background-image: url('../../assets/images/homepage/projects-shapes-png/Shape_blue.png') !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
}

.project-card--vervy {
    background-color: transparent !important;
    background-image: url('../../assets/images/homepage/projects-shapes-png/Shape_green.png') !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
}

.project-card--nami {
    background-color: transparent !important;
    background-image: url('../../assets/images/homepage/projects-shapes-png/Shape_red.png') !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
}

/* Fallback removed - using PNG shapes only */

@media (max-width: 768px) {
    .project-card {
        min-height: 300px;
        padding: var(--spacing-lg);
    }
    
    .project-card__content {
        margin-top: 60%;
    }
    
    .project-card__image {
        max-width: 120px !important;
        max-height: 120px !important;
    }
    
    .project-card--totum .project-card__image {
        top: 12%;
        max-width: 140px;
        max-height: 140px;
    }
    
    .project-card--vervy .project-card__image {
        top: 8%;
        max-width: 120px;
        max-height: 120px;
    }
    
    .project-card--nami .project-card__image {
        top: 6%;
        max-width: 110px;
        max-height: 110px;
    }
}


