/* Custom Styles for Alex Lafuente Portfolio */

/* Grayscale to Color Hover Effect */
.grayscale-hover {
    filter: grayscale(100%);
    transition: filter 0.5s ease-in-out;
}

.grayscale-hover:hover {
    filter: grayscale(0%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay for staggered animations */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: black;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Estilo para el botón principal con borde animado */
.btn-animated-border {
    position: relative;
    z-index: 1;
}

/* La línea (el pseudoelemento ::after) */
.btn-animated-border::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease-in-out;
    z-index: -1;
}

/* Al pasar el ratón, la línea aparece */
.btn-animated-border:hover::after {
    width: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Modal custom styles */
#carouselModal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Image transition in modal */
#carouselImage {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-out;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom CSS para una animación más lenta */
@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-slow-spin {
    animation: slow-spin 22s linear infinite;
}