﻿@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.gradient-link {
    position: relative;
    display: inline-block;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    color: #eee;
    text-decoration: none;
    overflow: hidden; /* Keeps the animated border contained */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* The animated gradient border */
.gradient-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-bg, conic-gradient(from 180deg at 50% 50%, #1d72f2, #21c5f5, #b339f2, #f21d8f, #1d72f2));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.gradient-link > * {
    position: relative;
    z-index: 2;
}

.gradient-link::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 10px;
    z-index: 1;
}

.gradient-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gradient-link:hover::before {
    opacity: 1;
    animation: rotate-gradient 4s linear infinite;
}

.logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.text-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
}

.fa-arrow-down {
    margin-right: 8px;
    font-size: 18px;
}
