/* Keyframes */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #fff 0%, #888 50%, #fff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s linear infinite;
}

/* Card Glow */
.card-glow {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow:hover {
    transform: translateY(-2px);
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 80%
    );
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0.75rem;
}

.card-glow:hover::before {
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 80%
    );
}

.card-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-glow:hover::after {
    opacity: 1;
}

/* Floating */
.floating {
    animation: float 6s ease-in-out infinite;
}

/* Hover Underline */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* External Link */
.external-link {
    position: absolute;
    bottom: 6px;
    right: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group:hover .external-link {
    opacity: 0.4;
}
