/* Enhanced project button styling and visibility */

/* Base Project Link Style - Always Visible */
.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 8px 15px;
    background-color: rgba(67, 97, 238, 0.85);
    border-radius: 30px;
    color: white !important;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 1 !important; /* Force visibility */
    transform: translateY(0) !important; /* Reset any transform */
    transition: all 0.3s ease;
    position: relative;
    bottom: 0;
    right: 0;
    z-index: 10;
    font-weight: 500;
    overflow: visible; /* Prevent text clipping */
    white-space: nowrap; /* Keep text on one line */
}

/* Icon within button */
.project-link i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

/* Normal State */
.project-link {
    transform: scale(1) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto;
}

/* Hover State - Slightly Enlarged */
.project-link:hover {
    background-color: rgba(67, 97, 238, 0.95);
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-link:hover i {
    transform: rotate(10deg);
}

/* Clicked/Expanded State - More Prominent */
.project-item.expanded .project-link {
    background-color: rgba(67, 97, 238, 1);
    transform: scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    padding: 10px 20px;
    letter-spacing: 0.02em;
}

/* Ensure text within button is not cut off */
.project-link {
    overflow: visible;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Override any competing styles */
.hover-rotate.project-link:hover {
    transform: scale(1.05) !important;
    rotate: 0deg !important;
}

/* Remove any animations that might be affecting the button */
.project-link {
    animation: none !important;
}

/* Improve overall project info layout */
.project-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

/* Position button at bottom of container */
.project-technologies {
    margin-bottom: 5px;
}

/* Make buttons visible regardless of project state */
.project-item .project-link {
    opacity: 1 !important;
    visibility: visible !important;
    width: auto;
    height: auto;
}

/* Make sure button doesn't disappear on mobile */
@media (max-width: 768px) {
    .project-link {
        padding: 8px 12px;
        min-width: 110px;
        font-size: 0.85rem;
    }
    
    .project-item.expanded .project-link {
        transform: scale(1.05) !important;
        padding: 8px 15px !important;
    }
}

/* Fix for Safari browsers */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .project-link {
            opacity: 1 !important;
            visibility: visible !important;
        }
    }
}
