.animate-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden
}

.animate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, color-mix(in srgb, var(--accent-primary) 10%, transparent), transparent);
    transition: left 0.6s ease;
    pointer-events: none
}

.animate-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-color), 0 0 20px var(--glow-color);
    border-color: var(--accent-primary)
}

.animate-card:hover::before {
    left: 100%
}

.animate-card:hover h3 {
    color: var(--accent-primary);
    transform: translateX(5px)
}

.animate-card h3 {
    transition: all 0.3s ease
}

.animate-card:hover h2 {
    color: var(--accent-secondary);
    transform: translateX(5px)
}

.animate-card h2 {
    transition: all 0.3s ease
}

.animate-card:active {
    transform: translateY(-4px) scale(1.01)
}

.twitter-tweet {
    transform: translateY(0) rotate(0deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden
}

.twitter-tweet::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( -90deg, transparent, color-mix(in srgb, var(--accent-primary) 10%, transparent), transparent);
    transition: right 0.5s ease;
    pointer-events: none
}

.twitter-tweet:hover {
    transform: translateY(-5px) rotate(1deg) scale(1.03);
    box-shadow: 0 10px 20px var(--shadow-color), 0 0 15px var(--glow-color);
    border-color: var(--accent-primary)
}

.twitter-tweet:hover::after {
    right: 100%
}

.animate-card,
.twitter-tweet {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards
}

.animate-card:nth-child(1) {
    animation-delay: 0.1s
}

.animate-card:nth-child(2) {
    animation-delay: 0.2s
}

.animate-card:nth-child(3) {
    animation-delay: 0.3s
}

.animate-card:nth-child(4) {
    animation-delay: 0.4s
}

.twitter-tweet:nth-child(1) {
    animation-delay: 0.2s
}

.twitter-tweet:nth-child(2) {
    animation-delay: 0.3s
}

.twitter-tweet:nth-child(3) {
    animation-delay: 0.4s
}

.twitter-tweet:nth-child(4) {
    animation-delay: 0.5s
}

.twitter-tweet:nth-child(5) {
    animation-delay: 0.6s
}

.twitter-tweet:nth-child(6) {
    animation-delay: 0.7s
}

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

.animate-card:focus-within {
    animation: pulseGlow 2s infinite
}

.social-icon {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0
}

.social-icon:hover {
    fill: var(--accent-primary);
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px var(--accent-primary))
}

.social-icon:hover::before {
    width: 150%;
    height: 150%;
    opacity: 0.2
}

.social-icon:active {
    transform: scale(1.1) rotate(0deg)
}

.social-icon:nth-child(1) {
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: 0s
}

.social-icon:nth-child(2) {
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: 0.2s
}

.social-icon:nth-child(3) {
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: 0.4s
}

.social-icon:nth-child(4) {
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: 0.6s
}

.social-icon:nth-child(5) {
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: 0.8s
}

.social-icon:nth-child(6) {
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: 1s
}

.social-icon:nth-child(7) {
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: 1.2s
}

@keyframes socialFloat {
    0%,
    100% {
        transform: translateY(0px)
    }
    50% {
        transform: translateY(-3px)
    }
}

.social-links {
    animation: socialFadeIn 0.8s ease-out
}

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

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 2px 8px var(--shadow-color)
    }
    50% {
        box-shadow: 0 2px 8px var(--shadow-color), 0 0 20px var(--glow-color)
    }
}

@media (max-width:900px) {
    .animate-card:hover,
    .twitter-tweet:hover {
        transform: translateY(-3px) scale(1.01)
    }
    .animate-card:active,
    .twitter-tweet:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease
    }
}

@supports not (background:color-mix(in srgb, red, blue)) {
    .animate-card::before {
        background: linear-gradient( 90deg, transparent, var(--accent-primary), transparent);
        opacity: 0.1
    }
    .twitter-tweet::after {
        background: linear-gradient( -90deg, transparent, var(--accent-primary), transparent);
        opacity: 0.1
    }
}