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

:root {
  --bg-color: #0a0a1a;
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #00ffff;
  --text-color: #e0e0e0;
  --text-muted-color: #a0a0a0;
  --border-color: #2a2a4a;
  --header-font: 'JetBrains Mono', monospace;
  --body-font: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

/* --- Typography & Links --- */
h1, h2, h3, h4 {
  font-family: var(--header-font);
  color: var(--accent-color);
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

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

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

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

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

/* --- Layout --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

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

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

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  text-shadow: none;
}
.site-title a {
  text-shadow: none;
}

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

.main-nav a {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Main Content & Articles --- */
.main-content, .sidebar {
  background-color: var(--primary-color);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

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

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

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

.article-meta {
  color: var(--text-muted-color);
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.article-content ul {
  list-style-position: inside;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted-color);
}

.cta-box {
  background-color: var(--secondary-color);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}
.cta-box p {
  margin-bottom: 0;
}

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

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

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

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

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

.sidebar-promo {
  background-color: var(--secondary-color);
  padding: 1rem;
  border: 1px dashed var(--border-color);
  text-align: center;
  border-radius: 4px;
}
.sidebar-promo p {
  margin-bottom: 0;
}

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

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.submit-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: var(--header-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}


/* --- Mobile responsiveness --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    
    .main-content, .sidebar {
        padding: 1.5rem;
    }
}
