html {
    scroll-behavior: smooth;
}

/* Chat Widget Specific Styles */
.chat-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Manrope', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #3ef61e;
    /* Primary Neon Green */
    padding: 0;
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(62, 246, 30, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: none !important;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(62, 246, 30, 0.6);
}

.chat-window-box {
    width: 350px;
    height: 500px;
    background-color: #121811;
    /* Background Dark */
    border: 1px solid #2a3928;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.chat-window-box.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    visibility: visible;
}

.cw-header {
    background-color: #1a2319;
    padding: 16px;
    border-bottom: 1px solid #2a3928;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cw-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #121811;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cw-input-area {
    padding: 12px;
    background-color: #1a2319;
    border-top: 1px solid #2a3928;
    display: flex;
    gap: 8px;
}

.cw-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.cw-message.user {
    background-color: #3ef61e;
    color: black;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.cw-message.ai {
    background-color: #2a3928;
    color: white;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

/* Interactive Options styles */
.cw-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.cw-option {
    background: transparent;
    border: 1px solid #3ef61e;
    color: #3ef61e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cw-option:hover {
    background: #3ef61e;
    color: #000;
}


.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 2px;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Scrollbar for chat */
.cw-messages::-webkit-scrollbar {
    width: 6px;
}

.cw-messages::-webkit-scrollbar-track {
    background: #121811;
}

.cw-messages::-webkit-scrollbar-thumb {
    background: #2a3928;
    border-radius: 3px;
}

/* =========================================
   Page Transitions
   ========================================= */

/* Default state: Page enters with this animation */
body {
    animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Exit state: Added by JS before navigation */
body.page-exiting {
    animation: pageFadeOut 0.4s ease-in forwards;
    pointer-events: none;
    /* Prevent double clicks */
}

@keyframes pageFadeOut {
    to {
        opacity: 0;
    }
}

/* =========================================
   Neon Scan Animation
   ========================================= */
@keyframes scan {
    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

/* =========================================
   Trust Carousel Animation
   ========================================= */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}