/* ===========================================
   LOCALGHOST - BASE STYLES
   Global: fonts, variables, reset, nav, footer
   =========================================== */

/* ===========================================
   FONTS
   =========================================== */

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/JetBrainsMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/JetBrainsMono-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ===========================================
   CSS VARIABLES
   =========================================== */

:root {
    --void: #111111;
    --void-lighter: #1a1a1a;
    --text: #E0E0E0;
    --text-dim: #808080;
    --terminal: #33FF00;
    --terminal-dim: #1a8000;
    --border: #333;
    --warning: #FF6B6B;
    --font-mono: 'JetBrains Mono', monospace;
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ===========================================
   RESET & BASE
   =========================================== */

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

html {
    scroll-behavior: smooth;
}

/* Anchor offset for fixed nav */
[id] {
    scroll-margin-top: 80px;
}

body {
    background: var(--void);
    color: var(--text);
    font-family: var(--font-system);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--terminal);
    color: var(--void);
}

/* ===========================================
   SCANLINES OVERLAY
   =========================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    z-index: 9999;
}

/* ===========================================
   NAVIGATION
   =========================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
}

.nav-logo {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-logo a {
    color: var(--text);
    text-decoration: none;
}

.nav-logo span {
    color: var(--terminal);
}

.nav-status {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--terminal);
}

.nav-links a.active {
    color: var(--terminal);
    border-bottom: 1px solid var(--terminal);
}


/* ===========================================
   SECTIONS & TYPOGRAPHY
   =========================================== */

section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--terminal);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

h2 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text);
}

h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--terminal);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text);
    opacity: 0.9;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4rem 0;
}

/* ===========================================
   FOOTER
   =========================================== */

footer {
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

.footer-links {
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--terminal);
}

.footer-quote {
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block;
}

/* ===========================================
   RESPONSIVE - BASE
   =========================================== */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.7rem;
    }

    .nav-links .hide-mobile {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}