:root {
    --primary-neon: #FCC800;
    /* Neon Gold */
    --accent-teal: #00A4D8;
    /* Bright Teal */
    --bg-dark: #1a1a1a;
    --text-white: #f0f0f0;
    --message-bot-bg: #333;
    --message-user-bg: #00A4D8;
    --font-main: "Zen Kaku Gothic New", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #2a2a2a;
    color: var(--text-white);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Backgrounds */
.bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/concrete_bg.png');
    background-repeat: repeat;
    opacity: 0.5;
    z-index: -2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

/* Chat Main Container */
.chat-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    /* Full height on mobile */
    max-height: 800px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

@media (min-width: 600px) {
    .chat-container {
        height: 90vh;
        border-radius: 20px;
    }
}

/* Header */
.chat-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 10px rgba(252, 200, 0, 0.3);
}

.bot-avatar img {
    width: 20px;
    height: auto;
}

.bot-info {
    display: flex;
    flex-direction: column;
}

.bot-name {
    font-weight: 700;
    color: var(--primary-neon);
    letter-spacing: 0.05em;
}

.bot-status {
    font-size: 0.75rem;
    color: #888;
}

.bot-status::before {
    content: '●';
    color: #4CAF50;
    margin-right: 4px;
}

/* Chat Area */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 3px;
}

/* Message Bubbles */
.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    animation: fadeIn 0.3s ease;
    word-wrap: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message.bot {
    align-self: flex-start;
    background: var(--message-bot-bg);
    border-bottom-left-radius: 4px;
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.user {
    align-self: flex-end;
    background: var(--message-user-bg);
    border-bottom-right-radius: 4px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 164, 216, 0.3);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    max-width: 60px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

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

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

@keyframes bounce {

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

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

/* Controls / Options */
.chat-controls {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.option-btn {
    background: transparent;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.option-btn:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 15px rgba(252, 200, 0, 0.4);
}

.option-btn:active {
    transform: scale(0.95);
}

/* Overlay for CTA */
.zoom-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.zoom-cta-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zoom-card {
    background: #1a1a1a;
    border: 2px solid var(--accent-teal);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 350px;
    box-shadow: 0 0 30px rgba(0, 164, 216, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.zoom-cta-overlay.active .zoom-card {
    transform: scale(1);
}

.zoom-icon {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

.zoom-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.zoom-card p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.zoom-btn {
    display: inline-block;
    background: var(--accent-teal);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 164, 216, 0.4);
    width: 100%;
}

.zoom-btn:hover {
    background: #008cb8;
    transform: translateY(-2px);
}

.close-zoom {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.close-zoom:hover {
    color: #fff;
}