/* ========== GLOBAL COLORS & VARIABLES ========== */
:root {
  --bg-dark: #0a0a0a;
  --bg-light: #1e1e1e;
  --bg-accent: #2a2a2a;
  --text-main: #e5e5e5;
  --text-muted: #b5b5b5;
  --accent1: #888;
  --accent2: #ccc;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
}

/* ========== BASE LAYOUT ========== */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scroll-linked parallax background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05), transparent 70%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.04), transparent 70%);
  transform: translateY(calc(var(--scroll, 0) * -0.2));
  transition: transform 0.2s ease-out;
  z-index: 0;
}

/* Optional subtle gradient on scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 20%, transparent 80%, rgba(0,0,0,0.6));
  pointer-events: none;
  z-index: 0;
}

/* ========== CONTAINER ========== */
.container {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--accent2);
  margin-bottom: 40px;
}

/* ========== BLOG CARDS ========== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.blog-card header h3 a {
  font-size: 1.8rem;
  color: var(--accent2);
  text-decoration: none;
}

.blog-card header h3 a:hover {
  color: var(--text-main);
}

.blog-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
  margin-bottom: 14px;
}

.excerpt {
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: bold;
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--accent1);
}

/* ========== CTA BUTTON ========== */
.cta {
  text-align: center;
  margin: 60px 0;
}

.btn {
  background: var(--bg-accent);
  color: var(--text-main);
  padding: 10px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #333;
}

/* ========== FLOATING SHAPES ========== */
.floating-shape {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent);
  animation: float 25s infinite ease-in-out alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

/* ========== SMOOTH SCROLL-LINKED EFFECT ========== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ========== SCROLL-LINKED PARALLAX EFFECT ========== */
html {
  scroll-timeline-name: scrollanim;
  scroll-timeline-axis: vertical;
}

body::before {
  animation-timeline: scrollanim;
  animation-name: scroll-bg;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

@keyframes scroll-bg {
  0% { transform: translateY(0); }
  100% { transform: translateY(-80px); }
}
