/* Custom Fonts & Base Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-light: #F8FAFC;        /* Crisp high-trust off-white */
    --bg-surface: #FFFFFF;      /* Clean white card surface */
    --blue-primary: #0052FF;    /* Enterprise Royal Blue */
    --navy-primary: #0A1D37;    /* Deep Navy Blue for headings */
    --red-primary: #FF3B30;     /* Electric Crimson Accent (10%) */
    --border-color: rgba(0, 0, 0, 0.05);
    --border-color-hover: rgba(0, 82, 255, 0.15);
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    color: #000000; /* Absolute Black Body Text */
    overflow-x: hidden;
}

/* Base font settings */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--navy-primary);
}

/* Faint Grid Overlay */
.grid-bg-overlay {
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.012) 1px, transparent 1px);
}

/* Blue-Light Theme Text Gradients */
.text-gradient-blue {
    background: linear-gradient(135deg, #0052FF 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Modern Radial Glows (Mint Green & Soft Cyan) */
.glow-ambient-1 {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, rgba(16, 185, 129, 0.02) 50%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.glow-ambient-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.02) 0%, rgba(14, 165, 233, 0.01) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

/* Floating Dynamic Island Header (Light Theme) */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.05);
}

.glass-header.scrolled {
    top: 10px;
    width: 85%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transform: translateX(-50%) scale(0.98);
}

/* Hover-Pop Animation for dynamic island tabs */
.hover-pop {
    display: inline-block;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-pop:hover {
    transform: scale(1.08);
}

.hover-pop:active {
    transform: scale(0.94);
}

/* Light Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 30px -10px rgba(0, 82, 255, 0.06);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
}

/* Light Glass Inputs */
.glass-input {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: #000000;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--blue-primary);
    box-shadow: 0 0 15px rgba(0, 82, 255, 0.1);
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue-primary);
}

/* Dynamic Page Load Animations (Popping entrance) */
@keyframes pop-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-pop-in {
    opacity: 0;
    animation: pop-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-delay-100 {
    animation-delay: 150ms;
}

.animate-delay-200 {
    animation-delay: 300ms;
}

.animate-delay-300 {
    animation-delay: 450ms;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Chat Widget - Light theme with Red border accents */
.chat-window {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.15);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    border-color: rgba(255, 59, 48, 0.25);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 59, 48, 0.05);
}

/* Message bubbles styling */
.msg-agent {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #1E293B;
}

.msg-user {
    background: var(--blue-primary);
    color: #ffffff;
}

/* Chat Typing Indicator */
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #475569;
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Custom interactive system terminal styles (Charcoal Dark for contrast) */
.terminal-line {
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    border-left: 2px solid transparent;
}
.terminal-line.active {
    border-left-color: var(--blue-primary);
}
