html {
    scroll-behavior: smooth;
}

#lightbox {
    animation: fadeIn 0.3s ease-in-out;
}

#lightbox.closing {
    animation: fadeOut 0.3s ease-in-out;
}

#lightbox-img {
    animation: zoomIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

@keyframes animate-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: animate-fade-in-up 0.8s ease-out forwards;
}

.scroll-target {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-target.visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s forwards;
    --tw-text-opacity: 1;
    color: rgb(203 213 225 / var(--tw-text-opacity));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.mobile-nav-link:hover {
    --tw-text-opacity: 1;
    color: rgb(34 211 238 / var(--tw-text-opacity));
}


@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu a:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu a:nth-child(2) { animation-delay: 0.2s; }
#mobile-menu a:nth-child(3) { animation-delay: 0.3s; }
#mobile-menu a:nth-child(4) { animation-delay: 0.4s; }
#mobile-menu a:nth-child(5) { animation-delay: 0.5s; }