/* Smooth hover animations */
.link-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
}

.link-card:active {
    transform: translateY(-1px) scale(0.99);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile tap animation */
@media (hover: none) and (pointer: coarse) {
    .link-card:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

/* Icon animation (This is on hover) */
.link-card:hover i {
    transform: scale(1.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-card i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slight animation for Profile Picture */
.profile-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Loading screen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(219, 52, 52, 0.1);
    border-top-color: #db3434;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth notification hover */
.notification-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-container:active {
    transform: scale(0.98);
}

/* Ripple effect */
.link-card {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}
