/* ---
Theme: Tech / Futuristic
Font: Fira Code (Monospace)
Primary Colors: Dark Blue/Black, Neon Cyan, Light Bluish White
--- */

/* CSS Variables */
:root {
  --bg-color: #0a0c10; /* Very dark blue/black */
  --surface-color: #141821; /* Slightly lighter dark blue */
  --primary-accent: #00f7ff; /* Neon Cyan */
  --primary-accent-hover: #9effff;
  --text-color: #e6f1ff; /* Light bluish white */
  --text-color-secondary: #8899a6; /* Grayish blue */
  --border-color: #38444d; /* Dark gray */
  --font-family-mono: 'Fira Code', monospace;
}

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

body {
  font-family: var(--font-family-mono);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: linear-gradient(rgba(0, 247, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 247, 255, 0.05) 1px, transparent 1px);
  background-size: 25px 25px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-mono);
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.8rem; text-align: center; }
h2 { font-size: 2rem; margin-top: 2.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
h3 { font-size: 1.5rem; color: var(--primary-accent); font-weight: 600; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-color-secondary);
}

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

a:hover {
  color: var(--primary-accent-hover);
  text-decoration: none;
  text-shadow: 0 0 5px var(--primary-accent-hover);
}

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

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

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

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-accent);
}

.site-title a {
  text-decoration: none;
  color: var(--text-color);
}

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

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color-secondary);
  padding: 0.5rem 0.25rem;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-accent);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Intro Section */
.intro-section {
    padding: 3rem 0;
    text-align: center;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.intro-section p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto;
}

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

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

main, aside {
  padding: 0;
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

.article-card:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
}

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

.article-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.article-card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  align-self: flex-start;
}

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

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

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

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

.sidebar-widget ul li a {
    font-size: 0.9rem;
}

.promo-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Single Article Page */
.article-content {
  background: var(--surface-color);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0;
}

.article-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.article-meta {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Simple Page Wrapper */
.content-wrapper {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-top: 2rem;
}

/* Call to Action Section */
.cta-section {
  margin-top: 3rem;
  padding: 2.5rem;
  text-align: center;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0;
}

.cta-section h2 {
    border: none;
    margin-top: 0;
}

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary-accent);
  color: #0a0c10;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
  border: 1px solid var(--primary-accent);
}

.cta-btn:hover {
  background-color: var(--surface-color);
  color: var(--primary-accent-hover);
  text-decoration: none;
  box-shadow: 0 0 10px var(--primary-accent);
}


/* Footer */
.site-footer {
  background-color: #141821;
  color: #e6f1ff;
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

.site-footer p {
    color: #8899a6;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .main-nav a {
      font-size: 0.9rem;
  }

  .article-content, .content-wrapper {
      padding: 1.5rem;
  }
}
