:root {
    --bg: #050505;
    --text: #ffffff;
    --accent: #0070f3;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --bot-msg: rgba(0, 112, 243, 0.15);
    --user-msg: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: move 20s infinite alternate;
}

.blob-1 {
    background: var(--accent);
    top: -200px;
    left: -200px;
}

.blob-2 {
    background: #7928ca;
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

.blob-3 {
    background: #ff0080;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-size: 0.9rem;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link i {
    width: 20px;
    height: 20px;
    display: block;
    stroke: white;
    stroke-width: 2;
    color: white;
}

/* Hero & Chat */
.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.chat-window {
    width: 100%;
    max-width: 600px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.chat-header {
    background: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.status {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #00ff00;
    opacity: 0.8;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    height: 400px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem 1.25rem;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.bot {
    background: var(--bot-msg);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user {
    background: var(--user-msg);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

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

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.feature-card {
    background: var(--glass);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.feature-card p {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    opacity: 0.5;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero {
        padding: 2rem 0;
    }
    .chat-window {
        height: 500px;
    }
}
