/* main.css - Core Styling & Liquid Ecosystem Animation Framework (AI Pure White Edition) */

/* Reset & CSS Custom Properties Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Pure Light White Tech Palette */
    --bg-light: #ffffff;        /* Pure White base grid */
    --text-main: #0a0f1d;       /* High-contrast slate black */
    --text-muted: #4b5563;      /* Gray 600 machine text */
    --text-ghost: #9ca3af;      /* Gray 400 system labels */
    
    /* Monochrome Neural Connection Spectrum */
    --color-dark: #000000;
    --color-gray-dark: #1f2937;
    --color-gray-medium: #6b7280;
    --color-gray-light: #f3f4f6;
    
    /* Light Liquid Glass Constants (Crisp Frosted Glass) */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: rgba(0, 0, 0, 0.02);
    --glass-blur: blur(30px);
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Minimalist Tech Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark);
}

/* AI Matrix & Data Grid Coordinates Layer */
.ai-matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
    pointer-events: none;
    opacity: 0.85;
}

/* Fluid Liquid Background Overlay (Platinum Fluid Intelligence) */
.liquid-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(140px);
    opacity: 0.85;
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    will-change: transform;
}

/* Platinum silver shade fluid flow */
.blob-cyan {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0) 75%);
    top: -10%;
    left: 5%;
    animation: moveBlobX 24s ease-in-out infinite alternate;
}

/* Clean slate fluid flow */
.blob-purple {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(100, 116, 139, 0.06) 0%, rgba(100, 116, 139, 0) 75%);
    bottom: 5%;
    right: 5%;
    animation: moveBlobY 30s ease-in-out infinite alternate;
}

/* Bright white reflective soft flow */
.blob-emerald {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.2) 0%, rgba(226, 232, 240, 0) 70%);
    top: 30%;
    left: 35%;
    animation: scaleAndWander 28s ease-in-out infinite alternate;
}

/* Liquid Blob Keyframe Animations */
@keyframes moveBlobX {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    100% {
        transform: translate(220px, 120px) scale(1.15) rotate(180deg);
    }
}

@keyframes moveBlobY {
    0% {
        transform: translate(0px, 0px) scale(1.15) rotate(0deg);
    }
    100% {
        transform: translate(-180px, -220px) scale(0.9) rotate(-180deg);
    }
}

@keyframes scaleAndWander {
    0% {
        transform: translate(0px, 0px) scale(0.95);
    }
    50% {
        transform: translate(120px, 160px) scale(1.15);
    }
    100% {
        transform: translate(-120px, -80px) scale(1.0);
    }
}

/* Unified App Wrapper Layout */
.app-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}