/* ===== MODERN SECTION TAG STYLES ===== */

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    color: white;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(52, 152, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gradientShift 8s ease infinite, fadeIn 0.8s forwards;
    opacity: 1;
    transform: translateY(0);
    text-align: center;
    margin-left: 2rem;
    margin-right: auto;
    max-width: fit-content;
}

.section-tag::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 255, 0.4);
}

.section-tag:hover::after {
    opacity: 1;
}

/* Animation for gradient shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation for fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override the existing animation classes */
.section-tag.animate-header {
    animation: gradientShift 8s ease infinite, fadeIn 0.8s forwards;
}