/* Modern Design System for ONOFRIUS Cognitive OS */
:root {
    --bg-dark: #070a0f;
    --bg-card: rgba(13, 20, 30, 0.75);
    --bg-card-hover: rgba(20, 32, 48, 0.85);
    --border-color: rgba(0, 255, 153, 0.2);
    --border-glow: rgba(0, 255, 153, 0.5);
    --primary: #00ff99;
    --primary-glow: #00ff9988;
    --accent: #4da6ff;
    --accent-purple: #bf5af2;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --font-heading: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(7, 10, 15, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon { font-size: 1.5rem; }
.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #00ff99, #4da6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.badge {
    font-size: 0.75rem;
    background: rgba(0, 255, 153, 0.15);
    color: var(--primary);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-btn-chat {
    background: rgba(0, 255, 153, 0.12);
    color: var(--primary) !important;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
}
.nav-btn-chat:hover {
    background: var(--primary);
    color: #000 !important;
    box-shadow: 0 0 15px var(--primary-glow);
}
.nav-btn-github {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 100px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 153, 0.12) 0%, rgba(76, 166, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 153, 0.08);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}
.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse-anim 2s infinite;
}
@keyframes pulse-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 153, 0); }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #00ff99 50%, #4da6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: #040609;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px var(--primary-glow);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.axiom-banner {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: rgba(13, 20, 30, 0.6);
    border: 1px solid var(--border-color);
    padding: 18px 30px;
    border-radius: 14px;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--accent);
}

/* SECTIONS */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.dark-bg {
    background: rgba(4, 6, 9, 0.7);
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* CARDS */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 153, 0.1);
}

.highlight-card {
    border-color: var(--primary);
    background: rgba(0, 255, 153, 0.05);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SUGGESTION CHIPS BAR IN MIND CONSOLE */
.suggestion-chips-bar {
    max-width: 850px;
    margin: 0 auto 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.suggestion-label {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip-btn {
    background: rgba(0, 255, 153, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.25s ease;
}
.chip-btn:hover {
    background: var(--primary);
    color: #040609;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}
.chip-btn.mini {
    font-size: 0.78rem;
    padding: 4px 10px;
}

/* INTERACTIVE TERMINAL */
.interactive-terminal {
    font-family: var(--font-code);
    overflow: hidden;
    padding: 0;
    max-width: 850px;
    margin: 0 auto;
}
.term-bar {
    background: #141b27;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 255, 153, 0.15);
}
.term-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 10px;
}
.term-output {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.7;
}
.term-line { margin-bottom: 6px; }
.cmd-highlight { color: var(--primary); font-weight: 700; }
.term-input-line {
    background: #090e17;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 255, 153, 0.15);
}
.prompt-sign {
    color: var(--primary);
    font-weight: 700;
}
#consoleInput {
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary);
    font-family: var(--font-code);
    font-size: 0.95rem;
    width: 100%;
}

/* =========================================================
 * 🤖 FLOATING CHATBOT WIDGET STYLES
 * ========================================================= */

.chatbot-trigger-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
    background: linear-gradient(135deg, #00ff99, #4da6ff);
    color: #040609;
    border: none;
    padding: 12px 22px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 255, 153, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-trigger-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 255, 153, 0.5);
}
.trigger-icon { font-size: 1.2rem; }

.chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 390px;
    max-width: calc(100vw - 30px);
    height: 580px;
    max-height: calc(100vh - 40px);
    z-index: 2005;
    background: rgba(11, 16, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 255, 153, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.chatbot-container.closed {
    transform: translateY(120%) scale(0.85);
    opacity: 0;
    pointer-events: none;
}

.chatbot-header {
    background: #141c2b;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 153, 0.2);
    cursor: pointer;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.chatbot-avatar {
    font-size: 1.3rem;
}
.chatbot-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.chatbot-toggle-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
}

.chatbot-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chatbot-suggestions-section {
    background: rgba(0, 255, 153, 0.04);
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 255, 153, 0.1);
}
.suggestions-title {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}
.chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 105px;
    overflow-y: auto;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 88%;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: consoleSlideIn 0.3s ease forwards;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(20, 32, 48, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.chat-msg.user {
    align-self: flex-end;
    background: var(--primary);
    color: #040609;
    font-weight: 500;
}
.msg-author {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.8;
}

.followup-section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 255, 153, 0.2);
}
.followup-title {
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.chatbot-input-area {
    padding: 12px 14px;
    background: #090e17;
    border-top: 1px solid rgba(0, 255, 153, 0.15);
    display: flex;
    gap: 8px;
}

#chatbotInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    outline: none;
}
#chatbotInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-chat-send {
    background: var(--primary);
    color: #040609;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.btn-chat-send:hover {
    box-shadow: 0 0 12px var(--primary-glow);
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 40px 30px;
    background: #040609;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--primary);
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links {
    display: flex;
    gap: 25px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
