/* Button ripple effect for enhanced user feedback */

/* Base setup for ripple effect */
.project-link {
    overflow: hidden; /* Keep ripple contained */
    position: relative; /* Required for positioning the ripple */
}

/* Button ripple effect */
.button-ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.8s linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced button clicked state */
.button-clicked {
    transform: scale(1.1) !important;
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.5) !important;
    background-color: rgba(var(--primary-color-rgb), 1) !important;
}

/* Prevent text selection during click */
.project-link, 
.project-link * {
    user-select: none;
}

/* Enhanced focus state for accessibility */
.project-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Make sure button clicks always register visually even if button is partially obstructed */
.project-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}
