:root {
    --blue-900: #0a1628;
    --blue-800: #0f2240;
    --blue-700: #142d54;
    --blue-600: #1a3a6b;
    --blue-500: #2250a0;
    --blue-400: #3a7bd5;
    --blue-300: #6ba3f0;
    --blue-200: #a8c8f5;
    --blue-100: #d4e4fa;
    --white: #ffffff;
    --white-soft: #f0f4fa;
    --white-muted: #c8d8ec;
    --grid-line: rgba(255, 255, 255, 0.08);
    --grid-line-major: rgba(255, 255, 255, 0.18);
    --accent: #6ba3f0;
    --accent-muted: #3a7bd5;
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
    --container-max: 1100px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--blue-900);
    color: var(--white-muted);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        linear-gradient(var(--grid-line-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-major) 1px, transparent 1px);
    background-size:
        20px 20px,
        20px 20px,
        100px 100px,
        100px 100px;
    opacity: 0.7;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.scribbles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--blue-600);
    padding: 16px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    text-shadow: 0 0 20px rgba(107, 163, 240, 0.5);
}

.nav-brand span {
    color: var(--accent);
    transition: all 0.3s ease;
}

.nav-brand:hover span {
    text-shadow: 0 0 20px rgba(107, 163, 240, 0.8);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-200);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--blue-900);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--blue-100);
    color: var(--blue-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--blue-200);
    border: 1px solid var(--blue-500);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 163, 240, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

footer {
    padding: 60px 0;
    background: var(--blue-800);
    border-top: 1px solid var(--blue-600);
    text-align: center;
}

footer p {
    color: var(--blue-200);
    font-size: 14px;
    margin-bottom: 8px;
}

footer a {
    color: var(--blue-200);
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Blog Post Styles */
.post {
    padding: 140px 0 80px;
}

.post-back {
    display: inline-block;
    color: var(--blue-200);
    font-size: 14px;
    margin-bottom: 32px;
}

.post-back:hover {
    color: var(--accent);
}

.post-back::before {
    content: '← ';
}

.post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.post-date {
    font-size: 13px;
    color: var(--blue-200);
    font-family: var(--font-mono);
}

.post-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(107, 163, 240, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.post h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-body {
    background: var(--blue-800);
    border: 1px solid var(--blue-600);
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.post-body {
    background: var(--blue-800);
    border: 1px solid var(--blue-600);
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.post-body p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--blue-200);
}

.post-body p:first-of-type {
    font-size: 20px;
    color: var(--white-muted);
}

.post-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin: 48px 0 20px;
}

.post-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--blue-200);
    margin: 32px 0 16px;
}

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--blue-800);
    border-radius: 0 8px 8px 0;
}

.post-body blockquote p {
    font-size: 16px;
    font-style: italic;
    color: var(--blue-200);
    margin: 0;
}

.post-body ul,
.post-body ol {
    margin: 24px 0;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 12px;
    color: var(--blue-200);
}

.post-body hr {
    border: none;
    height: 1px;
    background: var(--blue-600);
    margin: 48px 0;
}

.post-body code {
    font-family: var(--font-mono);
    background: var(--blue-800);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent);
}

.post-body pre {
    background: var(--blue-800);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body strong {
    color: var(--white);
    font-weight: 600;
}

.post-body em {
    color: var(--blue-200);
}

.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--blue-600);
}

.post-footer p {
    font-size: 14px;
    color: var(--blue-200);
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .post h1 {
        font-size: 28px;
    }
    .post-body p {
        font-size: 16px;
    }
    .post-body p:first-of-type {
        font-size: 18px;
    }
}
