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

/* --- CSS Variables (Tech / Futuristic Theme) --- */
:root {
  --bg-color: #0a0f1e;
  --primary-text: #c0c5d5;
  --heading-text: #ffffff;
  --accent-primary: #00f5ff;
  --accent-secondary: #ff00ff;
  --card-bg: #10182c;
  --border-color: rgba(0, 245, 255, 0.2);
  --shadow-color-primary: rgba(0, 245, 255, 0.5);
  --shadow-color-secondary: rgba(255, 0, 255, 0.3);
  --font-main: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-text);
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 0 0 5px var(--shadow-color-secondary);
}

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

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

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

/* --- 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(--card-bg);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 15px var(--shadow-color-secondary);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0;
  letter-spacing: 2px;
}

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

.main-nav a {
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--accent-primary);
  color: #fff;
}

/* --- Main Content & Articles --- */
.article-list {
  display: grid;
  gap: 2rem;
}

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

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

.article-card h2 {
    margin-top: 0;
}

.btn-read-more {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
  color: var(--heading-text);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-color-primary);
  color: var(--heading-text);
  text-shadow: none;
}

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

.article-meta {
  font-size: 0.9rem;
  color: var(--accent-primary);
  margin-top: -0.5rem;
}

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

.article-content h2, .article-content h3 {
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-secondary);
    padding-left: 1rem;
}

.article-content ul {
    list-style-type: square;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.cta-box {
    background-color: rgba(0, 245, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
    text-align: center;
}
.cta-box h3 {
    color: var(--heading-text);
}


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

.sidebar-widget h3 {
  color: var(--accent-primary);
  margin-top: 0;
  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.75rem;
}

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

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


/* --- Media Queries --- */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .header-content {
    flex-direction: column;
  }
  
  .main-nav ul {
    gap: 0.5rem 1rem;
  }
}
