@charset "UTF-8";

/* DESCRIPTION ANIMATION */
#description::after {
    content: "|";
    animation: blink 0.6s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* NAVBAR BUTTONS ANIMATION */
.navbar a:hover {
    color: var(--accent-primary);
    background-color: rgba(32, 226, 200, 0.08);
    box-shadow: 0 0 12px rgba(32, 226, 200, 0.2);
    transform: translateY(-2px);
}

/* SCROLL PROGRESS BAR */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), #00ffcc);
    box-shadow: 0 0 10px var(--accent-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* SKILLS MARQUEE */
.skills-rail {
    overflow: hidden;
    padding: 25px 0 10px 0;

    mask-image: linear-gradient(
        to right,
        transparent,
        white 10%,
        white 90%,
        transparent
    );
}

.skills-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.track-left {
    animation: scroll-left 30s linear infinite;
}

.track-right {
    margin: 50px 0 0 0;
    animation: scroll-right 30s linear infinite;
}

.skills-group {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    padding-right: clamp(2rem, 5vw, 6rem);
}

.skills-icon {
    width: clamp(40px, 5vw, 60px);
    object-fit: contain;
    flex-shrink: 0;
    transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

.projects_cont a:hover {
    text-decoration: underline;
}

/* SKILLS ANIMATION */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* NAVBAR ACTIVE SECTION ANIMATION */
.navbar a.active {
    color: var(--accent-primary);
    background-color: rgba(32, 226, 200, 0.12);
    border-color: rgba(32, 226, 200, 0.3);
    box-shadow: 0 0 15px rgba(32, 226, 200, 0.25);
}

/* FORM TOAST ANIMATION */
#form-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* LINKS ANIMATION */
a, .linksicons {
    transition: all 0.3s ease;
}

/* LINKS ICONS ANIMATION */
.linksicons:hover {
    transform: scale(1.1);
}

/* PROYECTS BUTTON */
@keyframes reveal {

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* BADGES HOVER */
.badges-card:hover {
    transform: translateY(-3px) scale(1.03);
}

/* HOVERS */
.contacts:hover,
.messages a:hover,
.project_footer a:hover,
.badges-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}