
/* --- General Setup & Variables --- */
:root {
    --primary-color: #3a7bd5;
    --secondary-color: #3a7bd5;
    --text-color: #e0e0e0;
    --bg-color: #0d1117;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
}

/* --- Base & Typography --- */
* {
    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);
    background-image: linear-gradient(to right top, #0d1117, #161b22, #1d252e, #25303a, #2e3b47);
    line-height: 1.7;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #ffffff;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; }

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

a:hover {
    color: #63a4ff;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Glassmorphism Effect --- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- Header & Navigation --- */
.site-header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 2rem;
}

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

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

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    font-weight: 400;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.site-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.site-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

/* --- Main Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.main-content {
    padding: 2rem;
}

/* --- Homepage Hero/Intro --- */
.intro-section {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}
.intro-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.intro-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.article-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.article-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #2a6abd;
    text-decoration: none;
    color: #fff;
}

/* --- Sidebar --- */
.sidebar {
    padding: 2rem;
}

.sidebar-widget {
    margin-bottom: 2.5rem;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 0.75rem;
}

.sidebar-widget li a {
    color: var(--text-color);
    opacity: 0.9;
}
.sidebar-widget li a:hover {
    color: #fff;
}


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

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

.article-meta {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.article-content {
    font-size: 1.05rem;
}

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

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.cta-section {
    margin: 3rem 0;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

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

.site-footer p {
    margin: 0;
    opacity: 0.7;
}

/* --- Sub-pages (About, Contact etc.) --- */
.page-header {
    text-align: center;
    padding: 3rem 0;
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .intro-section h1 { font-size: 2.2rem; }
    .article-header h1 { font-size: 2.2rem; }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .main-content, .sidebar {
        padding: 1rem;
    }
}
