@import './variables.css';

/* Global Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-family-sans);
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-color: var(--color-bg-base);
}

/* Base Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}

h1 {
    font-size: var(--font-size-6xl);
}

h2 {
    font-size: var(--font-size-5xl);
}

h3 {
    font-size: var(--font-size-4xl);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-lg);
    max-width: 65ch;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
    color: var(--color-text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

ul,
ol {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    padding-left: var(--space-8);
    margin-bottom: var(--space-6);
}

strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Layout Utility */
.container {
    width: 100%;
    max-width: var(--max-width-site);
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 10;
}

section {
    padding: var(--space-24) 0;
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Advanced Background Engine */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
}

.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: 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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.5;
    /* Noise intensity */
    mix-blend-mode: overlay;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -3;
    pointer-events: none;
    opacity: 0.6;
}

.glow-orb-magenta {
    top: -20vh;
    left: -20vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-primary-base) 0%, transparent 70%);
    animation: drift 20s ease-in-out infinite alternate;
}

.glow-orb-cyan {
    bottom: -20vh;
    right: -20vw;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--color-accent-base) 0%, transparent 70%);
    animation: drift 25s ease-in-out infinite alternate-reverse;
}

.glow-orb-violet {
    top: 40vh;
    left: 30vw;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-secondary-base) 0%, transparent 70%);
    animation: drift 30s ease-in-out infinite alternate;
    opacity: 0.3;
}