
/* --- Google Font Import: Fira Code --- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600&display=swap');

/* --- CSS Variables (Tech / Futuristic Theme) --- */
:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --primary-color: #58a6ff;
    --secondary-color: #1f6feb;
    --accent-color: #39d353;
    --text-color: #c9d1d9;
    --text-muted-color: #8b949e;
    --border-color: #30363d;
    --font-family: 'Fira Code', monospace;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border-radius: 12px;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --backdrop-blur: blur(10px);
}

/* --- Global & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    background-image: linear-gradient(rgba(13, 17, 23, 0.95), rgba(13, 17, 23, 0.95)), url('https://picsum.photos/1920/1080?grayscale&blur=2');
    background-attachment: fixed;
    background-size: cover;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(88, 166, 255, 0.3);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #a3c9ff;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.5);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.6rem;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

/* --- Header & Navigation --- */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}
.site-title a::after {
    content: '_';
    color: var(--accent-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.main-nav ul {
    list-style-type: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-muted-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    letter-spacing: 1px;
}

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

.main-nav a.active::before {
    content: '<';
    color: var(--accent-color);
    margin-right: 0.5ch;
}
.main-nav a.active::after {
    content: '>';
    color: var(--accent-color);
    margin-left: 0.5ch;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    max-width: 750px;
    margin: 1rem auto 0;
}

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.article-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.read-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    color: #fff;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    height: fit-content;
}

.widget { margin-bottom: 2.5rem; }
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}


.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 0.75rem; }
.widget ul li a { color: var(--text-muted-color); }
.widget ul li a::before { content: '>> '; color: var(--accent-color); }

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

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 1rem;
    color: var(--text-muted-color);
}
.article-meta a { font-weight: 600; }

.article-content h2 { margin-top: 3rem; }
.article-content h3 { margin-top: 2rem; }

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-color);
    background-color: rgba(57, 211, 83, 0.05);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.cta-section {
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.3), rgba(88, 166, 255, 0.3));
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 { color: #fff; margin-top: 0; font-size: 2rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); }

.cta-button {
    display: inline-block;
    background: #fff;
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #e2e8f0;
    text-decoration: none;
    color: var(--secondary-color);
}

/* --- Static Pages --- */
.page-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.page-content {
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.page-content ul li::before { content: '>> '; color: var(--accent-color); }


/* --- Footer --- */
.site-footer {
    background-color: var(--surface-color);
    color: var(--text-muted-color);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links { margin-top: 1rem; }
.footer-links a {
    color: var(--text-muted-color);
    margin: 0 1rem;
}
.footer-links a:hover { color: var(--text-color); }
