/* 
  Theme: Tech / Futuristic
  Font: Fira Code (Monospace)
  Primary Colors:
  - Background: #0A192F (Dark Navy)
  - Text: #CCD6F6 (Light Slate)
  - Accent / Headings: #64FFDA (Neon Mint)
  - UI Background: #112240 (Lighter Navy)
  - Border: #00BFFF (Deep Sky Blue)
*/

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

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

:root {
    --dark-navy: #0A192F;
    --light-navy: #112240;
    --light-slate: #CCD6F6;
    --slate: #8892b0;
    --neon-mint: #64FFDA;
    --border-blue: rgba(0, 191, 255, 0.2);
}

body {
    font-family: 'Fira Code', monospace;
    line-height: 1.7;
    background-color: var(--dark-navy);
    color: var(--slate);
    font-size: 16px;
}

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

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

a:hover {
    color: #ffffff;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fira Code', monospace;
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.3;
    color: var(--light-slate);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-navy);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neon-mint);
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 1rem;
    color: var(--light-slate);
    padding-bottom: 5px;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--neon-mint);
    transition: width 0.3s ease;
}

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

/* --- Main Layout --- */
.main-content {
    padding: 60px 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

/* --- Homepage --- */
.hero {
    text-align: center;
    padding: 60px 20px;
    border: 1px solid var(--border-blue);
    background-color: var(--light-navy);
    margin-bottom: 60px;
}

.hero h1 {
    margin-bottom: 0.5em;
    color: var(--light-slate);
}

.hero p {
    max-width: 750px;
    margin: 0 auto 1em;
    font-size: 1.1rem;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.article-card {
    background-color: var(--light-navy);
    border: 1px solid var(--border-blue);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
    border-color: var(--neon-mint);
    transform: translateY(-5px);
}

.article-card-content {
    padding: 30px;
}

.article-card h3 {
    margin-bottom: 0.5em;
    color: var(--neon-mint);
}

.article-card p {
    color: var(--slate);
    margin-bottom: 1.5em;
}

.read-more-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--neon-mint);
    padding: 12px 25px;
    border: 1px solid var(--neon-mint);
    font-weight: 400;
    font-family: 'Fira Code', monospace;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--neon-mint);
}

/* --- Sidebar --- */
.sidebar {
    padding: 25px;
    background-color: var(--light-navy);
    border: 1px solid var(--border-blue);
}

.sidebar-widget {
    margin-bottom: 35px;
}

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

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

.sidebar-widget ul li {
    margin-bottom: 12px;
}

.sidebar-promo p {
    background-color: var(--dark-navy);
    color: var(--light-slate);
    padding: 20px;
    border: 1px solid var(--border-blue);
    text-align: center;
    font-weight: 400;
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-navy);
    text-align: center;
}

.article-header h1 {
    font-size: 2.8rem;
    color: var(--light-slate);
}

.article-meta {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 10px;
}

.article-content h2, .article-content h3 {
    margin-top: 2em;
}

.article-content blockquote {
    border-left: 3px solid var(--neon-mint);
    padding: 15px 25px;
    margin: 30px 0;
    background-color: var(--light-navy);
    color: var(--light-slate);
    font-size: 1.1rem;
}
.article-content ul, .article-content ol {
    padding-left: 20px;
    margin-bottom: 1.5em;
}
.article-content li {
    margin-bottom: 0.5em;
}

.cta-section {
    background-color: var(--light-navy);
    border: 1px solid var(--border-blue);
    padding: 40px;
    text-align: center;
    margin: 50px 0;
}

.cta-section h3 {
    margin-bottom: 0.5em;
    color: var(--light-slate);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--light-navy);
    color: var(--slate);
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-blue);
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .layout-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .article-page-layout {
        grid-template-columns: 3fr 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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