/* Multi-Language Display Styles - Cyberpunk Edition */

.primary-languages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-right: 10px;
}

.primary-language {
    display: flex;
    align-items: center;
    color: #fff !important;
    font-family: 'Courier New', monospace !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Make language dot glow */
.language-color {
    width: 8px !important;
    height: 8px !important;
    margin-right: 6px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 5px currentColor !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Add hover animation */
.primary-language:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}

/* Create cyberpunk glitch effect on hover */
.primary-language:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 243, 255, 0.3), 
        rgba(255, 0, 170, 0.3), 
        rgba(188, 19, 254, 0.3));
    opacity: 0;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.primary-language:hover:after {
    opacity: 1;
    animation: cyber-glitch-scan 0.6s ease-in-out;
}

@keyframes cyber-glitch-scan {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%);
        filter: hue-rotate(0deg);
    }
    25% {
        clip-path: polygon(0 0, 100% 0, 100% 25%, 0 25%);
        filter: hue-rotate(90deg);
    }
    50% {
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
        filter: hue-rotate(180deg);
    }
    75% {
        clip-path: polygon(0 0, 100% 0, 100% 75%, 0 75%);
        filter: hue-rotate(270deg);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: hue-rotate(360deg);
    }
}

/* Make languages wrap neatly */
@media (max-width: 576px) {
    .project-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .primary-languages {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .view-project-btn {
        margin: 0 auto;
    }
}
