:root {
    --bg-color: #1a1a1a;
    --surface-color: #2a2a2a;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --primary-color: #FFDE0D;
    --primary-hover: #e6c800;
    --code-bg: #2d3130;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

nav .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

nav .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Sections */
section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--nav-height);
    box-sizing: border-box;
}

.hero h1 {
    font-size: 4rem;
    margin: 0 0 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.article-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-card h3 {
    margin: 0 0 1rem;
    color: var(--primary-color);
}

.article-card p {
    color: var(--text-muted);
    margin: 0;
    flex-grow: 1;
}

/* Contact Section */
.contact-container {
    text-align: center;
    background-color: var(--surface-color);
    padding: 4rem 2rem;
    border-radius: 10px;
}

.contact-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #333;
    margin-top: 4rem;
    color: var(--text-muted);
}

/* Article Page specific */
.article-page {
    padding-top: calc(var(--nav-height) + 2rem);
}

.article-page .article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content p { margin-bottom: 1rem; }
.article-content a { color: var(--primary-color); text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.article-content code { background-color: var(--code-bg); padding: 0.2rem 0.4rem; border-radius: 3px; font-family: monospace; }
.article-content pre { background-color: var(--code-bg); padding: 1rem; border-radius: 4px; overflow-x: auto; margin-bottom: 1.5rem; }
.article-content pre code { background-color: transparent; padding: 0; }
.back-link { display: inline-block; margin-top: 3rem; color: var(--primary-color); text-decoration: none; font-weight: bold; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav .nav-links { display: none; } /* Could add a hamburger menu if needed */
}
