/* ═══════════════════════════════════════════════════════════
   SURREAL LIGHT BACKGROUND
   Off-white frosted overlay with floating dot particles
   and blue-edge vignette — dark 3D city shows through
   ═══════════════════════════════════════════════════════════ */

/* ── Body override: light mode ── */
body {
    background: #f0ede8 !important;
    color: #1a1815 !important;
}

/* ── The surreal 3D environment bleeds through the frost ── */
#surreal-environment {
    position: fixed !important;
    z-index: 0 !important;
    opacity: 0.38; /* boosted from 0.28 — parallax visible through frost */
    filter: saturate(0.65) brightness(0.55);
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* ── Frosted glass layer that sits on top of the 3D scene ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        /* Light warm base */
        radial-gradient(ellipse 120% 120% at 50% 0%, rgba(245,242,238,0.97) 0%, rgba(240,237,232,0.92) 60%, rgba(228,225,220,0.85) 100%);
}

/* ── Blue-tinted edge vignette (exactly like the reference) ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        /* Top edge */
        linear-gradient(to bottom, rgba(200,215,235,0.35) 0%, transparent 12%),
        /* Bottom edge */
        linear-gradient(to top,    rgba(200,215,235,0.35) 0%, transparent 12%),
        /* Left edge */
        linear-gradient(to right,  rgba(200,215,235,0.30) 0%, transparent 10%),
        /* Right edge */
        linear-gradient(to left,   rgba(200,215,235,0.30) 0%, transparent 10%);
}

/* ── Content sits above frost + vignette ── */
nav, main, header, footer, .page-header,
.page-content, section, article {
    position: relative;
    z-index: 10;
}

/* ── Nav: light glassmorphism version ── */
nav {
    background: rgba(240, 237, 232, 0.88) !important;
    border-bottom: 1px solid rgba(0,0,0,0.07) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* ── Light theme text overrides ── */
.nav-logo  { color: #1a1815 !important; }
.nav-links a { color: #4a4540 !important; }
.nav-links a:hover,
.nav-links a.active { color: #1a1815 !important; }
.nav-links a.active { color: var(--accent, #7c5cfa) !important; }

/* ── Floating particles canvas ── */
#surreal-particles {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.s-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(80, 90, 120, 0.18);
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0%   { transform: translate(0, 0) scale(1);    opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.6); opacity: 0; }
}

/* ── Scrollbar: match light theme ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e8e5e0; }
::-webkit-scrollbar-thumb { background: #c0bbb4; border-radius: 3px; }

/* ── Selection colour ── */
::selection { background: rgba(124, 92, 250, 0.2); color: #1a1815; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .s-particle { animation: none !important; opacity: 0.08 !important; }
    #surreal-environment { opacity: 0.15 !important; }
}
