* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: #0f0f0f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

/* --- Static Grid Background --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* --- Navbar --- */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.6);
  border-radius: 20px;
  padding: 12px 30px;
  display: flex;
  gap: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25), 0 0 12px rgba(181,110,255,0.25);
  z-index: 5;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 12px;
  transition: 0.25s;
}
nav a:hover {
  color: #b56eff;
  background: rgba(181,110,255,0.1);
  box-shadow: 0 0 8px rgba(181,110,255,0.35);
}

/* --- Container --- */
.container {
  padding-top: 140px; /* increased space from navbar */
  width: 90%;
  max-width: 700px;
  margin: 0 auto 80px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  position: relative;
}

/* --- Blog Post Card --- */
.blog-post {
  background: rgba(20,20,20,0.7);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(181,110,255,0.25), 0 0 30px rgba(181,110,255,0.1) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 600px;
  width: 100%;
}
.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(181,110,255,0.4), 0 0 50px rgba(181,110,255,0.2) inset;
}
.blog-post h3 {
  color: #b56eff;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(181,110,255,0.7);
}
.blog-post p {
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 20px;
}

/* --- Learn More Button --- */
.learn-more {
  display: inline-block;
  padding: 10px 25px;
  background: #b56eff;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 0 8px rgba(181,110,255,0.25);
}
.learn-more:hover {
  background: #a14de6;
  box-shadow: 0 0 18px rgba(181,110,255,0.4);
  transform: translateY(-2px);
}

/* --- Footer --- */
footer {
  text-align:center;
  color:#ccc;
  padding:20px 0;
}
footer span { color: #b56eff; font-weight:600; }

/* --- Mobile --- */
@media (max-width: 768px) {
  nav { padding: 8px 16px; gap: 15px; }
  nav a { padding: 5px 10px; font-size: 0.95rem; }
  .container { padding-top: 120px; margin: 0 auto 50px; }
  .blog-post { padding: 20px; }
}