/* Demo content to show the page */
        .demo-content {
            text-align: center;
            padding: 40px 20px;
        }

        .demo-content h1 {
            font-size: 36px;
            color: #1e2a41;
            margin-bottom: 10px;
        }

        .demo-content h1 span {
            color: #00897b;
        }

        .demo-content p {
            font-size: 18px;
            color: #666;
        }

        /* ==========================================
           ASK AI BUTTON
        ========================================== */

        .ask-ai-btn {
            position: fixed;
            bottom: 25px;
            left: 25px;
            background: linear-gradient(135deg, #00897b, #00bfa5);
            color: #ffffff;
            border: none;
            padding: 14px 24px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 20px rgba(0, 137, 123, 0.4);
            z-index: 9999;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }

        .ask-ai-btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 6px 30px rgba(0, 137, 123, 0.5);
        }

        .ask-ai-btn i {
            font-size: 20px;
        }

        .ask-ai-btn .btn-badge {
            background: #ff6b6b;
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 10px;
            border-radius: 12px;
            margin-left: 4px;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 4px 20px rgba(0, 137, 123, 0.4);
            }
            50% {
                box-shadow: 0 4px 40px rgba(0, 137, 123, 0.7);
            }
            100% {
                box-shadow: 0 4px 20px rgba(0, 137, 123, 0.4);
            }
        }

        /* ==========================================
           CHAT OVERLAY
        ========================================== */

        .chat-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            z-index: 9998;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .chat-overlay.active {
            display: block;
            opacity: 1;
        }

        /* ==========================================
           CHAT CONTAINER (Bottom Right Popup)
        ========================================== */

        .chat-container {
            position: fixed;
            bottom: 95px;
            right: 25px;
            width: 380px;
            height: 550px;
            background: #ffffff;
            border-radius: 18px;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 9999;
            opacity: 0;
            transform: translateY(20px) scale(0.95);
            transition: all 0.3s ease;
        }

        .chat-container.active {
            display: flex;
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .chat-container.minimized {
            height: 60px;
            overflow: hidden;
        }

        .chat-container.minimized .chat-messages,
        .chat-container.minimized .chat-options,
        .chat-container.minimized .chat-input-area {
            display: none;
        }

        /* ==========================================
           CHAT HEADER
        ========================================== */

        .chat-header {
            background: linear-gradient(135deg, #00897b, #00bfa5);
            color: #ffffff;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .chat-header-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .chat-avatar {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .chat-header h4 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }

        .chat-status {
            margin: 0;
            font-size: 12px;
            opacity: 0.8;
        }

        .chat-header-actions {
            display: flex;
            gap: 6px;
        }

        .chat-minimize,
        .chat-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #ffffff;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chat-minimize:hover,
        .chat-close:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .chat-close:hover {
            transform: rotate(90deg);
        }

        /* ==========================================
           CHAT MESSAGES
        ========================================== */

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #f5f7fa;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-messages::-webkit-scrollbar {
            width: 5px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: #b2dfdb;
            border-radius: 10px;
        }

        /* Message Bubbles */
        .message {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 14px;
            line-height: 1.5;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.bot {
            background: #ffffff;
            color: #333;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        .message.bot .message-time {
            color: #999;
            font-size: 10px;
            margin-top: 5px;
            display: block;
        }

        .message.user {
            background: #00897b;
            color: #ffffff;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .message.user .message-time {
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            margin-top: 5px;
            display: block;
            text-align: right;
        }

        /* Typing Indicator */
        .typing-indicator {
            display: none;
            align-self: flex-start;
            background: #ffffff;
            padding: 12px 18px;
            border-radius: 16px;
            border-bottom-left-radius: 4px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            gap: 4px;
        }

        .typing-indicator.active {
            display: flex;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background: #b2dfdb;
            border-radius: 50%;
            animation: typingBounce 1.4s infinite ease-in-out;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typingBounce {
            0%,
            60%,
            100% {
                transform: translateY(0);
            }
            30% {
                transform: translateY(-8px);
            }
        }

        /* ==========================================
           QUICK REPLY OPTIONS
        ========================================== */

        .chat-options {
            padding: 12px 15px;
            background: #ffffff;
            border-top: 1px solid #e8ecf1;
            display: none;
            flex-wrap: wrap;
            gap: 8px;
            flex-shrink: 0;
            max-height: 150px;
            overflow-y: auto;
        }

        .chat-options.active {
            display: flex;
        }

        .chat-options::-webkit-scrollbar {
            width: 4px;
        }

        .chat-options::-webkit-scrollbar-thumb {
            background: #b2dfdb;
            border-radius: 10px;
        }

        .option-btn {
            padding: 8px 16px;
            border: 2px solid #00897b;
            background: transparent;
            color: #00897b;
            border-radius: 25px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .option-btn:hover {
            background: #00897b;
            color: #ffffff;
            transform: translateY(-2px);
        }

        .option-btn:active {
            transform: scale(0.95);
        }

        /* ==========================================
           CHAT INPUT AREA
        ========================================== */

        .chat-input-area {
            display: flex;
            padding: 12px 15px;
            background: #ffffff;
            border-top: 1px solid #e8ecf1;
            gap: 10px;
            flex-shrink: 0;
        }

        .chat-input {
            flex: 1;
            padding: 10px 16px;
            border: 2px solid #e8ecf1;
            border-radius: 25px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
            background: #f5f7fa;
        }

        .chat-input:focus {
            border-color: #00897b;
            background: #ffffff;
        }

        .chat-input::placeholder {
            color: #999;
        }

        .chat-send {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #00897b;
            color: #ffffff;
            border: none;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .chat-send:hover {
            background: #00695c;
            transform: scale(1.05);
        }

        .chat-send:active {
            transform: scale(0.95);
        }

        /* ==========================================
           RESPONSIVE - MOBILE
        ========================================== */

        @media (max-width: 480px) {
            /* Ask AI Button */
            .ask-ai-btn {
                bottom: 15px;
                right: 15px;
                padding: 12px 18px;
                font-size: 14px;
            }

            .ask-ai-btn i {
                font-size: 18px;
            }

            /* Chat container - full screen */
            .chat-container {
                bottom: 0;
                right: 0;
                width: 100%;
                height: 100%;
                border-radius: 0;
                max-height: 100vh;
            }

            .chat-overlay {
                display: none !important;
            }

            .chat-header {
                padding: 12px 15px;
                border-radius: 0;
            }

            .chat-header h4 {
                font-size: 15px;
            }

            .chat-messages {
                padding: 15px;
            }

            .message {
                max-width: 90%;
                font-size: 13px;
                padding: 10px 14px;
            }

            .chat-options {
                padding: 10px 12px;
                gap: 6px;
                max-height: 120px;
            }

            .option-btn {
                font-size: 12px;
                padding: 6px 14px;
            }

            .chat-input-area {
                padding: 10px 12px;
            }

            .chat-input {
                font-size: 13px;
                padding: 8px 14px;
            }

            .chat-send {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }

        /* Small phones */
        @media (max-width: 359px) {
            .ask-ai-btn {
                bottom: 10px;
                right: 10px;
                padding: 10px 14px;
                font-size: 12px;
            }

            .ask-ai-btn i {
                font-size: 14px;
            }

            .message {
                font-size: 12px;
                padding: 8px 12px;
                max-width: 95%;
            }

            .option-btn {
                font-size: 11px;
                padding: 5px 12px;
            }
        }

        /* Tablet */
        @media (min-width: 481px) and (max-width: 768px) {
            .chat-container {
                width: 90%;
                max-width: 380px;
                right: 5%;
                bottom: 85px;
            }
        }

        /* ==========================================
           REDUCED MOTION
        ========================================== */

        @media (prefers-reduced-motion: reduce) {
            .ask-ai-btn,
            .chat-container,
            .message,
            .option-btn,
            .chat-send,
            .chat-close,
            .chat-minimize {
                animation: none !important;
                transition: none !important;
            }
        }










































        .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #691105;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(105, 17, 5, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #8b1d0f;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px rgba(105, 17, 5, 0.5);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}