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

body {
    font-family: 'Inter', sans-serif;
    background: #f0f0f0;
    color: #000;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark mode body */
html.dark body {
    background: #000;
    color: #fff;
}

/* Industrial texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(0,0,0,0.03) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0,0,0,0.03) 100%),
        radial-gradient(circle at 25% 25%, rgba(0,0,0,0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.02) 0%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 200px 200px, 200px 200px;
    pointer-events: none;
    z-index: 1;
}

html.dark body::before {
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(255,255,255,0.03) 100%),
        linear-gradient(0deg, transparent 98%, rgba(255,255,255,0.03) 100%),
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.02) 0%, transparent 50%);
}

/* Film grain effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}
html.dark body::after {
    mix-blend-mode: normal;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
html.dark ::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
html.dark ::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: #a80e61; }

.noise-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    opacity: 0.03; pointer-events: none; z-index: 50;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

