:root {
  /* Dark Futuristic / Cyber-Neon Palette */
  --primary: #00D9FF;        /* Electric Cyan (main accent) */
  --primary-light: #66E8FF;
  --primary-dark: #00A8CC;
  --secondary: #FF2E96;      /* Neon Magenta (secondary accent) */
  --accent: #7B2CFF;         /* Electric Purple (tags, highlights) */
  --background: #0B0F1A;     /* Deep Space Navy */
  --surface: #131825;        /* Card / Elevated surfaces */
  --text: #E0E6FF;           /* Light blue-white text */
  --text-secondary: #A0A8CC;
  --text-light: #6C7A99;
  --border-radius: 16px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode fallback (if user prefers light) */
@media (prefers-color-scheme: light) {
  :root {
    --background: #F0F4FF;
    --surface: #FFFFFF;
    --text: #1A1F33;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--text);
}

h1 { font-size: 3.8rem; }
h2 { font-size: 2.4rem; color: var(--primary); }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Hero / Header */
.hero {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #131825 0%, #0B0F1A 100%);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  margin-bottom: 60px;
  box-shadow: var(--box-shadow);
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Post Cards */
.post-card {
  background: var(--surface);
  padding: 35px;
  margin: 20px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 215, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(var(--primary), var(--secondary));
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 215, 255, 0.15);
}

.post-card:hover::before {
  width: 10px;
}

.post-card h4, .post-card h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text);
  transition: var(--transition);
}

.post-card:hover h4, .post-card:hover h3 {
  color: var(--primary);
}

.meta {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tags span {
  padding: 6px 14px;
  background: rgba(0, 215, 255, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.tags span:hover {
  background: var(--primary);
  color: var(--surface);
}

/* Single Post Sections */
.post {
  padding: 50px 30px;
  max-width: 900px;
  margin: 40px auto 80px;
  background: var(--surface);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.section {
  margin: 80px 0;
}

.section h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 30px;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.seed-box {
  background: rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  overflow-x: auto;
  color: var(--primary-light);
}

.word-count {
  text-align: right;
  font-style: italic;
  color: var(--text-light);
  margin-top: 15px;
}

/* Back Button (floating) */
.back {
  position: fixed;
  bottom: 40px;
  right: 40px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 215, 255, 0.3);
  z-index: 100;
  transition: var(--transition);
}

.back:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 215, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.2rem; }
  .post-card { padding: 25px; }
  .post { padding: 30px 20px; }
  .back { bottom: 20px; right: 20px; padding: 12px 20px; }
}

/* Fade-in animation for cards */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(n+4) { animation-delay: 0.4s; }