/* ========================================
   BASE STYLES & RESET
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-text {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background-color: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: loadingProgress 1.5s ease-out forwards;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor-outer {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-outer.hovering {
    width: 60px;
    height: 60px;
    background-color: var(--accent-dim);
}

.cursor-inner {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: background-color 0.4s ease;
}

@media (max-width: 768px) {
    .cursor-outer, .cursor-inner {
        display: none;
    }
}

/* ========================================
   PARTICLE CANVAS
   ======================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   SCANLINE OVERLAY
   ======================================== */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--scanline) 2px,
        var(--scanline) 4px
    );
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */
.main-content {
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.interactive {
    cursor: pointer;
}

.text-accent {
    color: var(--accent);
}

.text-dim {
    color: var(--text-dim);
}
