@keyframes latent-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
}

#julia-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Outfit', sans-serif;
}

#chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37, #AA8439);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: latent-pulse 3s infinite ease-in-out;
}

#chat-bubble:hover {
    transform: scale(1.1);
}

#chat-bubble img {
    width: 35px;
    height: 35px;
}

#chat-window {
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#chat-header {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header span {
    color: #D4AF37;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

#close-chat {
    cursor: pointer;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.7;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 85%;
}

.bot-msg {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#chat-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    color: #fff;
    outline: none;
    font-size: 0.85rem;
}

#chat-input:focus {
    border-color: #D4AF37;
}

#send-msg {
    background: #D4AF37;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}