:root {
  --bg-dark: #06080f;
  --bg-overlay: rgba(10, 14, 20, 0.4);
  --accent-gold: #ffd700;
  --accent-cyan: #00f3ff;
  --text-main: #e2e8f0;
  --text-bright: #ffffff;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --font-heading: 'Orbitron', sans-serif;
  --font-visual: 'Inter', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Star Background Animation */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
  overflow: hidden;
}

.stars, .stars2, .stars3 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stars {
  background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCI+PGNpcmNsZSBjeD0iMjAwIiBjeT0iMjAwIiByPSIxIiBmaWxsPSIjRkZGIiBmaWxsLW9wYWNpdHk9IjAuNSIvPjwvc3ZnPg==') repeat;
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite;
}

.stars2 {
  background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiB2aWV3Qm94PSIwIDAgMzAwIDMwMCI+PGNpcmNsZSBjeD0iMTUwIiBjeT0iMTUwIiByPSIxLjUiIGZpbGw9IiNGRkYiIGZpbGwtb3BhY2l0eT0iMC4zIi8+PC9zdmc+') repeat;
  background-size: 300px 300px;
  animation: twinkle 7s ease-in-out infinite;
  animation-delay: 1s;
}

.stars3 {
  background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIiB2aWV3Qm94PSIwIDAgNTAwIDUwMCI+PGNpcmNsZSBjeD0iMjUwIiBjeT0iMjUwIiByPSIwLjgiIGZpbGw9IiNGRkYiIGZpbGwtb3BhY2l0eT0iMC42Ii8+PC9zdmc+') repeat;
  background-size: 400px 400px;
  animation: twinkle 10s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes twinkle {
  0% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.3; transform: scale(1); }
}

/* Background Dimmer */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

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

header {
  text-align: center;
  margin-bottom: 80px;
}

header h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: #fff;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

header p {
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* Visual 3-Column Grid */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.visual-card {
  position: relative;
  height: 600px;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.visual-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 243, 255, 0.2);
  background-image: url('../images/step-hover.png') !important;
}

/* Gradient for readability */
.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-title-group {
  margin-bottom: 20px;
}

.card-title-main {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.card-title-main span {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 2px;
}

.card-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 250px;
  line-height: 1.5;
}

.card-btn {
  background: #fff;
  color: #000;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  border-radius: 2px;
  text-align: center;
  transition: background 0.3s;
}

.visual-card:hover .card-btn {
  background: var(--accent-cyan);
}

/* Single Post Specifics (Ensuring they still work) */
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

article {
  background: rgba(20, 27, 38, 0.95);
  padding: 60px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

article h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.article-content {
  font-size: 1.1rem;
}

.article-content h3 {
  color: var(--accent-cyan);
  margin: 40px 0 20px;
}

.article-content img {
  width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

.footer {
  text-align: center;
  margin-top: 80px;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .visual-grid {
    grid-template-columns: 1fr;
  }
  header h1 {
    font-size: 2.5rem;
  }
  article {
    padding: 30px;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}
.breadcrumbs a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  text-decoration: underline;
  color: #fff;
}
.breadcrumbs span {
  color: #fff;
}

/* Post Footer Navigation */
.post-footer-nav {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.post-btn {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.3s;
}
.post-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}
.post-btn.next-btn {
  background: rgba(0, 243, 255, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(0, 243, 255, 0.3);
}
.post-btn.next-btn:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* Post Slider Components */
.post-slider-wrapper {
  margin-top: 50px;
  position: relative;
}
.post-slider-wrapper h3 {
  color: var(--text-bright);
  font-family: var(--font-heading);
  margin-bottom: 20px;
  font-size: 1.4rem;
  letter-spacing: 1px;
}
.post-slider-container {
  position: relative;
  display: flex;
  align-items: center;
}
.post-slider-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.post-slider-scroll::-webkit-scrollbar {
  height: 6px;
}
.post-slider-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.slider-arrow:hover {
  background: var(--accent-cyan);
  color: #000;
}
.slider-arrow.left { left: -20px; }
.slider-arrow.right { right: -20px; }

/* Hybrid Small Cards */
.slider-card {
  scroll-snap-align: start;
  min-width: 260px;
  max-width: 260px;
  background: rgba(20, 27, 38, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.slider-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 243, 255, 0.4);
}
.slider-card-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-subtle);
}
.slider-card-content {
  padding: 15px;
}
.slider-card-meta {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 5px;
}
.slider-card-title {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
