:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 5% 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* AI Input UI */
.ai-container {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.ai-container input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.ai-container input:focus {
    border-color: var(--primary-color);
}

.ai-container button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ai-container button:hover {
    background-color: var(--primary-hover);
}

/* AI Response UI */
#ai-response {
    text-align: left;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.hidden {
    display: none;
}

.loader {
    font-weight: 600;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Content Sections */
.content-section {
    padding: 5rem 5%;
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-container {
        flex-direction: column;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    nav a {
        margin: 0 1rem;
    }
}
/* AI Response Markdown Styling */
#response-content h1, 
#response-content h2, 
#response-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

#response-content p {
    margin-bottom: 1rem;
}

#response-content ul, 
#response-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

#response-content li {
    margin-bottom: 0.5rem;
}

#response-content strong {
    color: var(--text-main);
}

#response-content code {
    background-color: #e2e8f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}