/* Base Styles */
:root {
    --background: #0f172a;
    --foreground: #f8fafc;
    --surface: #1e293b;
    --surface-card: #1e293b;
    --surface-elevated: #334155;
    --brand-red: #ef4444;
    --brand-red-hover: #dc2626;
    --muted: #94a3b8;
    --muted-foreground: #64748b;
    --border: #334155;
    --green: #10b981;
    --blue: #3b82f6;
    --yellow: #f59e0b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 64px; /* For fixed navigation */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    border-top-color: var(--brand-red);
    animation: spin 1s linear infinite;
}

/* Text Glow */
.text-glow {
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Cards */
.card {
    background-color: var(--surface-card);
    border: 1px solid var(--surface-elevated);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

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

.btn-default {
    background-color: var(--brand-red);
    color: white;
}

.btn-default:hover:not(:disabled) {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--surface-elevated);
    color: var(--foreground);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--surface-elevated);
}

.btn-ghost {
    background-color: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--surface-elevated);
    color: var(--foreground);
}

.btn-hero {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-hero:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(239, 68, 68, 0.5);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Inputs */
.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--surface-elevated);
    background-color: var(--surface);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.875rem;
}

.input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

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

.select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--surface-elevated);
    background-color: var(--surface);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.select:focus {
    outline: none;
    border-color: var(--brand-red);
}

.textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--surface-elevated);
    background-color: var(--surface);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.875rem;
    min-height: 80px;
    resize: vertical;
}

.textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* Labels */
.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-default {
    background-color: var(--brand-red);
    color: white;
}

.badge-secondary {
    background-color: var(--surface-elevated);
    color: var(--foreground);
}

.badge-outline {
    background-color: transparent;
    border-color: var(--surface-elevated);
    color: var(--foreground);
}

/* Modal/Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal {
    background-color: var(--surface-card);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content {
    padding: 1.5rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-elevated);
    z-index: 50;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--brand-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text span:first-child {
    color: var(--brand-red);
}

.nav-items {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-red);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    font-size: 1.5rem;
}

.nav-mobile-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--surface-card);
    border-bottom: 1px solid var(--surface-elevated);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile-menu.active {
    display: flex;
}

/* Page Container */
.page-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 1rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-bg-1 {
    top: 5rem;
    right: 2.5rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(239, 68, 68, 0.1);
}

.hero-bg-2 {
    bottom: 5rem;
    left: 2.5rem;
    width: 12rem;
    height: 12rem;
    background-color: rgba(59, 130, 246, 0.1);
    animation-delay: 1s;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 1rem;
    background-color: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    color: var(--brand-red);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--surface-elevated);
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-links h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    cursor: pointer;
}

.footer-links li:hover {
    color: var(--brand-red);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--surface-elevated);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
}

.chatbot-toggle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--brand-red);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot {
    width: 20rem;
    height: 24rem;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background-color: var(--surface-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chatbot-header {
    padding: 1rem;
    border-bottom: 1px solid var(--surface-elevated);
    background-color: rgba(51, 65, 85, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chatbot-message {
    max-width: 80%;
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.chatbot-message-bot {
    align-self: flex-start;
    background-color: var(--surface-elevated);
    color: var(--foreground);
}

.chatbot-message-user {
    align-self: flex-end;
    background-color: var(--brand-red);
    color: white;
}

.chatbot-input-form {
    padding: 1rem;
    border-top: 1px solid var(--surface-elevated);
    display: flex;
    gap: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-brand-red {
    color: var(--brand-red);
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }

.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }

.hidden { display: none; }

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid { display: grid; }
}

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

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

