:root {
    --primary-color: #00ffff; /* Cyan */
    --secondary-color: #a1a1a1;
    --background-color: #0d1117;
    --surface-color: #161b22;
    --text-color: #c9d1d9;
    --heading-color: #f0f6fc;
    --border-color: #30363d;
    --font-family: 'Fira Code', monospace;
    --container-width: 1200px;
    --border-radius: 5px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --glow-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

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

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

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

a:hover {
    color: #fff;
    text-shadow: var(--glow-shadow);
}

p {
    margin-bottom: 1.25rem;
}

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

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

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.site-title a {
    color: var(--heading-color);
    text-shadow: var(--glow-shadow);
}

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

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    color: var(--text-color);
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* Main Layout */
.container {
    max-width: var(--container-width);
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 2rem;
}

/* Main Content */
.main-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.intro-section {
    padding: 2.5rem;
    text-align: center;
    background: var(--background-color);
    border-radius: var(--border-radius);
    margin: -2rem -2rem 2rem -2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Blog Articles Section */
.articles-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.article-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--glow-shadow);
}

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

.read-more-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    align-self: flex-start;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: var(--glow-shadow);
    text-shadow: none;
}

/* Sidebar */
.sidebar {
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 0.75rem; }

/* Footer */
.site-footer {
    background-color: #0d1117;
    color: var(--secondary-color);
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-container a { color: var(--secondary-color); }
.footer-container a:hover { color: var(--primary-color); }
.footer-links { margin-top: 1rem; }

/* Article/Page Specifics */
.article-full .main-content, .page-content .main-content {
    padding: 2.5rem;
}

.article-full .article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-full .article-meta { color: var(--secondary-color); }

.article-full .article-content h2,
.article-full .article-content h3 {
    margin-top: 2.5rem;
    color: var(--primary-color);
}

.cta-section {
    background: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2.5rem;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.2);
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--glow-shadow);
}

.contact-form button {
    background-color: var(--primary-color);
    color: #0d1117;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    box-shadow: var(--glow-shadow);
}

/* Media Queries */
@media (min-width: 768px) {
    .container {
        grid-template-columns: 2.5fr 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
     .articles-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
