/* Entrance Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatIcon {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Apply staggered entrance animations */
.banner-container {
    animation: fadeInDown 0.8s ease-out;
}

.profile-img {
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

.profile-section h1 {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.profile-section .subtitle {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.link-card {
    animation: fadeInUp 0.6s ease-out both;
}

/* Staggered animation for links (assuming 1st is featured) */
.links-section .link-card:nth-child(1) { animation-delay: 0.6s; }
.links-section .link-card:nth-child(2) { animation-delay: 0.7s; }
.links-section .link-card:nth-child(3) { animation-delay: 0.8s; }

.social-icon {
    animation: scaleIn 0.5s ease-out both;
}

.social-section .social-icon:nth-child(1) { animation-delay: 0.8s; }
.social-section .social-icon:nth-child(2) { animation-delay: 0.9s; }

footer {
    animation: fadeInUp 0.8s ease-out 1s both;
}

/* Hover/Micro animations */
.link-card.featured .link-icon {
    animation: floatIcon 3s ease-in-out infinite;
}

.link-card.featured:hover .link-icon {
    animation-play-state: paused;
}

.social-icon:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Shimmer reflection effect on card hove r*/
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s;
    z-index: 0;
}

.link-card:hover::before {
    left: 150%;
}

.link-content, .link-icon {
    position: relative;
    z-index: 1;
}


