/* ============================================
   Augtech Solutions — Case Study 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;
}

/* ---- NOISE OVERLAY ---- */
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;
}

/* ---- GRID BACKGROUND ---- */
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 (mobile hamburger) ---- */
.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); }

/* ---- SHARED TYPOGRAPHY ---- */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  font-size: 1rem;
}

.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;
  letter-spacing: 0.02em;
  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); }

/* ---- 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); }

/* ---- CASE STUDY HERO ---- */
.cs-hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 6% 3rem;
}
.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);
}
.cs-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;
}
.cs-tagline {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 580px;
  margin: 0 0 2.5rem;
}
.cs-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.cs-stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
}
.cs-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cs-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---- CASE STUDY SECTIONS ---- */
.cs-section {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 6%;
}
.cs-section h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}
.cs-section p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.85;
}
.cs-section p.lead { color: var(--text); font-size: 1.12rem; }
.cs-section p:last-child { margin-bottom: 0; }

.cs-feature-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding: 0;
}
.cs-feature-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}
.cs-feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

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

.cs-outcome-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin-top: 0.5rem;
}

/* ---- FINAL CTA ---- */
.cs-final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 6% 6rem;
  max-width: 700px;
  margin: 0 auto;
}
.cs-final-cta h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 1rem;
}
.cs-final-cta p { color: var(--muted); margin: 0 0 2rem; }
.cs-final-cta .cs-cta-row { justify-content: center; margin-top: 0; }

/* ---- HUB (case studies index) ---- */
.hub-hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem 6% 3rem;
}
.hub-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6% 6rem;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.hub-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.hub-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.hub-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0.7rem 0 0.5rem;
}
.hub-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.2rem; }
.hub-card .cs-stat-num { font-size: 1.5rem; }

/* ---- 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; }
  .cs-hero, .cs-section, .cs-final-cta, .hub-hero, .hub-section { padding-left: 5%; padding-right: 5%; }
  .hub-hero { padding-top: 7.5rem; }
  .cs-stats { gap: 1.8rem; }
  footer { flex-direction: column; text-align: center; }
}
