/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00ffff; /* Cyan */
    --dark-color: #0a0a14;
    --card-bg-color: #1a1a2e;
    --light-color: #e0e0e0;
    --text-color: #a9a9b3;
    --border-color: #00aaff;
    --heading-font: 'Fira Code', monospace;
    --body-font: 'Inter', sans-serif;
    --container-width: 1100px;
    --border-radius: 4px;
    --box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

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

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--dark-color);
    font-size: 16px;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--light-color);
    letter-spacing: 1px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--light-color);
    text-shadow: 0 0 8px var(--primary-color);
}

ul {
    list-style: none;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Main Content Layout --- */
main.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 50px;
    padding-bottom: 50px;
}

@media (min-width: 992px) {
    main.container {
        grid-template-columns: 3fr 1fr;
    }
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--card-bg-color);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.hero h1 {
    color: var(--primary-color);
}

/* --- Blog Articles Grid --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card {
    background-color: var(--card-bg-color);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--light-color);
}

.article-card p {
    flex-grow: 1;
}

.read-more {
    font-family: var(--heading-font);
    font-weight: 500;
    align-self: flex-start;
}

/* --- Article Page --- */
.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

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

.article-meta {
    color: #888;
    font-size: 0.9rem;
    font-family: var(--heading-font);
}
.article-meta a {
    color: var(--text-color);
}
.article-meta a:hover {
    color: var(--primary-color);
}


.article-content h2 {
    margin-top: 2.5rem;
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

.article-content ul {
    list-style-type: '» ';
    padding-left: 20px;
    margin-bottom: 1rem;
}

.article-content ul li {
    padding-left: 10px;
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--light-color);
    background-color: rgba(0, 255, 255, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 170, 255, 0.3);
    margin-bottom: 30px;
}

.sidebar .widget h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 1.3rem;
}

.widget-list li {
    margin-bottom: 10px;
}

.widget-list a {
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 1rem;
}

.widget-list a:hover {
    color: var(--primary-color);
}


/* --- Footer --- */
.site-footer {
    background-color: #0a0a14;
    color: var(--text-color);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 170, 255, 0.3);
}

.site-footer p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-family: var(--heading-font);
    color: #888;
}

.site-footer .footer-links a {
    font-family: var(--heading-font);
    color: var(--text-color);
    margin: 0 10px;
}

.site-footer .footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Utility & Other Pages --- */
.page-header {
    padding-bottom: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--primary-color);
}

.content-section p, .content-section ul {
    max-width: 800px;
}