/* ========================================
   DEVIL UNSECURED AI - COMPLETE THEME
   Dark Cyberpunk + Blood Red
   Mobile-First + Smooth Animations
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #ff0000;
    --primary-dark: #cc0000;
    --primary-glow: rgba(255, 0, 0, 0.5);
    --primary-soft: rgba(255, 0, 0, 0.2);
    --bg-deep: #000000;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-darker: #050505;
    --bg-sidebar: #0c0c0c;
    --text-bright: #ffffff;
    --text-dim: #cccccc;
    --text-muted: #888888;
    --text-dark: #666666;
    --border: #222222;
    --border-light: #333333;
    --border-active: #ff0000;
    --shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    --shadow-strong: 0 0 30px rgba(255, 0, 0, 0.4);
    --shadow-inner: inset 0 0 10px rgba(255, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #ff0000, #990000);
    --gradient-glow: linear-gradient(135deg, #ff3333, #ff0000);
    --gradient-dark: linear-gradient(135deg, #330000, #000000);
    --font-main: 'Rajdhani', sans-serif;
    --font-head: 'Orbitron', sans-serif;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-bright);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BACKGROUND EFFECTS ===== */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 0, 0, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 8px;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: 60px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    background: var(--gradient);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: var(--shadow-strong);
    text-transform: uppercase;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu - Mobile First */
.nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 60px);
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 2px solid var(--primary);
    flex-direction: column;
    padding: 30px 20px;
    transition: left 0.3s ease;
    z-index: 999;
    list-style: none;
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    margin-bottom: 20px;
}

.nav-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 15px;
    display: block;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 1rem;
    border-left: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(255, 0, 0, 0.1);
    border-left: 2px solid var(--primary);
    transform: translateX(5px);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.active {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.glitch {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 20px;
    animation: glitch 3s infinite;
    line-height: 1.2;
}

@keyframes glitch {
    0%, 100% { 
        text-shadow: 3px 3px 0 var(--primary),
                    -3px -3px 0 #00ff00;
    }
    25% { 
        text-shadow: -3px 3px 0 #0000ff,
                    3px -3px 0 var(--primary);
    }
    50% { 
        text-shadow: 3px -3px 0 #00ff00,
                    -3px 3px 0 #0000ff;
    }
    75% { 
        text-shadow: -3px -3px 0 var(--primary),
                    3px 3px 0 #00ff00;
    }
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-dim);
}

.typed-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
}

.btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn.secondary {
    background: transparent;
    color: var(--text-bright);
    border: 2px solid var(--primary);
}

.btn.secondary:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-strong);
}

.btn.large {
    padding: 16px 35px;
    font-size: 1.1rem;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
    gap: 15px;
}

.stat-card {
    text-align: center;
    flex: 1;
    padding: 15px 10px;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.stat-value {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    text-shadow: 0 0 10px var(--primary-glow);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
}

.section-title {
    font-family: var(--font-head);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 50px 20px;
    background: var(--bg-darker);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,0,0,0.1), transparent);
    border: 1px solid var(--primary);
    border-radius: 8px;
}

.stat-item .stat-number {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    text-shadow: 0 0 20px var(--primary-glow);
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #000, #1a0000);
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-container i {
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.3;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin: 20px 0;
    color: var(--text-bright);
    line-height: 1.5;
}

.quote-author {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 60px 20px;
    text-align: center;
    background: var(--gradient-dark);
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.cta h2 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-darker);
}

.devil-signature {
    color: var(--primary);
    margin-top: 10px;
    font-style: italic;
    font-size: 0.9rem;
}

.devil-signature i {
    margin: 0 5px;
    color: var(--primary);
}

/* ===== CHAT PAGE STYLES ===== */
.chat-page {
    overflow: hidden;
    height: 100vh;
    background: var(--bg-deep);
}

.chat-container {
    display: flex;
    height: 100vh;
    padding-top: 60px;
    position: relative;
}

/* History Toggle for Mobile */
.history-toggle {
    position: fixed;
    bottom: 90px;
    right: 15px;
    width: 55px;
    height: 55px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* Chat Sidebar */
.chat-sidebar {
    position: fixed;
    top: 60px;
    left: -300px;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--bg-sidebar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    z-index: 998;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.chat-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-bright);
}

.sidebar-header h3 span {
    color: var(--primary);
}

.new-chat-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.history-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.history-item i {
    color: var(--primary);
    width: 20px;
    font-size: 1rem;
}

.history-item span {
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dim);
}

.history-item .delete-history {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
    padding: 5px;
}

.history-item:hover .delete-history {
    opacity: 1;
}

.history-item .delete-history:hover {
    color: var(--primary);
}

.history-item:hover,
.history-item.active {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.history-item.active span {
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 4px;
}

.user-info i {
    color: var(--primary);
    font-size: 1.1rem;
}

.user-info span {
    font-weight: 600;
    color: var(--text-bright);
}

.mode-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 4px;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.mode-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 997;
    display: none;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

/* Chat Main Area */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    height: 100%;
    width: 100%;
    position: relative;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 90px;
}

/* Message Styles */
.message {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.message-content {
    max-width: 80%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    position: relative;
}

.message.user .message-content {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--primary);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.message-name {
    color: var(--primary);
    font-weight: bold;
}

.message-time {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.message-text {
    color: var(--text-bright);
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.message-text pre {
    background: var(--bg-darker);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

.message-text code {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

/* Typing Indicator */
.typing-indicator .message-text {
    display: flex;
    gap: 5px;
    padding: 5px 0;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.5s infinite;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Chat Input Area */
.chat-input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-darker);
    border-top: 2px solid var(--primary);
    z-index: 996;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    max-width: 900px;
    margin: 0 auto;
}

.input-wrapper textarea {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px 18px;
    color: var(--text-bright);
    font-family: var(--font-main);
    font-size: 0.95rem;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    transition: var(--transition);
    line-height: 1.5;
}

.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.input-footer {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 5px;
}

.input-footer i {
    color: var(--primary);
}

/* ===== ABOUT PAGE ===== */
.about-page {
    min-height: 100vh;
    padding: 80px 20px 40px;
    background: var(--bg-deep);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: var(--shadow-strong);
}

.about-card h1 {
    font-family: var(--font-head);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.about-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-content {
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.about-content i {
    color: var(--primary);
    margin-right: 8px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.about-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
}

.about-stat .stat-number {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    line-height: 1.2;
    text-shadow: 0 0 10px var(--primary-glow);
}

.about-stat .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.about-quote {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    color: var(--primary);
    padding: 20px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 0, 0, 0.05);
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    line-height: 1.6;
}

.about-quote i {
    color: var(--primary);
    opacity: 0.7;
    margin: 0 8px;
    font-size: 1rem;
}

.about-signature {
    text-align: center;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-family: var(--font-head);
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0;
    width: 100%;
    max-width: 300px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== MEDIA QUERIES - TABLET ===== */
@media (min-width: 480px) {
    .glitch {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: 500px;
    }
    
    .btn {
        padding: 12px 25px;
        min-width: 180px;
    }
    
    .stats-container {
        gap: 20px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MEDIA QUERIES - DESKTOP ===== */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        border: none;
        flex-direction: row;
        padding: 0;
        left: 0;
        backdrop-filter: none;
        display: flex;
    }
    
    .nav-menu li {
        margin-bottom: 0;
        margin-left: 25px;
    }
    
    .nav-menu a {
        padding: 5px 0;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        transform: translateY(-2px);
        border-left: none;
        border-bottom: 2px solid var(--primary);
        background: none;
    }
    
    .history-toggle {
        display: none;
    }
    
    .chat-sidebar {
        position: relative;
        top: 0;
        left: 0;
        width: 280px;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .chat-main {
        width: calc(100% - 280px);
    }
    
    .chat-input-area {
        width: calc(100% - 280px);
        left: 280px;
    }
    
    .glitch {
        font-size: 4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-card {
        padding: 50px;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
}

/* ===== MEDIA QUERIES - LARGE DESKTOP ===== */
@media (min-width: 1024px) {
    .glitch {
        font-size: 5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2.2rem;
    }
    
    .chat-sidebar {
        width: 300px;
    }
    
    .chat-main {
        width: calc(100% - 300px);
    }
    
    .chat-input-area {
        width: calc(100% - 300px);
        left: 300px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--primary);
    }
    to {
        text-shadow: 0 0 20px #fff, 0 0 30px var(--primary), 0 0 40px var(--primary);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

/* ===== DEVIL'S SPECIAL ELEMENTS ===== */
.devil-easter-egg {
    position: fixed;
    bottom: 5px;
    right: 5px;
    color: rgba(255, 0, 0, 0.1);
    font-size: 8px;
    z-index: 9999;
    pointer-events: none;
    user-select: none;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 0, 0, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-bright);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid var(--primary);
    margin-bottom: 5px;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 350px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-badge {
        display: none;
    }
    
    .status-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .glitch {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .chat-input-area,
    .history-toggle,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}