
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg-color: #0a0f1e;
  --primary-text-color: #d0d0e0;
  --secondary-text-color: #a0a0b0;
  --accent-color: #00f7ff;
  --accent-hover-color: #9effff;
  --card-bg-color: #1a2035;
  --border-color: #2a3045;
  --header-bg-color: rgba(10, 15, 30, 0.8);
  --font-family: 'JetBrains Mono', monospace;
}

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  text-shadow: 0 0 5px var(--accent-color);
}

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

.main-nav a {
  color: var(--primary-text-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

/* --- Main Content --- */
.main-content {
  padding: 2rem 0;
}

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

h1 { font-size: 2.5rem; color: var(--accent-color); }
h2 { font-size: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; color: var(--accent-hover-color); }

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

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

a:hover {
  color: var(--accent-hover-color);
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
  text-decoration: none;
}

/* --- Homepage Specifics --- */
.hero {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

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

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 247, 255, 0.1);
}

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

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

/* --- Page Layout with Sidebar --- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.sidebar {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
}

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

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

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

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

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

.sidebar-widget ul li a::before {
  content: '» ';
  color: var(--accent-color);
}

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

.article-meta {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
}

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

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
}

/* --- Contact Form --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-text-color);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-text-color);
  font-size: 0.9rem;
}

/* --- Responsive --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .header-content {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none; /* In a real scenario, JS would toggle this */
    width: 100%;
    margin-top: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}
