/* Enhanced css/base.css with CSS Variables, Network Nodes Pattern, and Inter + Spectral Typography */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Spectral:wght@400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #2c3e50;
    --primary-light: #34495e;
    --secondary: #3498db;
    --secondary-light: #5dade2;
    --accent: #e74c3c;
    --accent-light: #ec7063;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --background-light: #f5f7fa;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Spectral', Georgia, serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-extra-bold: 700;
    --letter-spacing-wide: 0.5px;
    --letter-spacing-wider: 1px;

    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(52, 152, 219, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-card: linear-gradient(145deg, var(--primary), var(--secondary));
    --gradient-animated: linear-gradient(90deg, #4a90e2 0%, #48bb78 33%, #4a90e2 66%, #48bb78 100%);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-serif);
    font-weight: var(--font-weight-normal);
    scroll-behavior: smooth;

    /* Enhanced background with Network Nodes pattern */
    background:
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    position: relative;
    overflow-x: hidden;
}

/* Typography hierarchy - REVERSED */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

p,
li {
    font-family: var(--font-serif);
}

a,
button,
input,
textarea,
nav {
    font-family: var(--font-sans);
}

/* Network Nodes Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.04) 3px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(52, 152, 219, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(52, 152, 219, 0.04) 3px, transparent 3px),
        radial-gradient(circle at 10% 50%, rgba(52, 152, 219, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 90% 70%, rgba(52, 152, 219, 0.03) 2px, transparent 2px);
    background-size: 200px 200px, 180px 180px, 220px 220px, 190px 190px, 160px 160px, 210px 210px;
    pointer-events: none;
    z-index: -2;
}

/* Network Connection Lines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(52, 152, 219, 0.015) 49%, rgba(52, 152, 219, 0.015) 51%, transparent 52%),
        linear-gradient(150deg, transparent 48%, rgba(52, 152, 219, 0.015) 49%, rgba(52, 152, 219, 0.015) 51%, transparent 52%),
        linear-gradient(75deg, transparent 48%, rgba(52, 152, 219, 0.01) 49%, rgba(52, 152, 219, 0.01) 51%, transparent 52%);
    background-size: 200px 200px, 180px 180px, 220px 220px;
    pointer-events: none;
    z-index: -1;
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Subtle animation for network pattern (optional) */
@media (prefers-reduced-motion: no-preference) {
    body::before {
        animation: networkShift 60s ease-in-out infinite;
    }

    body::after {
        animation: networkShift 45s ease-in-out infinite reverse;
    }
}

@keyframes networkShift {

    0%,
    100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }

    50% {
        background-position: 5% 5%, -3% 8%, 7% -2%, -4% 6%, 6% -3%, -2% 7%;
    }
}