/* ==================== BASE & VARIABLES ==================== */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #a855f7;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
}

/* ==================== RESET & BASE ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll; /* Always show scrollbar to prevent layout shift */
    scrollbar-gutter: stable; /* Reserve space for scrollbar */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
}

/* ==================== PARTICLES BACKGROUND ==================== */
.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particles-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Layer 1 - Very Slow/Farthest */
.particles-layer[data-speed="0.1"] .particle {
    background: rgba(102, 126, 234, 0.2);
    width: 8px;
    height: 8px;
}

/* Random size variations for Layer 1 */
.particles-layer[data-speed="0.1"] .particle:nth-child(3n+1) { width: 7px; height: 7px; }
.particles-layer[data-speed="0.1"] .particle:nth-child(5n+2) { width: 9px; height: 9px; }
.particles-layer[data-speed="0.1"] .particle:nth-child(7n+3) { width: 7.5px; height: 7.5px; }
.particles-layer[data-speed="0.1"] .particle:nth-child(11n+4) { width: 8.5px; height: 8.5px; }

.particles-layer[data-speed="0.1"] .particle:nth-child(1) { left: 7%; top: 23%; animation-delay: 2s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(2) { left: 34%; top: 67%; animation-delay: 11s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(3) { left: 61%; top: 14%; animation-delay: 19s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(4) { left: 83%; top: 51%; animation-delay: 5s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(5) { left: 19%; top: 89%; animation-delay: 14s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(6) { left: 48%; top: 38%; animation-delay: 8s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(7) { left: 72%; top: 76%; animation-delay: 22s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(8) { left: 91%; top: 9%; animation-delay: 16s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(9) { left: 26%; top: 44%; animation-delay: 3s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(10) { left: 54%; top: 81%; animation-delay: 20s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(11) { left: 12%; top: 10%; animation-delay: 4s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(12) { left: 43%; top: 35%; animation-delay: 13s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(13) { left: 67%; top: 18%; animation-delay: 24s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(14) { left: 89%; top: 62%; animation-delay: 7s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(15) { left: 24%; top: 45%; animation-delay: 17s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(16) { left: 56%; top: 28%; animation-delay: 10s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(17) { left: 78%; top: 71%; animation-delay: 26s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(18) { left: 95%; top: 22%; animation-delay: 19s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(19) { left: 31%; top: 54%; animation-delay: 6s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(20) { left: 62%; top: 39%; animation-delay: 23s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(21) { left: 45%; top: 7%; animation-delay: 9s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(22) { left: 73%; top: 58%; animation-delay: 29s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(23) { left: 5%; top: 24%; animation-delay: 12s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(24) { left: 88%; top: 42%; animation-delay: 21s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(25) { left: 20%; top: 69%; animation-delay: 6s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(26) { left: 59%; top: 12%; animation-delay: 18s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(27) { left: 92%; top: 78%; animation-delay: 27s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(28) { left: 35%; top: 19%; animation-delay: 15s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(29) { left: 68%; top: 64%; animation-delay: 11s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(30) { left: 14%; top: 33%; animation-delay: 25s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(31) { left: 50%; top: 11%; animation-delay: 32s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(32) { left: 77%; top: 48%; animation-delay: 8s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(33) { left: 25%; top: 72%; animation-delay: 17s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(34) { left: 94%; top: 31%; animation-delay: 23s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(35) { left: 8%; top: 56%; animation-delay: 14s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(36) { left: 63%; top: 15%; animation-delay: 28s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(37) { left: 39%; top: 84%; animation-delay: 6s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(38) { left: 82%; top: 23%; animation-delay: 19s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(39) { left: 17%; top: 67%; animation-delay: 31s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(40) { left: 71%; top: 41%; animation-delay: 10s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(41) { left: 33%; top: 8%; animation-delay: 24s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(42) { left: 96%; top: 74%; animation-delay: 4s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(43) { left: 46%; top: 29%; animation-delay: 16s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(44) { left: 11%; top: 91%; animation-delay: 27s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(45) { left: 69%; top: 52%; animation-delay: 12s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(46) { left: 28%; top: 17%; animation-delay: 30s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(47) { left: 85%; top: 63%; animation-delay: 7s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(48) { left: 53%; top: 36%; animation-delay: 21s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(49) { left: 6%; top: 79%; animation-delay: 15s; }
.particles-layer[data-speed="0.1"] .particle:nth-child(50) { left: 75%; top: 5%; animation-delay: 26s; }

/* Layer 2 - Slow */
.particles-layer[data-speed="0.25"] .particle {
    background: rgba(118, 75, 162, 0.25);
    width: 7px;
    height: 7px;
}

/* Random size variations for Layer 2 */
.particles-layer[data-speed="0.25"] .particle:nth-child(3n+1) { width: 6px; height: 6px; }
.particles-layer[data-speed="0.25"] .particle:nth-child(5n+2) { width: 8px; height: 8px; }
.particles-layer[data-speed="0.25"] .particle:nth-child(7n+3) { width: 6.5px; height: 6.5px; }
.particles-layer[data-speed="0.25"] .particle:nth-child(11n+4) { width: 7.5px; height: 7.5px; }

.particles-layer[data-speed="0.25"] .particle:nth-child(1) { left: 14%; top: 31%; animation-delay: 7s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(2) { left: 41%; top: 58%; animation-delay: 18s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(3) { left: 68%; top: 19%; animation-delay: 1s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(4) { left: 87%; top: 73%; animation-delay: 13s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(5) { left: 9%; top: 62%; animation-delay: 24s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(6) { left: 52%; top: 27%; animation-delay: 9s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(7) { left: 77%; top: 84%; animation-delay: 15s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(8) { left: 23%; top: 7%; animation-delay: 21s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(9) { left: 95%; top: 42%; animation-delay: 4s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(10) { left: 38%; top: 91%; animation-delay: 17s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(11) { left: 16%; top: 15%; animation-delay: 6s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(12) { left: 47%; top: 42%; animation-delay: 14s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(13) { left: 71%; top: 26%; animation-delay: 25s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(14) { left: 92%; top: 68%; animation-delay: 11s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(15) { left: 19%; top: 51%; animation-delay: 19s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(16) { left: 59%; top: 33%; animation-delay: 8s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(17) { left: 83%; top: 77%; animation-delay: 27s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(18) { left: 27%; top: 19%; animation-delay: 22s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(19) { left: 98%; top: 48%; animation-delay: 3s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(20) { left: 44%; top: 61%; animation-delay: 15s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(21) { left: 81%; top: 9%; animation-delay: 28s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(22) { left: 11%; top: 47%; animation-delay: 5s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(23) { left: 66%; top: 75%; animation-delay: 16s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(24) { left: 29%; top: 17%; animation-delay: 22s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(25) { left: 93%; top: 63%; animation-delay: 8s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(26) { left: 4%; top: 28%; animation-delay: 19s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(27) { left: 52%; top: 52%; animation-delay: 26s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(28) { left: 75%; top: 6%; animation-delay: 11s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(29) { left: 38%; top: 80%; animation-delay: 30s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(30) { left: 97%; top: 36%; animation-delay: 23s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(31) { left: 42%; top: 13%; animation-delay: 31s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(32) { left: 68%; top: 57%; animation-delay: 9s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(33) { left: 15%; top: 81%; animation-delay: 18s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(34) { left: 89%; top: 25%; animation-delay: 24s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(35) { left: 6%; top: 44%; animation-delay: 13s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(36) { left: 57%; top: 8%; animation-delay: 29s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(37) { left: 31%; top: 66%; animation-delay: 5s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(38) { left: 79%; top: 38%; animation-delay: 20s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(39) { left: 24%; top: 92%; animation-delay: 32s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(40) { left: 63%; top: 21%; animation-delay: 11s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(41) { left: 36%; top: 54%; animation-delay: 25s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(42) { left: 92%; top: 12%; animation-delay: 3s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(43) { left: 48%; top: 73%; animation-delay: 17s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(44) { left: 9%; top: 35%; animation-delay: 28s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(45) { left: 72%; top: 89%; animation-delay: 10s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(46) { left: 21%; top: 16%; animation-delay: 30s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(47) { left: 84%; top: 49%; animation-delay: 6s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(48) { left: 55%; top: 70%; animation-delay: 22s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(49) { left: 3%; top: 23%; animation-delay: 14s; }
.particles-layer[data-speed="0.25"] .particle:nth-child(50) { left: 76%; top: 60%; animation-delay: 27s; }

/* Layer 3 - Medium-Slow */
.particles-layer[data-speed="0.4"] .particle {
    background: rgba(168, 85, 247, 0.35);
    width: 6px;
    height: 6px;
}

/* Random size variations for Layer 3 */
.particles-layer[data-speed="0.4"] .particle:nth-child(3n+1) { width: 5px; height: 5px; }
.particles-layer[data-speed="0.4"] .particle:nth-child(5n+2) { width: 7px; height: 7px; }
.particles-layer[data-speed="0.4"] .particle:nth-child(7n+3) { width: 5.5px; height: 5.5px; }
.particles-layer[data-speed="0.4"] .particle:nth-child(11n+4) { width: 6.5px; height: 6.5px; }

.particles-layer[data-speed="0.4"] .particle:nth-child(1) { left: 11%; top: 47%; animation-delay: 12s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(2) { left: 47%; top: 22%; animation-delay: 6s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(3) { left: 73%; top: 63%; animation-delay: 23s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(4) { left: 29%; top: 79%; animation-delay: 10s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(5) { left: 88%; top: 33%; animation-delay: 0s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(6) { left: 4%; top: 18%; animation-delay: 19s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(7) { left: 59%; top: 71%; animation-delay: 14s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(8) { left: 81%; top: 11%; animation-delay: 25s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(9) { left: 35%; top: 54%; animation-delay: 8s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(10) { left: 66%; top: 94%; animation-delay: 16s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(11) { left: 13%; top: 21%; animation-delay: 9s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(12) { left: 51%; top: 38%; animation-delay: 18s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(13) { left: 76%; top: 14%; animation-delay: 26s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(14) { left: 33%; top: 65%; animation-delay: 13s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(15) { left: 91%; top: 47%; animation-delay: 2s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(16) { left: 7%; top: 29%; animation-delay: 21s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(17) { left: 64%; top: 72%; animation-delay: 15s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(18) { left: 86%; top: 23%; animation-delay: 28s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(19) { left: 39%; top: 56%; animation-delay: 10s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(20) { left: 71%; top: 41%; animation-delay: 19s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(21) { left: 22%; top: 8%; animation-delay: 7s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(22) { left: 86%; top: 67%; animation-delay: 24s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(23) { left: 44%; top: 79%; animation-delay: 29s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(24) { left: 9%; top: 53%; animation-delay: 14s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(25) { left: 77%; top: 15%; animation-delay: 3s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(26) { left: 56%; top: 73%; animation-delay: 20s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(27) { left: 2%; top: 31%; animation-delay: 27s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(28) { left: 64%; top: 4%; animation-delay: 9s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(29) { left: 90%; top: 44%; animation-delay: 17s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(30) { left: 33%; top: 64%; animation-delay: 31s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(31) { left: 58%; top: 19%; animation-delay: 33s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(32) { left: 12%; top: 74%; animation-delay: 8s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(33) { left: 79%; top: 42%; animation-delay: 16s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(34) { left: 45%; top: 11%; animation-delay: 25s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(35) { left: 94%; top: 58%; animation-delay: 4s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(36) { left: 26%; top: 87%; animation-delay: 19s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(37) { left: 67%; top: 33%; animation-delay: 29s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(38) { left: 8%; top: 61%; animation-delay: 11s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(39) { left: 84%; top: 24%; animation-delay: 34s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(40) { left: 51%; top: 76%; animation-delay: 6s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(41) { left: 19%; top: 48%; animation-delay: 22s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(42) { left: 73%; top: 9%; animation-delay: 30s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(43) { left: 38%; top: 92%; animation-delay: 13s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(44) { left: 96%; top: 37%; animation-delay: 27s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(45) { left: 61%; top: 68%; animation-delay: 9s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(46) { left: 14%; top: 16%; animation-delay: 32s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(47) { left: 82%; top: 81%; animation-delay: 5s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(48) { left: 47%; top: 52%; animation-delay: 20s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(49) { left: 5%; top: 28%; animation-delay: 15s; }
.particles-layer[data-speed="0.4"] .particle:nth-child(50) { left: 69%; top: 95%; animation-delay: 28s; }

/* Layer 4 - Medium-Fast */
.particles-layer[data-speed="0.6"] .particle {
    background: rgba(129, 140, 248, 0.45);
    width: 5px;
    height: 5px;
}

/* Random size variations for Layer 4 */
.particles-layer[data-speed="0.6"] .particle:nth-child(3n+1) { width: 4px; height: 4px; }
.particles-layer[data-speed="0.6"] .particle:nth-child(5n+2) { width: 6px; height: 6px; }
.particles-layer[data-speed="0.6"] .particle:nth-child(7n+3) { width: 4.5px; height: 4.5px; }
.particles-layer[data-speed="0.6"] .particle:nth-child(11n+4) { width: 5.5px; height: 5.5px; }

.particles-layer[data-speed="0.6"] .particle:nth-child(1) { left: 17%; top: 36%; animation-delay: 5s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(2) { left: 56%; top: 69%; animation-delay: 22s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(3) { left: 79%; top: 25%; animation-delay: 11s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(4) { left: 31%; top: 83%; animation-delay: 2s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(5) { left: 92%; top: 57%; animation-delay: 18s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(6) { left: 8%; top: 74%; animation-delay: 9s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(7) { left: 44%; top: 16%; animation-delay: 24s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(8) { left: 69%; top: 88%; animation-delay: 15s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(9) { left: 85%; top: 46%; animation-delay: 7s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(10) { left: 21%; top: 12%; animation-delay: 20s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(11) { left: 18%; top: 17%; animation-delay: 7s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(12) { left: 61%; top: 44%; animation-delay: 23s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(13) { left: 84%; top: 31%; animation-delay: 12s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(14) { left: 36%; top: 69%; animation-delay: 4s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(15) { left: 96%; top: 52%; animation-delay: 19s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(16) { left: 11%; top: 36%; animation-delay: 11s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(17) { left: 49%; top: 63%; animation-delay: 25s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(18) { left: 74%; top: 27%; animation-delay: 16s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(19) { left: 90%; top: 74%; animation-delay: 8s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(20) { left: 26%; top: 19%; animation-delay: 21s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(21) { left: 69%; top: 51%; animation-delay: 9s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(22) { left: 14%; top: 65%; animation-delay: 28s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(23) { left: 83%; top: 7%; animation-delay: 13s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(24) { left: 47%; top: 76%; animation-delay: 6s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(25) { left: 93%; top: 39%; animation-delay: 19s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(26) { left: 7%; top: 24%; animation-delay: 24s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(27) { left: 58%; top: 14%; animation-delay: 16s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(28) { left: 75%; top: 68%; animation-delay: 3s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(29) { left: 37%; top: 3%; animation-delay: 27s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(30) { left: 88%; top: 56%; animation-delay: 10s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(31) { left: 42%; top: 22%; animation-delay: 33s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(32) { left: 65%; top: 78%; animation-delay: 14s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(33) { left: 9%; top: 45%; animation-delay: 26s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(34) { left: 79%; top: 8%; animation-delay: 5s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(35) { left: 31%; top: 91%; animation-delay: 19s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(36) { left: 94%; top: 33%; animation-delay: 30s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(37) { left: 52%; top: 67%; animation-delay: 8s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(38) { left: 16%; top: 14%; animation-delay: 34s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(39) { left: 73%; top: 49%; animation-delay: 11s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(40) { left: 27%; top: 82%; animation-delay: 23s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(41) { left: 86%; top: 26%; animation-delay: 15s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(42) { left: 44%; top: 59%; animation-delay: 29s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(43) { left: 6%; top: 37%; animation-delay: 6s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(44) { left: 68%; top: 88%; animation-delay: 21s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(45) { left: 91%; top: 11%; animation-delay: 32s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(46) { left: 35%; top: 71%; animation-delay: 13s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(47) { left: 77%; top: 42%; animation-delay: 27s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(48) { left: 19%; top: 6%; animation-delay: 17s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(49) { left: 59%; top: 94%; animation-delay: 9s; }
.particles-layer[data-speed="0.6"] .particle:nth-child(50) { left: 98%; top: 53%; animation-delay: 24s; }

/* Layer 5 - Fast */
.particles-layer[data-speed="0.5"] .particle {
    background: rgba(129, 140, 248, 0.55);
    width: 4px;
    height: 4px;
}

/* Random size variations for Layer 5 */
.particles-layer[data-speed="0.5"] .particle:nth-child(3n+1) { width: 3px; height: 3px; }
.particles-layer[data-speed="0.5"] .particle:nth-child(5n+2) { width: 5px; height: 5px; }
.particles-layer[data-speed="0.5"] .particle:nth-child(7n+3) { width: 3.5px; height: 3.5px; }
.particles-layer[data-speed="0.5"] .particle:nth-child(11n+4) { width: 4.5px; height: 4.5px; }

.particles-layer[data-speed="0.5"] .particle:nth-child(1) { left: 25%; top: 52%; animation-delay: 13s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(2) { left: 63%; top: 29%; animation-delay: 4s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(3) { left: 12%; top: 77%; animation-delay: 21s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(4) { left: 49%; top: 41%; animation-delay: 16s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(5) { left: 84%; top: 66%; animation-delay: 1s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(6) { left: 37%; top: 8%; animation-delay: 26s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(7) { left: 71%; top: 93%; animation-delay: 10s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(8) { left: 5%; top: 34%; animation-delay: 19s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(9) { left: 58%; top: 59%; animation-delay: 6s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(10) { left: 94%; top: 21%; animation-delay: 23s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(11) { left: 28%; top: 24%; animation-delay: 14s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(12) { left: 68%; top: 49%; animation-delay: 5s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(13) { left: 15%; top: 37%; animation-delay: 22s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(14) { left: 54%; top: 62%; animation-delay: 17s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(15) { left: 89%; top: 46%; animation-delay: 2s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(16) { left: 41%; top: 13%; animation-delay: 27s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(17) { left: 76%; top: 71%; animation-delay: 11s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(18) { left: 8%; top: 28%; animation-delay: 20s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(19) { left: 63%; top: 55%; animation-delay: 7s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(20) { left: 97%; top: 32%; animation-delay: 24s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(21) { left: 18%; top: 16%; animation-delay: 8s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(22) { left: 61%; top: 57%; animation-delay: 29s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(23) { left: 34%; top: 71%; animation-delay: 12s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(24) { left: 82%; top: 9%; animation-delay: 25s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(25) { left: 9%; top: 42%; animation-delay: 4s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(26) { left: 73%; top: 26%; animation-delay: 18s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(27) { left: 45%; top: 64%; animation-delay: 31s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(28) { left: 91%; top: 77%; animation-delay: 14s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(29) { left: 23%; top: 4%; animation-delay: 21s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(30) { left: 66%; top: 48%; animation-delay: 7s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(31) { left: 12%; top: 73%; animation-delay: 33s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(32) { left: 79%; top: 19%; animation-delay: 15s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(33) { left: 43%; top: 86%; animation-delay: 26s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(34) { left: 91%; top: 41%; animation-delay: 9s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(35) { left: 25%; top: 11%; animation-delay: 31s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(36) { left: 71%; top: 65%; animation-delay: 4s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(37) { left: 8%; top: 37%; animation-delay: 19s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(38) { left: 57%; top: 92%; animation-delay: 28s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(39) { left: 88%; top: 23%; animation-delay: 12s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(40) { left: 33%; top: 58%; animation-delay: 34s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(41) { left: 95%; top: 7%; animation-delay: 22s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(42) { left: 49%; top: 75%; animation-delay: 5s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(43) { left: 15%; top: 44%; animation-delay: 30s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(44) { left: 67%; top: 13%; animation-delay: 16s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(45) { left: 82%; top: 81%; animation-delay: 27s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(46) { left: 38%; top: 29%; animation-delay: 10s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(47) { left: 6%; top: 96%; animation-delay: 23s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(48) { left: 74%; top: 51%; animation-delay: 13s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(49) { left: 28%; top: 68%; animation-delay: 35s; }
.particles-layer[data-speed="0.5"] .particle:nth-child(50) { left: 93%; top: 35%; animation-delay: 6s; }

/* Layer 6 - Very Fast/Closest (kleinste, hellste Partikel) */
.particles-layer[data-speed="0.55"] .particle {
    background: rgba(240, 147, 251, 0.65);
    width: 3px;
    height: 3px;
}

/* Random size variations for Layer 6 */
.particles-layer[data-speed="0.7"] .particle:nth-child(3n+1) { width: 2px; height: 2px; }
.particles-layer[data-speed="0.7"] .particle:nth-child(5n+2) { width: 4px; height: 4px; }
.particles-layer[data-speed="0.7"] .particle:nth-child(7n+3) { width: 2.5px; height: 2.5px; }
.particles-layer[data-speed="0.7"] .particle:nth-child(11n+4) { width: 3.5px; height: 3.5px; }

.particles-layer[data-speed="0.7"] .particle:nth-child(1) { left: 32%; top: 61%; animation-delay: 17s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(2) { left: 76%; top: 39%; animation-delay: 3s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(3) { left: 15%; top: 86%; animation-delay: 12s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(4) { left: 53%; top: 13%; animation-delay: 25s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(5) { left: 89%; top: 78%; animation-delay: 8s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(6) { left: 6%; top: 49%; animation-delay: 20s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(7) { left: 42%; top: 24%; animation-delay: 14s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(8) { left: 67%; top: 87%; animation-delay: 0s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(9) { left: 97%; top: 56%; animation-delay: 11s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(10) { left: 28%; top: 5%; animation-delay: 27s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(11) { left: 37%; top: 26%; animation-delay: 18s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(12) { left: 81%; top: 43%; animation-delay: 4s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(13) { left: 19%; top: 59%; animation-delay: 13s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(14) { left: 58%; top: 34%; animation-delay: 26s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(15) { left: 94%; top: 67%; animation-delay: 9s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(16) { left: 10%; top: 21%; animation-delay: 21s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(17) { left: 47%; top: 48%; animation-delay: 15s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(18) { left: 72%; top: 12%; animation-delay: 1s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(19) { left: 99%; top: 76%; animation-delay: 12s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(20) { left: 33%; top: 39%; animation-delay: 28s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(21) { left: 78%; top: 11%; animation-delay: 5s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(22) { left: 12%; top: 62%; animation-delay: 22s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(23) { left: 54%; top: 73%; animation-delay: 16s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(24) { left: 87%; top: 24%; animation-delay: 30s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(25) { left: 26%; top: 2%; animation-delay: 10s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(26) { left: 95%; top: 58%; animation-delay: 19s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(27) { left: 41%; top: 68%; animation-delay: 8s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(28) { left: 3%; top: 35%; animation-delay: 26s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(29) { left: 70%; top: 49%; animation-delay: 2s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(30) { left: 48%; top: 5%; animation-delay: 23s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(31) { left: 84%; top: 72%; animation-delay: 32s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(32) { left: 21%; top: 38%; animation-delay: 14s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(33) { left: 63%; top: 91%; animation-delay: 25s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(34) { left: 9%; top: 17%; animation-delay: 8s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(35) { left: 76%; top: 54%; animation-delay: 29s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(36) { left: 44%; top: 82%; animation-delay: 11s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(37) { left: 91%; top: 29%; animation-delay: 34s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(38) { left: 15%; top: 65%; animation-delay: 6s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(39) { left: 69%; top: 9%; animation-delay: 19s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(40) { left: 32%; top: 47%; animation-delay: 27s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(41) { left: 88%; top: 78%; animation-delay: 13s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(42) { left: 53%; top: 21%; animation-delay: 31s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(43) { left: 7%; top: 56%; animation-delay: 17s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(44) { left: 71%; top: 87%; animation-delay: 4s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(45) { left: 96%; top: 32%; animation-delay: 24s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(46) { left: 36%; top: 69%; animation-delay: 9s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(47) { left: 80%; top: 14%; animation-delay: 28s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(48) { left: 18%; top: 93%; animation-delay: 16s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(49) { left: 59%; top: 41%; animation-delay: 33s; }
.particles-layer[data-speed="0.7"] .particle:nth-child(50) { left: 4%; top: 77%; animation-delay: 21s; }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(60px, -60px) scale(1.3);
        opacity: 0.7;
    }
    50% {
        transform: translate(-40px, -120px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(80px, -80px) scale(1.2);
        opacity: 0.6;
    }
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: 70px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.placeholder-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    font-size: 26px;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand:hover .placeholder-logo {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    transform: rotate(-8deg) scale(1.05);
}

.brand-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    font-size: 15px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.nav-link:hover {
    color: var(--primary-light);
    background: rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: rgba(102, 126, 234, 0.2);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
    background: linear-gradient(90deg, #818cf8 0%, #a855f7 100%);
}

/* ==================== LANGUAGE SWITCH ==================== */
.language-switch {
    position: relative;
    display: flex;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 4px;
    margin-left: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.lang-option {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
    font-family: 'Inter', sans-serif;
}

.lang-option.active {
    color: white;
}

.lang-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 1;
}

.language-switch:has(.lang-option[data-lang="en"].active) .lang-slider {
    transform: translateX(100%);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 80px 32px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== BLOG SECTION ==================== */
.blog-section {
    padding: 60px 32px 80px;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== STATE DISPLAYS ==================== */
.loading-state, .error-state, .empty-state, .blog-grid {
    transition: opacity 0.3s ease;
}

.loading-state, .error-state, .empty-state {
    text-align: center;
    padding: 80px 20px;
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p, .error-state p, .empty-state p {
    color: var(--text-secondary);
    font-size: 18px;
}

.error-icon, .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.btn-retry {
    margin-top: 24px;
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ==================== BLOG GRID ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
.blog-card:nth-child(7) { animation-delay: 0.7s; }
.blog-card:nth-child(8) { animation-delay: 0.8s; }
.blog-card:nth-child(9) { animation-delay: 0.9s; }

.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.blog-card:hover::after {
    width: 100%;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card-date svg {
    width: 16px;
    height: 16px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.blog-card-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-card-views svg {
    width: 16px;
    height: 16px;
}

.blog-card-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-read-more:hover {
    color: var(--accent);
}

/* ==================== LOAD MORE ==================== */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    padding: 14px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* ==================== BLOG MODAL ==================== */
.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.blog-modal-overlay.active {
    display: flex;
}

.blog-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    margin: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: sticky;
    top: 20px;
    float: right;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin: 0 20px 0 0;
}

.modal-close:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    padding: 50px 32px 32px;
}

.modal-header {
    margin-bottom: 28px;
}

.modal-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.modal-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.modal-date-separator {
    margin: 0 4px;
    opacity: 0.5;
}

.modal-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
}

.modal-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==================== FEATURED IMAGE ==================== */
.modal-featured-image {
    margin: 24px 0 32px;
    text-align: center;
}

.modal-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-featured-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.featured-caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px;
}

.modal-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.modal-body p {
    margin-bottom: 20px;
}

.modal-body ul, .modal-body ol {
    margin: 20px 0 20px 24px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body code {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
}

.modal-body pre {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.modal-body pre code {
    background: none;
    padding: 0;
}

/* ==================== INLINE IMAGES (SHORTCODES) ==================== */
.inline-image {
    margin: 24px 0;
    display: block;
}

.inline-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.inline-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.inline-image figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* Size variants */
.inline-image-small img {
    max-width: 400px;
    width: 100%;
}

.inline-image-medium img {
    max-width: 600px;
    width: 100%;
}

.inline-image-large img {
    max-width: 100%;
    width: 100%;
}

/* Position variants */
.inline-image-left {
    float: left;
    margin: 8px 24px 16px 0;
    max-width: 50%;
}

.inline-image-right {
    float: right;
    margin: 8px 0 16px 24px;
    max-width: 50%;
}

.inline-image-center {
    text-align: center;
    margin: 24px auto;
}

.inline-image-center img {
    margin: 0 auto;
}

/* Clear floats after inline images */
.modal-body::after {
    content: "";
    display: table;
    clear: both;
}

.shortcode-error {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

/* ==================== MODAL FEATURED IMAGE ==================== */
.modal-featured-image {
    width: 100%;
    margin: 0 0 32px 0;
    border-radius: 12px;
    overflow: hidden;
}

.modal-featured-image img,
.modal-featured-image video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* ==================== MODAL GALLERY ==================== */
.modal-gallery {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.gallery-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    pointer-events: none;
}

.gallery-caption {
    padding: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==================== LIGHTBOX ==================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    margin-top: 20px;
    color: var(--text-primary);
    font-size: 16px;
    text-align: center;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--error);
    border-color: var(--error);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* ==================== ATTACHMENTS (OLD - DEPRECATED) ==================== */
.modal-attachments {
    margin: 40px 0;
}

.attachment-item {
    margin-bottom: 32px;
}

.attachment-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.attachment-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.attachment-caption {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 32px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-body {
        font-size: 15px;
    }
    
    .modal-body h2 {
        font-size: 22px;
    }
    
    .modal-body h3 {
        font-size: 18px;
    }
    
    .modal-content {
        padding: 40px 20px 24px;
    }
    
    /* Inline images responsive */
    .inline-image-left,
    .inline-image-right {
        float: none;
        max-width: 100%;
        margin: 16px 0;
    }
    
    .inline-image-small img,
    .inline-image-medium img {
        max-width: 100%;
    }
    
    .nav-links {
        flex-wrap: wrap;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

