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

:root {
  --primary-text-color: #EAEAEA;
  --secondary-text-color: #B0B0B0;
  --accent-color: #00A8E8; /* Bright Blue */
  --bg-color: #121212;
  --card-bg-color: #1E1E1E;
  --border-color: #2c2c2c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --font-family: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--primary-text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* --- Header & Navigation --- */
.site-header {
  background: rgba(30, 30, 30, 0.85);
  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 a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-text-color);
  text-decoration: none;
  letter-spacing: 0.5px;
}

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

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

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary-text-color);
}

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

/* --- Main Content --- */
main {
  flex: 1;
  padding: 2rem 0;
}

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

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

.content-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

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

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

a:hover {
  color: #00c6ff;
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #0095c7;
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 168, 232, 0.3);
}

/* --- Blog Post Grid --- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.blog-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-card h3 {
  font-size: 1.4rem;
  margin-top: 0;
  color: var(--primary-text-color);
}

.blog-post-card p {
  flex-grow: 1;
}

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

.article-meta {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.5rem;
}

.article-content h2, .article-content h3 {
  margin-top: 2.5rem;
}

.article-content ul {
  list-style-position: inside;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-text-color);
}

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

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

.sidebar-widget a {
  color: var(--secondary-text-color);
  font-weight: 400;
}

.sidebar-widget a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.promo-text {
  font-weight: 400;
  color: var(--primary-text-color);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  background: #252525;
  border-radius: 8px;
}

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

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #252525;
    color: var(--primary-text-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

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