body { font-family: 'Inter', sans-serif; }
.glass { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); }
.chat-bubble-user { background-color: #3B82F6; color: white; border-radius: 18px 18px 0 18px; }
.chat-bubble-bot { background-color: #E5E7EB; color: #1F2937; border-radius: 18px 18px 18px 0; }
.fade-in { animation: fadeIn 0.5s ease-in forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
html { scroll-behavior: smooth; }

:root {
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-duration: 0.75s;
}

body {
    overflow-x: hidden;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
    z-index: 1001;
    transform-origin: left;
    transition: width 0.1s linear;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
}

[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

nav {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
nav.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    background-color: rgba(255, 255, 255, 0.94);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #scroll-progress { transition: none; }
}

/* Floating Chat Styles */
#chat-box {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}
#chat-btn {
    position: fixed;
    bottom: 20px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
    z-index: 1000;
    transition: transform 0.2s ease;
}
#chat-btn:hover { transform: scale(1.1); }
@media (max-width: 480px) {
    #chat-box {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
}