/* Floating animations */
@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) translateX(-10px) rotate(-3deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(10px) translateX(5px) scale(1.05);
    }
}

@keyframes float-4 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

@keyframes float-5 {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

@keyframes float-6 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

:root {
    --animation-play-state: running;
}

/* Ensure scroll behavior is always smooth */
html {
    scroll-behavior: smooth;
}

.metadata-pic {
    border-radius: 50%;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    animation-play-state: var(--animation-play-state, running);
}

.floating-element.hidden {
    opacity: 0;
    transform: scale(0.8);
}

.gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #0ea5e9;
    display: inline-block;
    position: relative;
}

.gradient-text::selection {
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.dark .gradient-text {
    background: none;
    -webkit-text-fill-color: #60a5fa;
    /* Color sólido en modo oscuro */
    color: #60a5fa;
}

/* Asegurar que el texto sea visible en navegadores antiguos */
@supports not (background-clip: text) {
    .gradient-text {
        background: transparent;
        color: #0ea5e9;
    }

    .dark .gradient-text {
        color: #60a5fa;
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .glass-effect {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

h1,
h2,
h3 {
    position: relative;
    z-index: 10;
}

.tag {
    background-color: #026594;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: x-small;
    box-shadow: 2px 2px 2px 1px rgba(141, 141, 141, 0.2);
}

.tag:hover {
    background-color: #4f46e5;
    cursor: default;
    transform: scale(1.04);
    box-shadow: 2px 2px 2px 1px rgba(245, 243, 243, 0.2);
}