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

html {
    scroll-behavior: smooth;
}

:root {
    /* Modern Technical Blog Color Scheme */
    --terminal-green: #3fb950;
    --terminal-amber: #d29922;
    --code-blue: #58a6ff;
    --tech-cyan: #58a6ff;
    --warning-red: #f85149;
    --success-green: #3fb950;
    --info-blue: #58a6ff;
    --caution-orange: #d29922;

    /* Backgrounds - GitHub-inspired dark theme */
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    --bg-code: #161b22;

    /* Borders */
    --border-tech: #30363d;
    --border-subtle: #21262d;

    /* Text Colors */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Callout Colors */
    --callout-note-bg: rgba(56, 139, 253, 0.1);
    --callout-note-border: #388bfd;
    --callout-tip-bg: rgba(63, 185, 80, 0.1);
    --callout-tip-border: #3fb950;
    --callout-warning-bg: rgba(210, 153, 34, 0.1);
    --callout-warning-border: #d29922;
    --callout-caution-bg: rgba(248, 81, 73, 0.1);
    --callout-caution-border: #f85149;

    /* Spacing */
    --section-spacing: 6rem;

    /* Reading-optimized typography */
    --font-size-body: 17px;
    --line-height-body: 1.8;
    --line-height-heading: 1.3;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: var(--line-height-body);
    color: var(--text-primary);
    background: var(--bg-dark);
    font-size: var(--font-size-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings - Technical feel with better hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    line-height: var(--line-height-heading);
    letter-spacing: -0.02em;
}

.font-mono,
code,
pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Engineering grid background - Softer/Subtle */
.tech-grid {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.tech-grid::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 217, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    /* Constrained for better readability */
    margin: 0 auto;
    padding: 6rem 2rem 0 2rem;
    position: relative;
    z-index: 1;
}

/* Technical text effects - Toned down */
.gradient-text {
    background: linear-gradient(135deg, var(--terminal-green), var(--tech-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.neon-glow {
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
    /* Much softer glow */
}

/* Modern Buttons */
.btn-primary {
    background: rgba(0, 255, 65, 0.05);
    color: var(--terminal-green);
    border: 1px solid var(--terminal-green);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.btn-primary:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
}

.btn-outline {
    border: 1px solid var(--border-tech);
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 4px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.btn-outline:active {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(1px);
}

/* Cards - Cleaner "Glass" look */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-tech);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.glass:hover {
    border-color: var(--text-muted);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Section Spacing */
section {
    margin-bottom: var(--section-spacing);
}

/* Utility / Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--terminal-green);
    color: var(--bg-dark);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.text-primary-light {
    color: var(--tech-cyan);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Inputs */
input,
textarea {
    background: var(--bg-code) !important;
    border: 1px solid var(--border-tech) !important;
    color: var(--text-primary) !important;
    border-radius: 6px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace !important;
}

input:focus,
textarea:focus {
    border-color: var(--tech-cyan) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-spacing: 4rem;
    }

    .container {
        padding: 4rem 1.5rem 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }
}