@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

/* CSS Variables for Brutalist Design */
:root {
    --background: #ffffff;
    --foreground: #000000;
    --accent: #ff0000;
    --border: #000000;
    --muted: #6666;
    
    /* Typography */
    --font-heading: 'IBM Plex Mono', monospace;
    --font-body: 'IBM Plex Mono', monospace;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 2px solid var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.2;
    padding: 20px;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

p {
    margin: 0 15px 0;
}

a {
    color: var(--foreground);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Brutalist Utility Classes */
.min-h-screen {
    min-height: 100vh;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-20 {
    margin-top: 5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.p-8 {
    padding: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.text-8xl {
    font-size: 6rem;
}

.text-base {
    font-size: 1rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-foreground {
    color: var(--foreground);
}

.text-muted-foreground {
    color: var(--muted);
}

.text-background {
    color: var(--background);
}

.text-accent {
    color: var(--accent);
}

.bg-background {
    background-color: var(--background);
}

.bg-foreground {
    background-color: var(--foreground);
}

.bg-accent {
    background-color: var(--accent);
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-heading {
    font-family: var(--font-heading);
}

.font-semibold {
    font-weight: 600;
}

.leading-tight {
    line-height: 1.1;
}

.leading-relaxed {
    line-height: 1.4;
}

.italic {
    font-style: italic;
}

.inline-flex {
    display: inline-flex;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-full {
    width: 100%;
}

.h-0\.5 {
    height: 0.125rem;
}

.h-1 {
    height: 0.25rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.border {
    border-width: 2px;
}

.border-2 {
    border-width: 2px;
}

.border-t {
    border-top-width: 2px;
}

.border-b {
    border-bottom-width: 2px;
}

.border-border {
    border-color: var(--border);
}

.border-foreground {
    border-color: var(--foreground);
}

.border-accent {
    border-color: var(--accent);
}

.rounded-none {
    border-radius: 0;
}

.transition-none {
    transition: none;
}

/* Grid System */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.md\:col-span-2 {
    grid-column: span 2 / span 2;
}

@media (max-width: 768px) {
    .md\:block {
        display: none;
    }
    
    .md\:p-12 {
        padding: 2rem;
    }
    
    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
    }
    
    .md\:text-7xl {
        font-size: 4.5rem;
    }
    
    .md\:col-span-2 {
        grid-column: span 2;
    }
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }
    
    .md\:p-12 {
        padding: 3rem;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
    }
    
    .md\:text-7xl {
        font-size: 4.5rem;
    }
    
    .md\:col-span-2 {
        grid-column: span 2;
    }
    
    .md\:w-auto {
        width: auto;
    }
}

/* Animations - Minimal for Brutalism */
.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Brutalist Input Styles */
input[type="text"],
input[type="email"] {
    background-color: var(--background);
    color: var(--foreground);
    border: 2px solid var(--border);
    padding: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: var(--muted);
}

/* Brutalist Button Styles */
button {
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border: 2px solid var(--border);
    padding: 12px 24px;
    background: var(--foreground);
    color: var(--background);
    font-size: 1rem;
}

button:hover {
    background: var(--background);
    color: var(--foreground);
}

/* Responsive */
@media (max-width: 640px) {
    .lg\:text-8xl {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:text-6xl {
        font-size: 3.75rem;
    }
    
    .lg\:text-7xl {
        font-size: 4.5rem;
    }
    
    .lg\:text-8xl {
        font-size: 6rem;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:block {
        display: block;
    }
}

/* Remove default form styles */
input {
    font-family: var(--font-body);
}

/* Link hover state */
a:hover {
    background: var(--accent);
    color: var(--background);
}

/* ===== CHATBOT STYLES ===== */

/* Chatbot Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px solid var(--border);
    background: var(--foreground);
    color: var(--background);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 98;
    border-radius: 0;
}

.chatbot-toggle:hover {
    background: var(--background);
    color: var(--foreground);
}

.chatbot-toggle.hidden {
    display: none;
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: var(--background);
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.chatbot-widget.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Chatbot Header */
.chatbot-header {
    padding: 16px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--foreground);
}

.chatbot-close {
    background: none;
    border: 2px solid var(--border);
    font-size: 24px;
    color: var(--foreground);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
}

.chatbot-close:hover {
    background: var(--foreground);
    color: var(--background);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-message {
    display: flex;
}

.chatbot-message p {
    margin: 0;
    padding: 10px 12px;
    border: 2px solid var(--border);
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
    word-wrap: break-word;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    border-radius: 0;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    background: var(--foreground);
    color: var(--background);
}

.ai-message {
    justify-content: flex-start;
}

.ai-message p {
    background: var(--background);
    color: var(--foreground);
}

/* Loading Indicator */
.loading-dots {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    border-radius: 0;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--foreground);
    border-radius: 0;
}

/* Input Area */
.chatbot-input-area {
    padding: 12px;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--border);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--foreground);
    background: var(--background);
    border-radius: 0;
}

.chatbot-input:focus {
    outline: 2px solid var(--border);
}

.chatbot-input::placeholder {
    color: var(--muted);
}

.chatbot-send {
    padding: 10px 16px;
    background: var(--foreground);
    color: var(--background);
    border: 2px solid var(--border);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    border-radius: 0;
}

.chatbot-send:hover {
    background: var(--background);
    color: var(--foreground);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chatbot Buttons */
.chatbot-btn-yes,
.chatbot-btn-no {
    padding: 8px 12px;
    border: 2px solid var(--border);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 0;
}

.chatbot-btn-yes {
    background: var(--foreground);
    color: var(--background);
    flex: 1;
}

.chatbot-btn-yes:hover {
    background: var(--background);
    color: var(--foreground);
}

.chatbot-btn-no {
    background: var(--background);
    color: var(--foreground);
    flex: 1;
}

.chatbot-btn-no:hover {
    background: var(--foreground);
    color: var(--background);
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 10px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: var(--background);
    border: 2px solid var(--border);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--foreground);
    border: 2px solid var(--border);
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .chatbot-widget {
        width: calc(10% - 40px);
        height: 400px;
        bottom: 80px;
        right: 20px;
        left: 20px;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}
