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

:root {
  --primary-color: rgba(255, 255, 255, 0.9);
  --secondary-color: #333;
  --accent-color: #8A2BE2; /* BlueViolet */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --font-family: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--primary-color);
  background: linear-gradient(135deg, #232526, #414345);
  background-attachment: fixed;
  line-height: 1.6;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.blob1, .blob2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.blob1 {
  width: 400px;
  height: 400px;
  background-color: rgba(138, 43, 226, 0.3); /* BlueViolet */
  top: -150px;
  left: -150px;
  animation: moveBlob1 20s infinite alternate;
}

.blob2 {
  width: 500px;
  height: 500px;
  background-color: rgba(75, 0, 130, 0.3); /* Indigo */
  bottom: -200px;
  right: -200px;
  animation: moveBlob2 25s infinite alternate;
}

@keyframes moveBlob1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(200px, 300px) scale(1.2); }
}

@keyframes moveBlob2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-300px, -200px) scale(0.8); }
}

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

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

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

.site-title a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
}

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

.main-nav a {
  color: var(--primary-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: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent-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;
}

.glass-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

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

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

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

.btn:hover {
  background: #6a1eae;
  transform: translateY(-2px);
  text-decoration: none;
}

/* --- 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.25rem;
  margin-top: 0;
  color: #f0f0f0;
}

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

/* --- Article Page --- */
.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
}

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

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

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

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

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

.sidebar-widget a {
  color: #ddd;
  font-weight: 400;
}

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

.promo-text {
  font-style: italic;
  font-weight: 400;
  color: #ccc;
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--glass-bg);
  border-top: var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  text-align: center;
  color: #ccc;
  margin-top: 2rem;
}

/* --- 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;
    border-radius: 8px;
    border: var(--glass-border);
    background: rgba(0,0,0,0.2);
    color: var(--primary-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(138, 43, 226, 0.3);
}

