/* ============================================
   Augtech Solutions — Blog pages
   Shared styles (matches main site design system)
   ============================================ */

:root {
  --bg: #050a12;
  --surface: #0c1523;
  --surface2: #111d2e;
  --accent: #00d4ff;
  --accent2: #7b5cfa;
  --accent3: #00ffaa;
  --text: #e8f0fe;
  --muted: #6a7fa0;
  --border: rgba(0,212,255,0.12);
  --glow: rgba(0,212,255,0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6%;
  background: rgba(5,10,18,0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
}
nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
nav ul a:hover, nav ul a[aria-current="page"] { color: var(--accent); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  font-size: 0.84rem !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 950;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 6.5rem 6% 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---- BLOG HUB ---- */
.hub-hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem 6% 3rem;
}
.hub-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}
.hub-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0;
}

.cs-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
  color: var(--accent);
  background: rgba(0,212,255,0.08);
}

.hub-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 6% 6rem;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.2rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.blog-cat {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.blog-date {
  font-size: 0.78rem;
  color: var(--muted);
}
.blog-card h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.blog-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
  line-height: 1.7;
}
.blog-read-more {
  font-size: 0.84rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--accent);
}

/* ---- BLOG POST ---- */
.post-hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 6% 3rem;
}
.post-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}
.post-author {
  font-size: 0.85rem;
  color: var(--muted);
}
.post-author strong { color: var(--text); }
.post-read-time {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- POST BODY ---- */
.post-body {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 6% 4rem;
}
.post-body p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 0 0 1.4rem;
}
.post-body p.lead {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.85;
}
.post-body h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
  margin: 2.8rem 0 1rem;
  color: var(--text);
}
.post-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 2rem 0 0.7rem;
  color: var(--text);
}
.post-body ul, .post-body ol {
  color: var(--muted);
  padding-left: 1.4rem;
  margin: 0 0 1.4rem;
  line-height: 1.9;
}
.post-body li { margin-bottom: 0.4rem; }
.post-body a { color: var(--accent); text-decoration: none; }
.post-body a:hover { text-decoration: underline; }

.post-callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-stat-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
}
.post-stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
}
.post-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-divider {
  max-width: 760px;
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ---- POST FOOTER / CTA ---- */
.post-footer {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 6% 2rem;
}
.post-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.post-tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.post-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 6% 6rem;
  max-width: 700px;
  margin: 0 auto;
}
.post-cta h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.9rem;
}
.post-cta p { color: var(--muted); margin: 0 0 2rem; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(0,212,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,212,255,0.4); }

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(0,212,255,0.05); }

/* ---- FOOTER ---- */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; }
.footer-logo span { color: var(--accent); }
footer p { color: var(--muted); font-size: 0.82rem; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5,10,18,0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 6% 1.5rem;
  }
  nav ul.nav-open { display: flex; }
  nav ul li { width: 100%; }
  nav ul a { display: block; padding: 0.9rem 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav ul li:last-child a { border-bottom: none; }
  .nav-cta { display: inline-block; margin-top: 0.75rem; }

  .breadcrumb { padding: 6rem 5% 0; }
  .hub-hero { padding: 7.5rem 5% 2rem; }
  .hub-section, .post-hero, .post-body, .post-footer, .post-cta { padding-left: 5%; padding-right: 5%; }
  .post-stat-row { gap: 1.5rem; }
  footer { flex-direction: column; text-align: center; }
}
