:root {
    --background-color: #181a20; 
    --surface-color: #2b2b2b; 
    --primary-accent: #175ddc; 
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --header-font: 'Lora', serif;
    --body-font: 'Roboto', sans-serif;
}

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

body {
    padding-top: 80px;
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #1a1a1a;
    padding: 1rem 5%;
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.logo a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

/* Main Content */
main {
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.hero h1 {
    font-family: var(--header-font);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

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

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-post {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.post-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.blog-post p {
    flex-grow: 1;
    margin-top: 1rem;
}

.read-more {
    color: var(--primary-accent);
    font-weight: 700;
    margin-top: 1rem;
    align-self: flex-start;
}

/* Article Page */
.article-page {
    max-width: 800px;
    margin: 0 auto;
}

.full-article {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.full-article h1 {
    font-family: var(--header-font);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.full-article p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.full-article h2 {
    font-family: var(--header-font);
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.back-to-blog {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 700;
}

.back-to-blog:hover {
    text-decoration: underline;
}

/* About Section */
#about {
    padding: 4rem 1rem;
    text-align: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 4rem 0;
}

/* Contact Form */
#contact {
    padding: 4rem 0;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-family: var(--body-font);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    background: var(--primary-accent);
    color: #ffffff;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 700;
}

button:hover {
    background: #124aa1; /* A slightly darker blue on hover */
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: transparent;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
