.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 10px 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    background: transparent;
    transition: background 0.3s ease;
}

.navbar-shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: 40px;
    margin-right: 10px;
    background-image: url('../images/branding/logo/logo-dark-icon-transparent.png');
    background-size: contain;
    background-position: center;
}

.logo-text {
    font-family: "Geist", sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-black);

    text-transform: uppercase;
}

.logo-text-ai {
    font-family: "Geist", sans-serif;
    font-weight: 200;
    /* font-style: italic; */
}

.navbar-right {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 15px;
    font-size: .8rem;
    color: var(--text-black);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.nav-item:hover {
    color: var(--black);
    font-weight: 600;
}

.light-section-nav {
    background: var(--white);
}

.dark-section-nav {
    background: var(--black);
}

.dark-section-nav .nav-item {
    color: var(--white);
}

.dark-section-nav .logo-image {
    background-image: url('../images/branding/logo/logo-light-icon-transparent.png');
}

.dark-section-nav .logo-text {
    color: var(--white);
}

.dark-section-nav .nav-item::after {
    background-color: var(--text-grey);
    /* Underline hover color for dark sections */
}

.strend-section-nav {
    background: transparent;
    box-shadow: none;
}

@media (max-width: 768px) {
    .navbar-right {
        display: none;
    }

    #mobileNav {
        display: flex !important;
    }
}

#mobileNav {
    z-index: 1000;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--black);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#mobileNav span {
    transition: opacity 0.3s ease;
}

#mobileNav.open {
    animation: stretch 1s forwards;
}

#mobileNav.open span {
    opacity: 0;
}

#mobileNav.closed {
    animation: stretch 1s reverse forwards;
}

.mobile-nav-items-wrapper {
    display: none;
    opacity: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

.mobile-nav-item {
    display: block;
    opacity: 0;
    padding: 10px 20px;
    font-size: 1.2rem;
    color: var(--white);
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.3s ease;
    animation: none;
    text-decoration: none;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes stretch {
    0% {
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }

    25% {
        border-radius: 0;
    }

    50% {
        width: 100vw;
        height: 50px;
        bottom: 0;
    }

    100% {
        border-radius: 0;
        width: 100vw;
        height: 100vh;
        bottom: 0;
    }
}
