:root {
    --primary-red: #E01E26;
    --primary-blue: #004B93;
    --secondary-blue: #0066CC;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --bot-msg-bg: #F0F2F5;
    --user-msg-bg: #004B93;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.logo {
    height: 50px;
    object-fit: contain;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 75, 147, 0.05) 0%, rgba(224, 30, 38, 0.05) 90%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.decorative-grid {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background-image: radial-gradient(var(--primary-red) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    transform: rotate(-15deg);
    z-index: 1;
}

/* Chat Toggle */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(224, 30, 38, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-mini-logo {
    height: 30px;
    background: white;
    padding: 4px;
    border-radius: 6px;
}

.chat-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.status-online {
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
}

.close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-chat:hover {
    opacity: 1;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
}

.message.bot {
    align-self: flex-start;
    background: var(--bot-msg-bg);
    color: var(--text-dark);
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: var(--user-msg-bg);
    color: var(--white);
    border-bottom-right-radius: 2px;
}

.message-content {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Typing indicator animation */
.typing {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Input Area */
.chat-input-area {
    padding: 20px;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--primary-blue);
}

.send-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.send-btn:hover {
    background: var(--secondary-blue);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
        height: 70vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}