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

/* --- CSS Variables --- */
:root {
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --accent-color: #00ffff; /* Neon Cyan */
    --shadow-color: rgba(0, 0, 0, 0.2);
    --font-body: 'Poppins', sans-serif;
    --container-width: 1100px;
}

/* --- General Resets & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    padding-top: 80px; /* Space for fixed header */
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

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

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

a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px var(--accent-color);
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}

/* --- Layout & Glassmorphism Effect --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 4px 30px var(--shadow-color);
    padding: 2rem;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 0;
}

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

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

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

.site-title a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
}
.site-title a:hover {
    text-decoration: none;
}

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

.main-nav a {
    font-weight: 600;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* --- Main Content & Articles --- */
.intro-section {
    text-align: center;
    padding-bottom: 1rem;
}
.intro-section h1 {
    text-shadow: 0 0 10px var(--accent-color);
}

.articles-section h2 {
    text-align: center;
    margin-top: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-preview {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.article-preview h3 a {
    color: var(--heading-color);
}
.article-preview h3 a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.article-meta span {
    margin-right: 1rem;
}

/* --- Sidebar --- */
.widget {
    margin-bottom: 2rem;
}
.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--heading-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    color: var(--text-color);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
}

/* --- Page Specific Styles --- */
.contact-info p {
    font-size: 1.1rem;
}
.contact-info strong {
    color: var(--heading-color);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    body {
        padding-top: 120px;
    }
}


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

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.2rem; }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}