/* Navbar */

#navbar {
    transition: background-color 0.5s, color 0.5s;
}

.nav-link {
    transition: color 0.5s;
}

#mobile-menu {
    transition: max-height 0.5s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 20rem;
    /* Adjust as needed */
}

/* Underline Animation */

@keyframes underline-in {
    from {
        width: 0;
        left: 0;
    }

    to {
        width: 100%;
        left: 0;
    }
}

@keyframes underline-out {
    from {
        width: 100%;
        left: 0;
    }

    to {
        width: 0;
        left: 100%;
    }
}

.underline-animate {
    position: relative;
    display: inline-block;
}

.underline-animate::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.2s ease, left 0.2s ease;
}

.underline-animate:hover::after {
    animation: underline-in 0.2s forwards;
}

.underline-animate:not(:hover)::after {
    animation: underline-out 0.2s forwards;
}

/* Carusel */
