:root {
  --bg1: #060610;
  --bg2: #0b0b14;
  --neon-c: #00f0ff;
  --neon-p: #b166ff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.06);
  --card-w: 320px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .9, .2, 1);
}

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  color: #dbeafe;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
  min-height: 100vh;
}

/* animated background layer */
#bg-anim {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 10% 20%, rgba(177, 102, 255, 0.08), transparent 8%),
              radial-gradient(700px 500px at 90% 80%, rgba(0, 240, 255, 0.06), transparent 10%);
  mix-blend-mode: screen;
  filter: blur(24px) saturate(120%);
  animation: float 18s linear infinite alternate;
}
@keyframes float { from { transform: translateY(-10px); } to { transform: translateY(10px); } }

/* layout */
.page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 4vh 6vw; position: relative; z-index: 2;
}
.brand { max-width: 900px; text-align: center; margin-top: 4vh; }
.brand h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin: 0 0 .4rem; letter-spacing: 0.6px; }
.subtitle { opacity: .8; margin: 0 0 2rem; font-size: clamp(.92rem, 1.6vw, 1.1rem); }

/* cards */
.cards {
  display: flex; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap;
  justify-content: center; margin-top: 2vh;
}
.card {
  display: block; text-decoration: none; width: var(--card-w); min-height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 6px 30px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transform: translateY(0);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
  position: relative; overflow: hidden; padding: 1.6rem;
}
.card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}
.card-inner { position: relative; z-index: 1; }
.card-inner img:last-child { margin-top: 0.8rem; }
.card h2 { margin: .1rem 0 .4rem; font-size: 1.4rem; color: #fff; }
.card p { margin: 0; opacity: .9; font-size: .95rem; color: #fff; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,240,255,0.06), rgba(177,102,255,0.05));
  mix-blend-mode: screen; opacity: 0; transition: opacity .32s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(12,8,50,0.6);
}
.card:hover::after { opacity: 1; }

/* glow variant */
.glow { border: 1px solid rgba(0,240,255,0.08); }
.glow:hover {
  box-shadow: 0 30px 80px rgba(0,240,255,0.08),
              0 6px 30px rgba(177,102,255,0.06);
}

/* blog layout */
.back {
  align-self: flex-start; color: var(--neon-c); text-decoration: none;
  margin: 1rem 0; font-weight: 600; transition: filter .2s;
}
.back:hover { filter: drop-shadow(0 0 12px rgba(0,240,255,0.25)); }

.post {
  max-width: 900px; width: 100%; margin: 1rem auto 6rem; padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(2,6,23,0.6);
}
.glass {
  background: linear-gradient(180deg, rgba(20,24,30,0.48), rgba(12,12,18,0.36));
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  border-radius: var(--radius);
}

/* article content */
.post header h1 { margin: 0 0 .2rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.meta { opacity: .7; font-size: .92rem; margin-bottom: 1rem; }
.content { line-height: 1.65; color: #dbeafe; }
.content p { margin: 1rem 0; opacity: .95; }
.post-foot {
  margin-top: 1.8rem; display: flex;
  justify-content: space-between; align-items: center;
}
.link { color: var(--neon-p); text-decoration: none; font-weight: 600; }
.link:hover { filter: drop-shadow(0 0 18px rgba(177,102,255,0.18)); }

/* hero image unutar blog posta */
.post-image {
  margin: 1.2rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.post-image img {
  width: 100%; height: auto; display: block;
  object-fit: contain; max-height: 500px;
}

/* small responsive tweaks */
@media (max-width:760px) {
  .cards { flex-direction: column; align-items: center; }
  .card { width: 92%; }
  .brand { margin-top: 2vh; }
  .post { padding: 1.2rem; }
}

/* fade-in classes used by JS */
.fade-in {
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-in.show { opacity: 1; transform: translateY(0); }

/* utilities */
.footline { margin-top: auto; opacity: .6; }
