/*Font Imports - Clean Modern */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Mr. Robot Cyberpunk Palette */
  --accent-primary: #00d4ff;
  --accent-secondary: #ff006e;
  --text-primary: #cccccc;
  --text-secondary: #888888;
  --heading-color: #00d4ff;
  --link-hover: #ff006e;
  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --terminal-green: #00ff41;
  --warning-red: #cc0000;
  --fsociety-red: #ff0000;
}

/* Fix for horizontal scrolling and box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Clean Modern Typography */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    font-size: 16px;
    background-attachment: fixed;
}

/* CRT Scanline Effect */
@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    color: var(--heading-color);
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    color: var(--accent-primary);
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    color: var(--accent-primary);
    font-size: 1.75rem;
}

h4 {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

h5, h6 {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Clean Link Styling */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:visited {
    color: var(--text-secondary);
}

a:hover {
    color: var(--link-hover);
}

a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--link-hover);
    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
}

a:active {
    color: var(--accent-secondary);
}

/* Spaced lists for better readability */
li {
    margin-bottom: 0.5rem;
}

@media (pointer: coarse) {
    li {
        padding-bottom: 0.75em;
    }
}

dt {
    font-weight: bold;
    color: var(--accent-primary);
}

/* Clean Code Styling */
code {
    color: var(--terminal-green);
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    background-color: var(--bg-secondary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    overflow-wrap: break-word;
}

pre {
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    padding: 1em;
    white-space: pre-wrap;
    background-color: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

pre code {
    display: block;
    overflow-x: auto;
    padding: 0;
    background: transparent;
    color: var(--terminal-green);
    border: none;
    line-height: 1.5;
    font-size: 14px;
}

/* Clean Blockquote Styling */
blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-secondary);
    border-radius: 0 8px 8px 0;
    position: relative;
}

/* Terminal Animation styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes cursor {
    0%, 50% { border-color: var(--accent-primary); }
    51%, 100% { border-color: transparent; }
}